syzbot


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

Status: auto-closed as invalid on 2021/02/27 15:17
Subsystems: net
[Documentation on labels]
First crash: 1250d, last: 1225d
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 (2) net 1 1440d 1440d 0/26 auto-closed as invalid on 2020/07/27 00:03
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (5) net 2 1174d 1184d 0/26 auto-closed as invalid on 2021/04/19 17:00
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree net 21 1468d 1656d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in kcm_rcv_strparser / kcm_rfree (6) net 22 642d 901d 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 1352d 1352d 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 592d 591d 22/26 fixed on 2023/02/24 13:50

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

write to 0xffff88801ba0ef78 of 1 bytes by task 37 on cpu 0:
 reserve_rx_kcm net/kcm/kcmsock.c:282 [inline]
 kcm_rcv_strparser+0x250/0x3a0 net/kcm/kcmsock.c:362
 __strp_recv+0x65d/0xde0 net/strparser/strparser.c:309
 strp_recv+0x6d/0x80 net/strparser/strparser.c:343
 tcp_read_sock+0x287/0xb90 net/ipv4/tcp.c:1662
 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+0x635/0xb90 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88801ba0ef78 of 1 bytes by task 18411 on cpu 1:
 kcm_rfree+0xb7/0x170 net/kcm/kcmsock.c:180
 skb_release_head_state+0xb3/0x170 net/core/skbuff.c:665
 skb_release_all net/core/skbuff.c:676 [inline]
 __kfree_skb+0x14/0x150 net/core/skbuff.c:692
 kfree_skb+0x50/0x170 net/core/skbuff.c:710
 kcm_recvmsg+0x3c0/0x440 net/kcm/kcmsock.c:1160
 ____sys_recvmsg+0x15d/0x310 include/linux/uio.h:234
 ___sys_recvmsg net/socket.c:2610 [inline]
 do_recvmmsg+0x4b3/0x990 net/socket.c:2710
 __sys_recvmmsg net/socket.c:2789 [inline]
 __do_sys_recvmmsg net/socket.c:2812 [inline]
 __se_sys_recvmmsg net/socket.c:2805 [inline]
 __x64_sys_recvmmsg+0xcf/0x150 net/socket.c:2805
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/23 15:10 upstream fe75a21824e7 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in kcm_rcv_strparser / kcm_rfree
2021/01/04 10:44 upstream e71ba9452f0b 79264ae3 .config console log report info ci2-upstream-kcsan-gce
2020/12/29 08:43 upstream dea8dcf2a9fa 8259d56c .config console log report info ci2-upstream-kcsan-gce
2020/12/29 01:17 upstream c76e02c59e13 8259d56c .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.