syzbot


general protection fault in j1939_jsk_del

Status: fixed on 2019/11/29 15:48
Reported-by: syzbot+6d04f6a1b31a0ae12ca9@syzkaller.appspotmail.com
Fix commit: fd81ebfe7975 can: j1939: socket: rework socket locking for j1939_sk_release() and j1939_sk_sendmsg()
First crash: 1620d, last: 1596d
Cause bisection: introduced by (bisect log) :
commit 9d71dd0c70099914fcd063135da3c580865e924c
Author: The j1939 authors <linux-can@vger.kernel.org>
Date: Mon Oct 8 09:48:36 2018 +0000

  can: add support of SAE J1939 protocol

Crash: general protection fault in j1939_jsk_del (log)
Repro: syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v1 0/9] can: j1939: fix multiple issues found by syzbot 16 (16) 2019/11/13 10:04
[PATCH 4/9] can: j1939: socket: rework socket locking for j1939_sk_release() and j1939_sk_sendmsg() 1 (1) 2019/11/13 09:55
general protection fault in j1939_jsk_del 0 (2) 2019/11/06 20:45
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in j1939_jsk_del (2) can syz 21 1578d 1595d 15/26 fixed on 2020/02/14 01:19

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9711 Comm: syz-executor.0 Not tainted 5.4.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3828
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e e0 a5 06 8a 0f 84 5f ee ff
RSP: 0018:ffff888091f2fb48 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000218 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff888091f2fc60 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff138cf08 R11: ffff888097808580 R12: 00000000000010c0
R13: 0000000000000000 R14: 00000000000010c0 R15: 0000000000000000
FS:  00007efc67066700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000095a71000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:343 [inline]
 j1939_jsk_del+0x32/0x240 net/can/j1939/socket.c:90
 j1939_sk_bind+0x2e2/0x8e0 net/can/j1939/socket.c:421
 __sys_bind+0x239/0x290 net/socket.c:1647
 __do_sys_bind net/socket.c:1658 [inline]
 __se_sys_bind net/socket.c:1656 [inline]
 __x64_sys_bind+0x73/0xb0 net/socket.c:1656
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45a669
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007efc67065c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a669
RDX: 0000000000000018 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007efc670666d4
R13: 00000000004c09e9 R14: 00000000004d30d0 R15: 00000000ffffffff
Modules linked in:
---[ end trace 61eab231ff51d9bd ]---
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3828
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e e0 a5 06 8a 0f 84 5f ee ff
RSP: 0018:ffff888091f2fb48 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000218 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff888091f2fc60 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff138cf08 R11: ffff888097808580 R12: 00000000000010c0
R13: 0000000000000000 R14: 00000000000010c0 R15: 0000000000000000
FS:  00007efc67066700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000095a71000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (132):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/16 04:31 upstream eb70e26cd79d cdac920b .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/14 07:44 upstream bf9294798930 048f2d49 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 22:34 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 22:13 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 21:53 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 19:50 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 19:31 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 19:11 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 18:51 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/10 17:37 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-root
2019/11/10 08:01 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce
2019/11/10 08:01 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-root
2019/11/09 02:40 upstream 6737e7634951 dc438b91 .config console log report syz ci-upstream-kasan-gce
2019/11/06 00:48 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/06 00:29 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/06 00:09 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/05 23:29 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/05 23:10 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/05 20:56 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/05 20:38 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce-root
2019/11/05 17:46 upstream a99d8080aaf3 0f3ec414 .config console log report syz ci-upstream-kasan-gce
2019/11/05 03:40 upstream a99d8080aaf3 76630fc9 .config console log report syz ci-upstream-kasan-gce-root
2019/11/10 18:56 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-386
2019/11/10 12:07 upstream 00aff6836241 dc438b91 .config console log report syz ci-upstream-kasan-gce-386
2019/11/07 03:05 upstream 26bc67213424 da505f84 .config console log report syz ci-upstream-kasan-gce-386
2019/11/07 02:43 upstream 26bc67213424 da505f84 .config console log report syz ci-upstream-kasan-gce-386
2019/11/07 02:05 upstream 26bc67213424 da505f84 .config console log report syz ci-upstream-kasan-gce-386
2019/11/07 01:43 upstream 26bc67213424 da505f84 .config console log report syz ci-upstream-kasan-gce-386
2019/11/07 01:20 upstream 26bc67213424 da505f84 .config console log report syz ci-upstream-kasan-gce-386
2019/11/07 00:57 upstream 26bc67213424 da505f84 .config console log report syz ci-upstream-kasan-gce-386
2019/11/10 08:06 net-old dd3d792def0d dc438b91 .config console log report syz ci-upstream-net-this-kasan-gce
2019/11/09 03:17 net-old 1b53d64435d5 dc438b91 .config console log report syz ci-upstream-net-this-kasan-gce
2019/11/10 07:58 net-next-old 14684b93019a dc438b91 .config console log report syz ci-upstream-net-kasan-gce
2019/11/09 03:05 net-next-old a0c76345e3d3 dc438b91 .config console log report syz ci-upstream-net-kasan-gce
2019/11/29 04:06 linux-next d26b0e226f22 76357d6f .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/28 18:04 linux-next d26b0e226f22 46869e3e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 07:15 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 06:36 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 06:08 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 05:34 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 05:07 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 04:47 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/25 04:20 linux-next b9d3d0140506 598ca6c8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/11/26 19:44 upstream be2eca94d144 1048481f .config console log report ci-upstream-kasan-gce-root
2019/11/26 08:33 upstream 0be0ee71816b f746151a .config console log report ci-upstream-kasan-gce-selinux-root
2019/11/25 05:44 upstream 219d54332a09 598ca6c8 .config console log report ci-upstream-kasan-gce-selinux-root
2019/11/25 04:19 upstream 219d54332a09 598ca6c8 .config console log report ci-upstream-kasan-gce-selinux-root
2019/11/22 16:27 upstream 81429eb8d9ca 598ca6c8 .config console log report ci-upstream-kasan-gce
2019/11/20 22:57 upstream c74386d50fba 8098ea0f .config console log report ci-upstream-kasan-gce-root
2019/11/18 12:32 upstream af42d3466bdc 1daed50a .config console log report ci-upstream-kasan-gce
2019/11/15 22:08 upstream eb70e26cd79d cdac920b .config console log report ci-upstream-kasan-gce-root
2019/11/15 17:28 upstream 96b95eff4a59 cdac920b .config console log report ci-upstream-kasan-gce-root
2019/11/10 13:39 upstream 00aff6836241 dc438b91 .config console log report ci-upstream-kasan-gce-selinux-root
2019/11/09 15:30 upstream 0058b0a506e4 dc438b91 .config console log report ci-upstream-kasan-gce-root
2019/11/07 22:53 upstream 847120f859cc f39aff9e .config console log report ci-upstream-kasan-gce-root
2019/11/07 07:50 upstream 4dd58158254c d797d201 .config console log report ci-upstream-kasan-gce-root
2019/11/06 03:29 upstream 26bc67213424 bc2c6e45 .config console log report ci-upstream-kasan-gce-root
2019/11/25 21:08 upstream 219d54332a09 371caf77 .config console log report ci-upstream-kasan-gce-386
2019/11/25 00:03 upstream 6b8a79467876 598ca6c8 .config console log report ci-upstream-kasan-gce-386
2019/11/22 14:39 upstream 81429eb8d9ca 598ca6c8 .config console log report ci-upstream-kasan-gce-386
2019/11/11 01:31 upstream 9805a68371ce dc438b91 .config console log report ci-upstream-kasan-gce-386
2019/11/08 20:18 upstream 6737e7634951 1e35461e .config console log report ci-upstream-kasan-gce-386
2019/11/27 10:49 net-old a95069ecb709 1048481f .config console log report ci-upstream-net-this-kasan-gce
2019/11/25 11:14 net-old 312434617cb1 371caf77 .config console log report ci-upstream-net-this-kasan-gce
2019/11/18 00:51 net-old 1d4c79ed324a d5696d51 .config console log report ci-upstream-net-this-kasan-gce
2019/11/16 13:31 net-old 3df70afe8d33 d5696d51 .config console log report ci-upstream-net-this-kasan-gce
2019/11/08 08:50 net-old e0a312629fef 1e35461e .config console log report ci-upstream-net-this-kasan-gce
2019/11/07 21:05 net-old 99a8efbb6e30 f39aff9e .config console log report ci-upstream-net-this-kasan-gce
2019/11/07 05:13 net-old 98f3375505b8 d797d201 .config console log report ci-upstream-net-this-kasan-gce
2019/11/06 17:37 net-old 2836654a2735 da505f84 .config console log report ci-upstream-net-this-kasan-gce
2019/11/06 06:45 net-old fc564e09237f bc2c6e45 .config console log report ci-upstream-net-this-kasan-gce
2019/11/06 01:10 net-old fc564e09237f 0f3ec414 .config console log report ci-upstream-net-this-kasan-gce
2019/11/26 12:48 net-next-old adf6f8cb3f4c f746151a .config console log report ci-upstream-net-kasan-gce
2019/11/24 17:47 net-next-old 6f3aeb1ba05d 598ca6c8 .config console log report ci-upstream-net-kasan-gce
2019/11/22 20:33 net-next-old 13baf667fa8e 598ca6c8 .config console log report ci-upstream-net-kasan-gce
2019/11/20 18:01 net-next-old 272630feb4c0 f4b7ed07 .config console log report ci-upstream-net-kasan-gce
2019/11/19 03:04 net-next-old c4154cffa390 5bc70212 .config console log report ci-upstream-net-kasan-gce
2019/11/18 23:37 net-next-old 19b7e21c55c8 1daed50a .config console log report ci-upstream-net-kasan-gce
2019/11/17 05:04 net-next-old 1e8795b1b20d d5696d51 .config console log report ci-upstream-net-kasan-gce
2019/11/15 13:15 net-next-old a98cdaf73e32 79248ee8 .config console log report ci-upstream-net-kasan-gce
2019/11/14 04:48 net-next-old 90bc72b13c08 048f2d49 .config console log report ci-upstream-net-kasan-gce
2019/11/13 03:37 net-next-old e0580b50d9d4 048f2d49 .config console log report ci-upstream-net-kasan-gce
2019/11/11 18:01 net-next-old 7941af9b38fa 048f2d49 .config console log report ci-upstream-net-kasan-gce
2019/11/10 21:14 net-next-old 7941af9b38fa dc438b91 .config console log report ci-upstream-net-kasan-gce
2019/11/06 20:56 net-next-old fb90ab6ba93c da505f84 .config console log report ci-upstream-net-kasan-gce
2019/11/05 19:37 net-next-old 56c1291ee48b 0f3ec414 .config console log report ci-upstream-net-kasan-gce
2019/11/24 06:13 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/07 09:52 linux-next c68c5373c504 d797d201 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 12:35 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.