syzbot


KCSAN: data-race in mnt_clone_write / propagate_one

Status: closed as invalid on 2020/06/18 14:24
Subsystems: ext4
[Documentation on labels]
First crash: 1431d, last: 1382d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in mnt_clone_write / propagate_one

write to 0xffff88812b73f070 of 4 bytes by task 14471 on cpu 0:
 propagate_one fs/pnode.c:269 [inline]
 propagate_one+0x3b3/0x550 fs/pnode.c:225
 propagate_mnt+0x22e/0x270 fs/pnode.c:320
 attach_recursive_mnt+0x66d/0x8a0 fs/namespace.c:2071
 graft_tree+0x107/0x160 fs/namespace.c:2179
 do_add_mount.isra.0+0x102/0x190 fs/namespace.c:2725
 do_new_mount_fc fs/namespace.c:2764 [inline]
 do_new_mount fs/namespace.c:2818 [inline]
 do_mount+0x12d5/0x1590 fs/namespace.c:3141
 __do_sys_mount fs/namespace.c:3350 [inline]
 __se_sys_mount fs/namespace.c:3327 [inline]
 __x64_sys_mount+0x12b/0x1a0 fs/namespace.c:3327
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812b73f070 of 4 bytes by task 14465 on cpu 1:
 __mnt_is_readonly fs/namespace.c:248 [inline]
 mnt_clone_write+0x1f/0xd0 fs/namespace.c:377
 __mnt_want_write_file+0x71/0x80 fs/namespace.c:398
 file_update_time+0x1dd/0x2d0 fs/inode.c:1907
 ext4_page_mkwrite+0xed/0x820 fs/ext4/inode.c:5945
 do_page_mkwrite+0xfa/0x210 mm/memory.c:2529
 do_shared_fault mm/memory.c:3911 [inline]
 do_fault mm/memory.c:3979 [inline]
 handle_pte_fault mm/memory.c:4215 [inline]
 __handle_mm_fault+0x2828/0x2da0 mm/memory.c:4345
 handle_mm_fault+0x21c/0x540 mm/memory.c:4382
 do_user_addr_fault arch/x86/mm/fault.c:1464 [inline]
 do_page_fault+0x48a/0xa96 arch/x86/mm/fault.c:1535
 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14465 Comm: syz-executor.0 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/15 14:02 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 8e3ab941 .config console log report ci2-upstream-kcsan-gce
2020/06/03 15:09 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 a5ce5de0 .config console log report ci2-upstream-kcsan-gce
2020/05/29 05:00 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 d19ed305 .config console log report ci2-upstream-kcsan-gce
2020/05/28 01:41 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 9072c126 .config console log report ci2-upstream-kcsan-gce
2020/05/05 14:29 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 4b76dd25 .config console log report ci2-upstream-kcsan-gce
2020/04/27 09:51 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 0ce7569e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.