Subject: [Bug 206525] BUG: KASAN: stack-out-of-bounds in test_bit+0x30/0x44 (kernel 5.6-rc1)

From: [email-masked]
Date: Sun, 16 Feb 2020 08:26:55 +0000

https://bugzilla.kernel.org/show_bug.cgi?id=206525

--- Comment #4 from Christophe Leroy ([email-masked]) ---
Feedback from Nikolay:

I think we can just cap these at min(BITS_PER_TYPE(u32), nlk->ngroups) since
"groups" is coming from sockaddr_nl's "nl_groups" which is a u32, for any
groups beyond u32 one has to use setsockopt().

-- 
You are receiving this mail because:
You are watching the assignee of the bug.