[moderation] [mm?] KCSAN: data-race in __delete_from_swap_cache / folio_mapping (4)

0 views
Skip to first unread message

syzbot

unread,
Jun 4, 2024, 10:06:32 AMJun 4
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2ab795141095 Merge tag 'cxl-fixes-6.10-rc3' of git://git.k..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=136ba306980000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c00b51a1d411353
dashboard link: https://syzkaller.appspot.com/bug?extid=d4866c171a234211e4a7
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linu...@kvack.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/bfbbe027757b/disk-2ab79514.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7d9e21e4f192/vmlinux-2ab79514.xz
kernel image: https://storage.googleapis.com/syzbot-assets/85e4f04a70cc/bzImage-2ab79514.xz

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

==================================================================
BUG: KCSAN: data-race in __delete_from_swap_cache / folio_mapping

write to 0xffffea0004c597e8 of 8 bytes by task 28369 on cpu 0:
__delete_from_swap_cache+0x1f2/0x290 mm/swap_state.c:161
delete_from_swap_cache+0x72/0xe0 mm/swap_state.c:241
folio_free_swap+0x19f/0x1c0 mm/swapfile.c:1593
free_swap_cache+0x110/0x140 mm/swap_state.c:290
wp_page_copy mm/memory.c:3404 [inline]
do_wp_page+0x18e2/0x22b0 mm/memory.c:3683
handle_pte_fault mm/memory.c:5396 [inline]
__handle_mm_fault mm/memory.c:5523 [inline]
handle_mm_fault+0xb9b/0x2a80 mm/memory.c:5688
do_user_addr_fault arch/x86/mm/fault.c:1338 [inline]
handle_page_fault arch/x86/mm/fault.c:1481 [inline]
exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623

read to 0xffffea0004c597e8 of 8 bytes by task 3091 on cpu 1:
folio_mapping+0xd2/0x110 mm/util.c:797
folio_evictable mm/internal.h:353 [inline]
lru_add_fn+0x8d/0x430 mm/swap.c:184
folio_batch_move_lru+0x20c/0x2c0 mm/swap.c:220
lru_add_drain_cpu+0x77/0x260 mm/swap.c:657
lru_add_drain+0x26/0x80 mm/swap.c:757
swap_cluster_readahead+0x364/0x3f0 mm/swap_state.c:694
shmem_swapin_cluster mm/shmem.c:1576 [inline]
shmem_swapin_folio+0x246/0x760 mm/shmem.c:1885
shmem_get_folio_gfp+0x278/0xb70 mm/shmem.c:1991
shmem_fault+0x100/0x260 mm/shmem.c:2255
__do_fault+0xb6/0x200 mm/memory.c:4562
do_read_fault mm/memory.c:4926 [inline]
do_fault mm/memory.c:5056 [inline]
do_pte_missing mm/memory.c:3903 [inline]
handle_pte_fault mm/memory.c:5380 [inline]
__handle_mm_fault mm/memory.c:5523 [inline]
handle_mm_fault+0xdeb/0x2a80 mm/memory.c:5688
do_user_addr_fault arch/x86/mm/fault.c:1338 [inline]
handle_page_fault arch/x86/mm/fault.c:1481 [inline]
exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623

value changed: 0x0000000000000c36 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3091 Comm: syz-fuzzer Tainted: G W 6.10.0-rc2-syzkaller-00010-g2ab795141095 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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