Re: sctp on RHEL9
David Laight <[email protected]>
| Newsgroups | org.kernel.vger.linux-sctp |
|---|---|
| Message-ID | <20251128115926.77d8b5a5@pumpkin> |
On Fri, 28 Nov 2025 08:45:52 -0300 Marcelo Ricardo Leitner <[email protected]> wrote: > On Tue, Nov 18, 2025 at 11:07:43PM +0000, David Laight wrote: > > 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