syzbot


BUG: unable to handle kernel paging request in __netdev_walk_all_upper_dev

Status: auto-closed as invalid on 2022/02/22 03:27
Subsystems: net
[Documentation on labels]
First crash: 876d, last: 876d

Sample crash report:
device macvtap2027 entered promiscuous mode
8021q: adding VLAN 0 to HW filter on device macvtap2027
BUG: unable to handle page fault for address: fffffffffffffff0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD b88f067 P4D b88f067 PUD b891067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 17543 Comm: syz-executor.5 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__netdev_next_upper_dev net/core/dev.c:7399 [inline]
RIP: 0010:__netdev_walk_all_upper_dev+0xed/0x350 net/core/dev.c:7443
Code: e8 28 c2 4e fa 49 8d 7e f1 48 89 fa 48 89 f9 48 c1 ea 03 83 e1 07 0f b6 14 1a 38 ca 7f 08 84 d2 0f 85 d1 01 00 00 49 8d 7e e8 <45> 0f b6 6e f1 48 89 fa 48 c1 ea 03 80 3c 1a 00 0f 85 ad 01 00 00
RSP: 0018:ffffc9001afe6d00 EFLAGS: 00010246
RAX: 0000000000040000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8728d738 RDI: ffffffffffffffe7
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff8728d832 R11: 0000000000000000 R12: ffff888100000000
R13: ffff8881000000a0 R14: ffffffffffffffff R15: ffff8881000000a0
FS:  00007fbeee1d5700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff0 CR3: 000000018eb6b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __netdev_has_upper_dev+0x95/0x120 net/core/dev.c:7527
 __netdev_upper_dev_link+0x2d6/0x7f0 net/core/dev.c:8122
 netdev_upper_dev_link+0x8a/0xc0 net/core/dev.c:8182
 macvlan_common_newlink+0xf28/0x17f0 drivers/net/macvlan.c:1502
 macvtap_newlink drivers/net/macvtap.c:109 [inline]
 macvtap_newlink+0x190/0x260 drivers/net/macvtap.c:81
 __rtnl_newlink+0x106d/0x1750 net/core/rtnetlink.c:3458
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3506
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5571
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2491
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x86d/0xda0 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492
 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:0x7fbef0c5fae9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbeee1d5188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fbef0d72f60 RCX: 00007fbef0c5fae9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004
RBP: 00007fbef0cb9f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbef12a6b2f R14: 00007fbeee1d5300 R15: 0000000000022000
 </TASK>
Modules linked in:
CR2: fffffffffffffff0
---[ end trace a94f04db7e59662c ]---
RIP: 0010:__netdev_next_upper_dev net/core/dev.c:7399 [inline]
RIP: 0010:__netdev_walk_all_upper_dev+0xed/0x350 net/core/dev.c:7443
Code: e8 28 c2 4e fa 49 8d 7e f1 48 89 fa 48 89 f9 48 c1 ea 03 83 e1 07 0f b6 14 1a 38 ca 7f 08 84 d2 0f 85 d1 01 00 00 49 8d 7e e8 <45> 0f b6 6e f1 48 89 fa 48 c1 ea 03 80 3c 1a 00 0f 85 ad 01 00 00
RSP: 0018:ffffc9001afe6d00 EFLAGS: 00010246
RAX: 0000000000040000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8728d738 RDI: ffffffffffffffe7
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff8728d832 R11: 0000000000000000 R12: ffff888100000000
R13: ffff8881000000a0 R14: ffffffffffffffff R15: ffff8881000000a0
FS:  00007fbeee1d5700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff0 CR3: 000000018eb6b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 28 c2 4e fa       	callq  0xfa4ec22d
   5:	49 8d 7e f1          	lea    -0xf(%r14),%rdi
   9:	48 89 fa             	mov    %rdi,%rdx
   c:	48 89 f9             	mov    %rdi,%rcx
   f:	48 c1 ea 03          	shr    $0x3,%rdx
  13:	83 e1 07             	and    $0x7,%ecx
  16:	0f b6 14 1a          	movzbl (%rdx,%rbx,1),%edx
  1a:	38 ca                	cmp    %cl,%dl
  1c:	7f 08                	jg     0x26
  1e:	84 d2                	test   %dl,%dl
  20:	0f 85 d1 01 00 00    	jne    0x1f7
  26:	49 8d 7e e8          	lea    -0x18(%r14),%rdi
* 2a:	45 0f b6 6e f1       	movzbl -0xf(%r14),%r13d <-- trapping instruction
  2f:	48 89 fa             	mov    %rdi,%rdx
  32:	48 c1 ea 03          	shr    $0x3,%rdx
  36:	80 3c 1a 00          	cmpb   $0x0,(%rdx,%rbx,1)
  3a:	0f 85 ad 01 00 00    	jne    0x1ed

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/24 03:26 upstream 5d9f4cf36721 545ab074 .config console log report info ci-upstream-kasan-gce BUG: unable to handle kernel paging request in __netdev_walk_all_upper_dev
* Struck through repros no longer work on HEAD.