syzbot


KMSAN: uninit-value in mpol_rebind_task

Status: closed as invalid on 2021/12/14 11:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1421d, last: 1351d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in mpol_rebind_task (2) C 7 177d 337d 23/24 upstream: reported C repro on 2022/01/04 10:03

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
==================================================================
BUG: KMSAN: uninit-value in mpol_rebind_policy mm/mempolicy.c:353 [inline]
BUG: KMSAN: uninit-value in mpol_rebind_task+0x1b2/0x250 mm/mempolicy.c:369
CPU: 0 PID: 11047 Comm: syz-executor334 Not tainted 5.0.0+ #17
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x173/0x1d0 lib/dump_stack.c:113
 kmsan_report+0x131/0x2a0 mm/kmsan/kmsan.c:624
 __msan_warning+0x7a/0xf0 mm/kmsan/kmsan_instr.c:310
 mpol_rebind_policy mm/mempolicy.c:353 [inline]
 mpol_rebind_task+0x1b2/0x250 mm/mempolicy.c:369
 cpuset_change_task_nodemask kernel/cgroup/cpuset.c:1591 [inline]
 cpuset_attach+0x670/0x12c0 kernel/cgroup/cpuset.c:2157
 cgroup_migrate_execute+0xbbd/0x1b00 kernel/cgroup/cgroup.c:2378
 cgroup_migrate kernel/cgroup/cgroup.c:2637 [inline]
 cgroup_attach_task+0x642/0x10d0 kernel/cgroup/cgroup.c:2674
 __cgroup1_procs_write+0x53b/0x670 kernel/cgroup/cgroup-v1.c:553
 cgroup1_procs_write+0x9b/0xb0 kernel/cgroup/cgroup-v1.c:566
 cgroup_file_write+0x44a/0x8e0 kernel/cgroup/cgroup.c:3507
 kernfs_fop_write+0x569/0x840 fs/kernfs/file.c:316
 __vfs_write+0x1e2/0xc20 fs/read_write.c:485
 vfs_write+0x481/0x920 fs/read_write.c:549
 ksys_write fs/read_write.c:598 [inline]
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write+0x17a/0x370 fs/read_write.c:607
 __x64_sys_write+0x4a/0x70 fs/read_write.c:607
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x441c19
Code: e8 1c b4 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffce1d10058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441c19
RDX: 0000000000000012 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000012 R09: 0000000000000045
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000402a20 R14: 0000000000000000 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline]
 kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159
 kmsan_kmalloc+0xa6/0x130 mm/kmsan/kmsan_hooks.c:173
 kmem_cache_alloc+0x585/0xb60 mm/slub.c:2791
 mpol_new mm/mempolicy.c:276 [inline]
 do_set_mempolicy+0x353/0xad0 mm/mempolicy.c:748
 kernel_set_mempolicy mm/mempolicy.c:1374 [inline]
 __do_sys_set_mempolicy mm/mempolicy.c:1380 [inline]
 __se_sys_set_mempolicy+0x216/0x2a0 mm/mempolicy.c:1377
 __x64_sys_set_mempolicy+0x4a/0x70 mm/mempolicy.c:1377
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
==================================================================

Crashes (17):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2019/03/27 06:08 https://github.com/google/kmsan.git master 3c26d882e695 55684ce1 .config log report syz C
ci-upstream-kmsan-gce 2019/03/27 02:18 https://github.com/google/kmsan.git master 3c26d882e695 55684ce1 .config log report
ci-upstream-kmsan-gce 2019/03/24 09:35 https://github.com/google/kmsan.git master c10a026b8dee acbc5b7d .config log report
ci-upstream-kmsan-gce 2019/03/22 19:47 https://github.com/google/kmsan.git master c10a026b8dee 3361bde5 .config log report
ci-upstream-kmsan-gce 2019/03/21 17:08 https://github.com/google/kmsan.git master c10a026b8dee dce6e62f .config log report
ci-upstream-kmsan-gce 2019/03/21 04:38 https://github.com/google/kmsan.git master c10a026b8dee 427ea487 .config log report
ci-upstream-kmsan-gce 2019/03/20 17:08 https://github.com/google/kmsan.git master c10a026b8dee a664c187 .config log report
ci-upstream-kmsan-gce 2019/03/17 17:49 https://github.com/google/kmsan.git master 43cfd3b1484f ba18afea .config log report
ci-upstream-kmsan-gce 2019/03/17 00:26 https://github.com/google/kmsan.git master 43cfd3b1484f bab43553 .config log report
ci-upstream-kmsan-gce 2019/03/17 00:24 https://github.com/google/kmsan.git master 43cfd3b1484f bab43553 .config log report
ci-upstream-kmsan-gce 2019/03/15 18:15 https://github.com/google/kmsan.git master 63fd07faa48c bab43553 .config log report
ci-upstream-kmsan-gce 2019/03/04 07:42 https://github.com/google/kmsan.git master fa1981bee40f 7c693b52 .config log report
ci-upstream-kmsan-gce 2019/02/27 23:44 https://github.com/google/kmsan.git master fa1981bee40f 34ec456b .config log report
ci-upstream-kmsan-gce 2019/02/21 21:50 https://github.com/google/kmsan.git master fa1981bee40f 7ff74a98 .config log report
ci-upstream-kmsan-gce 2019/01/28 09:40 https://github.com/google/kmsan.git master 02f2d5aea531 629c2a27 .config log report
ci-upstream-kmsan-gce 2019/01/19 13:37 https://github.com/google/kmsan.git master 02f2d5aea531 8aa587b0 .config log report
ci-upstream-kmsan-gce 2019/01/16 14:51 https://github.com/google/kmsan.git master 02f2d5aea531 d538790b .config log report
* Struck through repros no longer work on HEAD.