FreeBSD Bugzilla – Attachment 257876 Details for
Bug 214624
[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), 808 bytes, created by
Mark Linimon
on 2025-02-25 05:26:32 UTC
(
hide
)
Description:
make NG_ABI_VERSION depend on options INVARIANTS
Filename:
MIME Type:
Creator:
Mark Linimon
Created:
2025-02-25 05:26:32 UTC
Size:
808 bytes
patch
obsolete
>--- sys/netgraph/netgraph.h.orig 2016-10-17 14:51:54.307306000 +0700 >+++ sys/netgraph/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
| 257876