syzbot


BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit

Status: closed as invalid on 2021/09/02 23:36
Subsystems: net
[Documentation on labels]
First crash: 1000d, last: 998d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit 0fd75f5760b6a7a7f35dff46a6cdc4f6d1a86ee8
Author: Alex Elder <elder@linaro.org>
Date: Wed Aug 4 13:54:07 2021 +0000

  net: ipa: fix IPA v4.9 interconnects

Crash: BUG: sleeping function called from invalid context in lock_sock_nested (log)
Repro: C syz .config
  

Sample crash report:
netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 17614067 P4D 17614067 PUD 20fd2067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8451 Comm: syz-executor815 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc9000112f560 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc9000112f678 RCX: 0000000000000000
RDX: ffff8880153c0000 RSI: 0000000000000001 RDI: ffff888145f0f010
RBP: ffff888145f0f010 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff87306778 R11: 0000000000000000 R12: ffff8880281b3000
R13: 1ffff92000225eb0 R14: ffffc9000112f698 R15: 0000000000000001
FS:  0000000001a4a300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000001c312000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 devlink_port_type_set net/core/devlink.c:1283 [inline]
 devlink_nl_cmd_port_set_doit+0x1e3/0xaf0 net/core/devlink.c:1387
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2403
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2457
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2486
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x443269
Code: 28 c3 e8 4a 15 00 00 66 2e 0f 1f 84 00 00 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd82578d78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffd82578d88 RCX: 0000000000443269
RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd82578d90
R13: 00007ffd82578db0 R14: 00000000004b8018 R15: 00000000004004b8
Modules linked in:
CR2: 0000000000000000
---[ end trace 0cf7ab3e0b48b4be ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc9000112f560 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffc9000112f678 RCX: 0000000000000000
RDX: ffff8880153c0000 RSI: 0000000000000001 RDI: ffff888145f0f010
RBP: ffff888145f0f010 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff87306778 R11: 0000000000000000 R12: ffff8880281b3000
R13: 1ffff92000225eb0 R14: ffffc9000112f698 R15: 0000000000000001
FS:  0000000001a4a300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000001c312000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/08 15:29 net-next-old 82564f6c706a 6972b106 .config console log report syz C ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/09 19:42 net-next-old cfe908c11659 6972b106 .config console log report info ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/09 15:49 net-next-old cfe908c11659 6972b106 .config console log report info ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/08 20:59 net-next-old 82564f6c706a 6972b106 .config console log report info ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/08 14:56 net-next-old 82564f6c706a 6972b106 .config console log report info ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/08 14:51 net-next-old 82564f6c706a 6972b106 .config console log report info ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/08 14:21 net-next-old 82564f6c706a 6972b106 .config console log report info ci-upstream-net-kasan-gce BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
2021/08/10 09:06 linux-next da454ebf578f 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel NULL pointer dereference in devlink_nl_cmd_port_set_doit
* Struck through repros no longer work on HEAD.