program: r0 = openat$tun(0xffffffffffffff9c, &(0x7f0000000200), 0x2, 0x0) r1 = openat$tun(0xffffffffffffff9c, 0x0, 0x0, 0x0) ioctl$TUNSETIFF(r1, 0x400454ca, 0x0) close(0xffffffffffffffff) socketpair(0x1, 0x6, 0x0, &(0x7f0000000bc0)) ioctl$SIOCSIFHWADDR(0xffffffffffffffff, 0x8922, &(0x7f0000000c40)={'syzkaller0\x00', @random="2b0100004ec6"}) openat$tun(0xffffffffffffff9c, 0x0, 0x0, 0x0) close(r0) socket$netlink(0x10, 0x3, 0x0) socket$packet(0x11, 0x2, 0x300) mkdirat(0xffffffffffffff9c, &(0x7f0000000240)='./proc\x00', 0x1ff) openat(0xffffffffffffff9c, &(0x7f0000000380)='./proc/sys/kernel/printk\x00', 0x1, 0x0) r2 = openat(0xffffffffffffff9c, &(0x7f0000000500)='./proc/sys/kernel/panic_on_warn\x00', 0x1, 0x0) write(r2, &(0x7f0000000540)='0\n\x00', 0x2) mkdirat(0xffffffffffffff9c, &(0x7f0000000580)='./sys\x00', 0x1ff) mount(0x0, &(0x7f00000005c0)='./sys\x00', &(0x7f0000000600)='sysfs\x00', 0x0, 0x0) r3 = openat(0xffffffffffffff9c, &(0x7f0000000680)='./sys/module/phram/parameters/phram\x00', 0x1, 0x0) write(r3, &(0x7f00000006c0)='test,0x8000000000000000,0x1000\x00', 0x1e) [ 134.023527][ T4665] Bluetooth: hci0: command tx timeout [ 134.185479][ T5352] ioremap: invalid physical address 8000000000000000 [ 134.185608][ T5352] ------------[ cut here ]------------ [ 134.185616][ T5352] 1 [ 134.185621][ T5352] WARNING: arch/x86/mm/ioremap.c:206 at __ioremap_caller+0x51e/0x620, CPU#0: syz.0.0/5352 [ 134.198405][ T5352] Modules linked in: [ 134.200339][ T5352] CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 134.204555][ T5352] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 134.209115][ T5352] RIP: 0010:__ioremap_caller+0x51e/0x620 [ 134.211721][ T5352] Code: 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d e9 0a 08 95 0a cc e8 b4 56 4f 00 48 8b 74 24 60 48 c7 c7 a0 0c 2a 8c e8 f3 cc ad ff 90 <0f> 0b 90 e9 49 fd ff ff 4c 8b 74 24 28 41 81 e6 ff 0f 00 00 4d 01 [ 134.220367][ T5352] RSP: 0018:ffffc9000e53f880 EFLAGS: 00010246 [ 134.224236][ T5352] RAX: 0000000000000032 RBX: 1ffff92001ca7f00 RCX: 5c7bcc9b23ada200 [ 134.227951][ T5352] RDX: ffffc9000efa2000 RSI: 00000000000002fc RDI: 00000000000002fd [ 134.231604][ T5352] RBP: ffffc9000e53f990 R08: ffffc9000e53f607 R09: 1ffff92001ca7ec0 [ 134.235557][ T5352] R10: dffffc0000000000 R11: fffff52001ca7ec1 R12: 0000000000020000 [ 134.239069][ T5352] R13: 000000000000002e R14: 8000000000000fff R15: dffffc0000000000 [ 134.242941][ T5352] FS: 00007f6500fe26c0(0000) GS:ffff88808a9ea000(0000) knlGS:0000000000000000 [ 134.246956][ T5352] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 134.250136][ T5352] CR2: 000055b18fcff668 CR3: 000000000c1a3000 CR4: 0000000000352ef0 [ 134.253860][ T5352] Call Trace: [ 134.255408][ T5352] [ 134.256767][ T5352] ? register_device+0x12c/0x570 [ 134.258952][ T5352] ? __pfx___ioremap_caller+0x10/0x10 [ 134.261250][ T5352] ? __kasan_kmalloc+0x93/0xb0 [ 134.263433][ T5352] ? __kmalloc_cache_noprof+0x31c/0x600 [ 134.265771][ T5352] ? __kmalloc_cache_noprof+0x148/0x600 [ 134.268116][ T5352] ? register_device+0xc6/0x570 [ 134.270203][ T5352] ? register_device+0xc6/0x570 [ 134.272199][ T5352] register_device+0x12c/0x570 [ 134.274399][ T5352] phram_setup+0x412/0x620 [ 134.276438][ T5352] ? __pfx_phram_setup+0x10/0x10 [ 134.278593][ T5352] ? __pfx___mutex_lock+0x10/0x10 [ 134.281088][ T5352] ? sysfs_file_kobj+0x1a/0x230 [ 134.283418][ T5352] param_attr_store+0x214/0x310 [ 134.285566][ T5352] ? __pfx_param_attr_store+0x10/0x10 [ 134.287992][ T5352] ? __pfx_sysfs_kf_write+0x10/0x10 [ 134.290496][ T5352] module_attr_store+0x65/0x90 [ 134.292824][ T5352] kernfs_fop_write_iter+0x3a4/0x540 [ 134.295265][ T5352] vfs_write+0x612/0xba0 [ 134.297193][ T5352] ? __pfx_vfs_write+0x10/0x10 [ 134.299294][ T5352] ? __fget_files+0x3a2/0x420 [ 134.301394][ T5352] ? __fget_files+0x2a/0x420 [ 134.303537][ T5352] ? fdget+0x1ac/0x250 [ 134.305227][ T5352] ksys_write+0x150/0x270 [ 134.307028][ T5352] ? __pfx_ksys_write+0x10/0x10 [ 134.309117][ T5352] do_syscall_64+0x171/0x540 [ 134.311205][ T5352] ? trace_irq_disable+0x3b/0x140 [ 134.313624][ T5352] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 134.316373][ T5352] ? clear_bhb_loop+0x70/0xc0 [ 134.318803][ T5352] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 134.321541][ T5352] RIP: 0033:0x7f65001a9559 [ 134.323586][ T5352] 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 [ 134.331246][ T5352] RSP: 002b:00007f6500fe1fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 134.335114][ T5352] RAX: ffffffffffffffda RBX: 00007f6500425fa0 RCX: 00007f65001a9559 [ 134.338626][ T5352] RDX: 000000000000001e RSI: 00002000000006c0 RDI: 0000000000000005 [ 134.342105][ T5352] RBP: 00007f6500238136 R08: 0000000000000000 R09: 0000000000000000 [ 134.345611][ T5352] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 134.349187][ T5352] R13: 00007f6500426038 R14: 00007f6500425fa0 R15: 00007ffc790955f8 [ 134.352788][ T5352] [ 134.354169][ T5352] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 134.357469][ T5352] CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 134.361304][ T5352] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 134.365554][ T5352] Call Trace: [ 134.367090][ T5352] [ 134.368391][ T5352] vpanic+0x26f/0x710 [ 134.370196][ T5352] panic+0xc5/0xd0 [ 134.371868][ T5352] ? __pfx_panic+0x10/0x10 [ 134.373904][ T5352] __warn+0x315/0x4c0 [ 134.375657][ T5352] ? __ioremap_caller+0x51e/0x620 [ 134.377853][ T5352] ? __ioremap_caller+0x51e/0x620 [ 134.380121][ T5352] __report_bug+0x276/0x570 [ 134.382270][ T5352] ? __ioremap_caller+0x51e/0x620 [ 134.384485][ T5352] ? __pfx___report_bug+0x10/0x10 [ 134.386683][ T5352] ? irq_work_queue+0xbf/0x150 [ 134.388709][ T5352] ? vprintk_emit+0x55c/0x5f0 [ 134.390843][ T5352] ? __kmalloc_cache_noprof+0x31c/0x600 [ 134.393418][ T5352] ? register_device+0xc6/0x570 [ 134.395792][ T5352] ? __pfx_vprintk_emit+0x10/0x10 [ 134.398099][ T5352] ? ksys_write+0x150/0x270 [ 134.400162][ T5352] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 134.402926][ T5352] ? __ioremap_caller+0x51e/0x620 [ 134.405266][ T5352] report_bug+0x16b/0x220 [ 134.407265][ T5352] ? __ioremap_caller+0x51e/0x620 [ 134.409595][ T5352] ? __ioremap_caller+0x520/0x620 [ 134.411954][ T5352] handle_bug+0x9c/0x200 [ 134.413867][ T5352] exc_invalid_op+0x1a/0x50 [ 134.415930][ T5352] asm_exc_invalid_op+0x1a/0x20 [ 134.418119][ T5352] RIP: 0010:__ioremap_caller+0x51e/0x620 [ 134.420797][ T5352] Code: 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d e9 0a 08 95 0a cc e8 b4 56 4f 00 48 8b 74 24 60 48 c7 c7 a0 0c 2a 8c e8 f3 cc ad ff 90 <0f> 0b 90 e9 49 fd ff ff 4c 8b 74 24 28 41 81 e6 ff 0f 00 00 4d 01 [ 134.429121][ T5352] RSP: 0018:ffffc9000e53f880 EFLAGS: 00010246 [ 134.431805][ T5352] RAX: 0000000000000032 RBX: 1ffff92001ca7f00 RCX: 5c7bcc9b23ada200 [ 134.435215][ T5352] RDX: ffffc9000efa2000 RSI: 00000000000002fc RDI: 00000000000002fd [ 134.438756][ T5352] RBP: ffffc9000e53f990 R08: ffffc9000e53f607 R09: 1ffff92001ca7ec0 [ 134.442287][ T5352] R10: dffffc0000000000 R11: fffff52001ca7ec1 R12: 0000000000020000 [ 134.445886][ T5352] R13: 000000000000002e R14: 8000000000000fff R15: dffffc0000000000 [ 134.449556][ T5352] ? register_device+0x12c/0x570 [ 134.451891][ T5352] ? __pfx___ioremap_caller+0x10/0x10 [ 134.454365][ T5352] ? __kasan_kmalloc+0x93/0xb0 [ 134.456727][ T5352] ? __kmalloc_cache_noprof+0x31c/0x600 [ 134.459243][ T5352] ? __kmalloc_cache_noprof+0x148/0x600 [ 134.462021][ T5352] ? register_device+0xc6/0x570 [ 134.464213][ T5352] ? register_device+0xc6/0x570 [ 134.466469][ T5352] register_device+0x12c/0x570 [ 134.468643][ T5352] phram_setup+0x412/0x620 [ 134.470580][ T5352] ? __pfx_phram_setup+0x10/0x10 [ 134.472848][ T5352] ? __pfx___mutex_lock+0x10/0x10 [ 134.475143][ T5352] ? sysfs_file_kobj+0x1a/0x230 [ 134.477412][ T5352] param_attr_store+0x214/0x310 [ 134.479818][ T5352] ? __pfx_param_attr_store+0x10/0x10 [ 134.482645][ T5352] ? __pfx_sysfs_kf_write+0x10/0x10 [ 134.485293][ T5352] module_attr_store+0x65/0x90 [ 134.487706][ T5352] kernfs_fop_write_iter+0x3a4/0x540 [ 134.492359][ T5352] vfs_write+0x612/0xba0 [ 134.494333][ T5352] ? __pfx_vfs_write+0x10/0x10 [ 134.496499][ T5352] ? __fget_files+0x3a2/0x420 [ 134.498650][ T5352] ? __fget_files+0x2a/0x420 [ 134.500689][ T5352] ? fdget+0x1ac/0x250 [ 134.502567][ T5352] ksys_write+0x150/0x270 [ 134.504594][ T5352] ? __pfx_ksys_write+0x10/0x10 [ 134.506793][ T5352] do_syscall_64+0x171/0x540 [ 134.508786][ T5352] ? trace_irq_disable+0x3b/0x140 [ 134.510955][ T5352] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 134.513614][ T5352] ? clear_bhb_loop+0x70/0xc0 [ 134.515776][ T5352] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 134.518383][ T5352] RIP: 0033:0x7f65001a9559 [ 134.520305][ T5352] 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 [ 134.528357][ T5352] RSP: 002b:00007f6500fe1fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 134.532065][ T5352] RAX: ffffffffffffffda RBX: 00007f6500425fa0 RCX: 00007f65001a9559 [ 134.535623][ T5352] RDX: 000000000000001e RSI: 00002000000006c0 RDI: 0000000000000005 [ 134.539171][ T5352] RBP: 00007f6500238136 R08: 0000000000000000 R09: 0000000000000000 [ 134.542659][ T5352] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 134.546171][ T5352] R13: 00007f6500426038 R14: 00007f6500425fa0 R15: 00007ffc790955f8 [ 134.549615][ T5352] [ 134.551515][ T5352] Kernel Offset: disabled [ 134.553435][ T5352] Rebooting in 86400 seconds..