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: Petr Machata <petrm@nvidia.com>
Date: 2021-11-19 10:07:11
Also in: lkml

Ziyang Xuan (William) [off-list ref] writes:
I need some time to test my some ideas. And anyone has good ideas, please
do not be stingy.
Jakub Kicinski [off-list ref] writes:
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.
That makes sense to me. We always put real_dev in the destructor, so we
should always hold it in the constructor...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help