syzbot


KCSAN: data-race in _copy_to_iter / strncpy (5)

Status: auto-obsoleted due to no activity on 2023/11/01 08:28
Subsystems: ext4
[Documentation on labels]
First crash: 272d, last: 220d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / strncpy (6) ext4 1 72d 72d 0/26 auto-obsoleted due to no activity on 2024/03/28 16:29
upstream KCSAN: data-race in _copy_to_iter / strncpy (3) ext4 1 391d 391d 0/26 auto-obsoleted due to no activity on 2023/05/14 07:57
upstream KCSAN: data-race in _copy_to_iter / strncpy (4) ext4 2 320d 341d 0/26 auto-obsoleted due to no activity on 2023/07/24 06:44
upstream KCSAN: data-race in _copy_to_iter / strncpy (2) kernel 1 453d 453d 0/26 auto-obsoleted due to no activity on 2023/03/20 15:50
upstream KCSAN: data-race in _copy_to_iter / strncpy ext4 1 541d 541d 0/26 auto-obsoleted due to no activity on 2022/12/15 15:24

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

write to 0xffff88813ebe9488 of 1 bytes by task 10662 on cpu 0:
 strncpy+0x9b/0x150 lib/string.c:96
 ext4_sample_last_mounted fs/ext4/file.c:866 [inline]
 ext4_file_open+0x367/0x3f0 fs/ext4/file.c:885
 do_dentry_open+0x5c3/0xae0 fs/open.c:929
 vfs_open+0x4a/0x50 fs/open.c:1063
 do_open fs/namei.c:3639 [inline]
 path_openat+0x17f2/0x1d10 fs/namei.c:3796
 do_filp_open+0xf6/0x200 fs/namei.c:3823
 do_sys_openat2+0xab/0x110 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_openat fs/open.c:1453 [inline]
 __se_sys_openat fs/open.c:1448 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1448
 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 0xffff88813ebe9400 of 1024 bytes by task 4189 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:113 [inline]
 copyout lib/iov_iter.c:167 [inline]
 _copy_to_iter+0x12b/0x950 lib/iov_iter.c:316
 copy_page_to_iter+0x171/0x2b0 lib/iov_iter.c:481
 copy_folio_to_iter include/linux/uio.h:185 [inline]
 filemap_read+0x424/0x680 mm/filemap.c:2703
 blkdev_read_iter+0x217/0x2c0 block/fops.c:730
 call_read_iter include/linux/fs.h:1950 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3da/0x5c0 fs/read_write.c:470
 ksys_read+0xeb/0x1a0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:621
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4189 Comm: udevd Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/27 08:26 upstream 0e945134b680 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / strncpy
2023/08/30 15:53 upstream 6c1b980a7e79 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / strncpy
2023/08/06 03:18 upstream f6a691685962 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / strncpy
* Struck through repros no longer work on HEAD.