syzbot


KCSAN: data-race in can_receive / can_receive (3)

Status: moderation: reported on 2022/04/15 18:29
Reported-by: syzbot+ed5906c7292193a70bc4@syzkaller.appspotmail.com
First crash: 312d, last: 5h57m
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in can_receive / can_receive (2) 3 573d 615d 0/24 auto-closed as invalid on 2021/04/13 21:26
upstream KCSAN: data-race in can_receive / can_receive 9 982d 1051d 0/24 auto-closed as invalid on 2020/04/04 02:54

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

read-write to 0xffff888129894068 of 8 bytes by interrupt on cpu 0:
 can_receive+0x62/0x1f0 net/can/af_can.c:652
 canfd_rcv+0x9e/0x170 net/can/af_can.c:722
 __netif_receive_skb_one_core net/core/dev.c:5485 [inline]
 __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5599
 process_backlog+0x23f/0x3b0 net/core/dev.c:5927
 __napi_poll+0x65/0x390 net/core/dev.c:6511
 napi_poll net/core/dev.c:6578 [inline]
 net_rx_action+0x37e/0x730 net/core/dev.c:6689
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

read-write to 0xffff888129894068 of 8 bytes by interrupt on cpu 1:
 can_receive+0x62/0x1f0 net/can/af_can.c:652
 canfd_rcv+0x9e/0x170 net/can/af_can.c:722
 __netif_receive_skb_one_core net/core/dev.c:5485 [inline]
 __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5599
 process_backlog+0x23f/0x3b0 net/core/dev.c:5927
 __napi_poll+0x65/0x390 net/core/dev.c:6511
 napi_poll net/core/dev.c:6578 [inline]
 net_rx_action+0x37e/0x730 net/core/dev.c:6689
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

value changed: 0x00000000000012f8 -> 0x00000000000012f9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (487):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 15:56 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/10/03 05:46 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/10/02 08:13 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/10/01 14:41 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/30 18:31 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/30 09:22 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/29 14:50 upstream c3e0e1e23c70 45fd7169 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/28 20:57 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/28 00:07 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/27 06:19 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/27 04:10 upstream 3800a713b607 d59ba983 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/26 09:21 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/26 00:38 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/25 04:54 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/24 15:17 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/23 14:39 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/22 15:32 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/22 12:15 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/22 04:16 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/21 20:21 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/21 10:58 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/20 19:24 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/20 17:03 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/20 07:28 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/19 12:25 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/19 07:19 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/18 17:50 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/18 17:48 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/17 06:07 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/16 17:13 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/15 07:17 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/14 09:56 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/13 20:32 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/13 14:12 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/13 08:27 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/13 01:03 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/12 19:05 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/12 10:12 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/11 20:19 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/10 19:19 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/10 01:31 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/09 14:01 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/09 12:21 upstream 506357871c18 90058bdc .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/09 03:37 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/09 03:35 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/08 13:26 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/08 11:50 upstream 0066f1b0e275 f3027468 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/09/07 23:53 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/04/15 16:41 upstream 028192fea1de 8bcc32a6 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2022/04/15 13:17 upstream b9b4c79e5830 b17b2923 .config log report info KCSAN: data-race in can_receive / can_receive
ci2-upstream-kcsan-gce 2021/11/25 14:00 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in can_receive / can_receive
* Struck through repros no longer work on HEAD.