syzbot


KCSAN: data-race in sized_strscpy / strcmp

Status: auto-obsoleted due to no activity on 2024/05/01 00:30
Subsystems: net
[Documentation on labels]
First crash: 513d, last: 513d

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

write to 0xffff8881166cc130 of 8 bytes by task 29671 on cpu 0:
 sized_strscpy+0x137/0x170 lib/string.c:147
 dev_prep_valid_name+0x294/0x640 net/core/dev.c:1129
 dev_get_valid_name net/core/dev.c:1158 [inline]
 dev_change_name+0xeb/0x560 net/core/dev.c:1192
 dev_ifsioc+0x5d2/0xa10 net/core/dev_ioctl.c:579
 dev_ioctl+0x774/0xab0 net/core/dev_ioctl.c:741
 sock_do_ioctl+0x11c/0x260 net/socket.c:1236
 sock_ioctl+0x470/0x640 net/socket.c:1341
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:904 [inline]
 __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:890
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:890
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

read to 0xffff8881166cc132 of 1 bytes by task 29670 on cpu 1:
 strcmp+0x16/0x50 lib/string.c:265
 netdev_name_node_lookup_rcu net/core/dev.c:296 [inline]
 dev_get_by_name_rcu+0x75/0xb0 net/core/dev.c:762
 dev_load+0x22/0xb0 net/core/dev_ioctl.c:642
 dev_ioctl+0x741/0xab0 net/core/dev_ioctl.c:737
 sock_do_ioctl+0x11c/0x260 net/socket.c:1236
 sock_ioctl+0x470/0x640 net/socket.c:1341
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:904 [inline]
 __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:890
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:890
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

value changed: 0x6e -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 29670 Comm: syz-executor.4 Not tainted 6.9.0-rc1-syzkaller-00009-g7033999ecd7b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/27 00:28 upstream 7033999ecd7b 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sized_strscpy / strcmp
* Struck through repros no longer work on HEAD.