syzbot


KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (5)

Status: auto-closed as invalid on 2021/04/19 17:00
Subsystems: net
[Documentation on labels]
First crash: 1142d, last: 1131d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (4) net 4 1182d 1208d 0/26 auto-closed as invalid on 2021/02/27 15:17
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (2) net 1 1398d 1398d 0/26 auto-closed as invalid on 2020/07/27 00:03
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree net 21 1425d 1614d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (6) net 22 600d 858d 0/26 auto-closed as invalid on 2022/10/02 20:43
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (3) net 1 1309d 1309d 0/26 auto-closed as invalid on 2020/10/23 10:46
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (7) net 1 549d 549d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
BUG: KCSAN: data-race in kcm_rcv_strparser / kcm_rfree

write to 0xffff88810cf4af78 of 1 bytes by task 28650 on cpu 1:
 reserve_rx_kcm net/kcm/kcmsock.c:282 [inline]
 kcm_rcv_strparser+0x26e/0x3d0 net/kcm/kcmsock.c:362
 __strp_recv+0x699/0xf00 net/strparser/strparser.c:309
 strp_recv+0x6d/0x80 net/strparser/strparser.c:343
 tcp_read_sock+0x290/0xb10 net/ipv4/tcp.c:1660
 strp_read_sock net/strparser/strparser.c:366 [inline]
 do_strp_work net/strparser/strparser.c:414 [inline]
 strp_work+0xd9/0x170 net/strparser/strparser.c:423
 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

read to 0xffff88810cf4af78 of 1 bytes by task 4347 on cpu 0:
 kcm_rfree+0xc6/0x180 net/kcm/kcmsock.c:180
 skb_release_head_state+0xb3/0x170 net/core/skbuff.c:712
 skb_release_all net/core/skbuff.c:723 [inline]
 __kfree_skb+0x14/0x150 net/core/skbuff.c:739
 kfree_skb+0x50/0x170 net/core/skbuff.c:757
 kcm_recvmsg+0x3f1/0x470 net/kcm/kcmsock.c:1160
 ____sys_recvmsg+0x15d/0x310 include/linux/uio.h:234
 ___sys_recvmsg net/socket.c:2611 [inline]
 do_recvmmsg+0x34c/0x9e0 net/socket.c:2705
 __sys_recvmmsg net/socket.c:2784 [inline]
 __do_sys_recvmmsg net/socket.c:2807 [inline]
 __se_sys_recvmmsg net/socket.c:2800 [inline]
 __x64_sys_recvmmsg+0xcf/0x150 net/socket.c:2800
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4347 Comm: syz-executor.4 Tainted: G        W         5.12.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/15 16:52 upstream 1e28eed17697 fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in kcm_rcv_strparser / kcm_rfree
2021/03/05 02:23 upstream cee407c5cc42 f89ed068 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in kcm_rcv_strparser / kcm_rfree
* Struck through repros no longer work on HEAD.