Unable to handle kernel NULL pointer dereference at virtual address 00000000000006f8 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0 user pgtable: 4k pages, 52-bit VAs, pgdp=000000004e1e6e80 [00000000000006f8] pgd=08000000479ed403, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 8494 Comm: udevd Tainted: G W L syzkaller #0 PREEMPT Tainted: [W]=WARN, [L]=SOFTLOCKUP Hardware name: linux,dummy-virt (DT) pstate: 604020c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : f_midi2_free_ep_reqs+0x1c/0xb4 drivers/usb/gadget/function/f_midi2.c:1166 lr : f_midi2_stop_eps drivers/usb/gadget/function/f_midi2.c:1246 [inline] lr : f_midi2_set_alt+0x9c/0x194 drivers/usb/gadget/function/f_midi2.c:1296 sp : ffff800082f83c60 x29: ffff800082f83c60 x28: fcf000000638fe40 x27: 0000000000000000 x26: 0000000000000001 x25: fdf0000005d44bc8 x24: f8f0000008bb2590 x23: 0000000000000000 x22: 0000000000000003 x21: f5f0000014718128 x20: f5f0000014718000 x19: f5f00000147180f0 x18: 0000000000000001 x17: fff07ffffcd20000 x16: ffff800082f80000 x15: 0000000000000000 x14: f0f000001180b380 x13: 00000000000001e4 x12: 0000000000000000 x11: 00000000000000c0 x10: fbf00000050e2a48 x9 : 0000000000000080 x8 : f9f0000005e3397c x7 : 000000000000001f x6 : 000000000000003c x5 : ffff800082f83bc0 x4 : f1f0000003711000 x3 : faf000000982f200 x2 : 0000000000000000 x1 : 0000000000000000 x0 : f5f0000014718128 Call trace: f_midi2_free_ep_reqs+0x1c/0xb4 drivers/usb/gadget/function/f_midi2.c:1163 (P) f_midi2_stop_eps drivers/usb/gadget/function/f_midi2.c:1246 [inline] f_midi2_set_alt+0x9c/0x194 drivers/usb/gadget/function/f_midi2.c:1296 composite_setup+0x5f0/0x1a70 drivers/usb/gadget/composite.c:1933 configfs_composite_setup+0x80/0xac drivers/usb/gadget/configfs.c:1877 dummy_timer+0xb68/0xf90 drivers/usb/gadget/udc/dummy_hcd.c:1951 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x100/0x170 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x6c/0xac kernel/time/hrtimer.c:2141 handle_softirqs+0x100/0x248 kernel/softirq.c:645 __do_softirq+0x14/0x20 kernel/softirq.c:679 ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:885 do_softirq_own_stack+0x1c/0x40 arch/arm64/kernel/irq.c:83 invoke_softirq kernel/softirq.c:526 [inline] __irq_exit_rcu+0xe8/0x120 kernel/softirq.c:767 irq_exit_rcu+0x10/0x20 kernel/softirq.c:784 __el1_irq arch/arm64/kernel/entry-common.c:531 [inline] el1_interrupt+0x40/0x60 arch/arm64/kernel/entry-common.c:543 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:548 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:586 __daif_local_irq_enable arch/arm64/include/asm/irqflags.h:26 [inline] (P) arch_local_irq_enable arch/arm64/include/asm/irqflags.h:48 [inline] (P) raw_spin_rq_unlock_irq kernel/sched/sched.h:1698 [inline] (P) finish_lock_switch kernel/sched/core.c:5251 [inline] (P) finish_task_switch.isra.0+0x90/0x2fc kernel/sched/core.c:5369 (P) context_switch kernel/sched/core.c:5523 [inline] __schedule+0x404/0xdc8 kernel/sched/core.c:7270 preempt_schedule_irq+0x3c/0x98 kernel/sched/core.c:7592 raw_irqentry_exit_cond_resched kernel/entry/common.c:145 [inline] raw_irqentry_exit_cond_resched+0x2c/0x40 kernel/entry/common.c:137 irqentry_exit_to_kernel_mode_preempt include/linux/irq-entry-common.h:468 [inline] arm64_exit_to_kernel_mode_preempt+0x34/0x4c arch/arm64/kernel/entry-common.c:69 __el1_irq arch/arm64/kernel/entry-common.c:533 [inline] el1_interrupt+0x4c/0x60 arch/arm64/kernel/entry-common.c:543 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:548 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:586 __preempt_count_dec_and_test arch/arm64/include/asm/preempt.h:93 [inline] (P) alloc_from_pcs mm/slub.c:4872 [inline] (P) slab_alloc_node mm/slub.c:4984 [inline] (P) __kmalloc_cache_noprof+0x10c/0x470 mm/slub.c:5559 (P) _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] smk_fetch security/smack/smack_lsm.c:294 [inline] smk_fetch+0x58/0xc8 security/smack/smack_lsm.c:284 smack_d_instantiate+0x224/0x360 security/smack/smack_lsm.c:3679 security_d_instantiate+0x14c/0x164 security/security.c:3703 d_splice_alias_ops+0x44/0x3b0 fs/dcache.c:3249 d_splice_alias+0x14/0x20 fs/dcache.c:3320 kernfs_iop_lookup+0xc0/0xf0 fs/kernfs/dir.c:1288 __lookup_slow+0x68/0x128 fs/namei.c:1919 lookup_slow+0x40/0x68 fs/namei.c:1936 walk_component fs/namei.c:2282 [inline] lookup_last fs/namei.c:2789 [inline] path_lookupat+0x190/0x294 fs/namei.c:2813 filename_lookup+0xbc/0x1c4 fs/namei.c:2842 do_readlinkat+0x70/0x168 fs/stat.c:571 __do_sys_readlinkat fs/stat.c:599 [inline] __se_sys_readlinkat fs/stat.c:596 [inline] __arm64_sys_readlinkat+0x1c/0x34 fs/stat.c:596 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x54/0x10c arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:121 do_el0_svc+0x1c/0x34 arch/arm64/kernel/syscall.c:140 el0_svc+0x38/0x1fc arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x1a4/0x1a8 arch/arm64/kernel/entry.S:590 Code: a9025bf5 aa0003f5 a90363f7 f9400017 (b946fae0) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: a9025bf5 stp x21, x22, [sp, #32] 4: aa0003f5 mov x21, x0 8: a90363f7 stp x23, x24, [sp, #48] c: f9400017 ldr x23, [x0] * 10: b946fae0 ldr w0, [x23, #1784] <-- trapping instruction