Re: [PATCH] net/sctp: Prevent autoclose integer overflow in sctp_association_init()

From: Fedor Pchelkin
Date: Sun Feb 02 2025 - 15:47:39 EST


David Laight wrote:
> That doesn't fix 32bit systems.
>
> Looking through sctp/structs.h there are a lot of 'long' used for
> timeouts.
> it can't be right that any of these change size between 32bit and 64bit.
> So they should either be __u32 or __u64 (or similar).

I guess all the 'long' timeout values - not only in sctp, this concerns
other modules in general - follow the jiffies thing itself which is
declared as 'unsigned long'.