------------[ cut here ]------------ virt_to_phys used for non-linear address: 0000000057d7d68c (0xff793f403f3f7d3f) WARNING: CPU: 1 PID: 3152 at arch/arm64/mm/physaddr.c:15 __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17 Modules linked in: CPU: 1 PID: 3152 Comm: syz-executor.0 Not tainted 6.1.0-rc6-syzkaller-32662-g6d464646530f #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 : ffff800010fe39d0 x29: ffff800010fe39d0 x28: 0000000000000002 x27: 0000000000000002 x26: 0000000000000001 x25: ffff0001020a7398 x24: ffff0001020a7398 x23: ffff0001020a7000 x22: ffff80000d379000 x21: 0000000040000000 x20: ff7a3f403f3f7d3f x19: ff793f403f3f7d3f x18: 00000000000003e6 x17: 6666783028206338 x16: ffff80000dbe6158 x15: ffff0000c7a14ec0 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c7a14ec0 x11: ff808000081c4d40 x10: 0000000000000000 x9 : e5ca31132cce2a00 x8 : ffff80000cf6e000 x7 : ffff80000c08e4f4 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:3801 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/0x164 arch/arm64/kernel/syscall.c:206 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: 14104146 hardirqs last enabled at (14104145): [] __up_console_sem+0xb0/0xfc kernel/printk/printk.c:261 hardirqs last disabled at (14104146): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (14104116): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (14104114): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- Unable to handle kernel paging request at virtual address 03fde2fd06ddfdc8 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 [03fde2fd06ddfdc8] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3152 Comm: syz-executor.0 Tainted: G W 6.1.0-rc6-syzkaller-32662-g6d464646530f #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 : ffff800010fe39f0 x29: ffff800010fe39f0 x28: 0000000000000002 x27: 0000000000000002 x26: 0000000000000001 x25: ffff0001020a7398 x24: ffff0001020a7398 x23: ffff0001020a7000 x22: ffff80000d379000 x21: 0000000040000000 x20: ffff80000843527c x19: ff793f403f3f7d3f x18: 00000000000003e6 x17: 6666783028206338 x16: ffff80000dbe6158 x15: ffff0000c7a14ec0 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c7a14ec0 x11: ff808000081c4d40 x10: 0000000000000000 x9 : fffffc0000000000 x8 : 000ff79bf41b77f7 x7 : ffff80000c08e4f4 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 03fde2fd06ddfdc0 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:3801 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/0x164 arch/arm64/kernel/syscall.c:206 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