On 4/4/24 10:27 PM, Eric Dumazet wrote:
syzbot reported an illegal copy in xsk_setsockopt() [1] Make sure to validate setsockopt() @optlen parameter.
[...]
Fixes: 423f38329d26 ("xsk: add umem fill queue support and mmap") Reported-by: syzbot <syzkaller@xxxxxxxxxxxxxxxx> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx> Cc: "Björn Töpel" <bjorn@xxxxxxxxxx> Cc: Magnus Karlsson <magnus.karlsson@xxxxxxxxx> Cc: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx> Cc: Jonathan Lemon <jonathan.lemon@xxxxxxxxx> Cc: bpf@xxxxxxxxxxxxxxx
Given bpf tree PR went out, Jakub, feel free to take directly : Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx> Thanks Eric !