syzbot


KCSAN: data-race in filemap_read / filemap_read

Status: moderation: reported on 2021/08/05 09:46
Reported-by: syzbot+74bcf83a971e0c78aabd@syzkaller.appspotmail.com
First crash: 577d, last: 7h44m

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

read to 0xffff8881058ea3b0 of 8 bytes by task 11097 on cpu 1:
 filemap_read+0xe0e/0x1430 mm/filemap.c:2687
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2806
 ext4_file_read_iter+0x1c8/0x280
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff8881058ea3b0 of 8 bytes by task 11102 on cpu 0:
 filemap_read+0x11cc/0x1430 mm/filemap.c:2715
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2806
 ext4_file_read_iter+0x1c8/0x280
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000781000 -> 0x0000000000814000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11102 Comm: syz-executor.4 Not tainted 6.0.0-syzkaller-05118-g833477fce7a1-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (448):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/06 16:13 upstream 833477fce7a1 80b58a42 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/05 23:21 upstream 2bca25eaeba6 2c6543ad .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/05 04:16 upstream 0326074ff465 267e3bb1 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/04 15:24 upstream 725737e7c21d eab8f949 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/03 15:45 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/02 21:26 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/02 09:16 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/10/01 13:08 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/30 18:08 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/30 09:05 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/29 14:50 upstream c3e0e1e23c70 45fd7169 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/28 19:27 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/28 02:03 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/27 07:02 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/27 03:51 upstream 3800a713b607 d59ba983 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/26 08:47 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/26 00:58 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/25 04:49 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/24 09:38 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/23 14:55 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/23 09:05 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/22 14:25 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/21 23:10 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/21 11:01 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/20 19:22 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/20 17:10 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/20 07:38 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/19 13:36 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/19 07:15 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/18 17:40 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/17 06:55 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/16 16:34 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/14 11:26 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/13 21:05 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/13 14:30 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/13 08:26 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/13 00:03 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/12 17:01 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/12 10:01 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/11 23:02 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/10 01:29 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/09 14:30 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/08 01:14 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/07 11:51 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/06 22:57 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/06 21:42 upstream d2ec799d1c1b 65aea2b9 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/06 12:33 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/05 22:50 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2022/09/05 11:27 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2021/08/04 20:52 upstream 251a1524293d b97d64c9 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2021/08/01 09:36 upstream f3438b4c4e69 6c236867 .config log report info KCSAN: data-race in filemap_read / filemap_read
ci2-upstream-kcsan-gce 2021/03/08 09:34 upstream 144c79ef3353 09fbf400 .config log report info KCSAN: data-race in filemap_read / filemap_read
* Struck through repros no longer work on HEAD.