[Linux-kernel-mentees] [PATCH net v2] xdp: Prevent kernel-infoleak in xsk_getsockopt()

Arnd Bergmann arnd at arndb.de
Tue Jul 28 07:34:54 UTC 2020


On Tue, Jul 28, 2020 at 7:37 AM Peilin Ye <yepeilin.cs at gmail.com> wrote:
>
> xsk_getsockopt() is copying uninitialized stack memory to userspace when
> `extra_stats` is `false`. Fix it.
>
> Fixes: 8aa5a33578e9 ("xsk: Add new statistics")
> Suggested-by: Dan Carpenter <dan.carpenter at oracle.com>
> Signed-off-by: Peilin Ye <yepeilin.cs at gmail.com>

Acked-by: Arnd Bergmann <arnd at arndb.de>


More information about the Linux-kernel-mentees mailing list