FreeBSD Bugzilla – Attachment 199449 Details for
Bug 230498
Fatal trap 12: page fault while in kernel mode in sysctl_dumpentry from sysctl NET_RT_DUMP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
rtsock.diff (text/plain), 842 bytes, created by
Andrey V. Elsukov
on 2018-11-22 14:20:32 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2018-11-22 14:20:32 UTC
Size:
842 bytes
patch
obsolete
>diff --git a/sys/net/if.c b/sys/net/if.c >index 15b4d7c12d1..fcc882aec26 100644 >--- a/sys/net/if.c >+++ b/sys/net/if.c >@@ -1187,7 +1187,6 @@ if_detach_internal(struct ifnet *ifp, int vmove, struct if_clone **ifcp) > */ > free(ifp->if_hw_addr, M_IFADDR); > ifp->if_hw_addr = NULL; >- ifp->if_addr = NULL; > > /* We can now free link ifaddr. */ > IF_ADDR_WLOCK(ifp); >diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c >index 407764ed263..f5498770ef0 100644 >--- a/sys/net/rtsock.c >+++ b/sys/net/rtsock.c >@@ -1922,8 +1922,10 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS) > rnh = rt_tables_get_rnh(fib, i); > if (rnh != NULL) { > RIB_RLOCK(rnh); >+ NET_EPOCH_ENTER(); > error = rnh->rnh_walktree(&rnh->head, > sysctl_dumpentry, &w); >+ NET_EPOCH_EXIT(); > RIB_RUNLOCK(rnh); > } else if (af != 0) > error = EAFNOSUPPORT;
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 230498
:
199064
|
199344
|
199345
|
199372
|
199444
|
199449
|
199450