Re: [PATCH net v2] netdevsim: zero initialize struct iphdr in dummy sk_buff
From: Eric Dumazet
Date: Mon Apr 27 2026 - 03:50:46 EST
On Sun, Apr 26, 2026 at 1:14 PM Nikola Z. Ivanov <zlatistiv@xxxxxxxxx> wrote:
>
> Syzbot reports a KMSAN uninit-value originating from
> nsim_dev_trap_skb_build, with the allocation also
> being performed in the same function.
>
> Fix this by calling skb_put_zero instead of skb_put to
> guarantee zero initialization of the whole IP header.
>
> Closes: https://syzkaller.appspot.com/bug?extid=23d7fcd204e3837866ff
> Fixes: da58f90f11f5 ("netdevsim: Add devlink-trap support")
> Signed-off-by: Nikola Z. Ivanov <zlatistiv@xxxxxxxxx>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>