FreeBSD Bugzilla – Attachment 177140 Details for
Bug 214624
[patch] [netgraph] [panic] fix kernel panic due to loading default netgraph modules into INVARIANTS-enabled kernel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
make NG_ABI_VERSION depend on options INVARIANTS
netgraph.h.diff (text/plain), 782 bytes, created by
Eugene Grosbein
on 2016-11-18 12:37:58 UTC
(
hide
)
Description:
make NG_ABI_VERSION depend on options INVARIANTS
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2016-11-18 12:37:58 UTC
Size:
782 bytes
patch
obsolete
>--- netgraph.h.orig 2016-10-17 14:51:54.307306000 +0700 >+++ netgraph.h 2016-11-18 18:24:07.518345000 +0700 >@@ -71,11 +71,20 @@ > * modules. > */ > #define _NG_ABI_VERSION 12 >-#ifdef NETGRAPH_DEBUG /*----------------------------------------------*/ >-#define NG_ABI_VERSION (_NG_ABI_VERSION + 0x10000) >-#else /* NETGRAPH_DEBUG */ /*----------------------------------------------*/ >-#define NG_ABI_VERSION _NG_ABI_VERSION >-#endif /* NETGRAPH_DEBUG */ /*----------------------------------------------*/ >+ >+#ifdef NETGRAPH_DEBUG >+#define _NG_ABI_PREFIX1 0x10000 >+#else >+#define _NG_ABI_PREFIX1 0 >+#endif >+ >+#ifdef INVARIANTS >+#define _NG_ABI_PREFIX2 0x20000 >+#else >+#define _NG_ABI_PREFIX2 0 >+#endif >+ >+#define NG_ABI_VERSION (_NG_ABI_PREFIX1 + _NG_ABI_PREFIX2 + _NG_ABI_VERSION) > > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214624
: 177140