firewire_ohci 0000:00:03.0: invalid MMIO resource Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 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:ar_context_release+0x3f/0x380 drivers/firewire/ohci.c:543 Code: ff df e8 14 bb 72 fa 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 9f ed e1 fa 4c 8b 33 49 83 c6 08 4c 89 f0 48 c1 e8 03 <80> 3c 28 00 74 08 4c 89 f7 e8 83 ed e1 fa 4d 8b 3e 4c 8d 63 48 4d RSP: 0018:ffffc9000dc57a30 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff88803fc4c9c0 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 000000000002cf4f RDI: 000000000002cf50 RBP: dffffc0000000000 R08: ffffffff9057c237 R09: 1ffffffff20af846 R10: dffffc0000000000 R11: ffffffff812dfe80 R12: ffff88803fc4c000 R13: dffffc0000000000 R14: 0000000000000008 R15: ffffc9000dc57ac0 FS: 00007f3a5a05c6c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe0957a020 CR3: 0000000044021000 CR4: 0000000000352ef0 Call Trace: release_ohci+0x3f/0x60 drivers/firewire/ohci.c:3567 release_nodes drivers/base/devres.c:546 [inline] devres_release_all+0x1a8/0x260 drivers/base/devres.c:576 device_unbind_cleanup drivers/base/dd.c:597 [inline] really_probe+0x451/0xae0 drivers/base/dd.c:772 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868 device_driver_attach+0xe0/0x1d0 drivers/base/dd.c:1203 bind_store+0x1d0/0x220 drivers/base/bus.c:267 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3a5919e019 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3a5a05bfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3a59426090 RCX: 00007f3a5919e019 RDX: 000000000000000d RSI: 0000200000000180 RDI: 0000000000000005 RBP: 00007f3a5923500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3a59426128 R14: 00007f3a59426090 R15: 00007ffe09579c28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ar_context_release+0x3f/0x380 drivers/firewire/ohci.c:543 Code: ff df e8 14 bb 72 fa 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 9f ed e1 fa 4c 8b 33 49 83 c6 08 4c 89 f0 48 c1 e8 03 <80> 3c 28 00 74 08 4c 89 f7 e8 83 ed e1 fa 4d 8b 3e 4c 8d 63 48 4d RSP: 0018:ffffc9000dc57a30 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff88803fc4c9c0 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 000000000002cf4f RDI: 000000000002cf50 RBP: dffffc0000000000 R08: ffffffff9057c237 R09: 1ffffffff20af846 R10: dffffc0000000000 R11: ffffffff812dfe80 R12: ffff88803fc4c000 R13: dffffc0000000000 R14: 0000000000000008 R15: ffffc9000dc57ac0 FS: 00007f3a5a05c6c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1b12f47d20 CR3: 0000000044021000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: ff lcall (bad) 1: df e8 fucomip %st(0),%st 3: 14 bb adc $0xbb,%al 5: 72 fa jb 0x1 7: 48 89 d8 mov %rbx,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 9f ed e1 fa call 0xfae1edbb 1c: 4c 8b 33 mov (%rbx),%r14 1f: 49 83 c6 08 add $0x8,%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 f7 mov %r14,%rdi 33: e8 83 ed e1 fa call 0xfae1edbb 38: 4d 8b 3e mov (%r14),%r15 3b: 4c 8d 63 48 lea 0x48(%rbx),%r12 3f: 4d rex.WRB