aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2022-01-31 17:21:06 -0800
committerJakub Kicinski <[email protected]>2022-02-01 20:19:00 -0800
commitc6f6f2444bdbe0079e41914a35081530d0409963 (patch)
treea092807eddace8b3d89c808d4f65071057bfb8e1 /net/lapb/lapb_timer.c
parent04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5 (diff)
rtnetlink: make sure to refresh master_dev/m_ops in __rtnl_newlink()
While looking at one unrelated syzbot bug, I found the replay logic in __rtnl_newlink() to potentially trigger use-after-free. It is better to clear master_dev and m_ops inside the loop, in case we have to replay it. Fixes: ba7d49b1f0f8 ("rtnetlink: provide api for getting and setting slave info") Signed-off-by: Eric Dumazet <[email protected]> Cc: Jiri Pirko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions