ioremap: invalid physical address 8000000000000000 ------------[ cut here ]------------ 1 WARNING: arch/x86/mm/ioremap.c:206 at __ioremap_caller.isra.0.cold+0x59/0xa4 arch/x86/mm/ioremap.c:206, CPU#3: syz.2.1160/9423 Modules linked in: CPU: 3 UID: 0 PID: 9423 Comm: syz.2.1160 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:__ioremap_caller.isra.0.cold+0x59/0xa4 arch/x86/mm/ioremap.c:206 Code: 48 8b 34 24 48 c7 c7 00 2e 0c 8c e8 4a 22 01 00 e9 db 24 9b 00 e8 f0 f1 ec 00 4c 89 ee 48 c7 c7 60 2c 0c 8c e8 31 22 01 00 90 <0f> 0b 90 e9 bb 24 9b 00 e8 d3 f1 ec 00 41 0f b6 d7 4c 89 ee 48 c7 RSP: 0018:ffffc90004b7f8d8 EFLAGS: 00010282 RAX: 0000000000000032 RBX: 1ffff9200096ff1f RCX: 0000000000000000 RDX: 0000000000000032 RSI: ffffffff81ebf219 RDI: fffff5200096ff0c RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff8fef6e6b R11: 0000000000000001 R12: 8000000000000fff R13: 8000000000000000 R14: 0000000000000002 R15: 0000000000020000 FS: 00007f735225a6c0(0000) GS:ffff8880d477d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7352259ff8 CR3: 000000002def8000 CR4: 0000000000352ef0 DR0: 000000000000000c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: phram_map drivers/mtd/devices/phram.c:92 [inline] register_device+0x1bb/0x6a0 drivers/mtd/devices/phram.c:139 phram_setup+0x3b1/0x4c0 drivers/mtd/devices/phram.c:324 phram_param_call+0xa6/0xd0 drivers/mtd/devices/phram.c:349 param_attr_store+0x199/0x300 kernel/params.c:591 module_attr_store+0x58/0x80 kernel/params.c:906 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6af/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f735139f559 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:00007f735225a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7351625fa0 RCX: 00007f735139f559 RDX: 000000000000001e RSI: 00002000000005c0 RDI: 0000000000000009 RBP: 00007f7351436b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7351626038 R14: 00007f7351625fa0 R15: 00007ffd5e96ae88 irq event stamp: 1497 hardirqs last enabled at (1501): [] class_irqsave_destructor include/linux/irqflags.h:266 [inline] hardirqs last enabled at (1501): [] __nbcon_atomic_flush_pending_con+0x293/0x440 kernel/printk/nbcon.c:1583 hardirqs last disabled at (1523): [] handle_softirqs+0x77c/0xa20 kernel/softirq.c:684 softirqs last enabled at (1524): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (1524): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (1524): [] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 softirqs last disabled at (1507): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (1507): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (1507): [] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 ---[ end trace 0000000000000000 ]--- phram: ioremap failed