sctp on RHEL9
A bit of a gamble...
Anyone any idea why RHEL9 should reject sctp setsockopt() calls like SCTP_INITMSG?
My guess is some security check that doesn't allow for sctp.
I don't have access to the failing system - it is a customer of the company I used to work for.
David
Marcelo Ricardo Leitner
maintainerQuoted 3 lines · David Laight
A bit of a gamble...
Anyone any idea why RHEL9 should reject sctp
setsockopt()calls likeSCTP_INITMSG?
More likely an invalid buffer as argument. It has to have the exact size of struct sctp_initmsg, and not more than that.
Marcelo
Quoted 7 lines · On Fri, 28 Nov 2025 08:45:52 -0300 Marcelo Ricardo Leitner…
Quoted 3 lines · David Laight
A bit of a gamble...
Anyone any idea why RHEL9 should reject sctp
setsockopt()calls likeSCTP_INITMSG?More likely an invalid buffer as argument. It has to have the exact size of struct
sctp_initmsg, and not more than that.
It was resolved.
Basically the code is an out of tree driver and they were using an old version that calls kernel_setsockopt().
That was removed from the kernel well before the one RHEL9 is based on, so we'd expected they get a build error (the driver usually runs if it builds). But it seems RHEL9 has a wrapper for kernel_setsockopt() that doesn't actually work. The later driver has its own correct wrapper and worked fine.
David
Marcelo Ricardo Leitner
maintainerQuoted 11 lines · David Laight
Quoted 7 lines · On Fri, 28 Nov 2025 08:45:52 -0300 Marcelo Ricardo Leitner…
Quoted 3 lines · David Laight
A bit of a gamble...
Anyone any idea why RHEL9 should reject sctp
setsockopt()calls likeSCTP_INITMSG?More likely an invalid buffer as argument. It has to have the exact size of struct
sctp_initmsg, and not more than that.
Quoted 7 lines
It was resolved.
Basically the code is an out of tree driver and they were using an old version that callskernel_setsockopt().
That was removed from the kernel well before the one RHEL9 is based on, so we'd expected they get a build error (the driver usually runs if it builds). But it seems RHEL9 has a wrapper forkernel_setsockopt()that doesn't actually work. The later driver has its own correct wrapper and worked fine.
Ah ok. kABI can play some tricks, but yeah, this one seems off.
Marcelo