diff options
| author | Hyunwoo Kim <[email protected]> | 2025-06-14 00:54:57 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-17 23:14:04 +0000 |
| commit | b160766e26d4e2e2d6fe2294e0b02f92baefcec5 (patch) | |
| tree | 55f1862608c1e82a56e6ba24cb01898c2eb1158f /net/ipv4/tcp_input.c | |
| parent | Merge branch 'ptp_vclock-fixes' (diff) | |
| download | kernel-b160766e26d4e2e2d6fe2294e0b02f92baefcec5.tar.gz kernel-b160766e26d4e2e2d6fe2294e0b02f92baefcec5.zip | |
net/sched: fix use-after-free in taprio_dev_notifier
Since taprio’s taprio_dev_notifier() isn’t protected by an
RCU read-side critical section, a race with advance_sched()
can lead to a use-after-free.
Adding rcu_read_lock() inside taprio_dev_notifier() prevents this.
Fixes: fed87cc6718a ("net/sched: taprio: automatically calculate queueMaxSDU based on TC gate durations")
Cc: [email protected]
Signed-off-by: Hyunwoo Kim <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/aEzIYYxt0is9upYG@v4bel-B760M-AORUS-ELITE-AX
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
