syzbot


KMSAN: uninit-value in rds_add_bound

Status: auto-closed as invalid on 2022/05/10 06:11
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 342d, last: 290d

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in arch_test_and_set_bit arch/x86/include/asm/bitops.h:138 [inline]
BUG: KMSAN: uninit-value in arch_test_and_set_bit_lock arch/x86/include/asm/bitops.h:144 [inline]
BUG: KMSAN: uninit-value in test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:56 [inline]
BUG: KMSAN: uninit-value in bit_spin_lock include/linux/bit_spinlock.h:27 [inline]
BUG: KMSAN: uninit-value in rht_lock include/linux/rhashtable.h:330 [inline]
BUG: KMSAN: uninit-value in __rhashtable_insert_fast include/linux/rhashtable.h:723 [inline]
BUG: KMSAN: uninit-value in rhashtable_insert_fast include/linux/rhashtable.h:825 [inline]
BUG: KMSAN: uninit-value in rds_add_bound+0xea2/0x18a0 net/rds/bind.c:129
 arch_test_and_set_bit arch/x86/include/asm/bitops.h:138 [inline]
 arch_test_and_set_bit_lock arch/x86/include/asm/bitops.h:144 [inline]
 test_and_set_bit_lock include/asm-generic/bitops/instrumented-lock.h:56 [inline]
 bit_spin_lock include/linux/bit_spinlock.h:27 [inline]
 rht_lock include/linux/rhashtable.h:330 [inline]
 __rhashtable_insert_fast include/linux/rhashtable.h:723 [inline]
 rhashtable_insert_fast include/linux/rhashtable.h:825 [inline]
 rds_add_bound+0xea2/0x18a0 net/rds/bind.c:129
 rds_bind+0xf01/0x11a0 net/rds/bind.c:266
 __sys_bind+0x6c1/0x8b0 net/socket.c:1693
 __do_sys_bind net/socket.c:1704 [inline]
 __se_sys_bind net/socket.c:1702 [inline]
 __ia32_sys_bind+0xdb/0x130 net/socket.c:1702
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 rds_add_bound+0x66c/0x18a0 net/rds/bind.c:122
 rds_bind+0xf01/0x11a0 net/rds/bind.c:266
 __sys_bind+0x6c1/0x8b0 net/socket.c:1693
 __do_sys_bind net/socket.c:1704 [inline]
 __se_sys_bind net/socket.c:1702 [inline]
 __ia32_sys_bind+0xdb/0x130 net/socket.c:1702
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Local variable key created at:
 rds_add_bound+0xac/0x18a0 net/rds/bind.c:99
 rds_bind+0xf01/0x11a0 net/rds/bind.c:266

CPU: 0 PID: 8595 Comm: syz-executor.1 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
=====================================================

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce-386 2022/02/09 06:03 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in rds_add_bound
ci-upstream-kmsan-gce-386 2022/02/01 18:44 https://github.com/google/kmsan.git master 85cfd6e539bd c1c1631d .config log report info KMSAN: uninit-value in rds_add_bound
ci-upstream-kmsan-gce-386 2022/01/25 07:31 https://github.com/google/kmsan.git master 85cfd6e539bd 2cbffd88 .config log report info KMSAN: uninit-value in rds_add_bound
ci-upstream-kmsan-gce-386 2022/01/21 00:22 https://github.com/google/kmsan.git master 85cfd6e539bd b838eb76 .config log report info KMSAN: uninit-value in rds_add_bound
ci-upstream-kmsan-gce-386 2021/12/30 00:36 https://github.com/google/kmsan.git master 81c325bbf94e 6cc879d4 .config log report info KMSAN: uninit-value in rds_add_bound
ci-upstream-kmsan-gce-386 2021/12/19 04:55 https://github.com/google/kmsan.git master b0a8b5053e8b 44068e19 .config log report info KMSAN: uninit-value in rds_add_bound
* Struck through repros no longer work on HEAD.