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

From: Song Liu
Date: Tue Jul 28 2020 - 02:15:57 EST




> On Jul 27, 2020, at 11:13 PM, BjÃrn TÃpel <bjorn.topel@xxxxxxxxx> wrote:
>
> On Tue, 28 Jul 2020 at 07:37, Peilin Ye <yepeilin.cs@xxxxxxxxx> 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@xxxxxxxxxx>
>> Signed-off-by: Peilin Ye <yepeilin.cs@xxxxxxxxx>
>> ---
>
> Acked-by: BjÃrn TÃpel <bjorn.topel@xxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>

[...]