syzbot


KCSAN: data-race in exit_signals / task_dump_owner (5)

Status: auto-closed as invalid on 2021/07/08 00:56
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 569d, last: 486d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exit_signals / task_dump_owner (2) 5 838d 946d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in exit_signals / task_dump_owner (4) 1 643d 643d 0/24 auto-closed as invalid on 2021/01/31 10:55
upstream KCSAN: data-race in exit_signals / task_dump_owner 4 1021d 1054d 0/24 auto-closed as invalid on 2020/02/24 01:47
upstream KCSAN: data-race in exit_signals / task_dump_owner (3) 13 682d 663d 0/24 auto-closed as invalid on 2020/12/24 05:44

Sample crash report:
ref_ctr going negative. vaddr: 0x20000008, curr val: 0, delta: -1
ref_ctr decrement failed for inode: 0x361d offset: 0x0 ref_ctr_offset: 0x8 of mm: 0x000000007e619a8a
==================================================================
BUG: KCSAN: data-race in exit_signals / task_dump_owner

write to 0xffff8881227c20ac of 4 bytes by task 23209 on cpu 1:
 exit_signals+0xe1/0x4a0 kernel/signal.c:2927
 do_exit+0x194/0x1560 kernel/exit.c:782
 do_group_exit+0x19b/0x1a0 kernel/exit.c:923
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:934
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:932
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:932
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881227c20ac of 4 bytes by task 23217 on cpu 0:
 task_dump_owner+0x2b/0x1d0 fs/proc/base.c:1822
 pid_update_inode fs/proc/base.c:1964 [inline]
 pid_revalidate+0x69/0x110 fs/proc/base.c:1987
 lookup_fast+0x1fd/0x350 fs/namei.c:827
 walk_component+0x5c/0x350 fs/namei.c:1938
 link_path_walk+0x4ba/0x780 fs/namei.c:2265
 path_lookupat+0x7b/0x570 fs/namei.c:2420
 filename_lookup+0xff/0x390 fs/namei.c:2454
 kern_path+0x2e/0x40 fs/namei.c:2541
 create_local_trace_uprobe+0x3f/0x3c0 kernel/trace/trace_uprobe.c:1592
 perf_uprobe_init+0xbe/0x140 kernel/trace/trace_event_perf.c:323
 perf_uprobe_event_init+0xde/0x140 kernel/events/core.c:9868
 perf_try_init_event+0x21a/0x400 kernel/events/core.c:11185
 perf_init_event kernel/events/core.c:11249 [inline]
 perf_event_alloc+0xa60/0x1790 kernel/events/core.c:11540
 __do_sys_perf_event_open kernel/events/core.c:12029 [inline]
 __se_sys_perf_event_open+0x5c7/0x2740 kernel/events/core.c:11921
 __x64_sys_perf_event_open+0x63/0x70 kernel/events/core.c:11921
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00404040 -> 0x00404044

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23217 Comm: syz-executor.1 Not tainted 5.13.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (22):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/06/03 00:54 upstream 324c92e5e0ee 0740de69 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/31 03:24 upstream 8124c8a6b353 325a8dab .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/22 06:37 upstream 45af60e7ced0 3c7fef33 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/16 22:08 upstream 63d1cb53e26a f54a5c09 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/13 16:44 upstream c06a2ba62fc4 ecb594cb .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/12 21:41 upstream dbb5afad100a ed7d41c5 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/09 01:33 upstream b741596468b0 bc5434be .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/07 02:16 upstream 8404c9fbc84b 06585184 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/06 12:31 upstream 8404c9fbc84b 06c27ff5 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/04 09:27 upstream 5e321ded302d 09efdd63 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/05/02 15:51 upstream 17ae69aba89d 77e2b668 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/27 14:03 upstream 4a0225c3d208 805b5003 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/26 07:01 upstream d2d09fbe33f8 2a82f1b3 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/19 14:25 upstream bf05bf16c76b 50f523d7 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/19 02:47 upstream bf05bf16c76b 7e2b734b .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/18 04:46 upstream 194cf4825638 7e2b734b .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/08 17:44 upstream 454859c552da 6a81331a .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/04 07:56 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/04/02 13:18 upstream 1678e493d530 6a81331a .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/03/23 00:22 upstream 0d02ec6b3136 8092f30d .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/03/20 20:38 upstream 1c273e10bc0c e45f5621 .config log report info KCSAN: data-race in exit_signals / task_dump_owner
ci2-upstream-kcsan-gce 2021/03/12 04:10 upstream 28806e4d9b97 429d8a6b .config log report info KCSAN: data-race in exit_signals / task_dump_owner
* Struck through repros no longer work on HEAD.