ACK: [SRU][F][PATCH 0/1] sctp: sysctl: pass right argument to container_of

Mehmet Basaran mehmet.basaran at canonical.com
Tue Mar 11 14:25:48 UTC 2025


Acked-by: Mehmet Basaran <mehmet.basaran at canonical.com>

-------------- next part --------------
Magali Lemes <magali.lemes at canonical.com> writes:

> 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
>
>
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 873 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250311/99cc1bd1/attachment.sig>


More information about the kernel-team mailing list