syzbot


KCSAN: data-race in atime_needs_update / propagate_mnt (2)

Status: auto-closed as invalid on 2021/03/30 21:55
Subsystems: ext4
[Documentation on labels]
First crash: 1157d, last: 1154d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in atime_needs_update / propagate_mnt ext4 2 1352d 1382d 0/26 auto-closed as invalid on 2020/09/13 17:28

Sample crash report:
==================================================================
BUG: KCSAN: data-race in atime_needs_update / propagate_mnt

write to 0xffff88810110fc30 of 4 bytes by task 8361 on cpu 1:
 propagate_mnt+0x5e8/0x640 fs/pnode.c:330
 attach_recursive_mnt+0x4fb/0x11c0 fs/namespace.c:2135
 graft_tree fs/namespace.c:2243 [inline]
 do_add_mount fs/namespace.c:2790 [inline]
 do_new_mount_fc fs/namespace.c:2829 [inline]
 do_new_mount fs/namespace.c:2883 [inline]
 path_mount+0x1b71/0x1ca0 fs/namespace.c:3211
 do_mount fs/namespace.c:3224 [inline]
 __do_sys_mount fs/namespace.c:3432 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3409
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3409
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810110fc30 of 4 bytes by task 8337 on cpu 0:
 atime_needs_update+0x133/0x370 fs/inode.c:1809
 touch_atime+0x55/0x2d0 fs/inode.c:1831
 file_accessed include/linux/fs.h:2241 [inline]
 generic_file_buffered_read+0x945/0x9c0 mm/filemap.c:2558
 generic_file_read_iter+0x82/0x3e0 mm/filemap.c:2639
 ext4_file_read_iter+0x2e0/0x420 fs/ext4/file.c:74
 __kernel_read+0x306/0x580 fs/read_write.c:454
 integrity_kernel_read+0x4c/0x70 security/integrity/iint.c:191
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:484 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:515 [inline]
 ima_calc_file_hash+0x929/0x1310 security/integrity/ima/ima_crypto.c:572
 ima_collect_measurement+0x168/0x310 security/integrity/ima/ima_api.c:250
 process_measurement+0xa4c/0x10c0 security/integrity/ima/ima_main.c:330
 ima_file_check+0x75/0xa0 security/integrity/ima/ima_main.c:498
 do_open fs/namei.c:3257 [inline]
 path_openat+0x1851/0x2050 fs/namei.c:3370
 do_filp_open+0xbd/0x1d0 fs/namei.c:3397
 do_sys_openat2+0xa3/0x250 fs/open.c:1178
 do_sys_open fs/open.c:1194 [inline]
 __do_sys_openat fs/open.c:1210 [inline]
 __se_sys_openat fs/open.c:1205 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1205
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8337 Comm: syz-fuzzer Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/23 21:49 upstream 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / propagate_mnt
2021/02/20 16:15 upstream f40ddce88593 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / propagate_mnt
* Struck through repros no longer work on HEAD.