syzbot


KCSAN: data-race in ondemand_readahead / ondemand_readahead (11)

Status: moderation: reported on 2024/04/16 01:12
Subsystems: mm fs
[Documentation on labels]
Reported-by: syzbot+701803384e5bfe149765@syzkaller.appspotmail.com
First crash: 35d, last: 2d13h
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (4) fs mm 1 1130d 1130d 0/26 auto-closed as invalid on 2021/05/21 19:40
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (5) mm fs 2 1086d 1092d 0/26 auto-closed as invalid on 2021/07/05 00:47
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (2) fs mm 201 1208d 1369d 0/26 auto-closed as invalid on 2021/03/05 09:30
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (10) fs mm 147 75d 165d 0/26 auto-obsoleted due to no activity on 2024/04/11 01:33
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (8) fs mm 1 728d 728d 0/26 auto-closed as invalid on 2022/06/27 21:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead fs mm 44 1433d 1646d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (9) mm fs 3 633d 638d 0/26 auto-closed as invalid on 2022/10/01 03:27
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (3) fs mm 1 1167d 1167d 0/26 auto-closed as invalid on 2021/04/14 20:49
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (7) fs mm 5 791d 854d 0/26 auto-closed as invalid on 2022/04/26 07:02
upstream KCSAN: data-race in ondemand_readahead / ondemand_readahead (6) fs mm 17 957d 1027d 0/26 auto-closed as invalid on 2021/11/11 03:01

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

read to 0xffff88813caac478 of 8 bytes by task 16583 on cpu 1:
 ondemand_readahead+0x133/0x6c0 mm/readahead.c:577
 page_cache_async_ra+0x94/0xa0 mm/readahead.c:714
 do_async_mmap_readahead mm/filemap.c:3179 [inline]
 filemap_fault+0x2d3/0xa60 mm/filemap.c:3275
 __do_fault+0xb6/0x200 mm/memory.c:4526
 do_read_fault mm/memory.c:4889 [inline]
 do_fault mm/memory.c:5019 [inline]
 do_pte_missing mm/memory.c:3875 [inline]
 handle_pte_fault mm/memory.c:5295 [inline]
 __handle_mm_fault mm/memory.c:5436 [inline]
 handle_mm_fault+0xdbf/0x27e0 mm/memory.c:5601
 do_user_addr_fault arch/x86/mm/fault.c:1383 [inline]
 handle_page_fault arch/x86/mm/fault.c:1475 [inline]
 exc_page_fault+0x2f5/0x690 arch/x86/mm/fault.c:1533
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
 fault_in_readable+0xf8/0x1b0
 fault_in_iov_iter_readable+0x152/0x190 lib/iov_iter.c:94
 generic_perform_write+0x106/0x410 mm/filemap.c:3964
 ext4_buffered_write_iter+0x1f6/0x380 fs/ext4/file.c:299
 ext4_file_write_iter+0x29f/0xe30
 call_write_iter include/linux/fs.h:2120 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x765/0x8e0 fs/read_write.c:590
 ksys_write+0xeb/0x1b0 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:652
 x64_sys_call+0x27b7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88813caac478 of 8 bytes by task 16582 on cpu 0:
 ondemand_readahead+0x58f/0x6c0 mm/readahead.c:603
 page_cache_async_ra+0x94/0xa0 mm/readahead.c:714
 do_async_mmap_readahead mm/filemap.c:3179 [inline]
 filemap_fault+0x2d3/0xa60 mm/filemap.c:3275
 __do_fault+0xb6/0x200 mm/memory.c:4526
 do_read_fault mm/memory.c:4889 [inline]
 do_fault mm/memory.c:5019 [inline]
 do_pte_missing mm/memory.c:3875 [inline]
 handle_pte_fault mm/memory.c:5295 [inline]
 __handle_mm_fault mm/memory.c:5436 [inline]
 handle_mm_fault+0xdbf/0x27e0 mm/memory.c:5601
 do_user_addr_fault arch/x86/mm/fault.c:1383 [inline]
 handle_page_fault arch/x86/mm/fault.c:1475 [inline]
 exc_page_fault+0x2f5/0x690 arch/x86/mm/fault.c:1533
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
 rep_movs_alternative+0x30/0x70 arch/x86/lib/copy_user_64.S:50
 copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:125 [inline]
 _copy_from_user+0x80/0xd0 lib/usercopy.c:23
 copy_from_user include/linux/uaccess.h:183 [inline]
 copy_msghdr_from_user+0x54/0x2a0 net/socket.c:2515
 recvmsg_copy_msghdr net/socket.c:2770 [inline]
 ___sys_recvmsg net/socket.c:2842 [inline]
 do_recvmmsg+0x290/0x720 net/socket.c:2940
 __sys_recvmmsg net/socket.c:3019 [inline]
 __do_sys_recvmmsg net/socket.c:3042 [inline]
 __se_sys_recvmmsg net/socket.c:3035 [inline]
 __x64_sys_recvmmsg+0xe2/0x170 net/socket.c:3035
 x64_sys_call+0xda3/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:300
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000028 -> 0x0000000000000029

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16582 Comm: syz-executor.4 Tainted: G        W          6.9.0-syzkaller-08995-g0450d2083be6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/19 05:27 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/18 01:00 upstream 7ee332c9f12b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/18 01:00 upstream 7ee332c9f12b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/17 08:51 upstream ea5f6ad9ad96 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/16 17:44 upstream 3c999d1ae3c7 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/16 05:48 upstream 8c06da67d0bd ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/15 04:21 upstream b850dc206a57 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/15 04:21 upstream b850dc206a57 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/13 20:00 upstream 8815da98e06a 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/13 08:31 upstream a38297e3fb01 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/13 08:04 upstream a38297e3fb01 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/11 08:56 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/10 18:16 upstream f4345f05c0df f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/09 00:12 upstream 6d7ddd805123 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/08 17:07 upstream dccb07f2914c 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/08 01:03 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/07 11:59 upstream dccb07f2914c cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/06 20:35 upstream dd5a440a31fa d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/05 19:32 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/04 04:36 upstream ddb4c3f25b7b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/03 23:35 upstream ddb4c3f25b7b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/03 14:11 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/02 17:13 upstream 49a73b1652c5 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/05/01 18:53 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/29 22:12 upstream b947cc5bf6d7 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/28 22:47 upstream e67572cd2204 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/27 10:51 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/27 10:43 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/27 10:42 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/26 06:38 upstream c942a0cd3603 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/26 02:58 upstream e33c4963bf53 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/25 01:59 upstream e88c4cfcb7b8 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/24 09:56 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/21 19:25 upstream 48cf398f15fc af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/20 19:35 upstream 13a2e429f644 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/19 19:44 upstream 3cdb45594619 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/19 14:44 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/18 02:53 upstream 4b6b51322118 acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/17 14:31 upstream 96fca68c4fbf acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/16 15:49 upstream 96fca68c4fbf 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/16 04:16 upstream 96fca68c4fbf 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
2024/04/16 01:11 upstream 0bbac3facb5d b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ondemand_readahead / ondemand_readahead
* Struck through repros no longer work on HEAD.