syzbot


KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (6)

Status: auto-closed as invalid on 2020/12/21 12:01
Reported-by: syzbot+9ebcb5d1d9e37fdc30dd@syzkaller.appspotmail.com
First crash: 688d, last: 688d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (4) 1 886d 886d 0/24 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (5) 3 738d 795d 0/24 auto-closed as invalid on 2020/10/30 13:53
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (3) 5 978d 1065d 0/24 auto-closed as invalid on 2020/04/09 02:07
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (8) 6 493d 542d 0/24 auto-closed as invalid on 2021/07/03 03:54
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (9) 4 326d 335d 0/24 auto-closed as invalid on 2021/12/17 02:26
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (2) 1 1084d 1084d 0/24 closed as invalid on 2019/10/18 14:11
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent 60 1084d 1095d 0/24 closed as invalid on 2019/10/15 15:50
upstream KCSAN: data-race in ext4_es_lookup_extent / ext4_es_lookup_extent (7) 2 627d 648d 0/24 auto-closed as invalid on 2021/02/19 02:54

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

read to 0xffff88810d8dd6d8 of 8 bytes by task 13277 on cpu 1:
 ext4_es_lookup_extent+0x2a8/0x500 fs/ext4/extents_status.c:966
 ext4_map_blocks+0x105/0xfc0 fs/ext4/inode.c:520
 ext4_iomap_begin+0x167/0x690 fs/ext4/inode.c:3470
 iomap_apply+0x8d/0x4a0 fs/iomap/apply.c:46
 __iomap_dio_rw+0x448/0x9b0 fs/iomap/direct-io.c:517
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:605
 ext4_dio_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0x3bd/0x420 fs/ext4/file.c:129
 call_read_iter include/linux/fs.h:1881 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x574/0xb70 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88810d8dd6d8 of 8 bytes by task 13287 on cpu 0:
 ext4_es_set_referenced fs/ext4/extents_status.h:194 [inline]
 ext4_es_lookup_extent+0x2f7/0x500 fs/ext4/extents_status.c:968
 ext4_map_blocks+0x105/0xfc0 fs/ext4/inode.c:520
 ext4_iomap_begin+0x167/0x690 fs/ext4/inode.c:3470
 iomap_apply+0x8d/0x4a0 fs/iomap/apply.c:46
 __iomap_dio_rw+0x448/0x9b0 fs/iomap/direct-io.c:517
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:605
 ext4_dio_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0x3bd/0x420 fs/ext4/file.c:129
 call_read_iter include/linux/fs.h:1881 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x574/0xb70 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/11/14 08:59 upstream 9e6a39eae450 1bf9a662 .config log report info
* Struck through repros no longer work on HEAD.