Thread (18 messages) flat view 18 messages, 5 authors, 2021-11-26

Re: [PATCH net v2] net: vlan: fix a UAF in vlan_dev_real_dev()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-11-18 14:17:41
Also in: lkml

On Thu, 18 Nov 2021 09:46:24 +0800 Ziyang Xuan (William) wrote:
quoted
quoted
I think we should move the dev_hold() to ndo_init(), otherwise 
it's hard to reason if destructor was invoked or not if
register_netdevice() errors out.  
Ziyang Xuan, do you intend to take care of this?
.  
I am reading the related processes according to the problem scenario.
And I will give a more clear sequence and root cause as soon as possible
by some necessary tests.
Okay, I still don't see the fix. 

Petr would you mind submitting since you have a repro handy?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help