syzbot


KCSAN: data-race in yama_relation_cleanup / yama_task_free (4)

Status: auto-closed as invalid on 2021/05/17 10:12
Subsystems: lsm
[Documentation on labels]
First crash: 1116d, last: 1112d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in yama_relation_cleanup / yama_task_free (2) lsm 1 1287d 1287d 0/26 auto-closed as invalid on 2020/11/14 15:11
upstream KCSAN: data-race in yama_relation_cleanup / yama_task_free lsm 4 1358d 1380d 0/26 auto-closed as invalid on 2020/09/04 02:18
upstream KCSAN: data-race in yama_relation_cleanup / yama_task_free (3) lsm 5 1179d 1229d 0/26 auto-closed as invalid on 2021/03/02 05:29

Sample crash report:
==================================================================
BUG: KCSAN: data-race in yama_relation_cleanup / yama_task_free

write to 0xffff88810b0fcf10 of 1 bytes by interrupt on cpu 1:
 yama_ptracer_del security/yama/yama_lsm.c:191 [inline]
 yama_task_free+0xc3/0x160 security/yama/yama_lsm.c:207
 security_task_free+0x3f/0xa0 security/security.c:1610
 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736
 put_task_struct include/linux/sched/task.h:113 [inline]
 delayed_put_task_struct+0x4e/0x130 kernel/exit.c:173
 rcu_do_batch kernel/rcu/tree.c:2559 [inline]
 rcu_core+0x6e3/0xc70 kernel/rcu/tree.c:2794
 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2807
 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345
 run_ksoftirqd+0x13/0x20 kernel/softirq.c:652
 smpboot_thread_fn+0x34f/0x520 kernel/smpboot.c:165
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88810b0fcf10 of 1 bytes by task 7 on cpu 0:
 yama_relation_cleanup+0x69/0x150 security/yama/yama_lsm.c:122
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7 Comm: kworker/0:1 Not tainted 5.12.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events yama_relation_cleanup
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/03 14:42 upstream d93a0d43e3d0 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in yama_relation_cleanup / yama_task_free
2021/03/30 05:41 upstream 1e43c377a79f 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in yama_relation_cleanup / yama_task_free
* Struck through repros no longer work on HEAD.