From: David S. Miller Date: Mon, 14 Mar 2022 10:06:54 +0000 (+0000) Subject: Merge branch 'macvlan-uaf' X-Git-Tag: microblaze-v5.19~142^2~96 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=d96657dc9238f8e9bda47b377e17e7c6f90935af;p=linux-2.6-microblaze.git Merge branch 'macvlan-uaf' Ziyang Xuan says: ==================== net: macvlan: fix potential UAF problem for lowerdev Add the reference operation to lowerdev of macvlan to avoid the potential UAF problem under the following known scenario: Someone module puts the NETDEV_UNREGISTER event handler to a work, and lowerdev is accessed in the work handler. But when the work is excuted, lowerdev has been destroyed because upper macvlan did not get reference to lowerdev correctly. In addition, add net device refcount tracker to macvlan. ==================== Signed-off-by: David S. Miller --- d96657dc9238f8e9bda47b377e17e7c6f90935af