syzbot


KCSAN: data-race in next_uptodate_folio / shmem_write_end

Status: moderation: reported on 2023/12/09 00:02
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+92075be90d0a2f5b0265@syzkaller.appspotmail.com
First crash: 177d, last: 2d09h

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

write to 0xffff8881378d86b0 of 8 bytes by task 12403 on cpu 1:
 i_size_write include/linux/fs.h:932 [inline]
 shmem_write_end+0x9a/0x470 mm/shmem.c:2741
 generic_perform_write+0x267/0x410 mm/filemap.c:3941
 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2893
 call_write_iter include/linux/fs.h:2085 [inline]
 iter_file_splice_write+0x5de/0x950 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x167/0x2c0 fs/splice.c:1164
 splice_direct_to_actor+0x2fb/0x660 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x3b9/0x960 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1356 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1348
 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+0x63/0x6b

read to 0xffff8881378d86b0 of 8 bytes by task 12409 on cpu 0:
 i_size_read include/linux/fs.h:910 [inline]
 next_uptodate_folio+0x5c9/0x7a0 mm/filemap.c:3420
 filemap_map_pages+0xed/0x900 mm/filemap.c:3533
 do_fault_around mm/memory.c:4696 [inline]
 do_read_fault mm/memory.c:4729 [inline]
 do_fault mm/memory.c:4868 [inline]
 do_pte_missing mm/memory.c:3745 [inline]
 handle_pte_fault mm/memory.c:5144 [inline]
 __handle_mm_fault mm/memory.c:5285 [inline]
 handle_mm_fault+0x1063/0x27c0 mm/memory.c:5450
 do_user_addr_fault arch/x86/mm/fault.c:1415 [inline]
 handle_page_fault arch/x86/mm/fault.c:1507 [inline]
 exc_page_fault+0x2f9/0x6d0 arch/x86/mm/fault.c:1563
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
 __get_user_4+0x11/0x20 arch/x86/lib/getuser.S:75
 rds_getsockopt+0x5c/0x420 net/rds/af_rds.c:493
 do_sock_getsockopt+0x11d/0x190 net/socket.c:2373
 __sys_getsockopt+0x199/0x200 net/socket.c:2402
 __do_sys_getsockopt net/socket.c:2412 [inline]
 __se_sys_getsockopt net/socket.c:2409 [inline]
 __x64_sys_getsockopt+0x66/0x80 net/socket.c:2409
 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+0x63/0x6b

value changed: 0x0000000000007b78 -> 0x0000000000007ba8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12409 Comm: syz-executor.1 Not tainted 6.8.0-rc5-syzkaller-00029-g39133352cbed #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (87):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/21 19:17 upstream 39133352cbed 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/02/07 22:59 upstream 547ab8fc4cb0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/02/07 02:11 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/02/04 02:30 upstream b555d191561a a67b2c42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/24 06:40 upstream 615d30064886 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/17 23:24 upstream 1b1934dbbdcf 915053c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/15 23:09 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/14 05:42 upstream 052d534373b7 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/11 04:31 upstream de927f6c0b07 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/06 12:06 upstream 95c8a35f1c01 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/05 10:40 upstream 1f874787ed9a 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2024/01/03 23:12 upstream ac865f00af29 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/24 10:31 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/20 16:05 upstream 55cb5f43689d de21eb89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/19 07:13 upstream 2cf4f94d8e86 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/18 20:12 upstream 2cf4f94d8e86 924661f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/17 19:13 upstream 0e389834672c 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/13 09:56 upstream 88035e5694a8 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/10 11:56 upstream c527f5606aa5 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/08 13:54 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/07 21:49 upstream 9ace34a8e446 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/07 18:30 upstream bee0e7762ad2 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/12/04 01:05 upstream 33cc938e65a9 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/28 09:48 upstream df60cee26a2e 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/27 09:42 upstream 2cc14f52aeb7 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/20 13:52 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/19 05:15 upstream 23dfa043f6d5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/17 19:11 upstream 6bc40e44f1dd cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/12 20:09 upstream b57b17e88bf5 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/09 15:41 upstream 6bc986ab839c 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/08 08:23 upstream 13d88ac54ddd 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/07 02:05 upstream be3ca57cfb77 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/06 14:30 upstream d2f51b3516da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/04 23:41 upstream aea6bf908d73 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/04 17:04 upstream 90b0c2b2edd1 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/03 21:28 upstream 6bdfe2d88b9f 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/03 09:35 upstream 8f6f76a6a29f c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/02 06:55 upstream babe393974de 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/11/01 17:39 upstream 8bc9e6515183 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/30 21:00 upstream 14ab6d425e80 b5729d82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/29 15:18 upstream 2af9b20dbb39 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/27 12:16 upstream 3a568e3a961b bf285f0c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/25 19:54 upstream 611da07b89fd 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/25 16:47 upstream 4f82870119a4 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/24 15:27 upstream d88520ad73b7 af8d2e46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/24 01:12 upstream e017769f4ce2 af8d2e46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/23 12:33 upstream 05d3ef8bba77 989a3687 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/22 09:30 upstream 1acfd2bd3f0d 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/21 20:30 upstream 45d3291c5201 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/10/20 17:55 upstream c8045b4a33a5 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/15 09:31 upstream 9fdfb15a3dbf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/12 17:39 upstream a747acc0b752 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/11 11:19 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/10 20:02 upstream 1548b060d6f3 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/09 03:45 upstream 32bf43e4efdb 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/08 15:20 upstream a48fa7efaf11 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/07 22:10 upstream 4a0fc73da97e 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/06 19:16 upstream 744a759492b5 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/06 10:46 upstream 65d6e954e378 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/05 20:21 upstream 7733171926cc 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/05 02:48 upstream 3f86ed6ec0b3 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/04 22:32 upstream 708283abf896 db3306a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/04 07:26 upstream 708283abf896 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/03 00:05 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/02 10:50 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/09/01 13:28 upstream 99d99825fc07 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
2023/08/30 08:05 upstream 6c1b980a7e79 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_write_end
* Struck through repros no longer work on HEAD.