FreeBSD Bugzilla – Attachment 205221 Details for
Bug 238707
Lock order reversal: rtentry vs "nd6 list"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to move the unlock of the rtentry just before the call of rt_notifydelete
fix_lor_nd6_list_rtentry.patch (text/plain), 663 bytes, created by
Arnaud Ysmal
on 2019-06-19 15:05:49 UTC
(
hide
)
Description:
Patch to move the unlock of the rtentry just before the call of rt_notifydelete
Filename:
MIME Type:
Creator:
Arnaud Ysmal
Created:
2019-06-19 15:05:49 UTC
Size:
663 bytes
patch
obsolete
>diff --git sys/net/route.c sys/net/route.c >index 85a4f426450..e525ce31a6a 100644 >--- sys/net/route.c >+++ sys/net/route.c >@@ -1600,6 +1600,7 @@ rtrequest1_fib(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt, > if (error != 0) > return (error); > >+ RT_UNLOCK(rt); > rt_notifydelete(rt, info); > > /* >@@ -1607,11 +1608,10 @@ rtrequest1_fib(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt, > * but it's up to it to free the rtentry as we won't be > * doing it. > */ >- if (ret_nrt) { >+ if (ret_nrt) > *ret_nrt = rt; >- RT_UNLOCK(rt); >- } else >- RTFREE_LOCKED(rt); >+ else >+ RTFREE(rt); > break; > case RTM_RESOLVE: > /*
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 238707
: 205221