Skip to contentSkip to conversation

sctp on RHEL9

DISCUSSION David Laight 2 participants 4 messages Nov 18, 2025 – Nov 28, 2025 SCTP protocol

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · David Laight

A bit of a gamble...

Anyone any idea why RHEL9 should reject sctp setsockopt() calls like SCTP_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

#2 lore raw
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 like SCTP_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

#3 lore raw
Quoted 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 like SCTP_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 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.

Ah ok. kABI can play some tricks, but yeah, this one seems off.

Marcelo