syzbot


general protection fault in j1939_priv_get_by_ndev_locked

Status: auto-obsoleted due to no activity on 2022/09/27 21:13
Reported-by: syzbot+feff46f1778030d14234@syzkaller.appspotmail.com
First crash: 1063d, last: 571d

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_priv_get_by_ndev_locked (log)
Repro: C syz .config

Fix bisection: failed (bisect log)
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/27 19:30 16m upstream OK log
2022/09/27 17:30 16m upstream OK log
2022/09/27 15:30 17m upstream OK log
2022/09/25 08:30 17m upstream OK log
2022/09/14 18:29 15m upstream OK log
2022/09/12 17:27 16m net-next OK log
2022/09/12 01:27 15m net OK log
2022/09/08 23:27 16m upstream OK log
2022/09/04 06:27 15m bpf-next OK log
2022/09/04 02:27 16m bpf-next OK log
2022/09/03 23:27 15m bpf-next OK log
2022/09/03 01:27 16m bpf OK log
2022/09/02 21:27 16m bpf OK log
2020/10/01 03:16 16m anant.thazhemadam@gmail.com https://github.com/google/kmsan.git master OK

Sample crash report:
general protection fault, probably for non-canonical address 0xe000080fe8bc6ced: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000607f45e36768-0x0000607f45e3676f]
CPU: 1 PID: 8500 Comm: syz-executor761 Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:j1939_ndev_to_priv net/can/j1939/main.c:219 [inline]
RIP: 0010:j1939_priv_get_by_ndev_locked+0xff/0x220 net/can/j1939/main.c:231
Code: a0 05 00 00 48 85 db 0f 84 a8 00 00 00 e8 99 6a 90 f9 48 8d bb 28 60 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 01 01 00 00 4c 8b a3 28 60 00 00 4d 85 e4 74 75
RSP: 0018:ffffc9000158fc68 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000607f45e30740 RCX: 0000000000000000
RDX: 00000c0fe8bc6ced RSI: ffffffff87e256b7 RDI: 0000607f45e36768
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000118
R10: ffffffff87e2566f R11: 0000000000000118 R12: 0000000000000118
R13: ffffffff8cc918c0 R14: 0000000000000000 R15: ffffffff8cc5aa00
FS:  0000000000d31880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000001b25a000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 j1939_priv_get_by_ndev net/can/j1939/main.c:243 [inline]
 j1939_netdev_notify+0x41/0x1a0 net/can/j1939/main.c:353
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2040
 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline]
 call_netdevice_notifiers+0x79/0xa0 net/core/dev.c:2066
 __tun_chr_ioctl.isra.0+0x3702/0x4360 drivers/net/tun.c:3093
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl fs/ioctl.c:739 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440359
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc26df8ca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440359
RDX: 0000000000000118 RSI: 00000000400454cd RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b60
R13: 0000000000401bf0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 8039d0b489c3966e ]---
RIP: 0010:j1939_ndev_to_priv net/can/j1939/main.c:219 [inline]
RIP: 0010:j1939_priv_get_by_ndev_locked+0xff/0x220 net/can/j1939/main.c:231
Code: a0 05 00 00 48 85 db 0f 84 a8 00 00 00 e8 99 6a 90 f9 48 8d bb 28 60 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 01 01 00 00 4c 8b a3 28 60 00 00 4d 85 e4 74 75
RSP: 0018:ffffc9000158fc68 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000607f45e30740 RCX: 0000000000000000
RDX: 00000c0fe8bc6ced RSI: ffffffff87e256b7 RDI: 0000607f45e36768
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000118
R10: ffffffff87e2566f R11: 0000000000000118 R12: 0000000000000118
R13: ffffffff8cc918c0 R14: 0000000000000000 R15: ffffffff8cc5aa00
FS:  0000000000d31880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000001b25a000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1395):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/01/27 01:36 upstream 13391c60da33 55a7d4df .config log report syz C general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-kasan-gce-386 2021/02/09 09:02 upstream e0756cfc7d7c 2bd9619f .config log report syz C general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-kasan-gce-root 2019/11/03 16:54 upstream 56cfd2507d3e c9610487 .config log report syz C
ci-upstream-bpf-kasan-gce 2020/12/16 12:50 bpf 3db1a3fa9880 f213e07e .config log report syz C
ci-upstream-bpf-kasan-gce 2019/11/03 00:53 bpf 7de086909365 a41ca8fa .config log report syz C
ci-upstream-bpf-next-kasan-gce 2020/12/16 12:50 bpf-next 3db1a3fa9880 f213e07e .config log report syz C
ci-upstream-bpf-next-kasan-gce 2019/11/03 01:10 bpf-next 358fdb456288 a41ca8fa .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/11/10 16:23 upstream 00aff6836241 dc438b91 .config log report syz
ci-upstream-kasan-gce-root 2019/11/10 11:46 upstream 00aff6836241 dc438b91 .config log report syz
ci-upstream-kasan-gce-root 2019/11/05 17:57 upstream a99d8080aaf3 0f3ec414 .config log report syz
ci-upstream-net-this-kasan-gce 2021/01/07 22:13 net 1f685e6adbbe c104d4a3 .config log report syz
ci-upstream-net-kasan-gce 2021/01/07 22:24 net-next 8209f5bc3b67 c104d4a3 .config log report syz
ci-upstream-bpf-next-kasan-gce 2021/01/07 21:38 bpf-next 482ec343f40a c104d4a3 .config log report syz
ci-upstream-kasan-gce-root 2021/02/19 01:03 upstream f40ddce88593 14052202 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-kasan-gce 2021/02/18 10:26 upstream f40ddce88593 14052202 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-qemu-upstream 2021/02/03 16:47 upstream 3aaf0a27ffc2 624dad51 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-kasan-gce-selinux-root 2021/01/30 03:20 upstream bec4c2968fce fc9fd31e .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/28 21:29 bpf 557c223b643a 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/28 14:31 bpf 557c223b643a 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/28 12:51 bpf 557c223b643a 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/28 09:47 bpf 557c223b643a 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/25 23:36 bpf 557c223b643a 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/25 13:33 bpf 557c223b643a fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-kasan-gce 2021/02/25 02:18 bpf f566aac4e053 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-net-this-kasan-gce 2021/02/14 02:48 net 57baf8cc70ea 98682e5e .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/09 06:52 bpf-next bbb41728e61a 09fbf400 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-net-kasan-gce 2021/03/06 08:08 net-next d310ec03a34e 56722561 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/05 13:42 bpf-next bce8623135fb 9d751681 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/05 12:22 bpf-next bce8623135fb 9d751681 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/05 10:44 bpf-next 86a35af628e5 9d751681 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/05 07:10 bpf-next 86a35af628e5 9d751681 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/04 23:42 bpf-next 86a35af628e5 9d751681 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/04 13:37 bpf-next 303dcc25b5c7 d7e4e604 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/04 00:53 bpf-next 303dcc25b5c7 06ed56cd .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/03 14:45 bpf-next 303dcc25b5c7 e5b64d68 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-net-kasan-gce 2021/03/03 11:13 net-next d310ec03a34e e5b64d68 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/03 09:11 bpf-next 85e142cb42a1 e5b64d68 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/02 03:22 bpf-next 85e142cb42a1 183afb6c .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/01 18:37 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/01 16:29 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/01 09:32 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/03/01 07:40 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/28 07:08 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/28 02:25 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/28 00:26 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/27 23:22 bpf-next 85e142cb42a1 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/27 09:57 bpf-next a7d24d9582f8 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/27 08:16 bpf-next a7d24d9582f8 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/27 03:45 bpf-next a7d24d9582f8 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/27 01:45 bpf-next a7d24d9582f8 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-net-kasan-gce 2021/02/26 19:02 net-next d310ec03a34e 4c37c133 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/26 13:04 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/26 09:09 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/26 07:06 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/26 02:11 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 20:40 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 17:38 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 16:09 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 14:54 bpf-next 9c8f21e6f885 76f7fc95 .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 12:00 bpf-next 9c8f21e6f885 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 09:58 bpf-next 9c8f21e6f885 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 08:14 bpf-next b9fc8b4a5918 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/25 01:08 bpf-next b9fc8b4a5918 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/24 23:58 bpf-next b9fc8b4a5918 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/02/24 20:47 bpf-next b9fc8b4a5918 fcc6d71b .config log report info general protection fault in j1939_priv_get_by_ndev_locked
ci-upstream-bpf-next-kasan-gce 2021/01/17 09:56 bpf-next 232164e041e9 65a7a854 .config log report info
ci-upstream-linux-next-kasan-gce-root 2021/01/15 16:00 linux-next b3a3cbdec55b 65a7a854 .config log report info
* Struck through repros no longer work on HEAD.