syzbot


WARNING: zero-size vmalloc in xskq_create

Status: fixed on 2023/12/21 03:45
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+b132693e925cbbd89e26@syzkaller.appspotmail.com
Fix commit: a12bbb3cccf0 xdp: Fix zero-size allocation warning in xskq_create()
First crash: 433d, last: 420d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH bpf v4] net/xdp: fix zero-size allocation warning in xskq_create() 3 (3) 2023/10/09 14:20
[PATCH bpf v3] net/xdp: fix zero-size allocation warning in xskq_create() 8 (8) 2023/10/07 06:56
[PATCH net-next v2] net/xdp: fix zero-size allocation warning in xskq_create() 4 (4) 2023/10/05 07:35
[syzbot] [bpf?] [net?] WARNING: zero-size vmalloc in xskq_create 0 (1) 2023/10/04 22:38

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 19762 at mm/vmalloc.c:3247 __vmalloc_node_range+0x448/0x54c mm/vmalloc.c:3247
Modules linked in:
Kernel panic - not syncing: kernel: panic_on_warn set ...
CPU: 1 PID: 19762 Comm: syz-executor.0 Not tainted 6.6.0-rc5-syzkaller #0
Hardware name: ARM-Versatile Express
Backtrace: 
[<8181e5e0>] (dump_backtrace) from [<8181e6dc>] (show_stack+0x18/0x1c arch/arm/kernel/traps.c:256)
 r7:00000000 r6:82622a04 r5:60000093 r4:81fb56bc
[<8181e6c4>] (show_stack) from [<8183ba04>] (__dump_stack lib/dump_stack.c:88 [inline])
[<8181e6c4>] (show_stack) from [<8183ba04>] (dump_stack_lvl+0x48/0x54 lib/dump_stack.c:106)
[<8183b9bc>] (dump_stack_lvl) from [<8183ba28>] (dump_stack+0x18/0x1c lib/dump_stack.c:113)
 r5:00000000 r4:82854d14
[<8183ba10>] (dump_stack) from [<8181f184>] (panic+0x120/0x374 kernel/panic.c:340)
[<8181f064>] (panic) from [<80242e4c>] (check_panic_on_warn kernel/panic.c:236 [inline])
[<8181f064>] (panic) from [<80242e4c>] (print_tainted+0x0/0xa0 kernel/panic.c:231)
 r3:8260c484 r2:00000001 r1:81f9e1c4 r0:81fa5d78
 r7:804868ac
[<80242dd8>] (check_panic_on_warn) from [<80243040>] (__warn+0x7c/0x180 kernel/panic.c:673)
[<80242fc4>] (__warn) from [<802432bc>] (warn_slowpath_fmt+0x178/0x1f4 kernel/panic.c:698)
 r8:00000009 r7:81fcbe38 r6:dfbb9df4 r5:841d4680 r4:00000000
[<80243148>] (warn_slowpath_fmt) from [<804868ac>] (__vmalloc_node_range+0x448/0x54c mm/vmalloc.c:3247)
 r10:00000126 r9:841d4680 r8:ffffffff r7:ff800000 r6:00000dc0 r5:00000000
 r4:00000000
[<80486464>] (__vmalloc_node_range) from [<80486a88>] (vmalloc_user+0x6c/0x74 mm/vmalloc.c:3474)
 r10:00000126 r9:841d4680 r8:8ce48e80 r7:00000000 r6:00000000 r5:89899500
 r4:00000000
[<80486a1c>] (vmalloc_user) from [<817cd2d8>] (xskq_create+0x74/0xc0 net/xdp/xsk_queue.c:39)
[<817cd264>] (xskq_create) from [<817cb8ec>] (xsk_init_queue net/xdp/xsk.c:952 [inline])
[<817cd264>] (xskq_create) from [<817cb8ec>] (xsk_setsockopt+0x1d0/0x2c8 net/xdp/xsk.c:1286)
 r7:8ce48eb0 r6:8ce48c00 r5:00000000 r4:00000003
[<817cb720>] (xsk_setsockopt) from [<81342e38>] (__sys_setsockopt+0xd8/0x1c8 net/socket.c:2325)
 r8:80200288 r7:00000126 r6:20000100 r5:84834280 r4:817cb71c
[<81342d60>] (__sys_setsockopt) from [<81342f44>] (__do_sys_setsockopt net/socket.c:2336 [inline])
[<81342d60>] (__sys_setsockopt) from [<81342f44>] (sys_setsockopt+0x1c/0x24 net/socket.c:2333)
 r6:0014c2c8 r5:00000000 r4:00000020
[<81342f28>] (sys_setsockopt) from [<80200060>] (ret_fast_syscall+0x0/0x1c arch/arm/mm/proc-v7.S:66)
Exception stack(0xdfbb9fa8 to 0xdfbb9ff0)
9fa0:                   00000020 00000000 00000003 0000011b 00000003 20000100
9fc0: 00000020 00000000 0014c2c8 00000126 7e90032e 7e90032f 003d0f00 76b700fc
9fe0: 76b6ff08 76b6fef8 00016680 000509d0
Rebooting in 86400 seconds..

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/12 22:37 upstream 401644852d0b 08f99e71 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/11 16:18 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/11 12:23 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/11 12:22 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/09 06:05 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/09 05:55 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/09 05:52 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/08 21:04 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/08 20:48 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/08 07:36 upstream 59f3fd30af35 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/07 18:05 upstream 82714078aee4 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/07 02:31 upstream af95dc6fdc25 ea12a918 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/07 02:31 upstream af95dc6fdc25 ea12a918 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/05 12:05 upstream ba7d997a2a29 b7d7ff54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/05 12:05 upstream ba7d997a2a29 b7d7ff54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/04 22:38 upstream cbf3a2cb156a b7d7ff54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/04 22:37 upstream cbf3a2cb156a b7d7ff54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/03 10:40 upstream ce36c8b14987 65faba36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/10/03 10:40 upstream ce36c8b14987 65faba36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
2023/09/29 23:06 upstream 9ed22ae6be81 8e26a358 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING: zero-size vmalloc in xskq_create
* Struck through repros no longer work on HEAD.