Re: [PATCH linux-next] vpda: correctly size vdpa_nl_policy

2021-02-10 Thread Michael S. Tsirkin
On Wed, Feb 10, 2021 at 05:49:11AM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > We need to ensure last entry of vdpa_nl_policy[] > is zero, otherwise out-of-bounds access is hurting us. > > BUG: KASAN: global-out-of-bounds in > netlink_policy_dump_add_policy+0x3b6/0x440

[PATCH linux-next] vpda: correctly size vdpa_nl_policy

2021-02-10 Thread Eric Dumazet
From: Eric Dumazet We need to ensure last entry of vdpa_nl_policy[] is zero, otherwise out-of-bounds access is hurting us. BUG: KASAN: global-out-of-bounds in netlink_policy_dump_add_policy+0x3b6/0x440 net/netlink/policy.c:160 Read of size 1 at addr 89cc61d0 by task