BUG: kernel NULL pointer dereference, address: 000000000000000c
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: Oops: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 5673 Comm: sshd-session Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:readl arch/x86/include/asm/io.h:59 [inline]
RIP: 0010:handle_ep_small+0x84/0x1ca0 drivers/usb/gadget/udc/net2280.c:2530
Code: 37 fa 48 8d 43 50 48 89 c2 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 28 18 00 00 48 8b 43 50 <44> 8b 68 0c 48 8d 7b 78 44 89 6c 24 20 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffffc900006a0d70 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff88805a3d4928 RCX: ffffffff87d2b586
RDX: 1ffff1100b47a92f RSI: ffffffff87d2965c RDI: ffff88805a3d4928
RBP: ffff88805a3d49a8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000020 R11: 0000000000000000 R12: ffffffffffffff88
R13: 0000000000000040 R14: ffff88805a3d4000 R15: 0000000000000020
FS: 00007f62a8074300(0000) GS:ffff8880d5ed8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000000000c CR3: 00000000272d3000 CR4: 0000000000352ef0
Call Trace:
handle_stat0_irqs drivers/usb/gadget/udc/net2280.c:3341 [inline]
net2280_irq+0x854/0x4ea0 drivers/usb/gadget/udc/net2280.c:3552
__handle_irq_event_percpu+0x232/0x880 kernel/irq/handle.c:209
handle_irq_event_percpu kernel/irq/handle.c:246 [inline]
handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:263
handle_fasteoi_irq+0x323/0xb60 kernel/irq/chip.c:768
generic_handle_irq_desc include/linux/irqdesc.h:188 [inline]
handle_irq arch/x86/kernel/irq.c:209 [inline]
call_irq_handler arch/x86/kernel/irq.c:265 [inline]
__common_interrupt+0xd8/0x2f0 arch/x86/kernel/irq.c:280
common_interrupt+0xb9/0xe0 arch/x86/kernel/irq.c:273
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:665
RIP: 0010:e1000_xmit_frame+0x275c/0x5190 drivers/net/ethernet/intel/e1000/e1000_main.c:3126
Code: c1 ea 03 48 01 c3 48 b8 00 00 00 00 00 fc ff df 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 42 26 00 00 48 8b 44 24 20 8b 40 18 89 03 <31> db e8 bd c9 11 fb 89 d8 48 81 c4 f0 00 00 00 5b 5d 41 5c 41 5d
RSP: 0018:ffffc90005516ef0 EFLAGS: 00000246
RAX: 0000000000000053 RBX: ffffc90006b83818 RCX: ffffffff86f8976d
RDX: 1ffff1100566b023 RSI: ffffffff86f8977a RDI: ffff88802b35812a
RBP: 0000000000000053 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900000ab520
R13: dffffc0000000000 R14: 00000000af100004 R15: ffff88802b09c000
__netdev_start_xmit include/linux/netdevice.h:5400 [inline]
netdev_start_xmit include/linux/netdevice.h:5409 [inline]
xmit_one net/core/dev.c:3889 [inline]
dev_hard_start_xmit+0x121/0x760 net/core/dev.c:3905
sch_direct_xmit+0x1b2/0xc70 net/sched/sch_generic.c:372
__dev_xmit_skb net/core/dev.c:4214 [inline]
__dev_queue_xmit+0x27ac/0x4970 net/core/dev.c:4836
dev_queue_xmit include/linux/netdevice.h:3446 [inline]
neigh_hh_output include/net/neighbour.h:544 [inline]
neigh_output include/net/neighbour.h:558 [inline]
ip_finish_output2+0xf4a/0x2400 net/ipv4/ip_output.c:236
__ip_finish_output.part.0+0x444/0x6f0 net/ipv4/ip_output.c:314
__ip_finish_output net/ipv4/ip_output.c:302 [inline]
ip_finish_output net/ipv4/ip_output.c:324 [inline]
NF_HOOK_COND include/linux/netfilter.h:307 [inline]
ip_output+0x39b/0xc10 net/ipv4/ip_output.c:437
dst_output include/net/dst.h:470 [inline]
ip_local_out+0x193/0x1f0 net/ipv4/ip_output.c:131
__ip_queue_xmit+0x885/0x1e90 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x3506/0x4f20 net/ipv4/tcp_output.c:1716
tcp_transmit_skb net/ipv4/tcp_output.c:1734 [inline]
tcp_write_xmit+0x1130/0x8470 net/ipv4/tcp_output.c:3062
tcp_sendmsg_locked+0x2c8c/0x44d0 net/ipv4/tcp.c:1394
tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1451
inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:865
sock_sendmsg_nosec net/socket.c:775 [inline]
__sock_sendmsg net/socket.c:790 [inline]
sock_write_iter+0x4ea/0x5b0 net/socket.c:1241
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6ac/0x1050 fs/read_write.c:687
ksys_write+0x1f8/0x250 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f62a78a7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffc80a6aa60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f62a8074300 RCX: 00007f62a78a7407
RDX: 0000000000008024 RSI: 00007f62a7fe7010 RDI: 0000000000000004
RBP: 0000559757e33be0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001
R13: 00007ffc80a6abb0 R14: 0000000000000000 R15: 0000000000000004
Modules linked in:
CR2: 000000000000000c
---[ end trace 0000000000000000 ]---
RIP: 0010:readl arch/x86/include/asm/io.h:59 [inline]
RIP: 0010:handle_ep_small+0x84/0x1ca0 drivers/usb/gadget/udc/net2280.c:2530
Code: 37 fa 48 8d 43 50 48 89 c2 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 28 18 00 00 48 8b 43 50 <44> 8b 68 0c 48 8d 7b 78 44 89 6c 24 20 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffffc900006a0d70 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff88805a3d4928 RCX: ffffffff87d2b586
RDX: 1ffff1100b47a92f RSI: ffffffff87d2965c RDI: ffff88805a3d4928
RBP: ffff88805a3d49a8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000020 R11: 0000000000000000 R12: ffffffffffffff88
R13: 0000000000000040 R14: ffff88805a3d4000 R15: 0000000000000020
FS: 00007f62a8074300(0000) GS:ffff8880d5ed8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000000000c CR3: 00000000272d3000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess), 1 bytes skipped:
0: fa cli
1: 48 8d 43 50 lea 0x50(%rbx),%rax
5: 48 89 c2 mov %rax,%rdx
8: 48 89 44 24 18 mov %rax,0x18(%rsp)
d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
14: fc ff df
17: 48 c1 ea 03 shr $0x3,%rdx
1b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
1f: 0f 85 28 18 00 00 jne 0x184d
25: 48 8b 43 50 mov 0x50(%rbx),%rax
* 29: 44 8b 68 0c mov 0xc(%rax),%r13d <-- trapping instruction
2d: 48 8d 7b 78 lea 0x78(%rbx),%rdi
31: 44 89 6c 24 20 mov %r13d,0x20(%rsp)
36: 48 rex.W
37: b8 00 00 00 00 mov $0x0,%eax
3c: 00 fc add %bh,%ah
3e: ff .byte 0xff