[SRU][F][PATCH 0/1] sctp: sysctl: pass right argument to container_of
Magali Lemes
magali.lemes at canonical.com
Tue Mar 11 14:16:46 UTC 2025
BugLink: https://bugs.launchpad.net/bugs/2101091
[Impact]
The `member` argument passed to `container_of` has been swapped in both
proc_sctp_do_auth() and proc_sctp_do_hmac_alg(), which can lead to a kernel
oops or panic.
[Fix]
Match mainline commits ea62dd1383913b and 15649fd5415e by passing the right
arguments to `container_of` in proc_sctp_do_auth() and proc_sctp_do_hmac_alg().
[Test Case]
Run `modprobe sctp && cat /proc/sys/net/sctp/cookie_hmac_alg` and check that
no oops or panic have appeared in the kernel logs.
[Where problems could occur]
Limited to SCTP connections.
Magali Lemes (1):
UBUNTU: SAUCE: sctp: sysctl: pass right argument to container_of
net/sctp/sysctl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.34.1
More information about the kernel-team
mailing list