diff options
| author | Eric Dumazet <[email protected]> | 2022-02-16 10:20:37 -0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-02-17 08:41:54 -0800 |
| commit | be6b41c15dc09c067492bd23668763f551747e4e (patch) | |
| tree | 3326aea689f69ff1392b14ac63d47bc27b0fd044 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | faab39f63c1fc4bcdf135690f03bd596b578c67e (diff) | |
ipv6/addrconf: ensure addrconf_verify_rtnl() has completed
Before freeing the hash table in addrconf_exit_net(),
we need to make sure the work queue has completed,
or risk NULL dereference or UAF.
Thus, use cancel_delayed_work_sync() to enforce this.
We do not hold RTNL in addrconf_exit_net(), making this safe.
Fixes: 8805d13ff1b2 ("ipv6/addrconf: use one delayed work per netns")
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: syzbot <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions