syzbot


KCSAN: data-race in next_uptodate_page / shmem_write_end (3)

Status: auto-obsoleted due to no activity on 2023/04/08 11:16
Subsystems: mm
[Documentation on labels]
First crash: 1116d, last: 700d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end mm 17 1375d 1424d 0/28 auto-closed as invalid on 2021/05/29 18:32
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end (4) mm 3 638d 654d 0/28 auto-obsoleted due to no activity on 2023/06/05 21:51
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end (5) mm 60 518d 590d 0/28 auto-obsoleted due to no activity on 2023/09/26 18:47
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end (2) mm 20 1188d 1322d 0/28 auto-closed as invalid on 2021/12/02 06:35

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

write to 0xffff88813011acd8 of 8 bytes by task 4416 on cpu 1:
 i_size_write include/linux/fs.h:888 [inline]
 shmem_write_end+0x9a/0x4a0 mm/shmem.c:2586
 generic_perform_write+0x253/0x3d0 mm/filemap.c:3937
 __generic_file_write_iter+0xe6/0x290 mm/filemap.c:4054
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4086
 do_iter_write+0x418/0x700 fs/read_write.c:861
 vfs_iter_write+0x50/0x70 fs/read_write.c:902
 iter_file_splice_write+0x456/0x7d0 fs/splice.c:778
 do_splice_from fs/splice.c:856 [inline]
 direct_splice_actor+0x84/0xa0 fs/splice.c:1023
 splice_direct_to_actor+0x2ee/0x5f0 fs/splice.c:978
 do_splice_direct+0x104/0x180 fs/splice.c:1066
 do_sendfile+0x3b8/0x950 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813011acd8 of 8 bytes by task 4424 on cpu 0:
 i_size_read include/linux/fs.h:866 [inline]
 next_uptodate_page+0x47b/0x560 mm/filemap.c:3457
 next_map_page mm/filemap.c:3482 [inline]
 filemap_map_pages+0x722/0x830 mm/filemap.c:3554
 do_fault_around mm/memory.c:4461 [inline]
 do_read_fault mm/memory.c:4487 [inline]
 do_fault mm/memory.c:4621 [inline]
 handle_pte_fault mm/memory.c:4909 [inline]
 __handle_mm_fault mm/memory.c:5051 [inline]
 handle_mm_fault+0xfc3/0x21d0 mm/memory.c:5197
 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline]
 handle_page_fault arch/x86/mm/fault.c:1498 [inline]
 exc_page_fault+0x45f/0x640 arch/x86/mm/fault.c:1554
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
 do_strnlen_user lib/strnlen_user.c:49 [inline]
 strnlen_user+0x105/0x1d0 lib/strnlen_user.c:113
 strndup_user+0x1f/0xa0 mm/util.c:247
 keyctl_pkey_params_get+0x63/0x310 security/keys/keyctl_pkey.c:89
 keyctl_pkey_params_get_2+0xd8/0x310 security/keys/keyctl_pkey.c:128
 keyctl_pkey_e_d_s+0x57/0x240 security/keys/keyctl_pkey.c:222
 __do_sys_keyctl security/keys/keyctl.c:1992 [inline]
 __se_sys_keyctl+0x595/0xbc0 security/keys/keyctl.c:1869
 __x64_sys_keyctl+0x67/0x80 security/keys/keyctl.c:1869
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000304e -> 0x0000000000003060

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4424 Comm: syz-executor.2 Not tainted 6.2.0-syzkaller-12913-gae3419fbac84-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
==================================================================

Crashes (110):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/28 12:57 upstream ae3419fbac84 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/24 19:33 upstream d2980d8d8265 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/14 16:02 upstream f6feea56f66d 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/13 01:22 upstream ceaa837f96ad 93e26d60 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/12 12:26 upstream f339c2597ebb 93e26d60 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/06 17:11 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/04 22:10 upstream db27c22251e7 be607b78 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/04 17:47 upstream 0136d86b7852 be607b78 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/02/03 13:06 upstream e7368fd30165 1b2f701a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/01/19 21:31 upstream 081edded9b38 71197f3a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/01/18 05:48 upstream 6e50979a9c87 42660d9e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/01/14 16:27 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/01/04 10:18 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/12/24 21:24 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/11/20 17:51 upstream 77c51ba552a1 5bb70014 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/11/18 04:26 upstream 84368d882b96 5bb70014 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/11/16 22:30 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/11/13 11:11 upstream fef7fd48922d f42ee5d8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/10/30 14:43 upstream 882ad2a2a8ff 2a71366b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/10/26 07:59 upstream 1a2dcbdde82e 2159e4d2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/10/17 13:33 upstream 2df76606db9d 67cb024c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/10/16 01:37 upstream 19d17ab7c68b 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/29 15:53 upstream c3e0e1e23c70 45fd7169 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/27 05:13 upstream 3800a713b607 10323ddf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/25 07:25 upstream 1a61b828566f 0042f2b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/23 15:43 upstream bf682942cd26 0042f2b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/22 14:53 upstream dc164f4fb00a 60af5050 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/19 13:24 upstream 521a547ced64 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/19 08:16 upstream 521a547ced64 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/16 19:46 upstream 6879c2d3b960 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/16 02:07 upstream 3245cb65fd91 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/13 19:39 upstream d1221cea11fc b884348d .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/13 09:27 upstream e839a756012b a08652b0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/11 21:03 upstream 4ed9c1e971b1 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/10 00:37 upstream ce888220d5c7 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/08 19:59 upstream 26b1224903b3 f3027468 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/04 13:38 upstream 7726d4c3e60b 28811d0a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/02 19:48 upstream 0b3acd1cc022 25194605 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/02 16:43 upstream 42e66b1cc3a0 25194605 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/09/01 18:36 upstream 2880e1a175b9 86c46e46 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/31 19:17 upstream c5e4d5e99162 51e54e30 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/28 23:08 upstream 8379c0b31fbc 07177916 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/23 11:33 upstream 072e51356cd5 cea8b0f7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/21 22:56 upstream e3f259d33c0e 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/19 23:31 upstream 50cd95ac4654 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/19 17:12 upstream 4c2d0b039c5c 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/18 22:06 upstream 573ae4f13f63 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/17 23:51 upstream 274a2eebf80c a9409d47 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/11 22:10 upstream 2ae08b36c06e 21724cb2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/09 18:31 upstream 426b4ca2d6a5 c2a623d6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/01 23:12 upstream 9de1f9c8ca51 fef302b1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/08/01 09:45 upstream 3d7cb6b04c3f fef302b1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2022/01/08 22:15 upstream 21f35d2ca83e 2ca0d385 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
* Struck through repros no longer work on HEAD.