[moderation] [fs?] [mm?] upstream test error: KCSAN: data-race in __xa_clear_mark / xas_find_marked

0 views
Skip to first unread message

syzbot

unread,
Jun 23, 2024, 6:31:20 AM (6 days ago) Jun 23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5f583a3162ff Merge tag 'rust-fixes-6.10' of https://github..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1766cdda980000
kernel config: https://syzkaller.appspot.com/x/.config?x=704451bc2941bcb0
dashboard link: https://syzkaller.appspot.com/bug?extid=ff72155e2a37eceb7ec3
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linux-...@vger.kernel.org linu...@kvack.org wi...@infradead.org]

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/285e1a59aa08/disk-5f583a31.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ba82c4d1918b/vmlinux-5f583a31.xz
kernel image: https://storage.googleapis.com/syzbot-assets/eca135e2d9eb/bzImage-5f583a31.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ff7215...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in __xa_clear_mark / xas_find_marked

read-write to 0xffff8881057ec908 of 8 bytes by task 11 on cpu 0:
instrument_read_write include/linux/instrumented.h:55 [inline]
__instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:84 [inline]
___test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:114 [inline]
node_clear_mark lib/xarray.c:102 [inline]
xas_clear_mark lib/xarray.c:915 [inline]
__xa_clear_mark+0xf8/0x1f0 lib/xarray.c:1957
__folio_end_writeback+0x18f/0x4a0 mm/page-writeback.c:3036
folio_end_writeback+0x74/0x1f0 mm/filemap.c:1632
ext4_finish_bio+0x476/0x8e0 fs/ext4/page-io.c:144
ext4_release_io_end+0x8c/0x1f0 fs/ext4/page-io.c:159
ext4_end_io_end fs/ext4/page-io.c:193 [inline]
ext4_do_flush_completed_IO fs/ext4/page-io.c:258 [inline]
ext4_end_io_rsv_work+0x2d3/0x370 fs/ext4/page-io.c:272
process_one_work kernel/workqueue.c:3231 [inline]
process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
worker_thread+0x526/0x730 kernel/workqueue.c:3393
kthread+0x1d1/0x210 kernel/kthread.c:389
ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff8881057ec908 of 8 bytes by task 3188 on cpu 1:
xas_find_chunk include/linux/xarray.h:1733 [inline]
xas_find_marked+0x216/0x660 lib/xarray.c:1370
find_get_entry+0x5d/0x290 mm/filemap.c:1992
filemap_get_folios_tag+0x136/0x210 mm/filemap.c:2242
__filemap_fdatawait_range mm/filemap.c:523 [inline]
filemap_fdatawait_keep_errors+0x6a/0x180 mm/filemap.c:627
wait_sb_inodes fs/fs-writeback.c:2673 [inline]
sync_inodes_sb+0x3bb/0x460 fs/fs-writeback.c:2795
sync_inodes_one_sb+0x3d/0x50 fs/sync.c:77
iterate_supers+0xa3/0x140 fs/super.c:923
ksys_sync+0x5d/0xe0 fs/sync.c:102
__do_sys_sync+0xe/0x20 fs/sync.c:113
x64_sys_call+0xb99/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:163
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffffffffffff0000 -> 0xffffffff00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3188 Comm: syz-executor.4 Not tainted 6.10.0-rc4-syzkaller-00301-g5f583a3162ff #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages