On Tue, Dec 1, 2026 at 12:42 AM Jamie Bainbridge <jami…@gmail.com> wrote:
> > Much of SCTP was written before helpers such as kmalloc_flex() for > safely allocating structs with Flexible Array Members. > > There are also some instances of allocating an object using the object's > literal type as the size, rather than dereferencing the object type. > > Use modern alloc wrappers and dereference types where appropriate. > > Annotate sctp_auth_bytes.data[] with __counted_by() to enable checking. > > Use a macro instead of magic number in endpoint hashtable creation. > Only set the global hashsize if allocating the hashtable succeeded. > > Tested under KASAN with tests confirmed by gcov to exercise this code. > > Signed-off-by: Jamie Bainbridge <jami…@gmail.com>
Acked-by: Xin Long <luci…@gmail.com>