syzbot


KCSAN: data-race in xas_clear_mark / xas_find_marked (2)

Status: moderation: reported on 2019/12/10 21:55
Reported-by: syzbot+6b653cb0a28eee8c400a@syzkaller.appspotmail.com
First crash: 1204d, last: 11h32m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in xas_clear_mark / xas_find_marked 3 1209d 1215d 0/24 closed as invalid on 2019/10/18 14:11

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

read-write to 0xffff88810b35a478 of 8 bytes by task 6387 on cpu 1:
 xas_clear_mark+0x8c/0x180
 __folio_start_writeback+0x344/0x4b0
 set_page_writeback+0x46/0xf0
 ext4_bio_write_page+0x704/0xf10
 ext4_do_writepages+0x138c/0x2140
 ext4_writepages+0x127/0x250
 do_writepages+0x1c7/0x330
 filemap_fdatawrite_wbc+0xdb/0xf0
 file_write_and_wait_range+0xfa/0x190
 ext4_sync_file+0x10d/0x720
 vfs_fsync_range+0x10b/0x120
 ext4_buffered_write_iter+0x397/0x3e0
 ext4_file_write_iter+0x2d2/0x1270
 vfs_write+0x45a/0x750
 ksys_write+0xeb/0x1a0
 __x64_sys_write+0x42/0x50
 do_syscall_64+0x41/0xc0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810b35a478 of 8 bytes by task 6393 on cpu 0:
 xas_find_marked+0x216/0x660
 find_get_entry+0x5d/0x290
 find_get_pages_range_tag+0xc5/0x1e0
 pagevec_lookup_range_tag+0x3b/0x60
 mpage_prepare_extent_to_map+0x1c8/0xcd0
 ext4_do_writepages+0xa2c/0x2140
 ext4_writepages+0x127/0x250
 do_writepages+0x1c7/0x330
 filemap_fdatawrite_wbc+0xdb/0xf0
 filemap_write_and_wait_range+0xe6/0x220
 __iomap_dio_rw+0x622/0x1050
 iomap_dio_rw+0x40/0x90
 ext4_file_write_iter+0xadf/0x1270
 vfs_write+0x45a/0x750
 ksys_write+0xeb/0x1a0
 __x64_sys_write+0x42/0x50
 do_syscall_64+0x41/0xc0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffffffffffffe000 -> 0xffffffffffc00000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6393 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-00013-g513c1a3d3f19-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================
syz-executor.2 (6393) used greatest stack depth: 9912 bytes left

Crashes (2342):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/07 21:06 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/07 07:45 upstream 05ecb680708a 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/07 05:00 upstream 05ecb680708a 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/06 13:35 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/05 23:31 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/05 10:23 upstream 837c07cf68fe be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/04 22:08 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/04 14:19 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/04 04:52 upstream 0136d86b7852 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/03 15:03 upstream 66a87fff1a87 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/03 11:48 upstream e7368fd30165 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/03 02:40 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/02 23:16 upstream e7368fd30165 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/02 14:34 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/02 01:45 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/01 10:20 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/01 05:01 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/31 14:40 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/31 00:42 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/30 10:33 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/30 09:41 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/29 20:38 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/29 00:49 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/28 12:35 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/27 21:25 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/26 02:51 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/25 12:17 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/24 22:54 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/24 01:58 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 12:36 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 07:59 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 00:35 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/22 05:00 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/21 16:11 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/21 02:00 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/20 22:54 upstream edc00350d205 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/20 10:06 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/19 21:45 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/19 07:10 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/18 11:33 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/16 03:07 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/14 11:49 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/13 04:19 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/01/17 10:22 upstream 0da0a8a0a0e1 813be542 .config console log report info
ci2-upstream-kcsan-gce 2019/10/22 14:09 https://github.com/google/ktsan.git kcsan 05f2236801fe 4ee855e7 .config console log report
* Struck through repros no longer work on HEAD.