syzbot


KMSAN: uninit-value in mbind_range

Status: closed as invalid on 2021/09/27 07:07
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 430d, last: 426d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in mbind_range (2) C 18 400d 424d 0/24 auto-closed as invalid on 2022/09/22 17:16

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in __mpol_equal mm/mempolicy.c:2260 [inline]
BUG: KMSAN: uninit-value in mpol_equal include/linux/mempolicy.h:105 [inline]
BUG: KMSAN: uninit-value in mbind_range+0x1a46/0x1e80 mm/mempolicy.c:806
 __mpol_equal mm/mempolicy.c:2260 [inline]
 mpol_equal include/linux/mempolicy.h:105 [inline]
 mbind_range+0x1a46/0x1e80 mm/mempolicy.c:806
 do_mbind+0xf42/0x15f0 mm/mempolicy.c:1333
 kernel_mbind mm/mempolicy.c:1483 [inline]
 __do_sys_mbind mm/mempolicy.c:1490 [inline]
 __se_sys_mbind+0x437/0xb80 mm/mempolicy.c:1486
 __x64_sys_mbind+0x19d/0x200 mm/mempolicy.c:1486
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Uninit was created at:
 slab_alloc_node mm/slub.c:3221 [inline]
 slab_alloc mm/slub.c:3230 [inline]
 kmem_cache_alloc+0x751/0xff0 mm/slub.c:3235
 mpol_new mm/mempolicy.c:293 [inline]
 do_mbind+0x912/0x15f0 mm/mempolicy.c:1289
 kernel_mbind mm/mempolicy.c:1483 [inline]
 __do_sys_mbind mm/mempolicy.c:1490 [inline]
 __se_sys_mbind+0x437/0xb80 mm/mempolicy.c:1486
 __x64_sys_mbind+0x19d/0x200 mm/mempolicy.c:1486
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae
=====================================================
Kernel panic - not syncing: panic_on_kmsan set ...
CPU: 1 PID: 6375 Comm: syz-executor129 Tainted: G    B             5.15.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1ff/0x28e lib/dump_stack.c:106
 dump_stack+0x25/0x28 lib/dump_stack.c:113
 panic+0x44f/0xdeb kernel/panic.c:232
 kmsan_report+0x2ee/0x300 mm/kmsan/report.c:186
 __msan_warning+0xd7/0x150 mm/kmsan/instrumentation.c:208
 __mpol_equal mm/mempolicy.c:2260 [inline]
 mpol_equal include/linux/mempolicy.h:105 [inline]
 mbind_range+0x1a46/0x1e80 mm/mempolicy.c:806
 do_mbind+0xf42/0x15f0 mm/mempolicy.c:1333
 kernel_mbind mm/mempolicy.c:1483 [inline]
 __do_sys_mbind mm/mempolicy.c:1490 [inline]
 __se_sys_mbind+0x437/0xb80 mm/mempolicy.c:1486
 __x64_sys_mbind+0x19d/0x200 mm/mempolicy.c:1486
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f611522e829
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f61151e0308 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed
RAX: ffffffffffffffda RBX: 00007f61152b63e8 RCX: 00007f611522e829
RDX: 0000000000002001 RSI: 0000000000c00007 RDI: 0000000020012000
RBP: 00007f61152b63e0 R08: 0000000000000000 R09: 0000010000000002
R10: 0000000000000000 R11: 0000000000000246 R12: 0000010000000002
R13: 00007ffcc34c6a1f R14: 00007f61151e0400 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2021/09/26 16:34 https://github.com/google/kmsan.git master cd2c05533838 8cac236e .config log report syz C KMSAN: uninit-value in mbind_range
ci-upstream-kmsan-gce 2021/09/22 11:33 https://github.com/google/kmsan.git master f881dcecdc7a 169724fe .config log report syz C KMSAN: uninit-value in mbind_range
ci-upstream-kmsan-gce 2021/09/22 09:56 https://github.com/google/kmsan.git master f881dcecdc7a 169724fe .config log report syz C KMSAN: uninit-value in mbind_range
ci-upstream-kmsan-gce 2021/09/22 09:23 https://github.com/google/kmsan.git master f881dcecdc7a 169724fe .config log report syz C KMSAN: uninit-value in mbind_range
ci-upstream-kmsan-gce 2021/09/22 08:20 https://github.com/google/kmsan.git master f881dcecdc7a 169724fe .config log report syz C KMSAN: uninit-value in mbind_range
* Struck through repros no longer work on HEAD.