syzbot


BUG: receive list entry not found for dev vcan0, id 002, mask C00007FF

Status: fixed on 2021/03/10 01:48
Subsystems: can
[Documentation on labels]
Fix commit: d73ff9b7c4ea can: af_can: can_rx_unregister(): remove WARN() statement from list operation sanity check
First crash: 1209d, last: 1209d
Cause bisection: introduced by (bisect log) [merge commit]:
commit c4cf498dc0241fa2d758dba177634268446afb06
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Fri Oct 16 18:31:55 2020 +0000

  Merge branch 'akpm' (patches from Andrew)

Crash: BUG: receive list entry not found for dev vcan0, id 002, mask C00007FF (log)
Repro: C syz .config
  

Sample crash report:
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443fc9
RDX: 0000000000000018 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000001bbbbbb
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
BUG: receive list entry not found for dev vcan0, id 002, mask C00007FF
WARNING: CPU: 1 PID: 8690 at net/can/af_can.c:546 can_rx_unregister+0x5a4/0x700 net/can/af_can.c:546
Modules linked in:
CPU: 1 PID: 8690 Comm: syz-executor298 Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:can_rx_unregister+0x5a4/0x700 net/can/af_can.c:546
Code: 8b 7c 24 78 44 8b 64 24 68 49 c7 c5 e0 de 56 8a e8 e1 d5 95 f9 44 89 f9 44 89 e2 4c 89 ee 48 c7 c7 20 df 56 8a e8 36 79 d3 00 <0f> 0b 48 8b 7c 24 28 e8 d0 eb 0e 01 e9 54 fb ff ff e8 f6 dd d7 f9
RSP: 0018:ffffc90001d1fb38 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880291a1a40 RSI: ffffffff8158f3c5 RDI: fffff520003a3f59
RBP: 0000000000000118 R08: 0000000000000001 R09: ffff8880b9f30627
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002
R13: ffff888029f80000 R14: 1ffff920003a3f6e R15: 00000000c00007ff
FS:  0000000001119880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe48cfa56c0 CR3: 00000000123ae000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 isotp_notifier+0x2a7/0x540 net/can/isotp.c:1303
 call_netdevice_notifier net/core/dev.c:1735 [inline]
 call_netdevice_unregister_notifiers+0x156/0x1c0 net/core/dev.c:1763
 call_netdevice_unregister_net_notifiers net/core/dev.c:1791 [inline]
 unregister_netdevice_notifier+0xcd/0x170 net/core/dev.c:1870
 isotp_release+0x136/0x600 net/can/isotp.c:1011
 __sock_release+0xcd/0x280 net/socket.c:596
 sock_close+0x18/0x20 net/socket.c:1255
 __fput+0x285/0x920 fs/file_table.c:281
 task_work_run+0xdd/0x190 kernel/task_work.c:151
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:164 [inline]
 exit_to_user_mode_prepare+0x17e/0x1a0 kernel/entry/common.c:191
 syscall_exit_to_user_mode+0x38/0x260 kernel/entry/common.c:266
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x403a50
Code: 01 f0 ff ff 0f 83 40 0d 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 3d ad 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0d 00 00 c3 48 83 ec 08 e8 7a 02 00 00
RSP: 002b:00007ffff6e06ab8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000403a50
RDX: 0000000000000018 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000001bbbbbb
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/25 23:18 net-next-old 062547380d1f 2f1cec62 .config console log report syz C ci-upstream-net-kasan-gce
2020/11/26 03:33 upstream fa02fcd94b0c 2f1cec62 .config console log report info ci-upstream-kasan-gce
2020/11/26 03:28 net-old 90cf87d16bd5 2f1cec62 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/26 03:12 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 22:36 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.