syzbot


KMSAN: uninit-value in bcm_tx_setup

Status: closed as invalid on 2021/09/25 00:16
Subsystems: can
[Documentation on labels]
First crash: 945d, last: 944d

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in bcm_tx_setup+0x1141/0x2ca0 net/can/bcm.c:932
 bcm_tx_setup+0x1141/0x2ca0 net/can/bcm.c:932
 bcm_sendmsg+0x8ee/0xe70 net/can/bcm.c:1334
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2337
 ___sys_sendmsg net/socket.c:2391 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2420
 __do_sys_sendmsg net/socket.c:2429 [inline]
 __se_sys_sendmsg net/socket.c:2427 [inline]
 __x64_sys_sendmsg+0xe2/0x120 net/socket.c:2427
 do_syscall_64+0x55/0xc0 arch/x86/entry/common.c:49
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Uninit was created at:
 slab_alloc_node mm/slub.c:2929 [inline]
 slab_alloc mm/slub.c:2938 [inline]
 __kmalloc+0x7c6/0x11d0 mm/slub.c:4069
 kmalloc_array+0x95/0xf0 include/linux/slab.h:596
 bcm_tx_setup+0x975/0x2ca0 net/can/bcm.c:913
 bcm_sendmsg+0x8ee/0xe70 net/can/bcm.c:1334
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2337
 ___sys_sendmsg net/socket.c:2391 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2420
 __do_sys_sendmsg net/socket.c:2429 [inline]
 __se_sys_sendmsg net/socket.c:2427 [inline]
 __x64_sys_sendmsg+0xe2/0x120 net/socket.c:2427
 do_syscall_64+0x55/0xc0 arch/x86/entry/common.c:49
 entry_SYSCALL_64_after_hwframe+0x44/0xae
=====================================================
Kernel panic - not syncing: panic_on_kmsan set ...
CPU: 0 PID: 8436 Comm: syz-executor846 Tainted: G    B             5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x25a/0x2f6 lib/dump_stack.c:120
 panic+0x4c7/0xe98 kernel/panic.c:231
 kmsan_report+0x2ee/0x300 mm/kmsan/report.c:186
 __msan_warning+0xd7/0x150 mm/kmsan/instrumentation.c:208
 bcm_tx_setup+0x1141/0x2ca0 net/can/bcm.c:932
 bcm_sendmsg+0x8ee/0xe70 net/can/bcm.c:1334
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2337
 ___sys_sendmsg net/socket.c:2391 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2420
 __do_sys_sendmsg net/socket.c:2429 [inline]
 __se_sys_sendmsg net/socket.c:2427 [inline]
 __x64_sys_sendmsg+0xe2/0x120 net/socket.c:2427
 do_syscall_64+0x55/0xc0 arch/x86/entry/common.c:49
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7ffb90119ad9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffca6de40c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ffb90119ad9
RDX: 0000000000000000 RSI: 0000000020000680 RDI: 0000000000000003
RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d
R10: 000000000000000d R11: 0000000000000246 R12: 00007ffca6de40e0
R13: 00000000000f4240 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/24 08:59 https://github.com/google/kmsan.git master 5e561f94df41 8cac236e .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in bcm_tx_setup
2021/09/24 17:57 https://github.com/google/kmsan.git master 5e561f94df41 8cac236e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in bcm_tx_setup
2021/09/24 13:24 https://github.com/google/kmsan.git master 5e561f94df41 8cac236e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in bcm_tx_setup
2021/09/24 08:00 https://github.com/google/kmsan.git master 5e561f94df41 8cac236e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in bcm_tx_setup
2021/09/24 00:33 https://github.com/google/kmsan.git master 5e561f94df41 8cac236e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in bcm_tx_setup
2021/09/23 13:32 https://github.com/google/kmsan.git master 5e561f94df41 8cac236e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in bcm_tx_setup
* Struck through repros no longer work on HEAD.