================================================================== BUG: KCSAN: data-race in __xa_clear_mark / xas_find_marked read-write to 0xffff888106becb50 of 8 bytes by interrupt on cpu 1: 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:922 [inline] __xa_clear_mark+0xf5/0x1e0 lib/xarray.c:2097 __folio_end_writeback+0x177/0x470 mm/page-writeback.c:3024 folio_end_writeback+0x71/0x3d0 mm/filemap.c:1660 ext4_finish_bio+0x459/0x8c0 fs/ext4/page-io.c:144 ext4_end_bio+0x22a/0x330 fs/ext4/page-io.c:-1 bio_endio+0x374/0x410 block/bio.c:1645 blk_update_request+0x336/0x730 block/blk-mq.c:987 scsi_end_request+0x53/0x4c0 drivers/scsi/scsi_lib.c:637 scsi_io_completion+0x7f/0x200 drivers/scsi/scsi_lib.c:1078 scsi_finish_command+0x1c7/0x1e0 drivers/scsi/scsi.c:198 scsi_complete+0xc3/0x1e0 drivers/scsi/scsi_lib.c:1547 blk_complete_reqs block/blk-mq.c:1224 [inline] blk_done_softirq+0x77/0xb0 block/blk-mq.c:1229 handle_softirqs+0xb7/0x290 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x3a/0xc0 kernel/softirq.c:680 common_interrupt+0x83/0x90 arch/x86/kernel/irq.c:285 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 kcsan_setup_watchpoint+0x415/0x430 kernel/kcsan/core.c:705 crypto_shash_finup+0x2d/0x420 crypto/shash.c:113 jent_hash_time+0x13a/0x2b0 crypto/jitterentropy-kcapi.c:138 jent_condition_data+0x106/0x130 crypto/jitterentropy.c:438 jent_measure_jitter+0x10a/0x1a0 crypto/jitterentropy.c:541 jent_gen_entropy+0x72/0xe0 crypto/jitterentropy.c:569 jent_read_entropy+0x96/0x270 crypto/jitterentropy.c:615 jent_kcapi_random+0x3b/0xf0 crypto/jitterentropy-kcapi.c:283 crypto_rng_generate include/crypto/rng.h:144 [inline] crypto_rng_get_bytes include/crypto/rng.h:161 [inline] drbg_seed+0x1d6/0x530 crypto/drbg.c:1185 drbg_instantiate crypto/drbg.c:1597 [inline] drbg_kcapi_seed+0x656/0x8b0 crypto/drbg.c:1970 crypto_rng_reset crypto/rng.c:47 [inline] crypto_get_default_rng+0x144/0x1b0 crypto/rng.c:122 aead_init_geniv+0x3e/0x140 crypto/geniv.c:117 crypto_aead_init_tfm+0x9d/0xc0 crypto/aead.c:130 crypto_create_tfm_node+0x108/0x250 crypto/api.c:541 crypto_alloc_tfm_node+0xdc/0x2b0 crypto/api.c:642 crypto_alloc_tfm crypto/internal.h:149 [inline] crypto_alloc_aead+0x2d/0x40 crypto/aead.c:203 esp_init_authenc net/ipv6/esp6.c:1081 [inline] esp6_init_state+0x3f3/0xa00 net/ipv6/esp6.c:1151 __xfrm_init_state+0x740/0xbb0 net/xfrm/xfrm_state.c:3186 xfrm_init_state+0x1a/0x80 net/xfrm/xfrm_state.c:3229 pfkey_msg2xfrm_state net/key/af_key.c:1286 [inline] pfkey_add+0xebc/0x12e0 net/key/af_key.c:1504 pfkey_process net/key/af_key.c:2848 [inline] pfkey_sendmsg+0x718/0x900 net/key/af_key.c:3699 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x145/0x180 net/socket.c:727 ____sys_sendmsg+0x31e/0x4e0 net/socket.c:2566 ___sys_sendmsg+0x17b/0x1d0 net/socket.c:2620 __sys_sendmsg net/socket.c:2652 [inline] __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __x64_sys_sendmsg+0xd4/0x160 net/socket.c:2655 x64_sys_call+0x2999/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888106becb50 of 8 bytes by task 7425 on cpu 0: xas_find_chunk include/linux/xarray.h:1752 [inline] xas_find_marked+0x218/0x620 lib/xarray.c:1510 find_get_entry+0x5d/0x380 mm/filemap.c:2038 filemap_get_folios_tag+0x13b/0x210 mm/filemap.c:2306 __filemap_fdatawait_range mm/filemap.c:530 [inline] filemap_fdatawait_keep_errors+0x6c/0x180 mm/filemap.c:633 wait_sb_inodes fs/fs-writeback.c:2714 [inline] sync_inodes_sb+0x39c/0x440 fs/fs-writeback.c:2836 sync_inodes_one_sb+0x3d/0x50 fs/sync.c:77 __iterate_supers+0x10d/0x1f0 fs/super.c:924 iterate_supers+0x1f/0x30 fs/super.c:939 ksys_sync+0x5c/0xe0 fs/sync.c:102 __ia32_sys_sync+0xe/0x20 fs/sync.c:113 x64_sys_call+0x2e53/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:163 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xfffffff800000000 -> 0xfffffe0000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 7425 Comm: syz.5.1732 Not tainted 6.16.0-rc4-syzkaller-00308-ga79a588fc176 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================