syzbot


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

Status: moderation: reported on 2021/06/26 18:58
Reported-by: syzbot+03743c59b799c7b55cd4@syzkaller.appspotmail.com
First crash: 610d, last: 11h14m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __xa_clear_mark / xas_find_marked 558 611d 911d 0/24 closed as invalid on 2021/06/07 13:50

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

read-write to 0xffff88812b361230 of 8 bytes by task 3143 on cpu 0:
 __xa_clear_mark+0xf4/0x1e0
 __folio_end_writeback+0x1e3/0x500
 folio_end_writeback+0x5b/0x150
 end_page_writeback+0x44/0xf0
 ext4_finish_bio+0x3d8/0x4d0
 ext4_release_io_end+0x8c/0x1e0
 ext4_end_io_rsv_work+0x2d3/0x360
 process_one_work+0x3e6/0x750
 worker_thread+0x5ef/0xa10
 kthread+0x1ac/0x1e0
 ret_from_fork+0x1f/0x30

read to 0xffff88812b361230 of 8 bytes by task 6146 on cpu 1:
 xas_find_marked+0x216/0x660
 find_get_entry+0x5d/0x290
 find_get_pages_range_tag+0xc5/0x1e0
 pagevec_lookup_range_tag+0x3b/0x60
 __filemap_fdatawait_range+0x9b/0x230
 filemap_fdatawait_keep_errors+0x28/0x90
 sync_inodes_sb+0x3bb/0x460
 sync_filesystem+0x100/0x180
 __se_sys_syncfs+0x5f/0xe0
 __x64_sys_syncfs+0x1f/0x30
 do_syscall_64+0x41/0xc0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xfffffe0000000000 -> 0xffff800000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6146 Comm: syz-executor.3 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
==================================================================

Crashes (1973):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/07 20:37 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/07 06:45 upstream 05ecb680708a 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/07 04:03 upstream 05ecb680708a 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/06 13:36 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/05 23:27 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/05 10:20 upstream 837c07cf68fe be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/04 21:03 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/04 14:20 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/04 04:04 upstream 0136d86b7852 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/03 14:52 upstream 66a87fff1a87 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/03 11:41 upstream e7368fd30165 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/03 02:27 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/02 22:17 upstream e7368fd30165 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/02 13:52 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/02 01:01 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/01 10:18 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/02/01 04:33 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/31 14:35 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/31 01:05 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/30 10:50 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/30 09:32 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/29 20:25 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/28 23:55 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/28 10:41 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/27 21:20 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/27 21:19 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/26 01:29 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/25 11:43 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/24 22:16 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 20:49 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 13:21 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 11:53 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/23 08:03 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/22 21:16 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/22 05:19 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/21 15:27 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/21 00:42 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/20 22:45 upstream edc00350d205 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/20 08:58 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/19 21:44 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/19 07:11 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/18 11:12 upstream c1649ec55708 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/17 16:23 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2023/01/16 21:53 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/06/26 05:21 upstream b7050b242430 9d2ab5df .config console log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/06/22 18:45 upstream 0c18f29aae7c aba2b2fb .config console log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/06/07 18:41 upstream 614124bea77e b718257f .config console log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
* Struck through repros no longer work on HEAD.