syzbot


BUG: unable to handle kernel NULL pointer dereference in vlan_add_rx_filter_info

Status: auto-closed as invalid on 2020/10/14 11:41
Subsystems: net
[Documentation on labels]
First crash: 1663d, last: 1657d

Sample crash report:
bridge23: port 1(syz_tun) entered blocking state
bridge23: port 1(syz_tun) entered disabled state
device syz_tun entered promiscuous mode
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 462a3067 P4D 462a3067 PUD 8940f067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 13209 Comm: syz-executor.2 Not tainted 5.8.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffffc90001526bb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000081 RCX: ffffc9000e1e7000
RDX: 0000000000000001 RSI: 0000000000000081 RDI: ffff888069be0000
RBP: ffff888069be0000 R08: 0000000000000000 R09: ffff888069be0047
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff88c365e0
R13: 0000000000000001 R14: 0000000000000001 R15: ffff888091c58000
FS:  00007f8ce4606700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000045dfa000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vlan_add_rx_filter_info+0x149/0x1d0 net/8021q/vlan_core.c:210
 __vlan_vid_add net/8021q/vlan_core.c:305 [inline]
 vlan_vid_add+0x3ee/0x800 net/8021q/vlan_core.c:335
 __vlan_vid_add net/bridge/br_vlan.c:97 [inline]
 __vlan_add+0x1bcc/0x2aa0 net/bridge/br_vlan.c:249
 nbp_vlan_add+0x21f/0x3c0 net/bridge/br_vlan.c:1224
 nbp_vlan_init+0x372/0x4f0 net/bridge/br_vlan.c:1170
 br_add_if+0xfb6/0x1bb0 net/bridge/br_if.c:676
 do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2476
 do_setlink+0x903/0x35c0 net/core/rtnetlink.c:2611
 __rtnl_newlink+0xc21/0x1730 net/core/rtnetlink.c:3272
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3397
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5460
 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2469
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2352
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2406
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2439
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cba9
Code: Bad RIP value.
RSP: 002b:00007f8ce4605c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000503120 RCX: 000000000045cba9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000007
RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000a5b R14: 00000000004cd48b R15: 00007f8ce46066d4
Modules linked in:
CR2: 0000000000000000
---[ end trace 138a7a00d1b444a5 ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffffc90001526bb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000081 RCX: ffffc9000e1e7000
RDX: 0000000000000001 RSI: 0000000000000081 RDI: ffff888069be0000
RBP: ffff888069be0000 R08: 0000000000000000 R09: ffff888069be0047
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff88c365e0
R13: 0000000000000001 R14: 0000000000000001 R15: ffff888091c58000
FS:  00007f8ce4606700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffef666cb80 CR3: 0000000045dfa000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/10 03:01 net-old 1412bb2b4bb7 bc238812 .config console log report ci-upstream-net-this-kasan-gce
2020/07/16 11:31 linux-next ca0e494af5ed f3bec699 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.