syzbot


KCSAN: data-race in cleanup_net / synchronize_net

Status: auto-obsoleted due to no activity on 2025/04/21 08:26
Subsystems: net
[Documentation on labels]
First crash: 178d, last: 154d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in cleanup_net / synchronize_net (2) net 6 3 54d 54d 0/29 moderation: reported on 2025/06/04 09:50

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

write to 0xffffffff88c95818 of 8 bytes by task 1884 on cpu 1:
 cleanup_net+0x68/0x890 net/core/net_namespace.c:601
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0x4db/0xa20 kernel/workqueue.c:3317
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398
 kthread+0x4ae/0x520 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffffffff88c95818 of 8 bytes by task 15699 on cpu 0:
 from_cleanup_net net/core/dev.c:10349 [inline]
 synchronize_net+0x24/0x70 net/core/dev.c:11766
 packet_release+0x5b8/0x7f0 net/packet/af_packet.c:3218
 __sock_release net/socket.c:647 [inline]
 sock_close+0x68/0x150 net/socket.c:1398
 __fput+0x2ac/0x640 fs/file_table.c:464
 ____fput+0x1c/0x30 fs/file_table.c:492
 task_work_run+0x13a/0x1a0 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x5d8/0x17f0 kernel/exit.c:938
 __do_sys_exit kernel/exit.c:1054 [inline]
 __se_sys_exit kernel/exit.c:1052 [inline]
 __x64_sys_exit+0x1f/0x20 kernel/exit.c:1052
 x64_sys_call+0x2da1/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:61
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0xffff888103133180

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 15699 Comm: syz.7.3969 Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/24 08:21 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in cleanup_net / synchronize_net
2025/01/31 10:02 upstream 69e858e0b8b2 4c6ac32f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in cleanup_net / synchronize_net
* Struck through repros no longer work on HEAD.