------------[ cut here ]------------ virt_to_phys used for non-linear address: 000000005d102330 (0x3d3f3e6a893f66ad) WARNING: CPU: 1 PID: 3113 at arch/arm64/mm/physaddr.c:15 __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17 Modules linked in: CPU: 1 PID: 3113 Comm: syz-executor.5 Not tainted 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17 lr : __virt_to_phys+0x7c/0x98 arch/arm64/mm/physaddr.c:12 sp : ffff800010fc39d0 x29: ffff800010fc39d0 x28: 0000000000000002 x27: 0000000000000002 x26: 0000000000000001 x25: ffff000116cc3f98 x24: ffff000116cc3f98 x23: ffff000116cc3c00 x22: ffff80000d379000 x21: 0000000040000000 x20: 3d403e6a893f66ad x19: 3d3f3e6a893f66ad x18: fffffffffffffff5 x17: 6433783028203033 x16: ffff80000dbe6158 x15: ffff0000c70f8000 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c70f8000 x11: ff808000081c4d64 x10: 0000000000000000 x9 : 55b38dee1e11fe00 x8 : ffff80000cf6e000 x7 : ffff80000c091ebc x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 000000000000004f Call trace: __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17 virt_to_folio include/linux/mm.h:890 [inline] kfree+0x50/0x118 mm/slab_common.c:999 kvfree+0x40/0x50 mm/util.c:627 xt_free_table_info+0x68/0xa0 net/netfilter/x_tables.c:1208 __do_replace+0x324/0x4a0 net/ipv4/netfilter/ip_tables.c:1087 do_replace net/ipv6/netfilter/ip6_tables.c:1157 [inline] do_ip6t_set_ctl+0x7c4/0x10e0 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x170/0x184 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0xbc/0x144 net/ipv6/ipv6_sockglue.c:1030 tcp_setsockopt+0x90/0xa8 net/ipv4/tcp.c:3800 sock_common_setsockopt+0x58/0x70 net/core/sock.c:3641 __sys_setsockopt+0x1ec/0x31c net/socket.c:2252 __do_sys_setsockopt net/socket.c:2263 [inline] __se_sys_setsockopt net/socket.c:2260 [inline] __arm64_sys_setsockopt+0x30/0x44 net/socket.c:2260 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 irq event stamp: 2765202 hardirqs last enabled at (2765201): [] __up_console_sem+0xb0/0xfc kernel/printk/printk.c:261 hardirqs last disabled at (2765202): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2765186): [] _stext+0x2e4/0x37c softirqs last disabled at (2765027): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- Unable to handle kernel paging request at virtual address 00f4faf9b005fd88 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 CM = 0, WnR = 0 [00f4faf9b005fd88] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3113 Comm: syz-executor.5 Tainted: G W 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : _compound_head include/linux/page-flags.h:253 [inline] pc : virt_to_folio include/linux/mm.h:892 [inline] pc : kfree+0x60/0x118 mm/slab_common.c:999 lr : virt_to_folio include/linux/mm.h:890 [inline] lr : kfree+0x50/0x118 mm/slab_common.c:999 sp : ffff800010fc39f0 x29: ffff800010fc39f0 x28: 0000000000000002 x27: 0000000000000002 x26: 0000000000000001 x25: ffff000116cc3f98 x24: ffff000116cc3f98 x23: ffff000116cc3c00 x22: ffff80000d379000 x21: 0000000040000000 x20: ffff8000084366c0 x19: 3d3f3e6a893f66ad x18: fffffffffffffff5 x17: 6433783028203033 x16: ffff80000dbe6158 x15: ffff0000c70f8000 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c70f8000 x11: ff808000081c4d64 x10: 0000000000000000 x9 : fffffc0000000000 x8 : 0003d3fbe6c017f6 x7 : ffff80000c091ebc x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 00f4faf9b005fd80 Call trace: virt_to_folio include/linux/mm.h:890 [inline] kfree+0x60/0x118 mm/slab_common.c:999 kvfree+0x40/0x50 mm/util.c:627 xt_free_table_info+0x68/0xa0 net/netfilter/x_tables.c:1208 __do_replace+0x324/0x4a0 net/ipv4/netfilter/ip_tables.c:1087 do_replace net/ipv6/netfilter/ip6_tables.c:1157 [inline] do_ip6t_set_ctl+0x7c4/0x10e0 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x170/0x184 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0xbc/0x144 net/ipv6/ipv6_sockglue.c:1030 tcp_setsockopt+0x90/0xa8 net/ipv4/tcp.c:3800 sock_common_setsockopt+0x58/0x70 net/core/sock.c:3641 __sys_setsockopt+0x1ec/0x31c net/socket.c:2252 __do_sys_setsockopt net/socket.c:2263 [inline] __se_sys_setsockopt net/socket.c:2260 [inline] __arm64_sys_setsockopt+0x30/0x44 net/socket.c:2260 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 Code: d34cfc08 cb953108 b25657e9 8b081920 (f9400408) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: d34cfc08 lsr x8, x0, #12 4: cb953108 sub x8, x8, x21, asr #12 8: b25657e9 mov x9, #0xfffffc0000000000 // #-4398046511104 c: 8b081920 add x0, x9, x8, lsl #6 * 10: f9400408 ldr x8, [x0, #8] <-- trapping instruction