================================================================== BUG: KCSAN: data-race in copy_creds / init_peercred write to 0xffff88807d8a8218 of 4 bytes by task 2475 on cpu 0: get_cred include/linux/cred.h:253 [inline] init_peercred+0x108/0x150 net/unix/af_unix.c:595 unix_socketpair+0x84/0x110 net/unix/af_unix.c:1398 __sys_socketpair+0x227/0x450 net/socket.c:1586 __do_sys_socketpair net/socket.c:1622 [inline] __se_sys_socketpair net/socket.c:1619 [inline] __x64_sys_socketpair+0x5e/0x80 net/socket.c:1619 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88807d8a8218 of 4 bytes by task 2474 on cpu 1: get_cred include/linux/cred.h:253 [inline] copy_creds+0x258/0x340 kernel/cred.c:346 copy_process+0x926/0x3b50 kernel/fork.c:1884 _do_fork+0xfe/0x6e0 kernel/fork.c:2366 __do_sys_clone kernel/fork.c:2521 [inline] __se_sys_clone kernel/fork.c:2502 [inline] __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2474 Comm: syz-executor.2 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 2474 Comm: syz-executor.2 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xf5/0x159 lib/dump_stack.c:113 panic+0x210/0x640 kernel/panic.c:221 kcsan_report.cold+0xc/0x10 kernel/kcsan/report.c:302 __kcsan_setup_watchpoint+0x32e/0x4a0 kernel/kcsan/core.c:411 __tsan_write4 kernel/kcsan/kcsan.c:35 [inline] __tsan_write4+0x32/0x40 kernel/kcsan/kcsan.c:35 get_cred include/linux/cred.h:253 [inline] copy_creds+0x258/0x340 kernel/cred.c:346 copy_process+0x926/0x3b50 kernel/fork.c:1884 _do_fork+0xfe/0x6e0 kernel/fork.c:2366 __do_sys_clone kernel/fork.c:2521 [inline] __se_sys_clone kernel/fork.c:2502 [inline] __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c909 Code: ff 48 85 f6 0f 84 d7 8c fb ff 48 83 ee 10 48 89 4e 08 48 89 3e 48 89 d7 4c 89 c2 4d 89 c8 4c 8b 54 24 08 b8 38 00 00 00 0f 05 <48> 85 c0 0f 8c ae 8c fb ff 74 01 c3 31 ed 48 f7 c7 00 00 01 00 75 RSP: 002b:00007ffff06defc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f3505a10700 RCX: 000000000045c909 RDX: 00007f3505a109d0 RSI: 00007f3505a0fdb0 RDI: 00000000003d0f00 RBP: 00007ffff06df1e0 R08: 00007f3505a10700 R09: 00007f3505a10700 R10: 00007f3505a109d0 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffff06df07f R14: 00007f3505a109c0 R15: 000000000075bfd4 Kernel Offset: disabled Rebooting in 86400 seconds..