last executing test programs: 37.928066823s ago: executing program 0 (id=1): r0 = socket$nl_rdma(0x10, 0x3, 0x14) sendmsg$RDMA_NLDEV_CMD_NEWLINK(r0, &(0x7f00000000c0)={0x0, 0x0, &(0x7f0000000080)={0x0}, 0x1, 0x0, 0x0, 0x800}, 0x20000800) sendmsg$RDMA_NLDEV_CMD_STAT_SET(r0, &(0x7f0000000740)={0x0, 0x0, &(0x7f0000000240)={&(0x7f0000000000)={0x30, 0x1410, 0x8b7fbbc5948fecd9, 0x70bd29, 0x25dfdbfe, "", [@RDMA_NLDEV_ATTR_PORT_INDEX={0x8, 0x3, 0x1}, @RDMA_NLDEV_ATTR_DEV_INDEX={0x8}, @RDMA_NLDEV_ATTR_STAT_RES={0x8}, @RDMA_NLDEV_ATTR_STAT_MODE={0x8}]}, 0x30}, 0x1, 0x0, 0x0, 0x20004085}, 0x4004080) 25.02662049s ago: executing program 1 (id=2): sendmsg(0xffffffffffffffff, &(0x7f0000000640)={0x0, 0x0, &(0x7f00000005c0)=[{&(0x7f0000000240)="45d94d52a98d4908726ae5c6224144dd37392669f6a41a9d3eadda17a9a56c0bed361684d5e928a58363711c4fa9339f1830425ed916a9e2f6d47a2864db18e3b2f3979528309e05a9840fcf49f4a48efa440ffd5cadce6cb8f1ee01b1f8f7661a6c448f79178002bcb1cbf1c71b19a322eb1bc2822f3a8f001b5c3d6bc1312df08545d7b73b4007e2de8cd9c81f9139a5db8532d322dd47", 0x98}], 0x1, 0x0, 0x0, 0x11000000}, 0x0) r0 = syz_clone(0x0, 0x0, 0x0, 0x0, 0x0, 0x0) ptrace(0x10, r0) ptrace$setregs(0xd, r0, 0x0, &(0x7f0000000540)) ptrace$cont(0x20, r0, 0x0, 0x0) 19.653425962s ago: executing program 0 (id=3): r0 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$NFT_BATCH(r0, &(0x7f00000000c0)={0x0, 0x0, &(0x7f0000000080)={&(0x7f0000000240)=ANY=[@ANYBLOB="140000001000010000000000000000000500000a28000000000a030000000000000000000a00000708000240000000020900010073797a31000000002c000000030a010100000000000000000a0000070900010073797a31000000000900030073797a320000000014000000110001"], 0x7c}, 0x1, 0x0, 0x0, 0x4000}, 0x0) sendmsg$NFT_BATCH(r0, &(0x7f0000009b40)={0x0, 0x0, &(0x7f0000009b00)={&(0x7f00000002c0)={{0x14, 0x10, 0x1, 0x0, 0x0, {0x1}}, [@NFT_MSG_NEWSET={0x70, 0x9, 0xa, 0x401, 0x0, 0x0, {0xa, 0x0, 0x4}, [@NFTA_SET_NAME={0x9, 0x2, 'syz1\x00'}, @NFTA_SET_ID={0x8, 0xa, 0x1, 0x0, 0xfffffffc}, @NFTA_SET_TABLE={0x9, 0x1, 'syz1\x00'}, @NFTA_SET_KEY_LEN={0x8, 0x5, 0x1, 0x0, 0xb}, @NFTA_SET_EXPRESSIONS={0x2c, 0x12, 0x0, 0x1, [{0x14, 0x1, 0x0, 0x1, @last={{0x9}, @val={0x4}}}, {0x14, 0x1, 0x0, 0x1, @counter={{0xc, 0x20}, @val={0x4}}}]}, @NFTA_SET_FLAGS={0x8, 0x3, 0x1, 0x0, 0x130}]}], {0x14, 0x11, 0x1, 0x0, 0x0, {0x1}}}, 0x98}, 0x1, 0x0, 0x0, 0x4044050}, 0x40) 14.887057411s ago: executing program 0 (id=4): r0 = openat$proc_mixer(0xffffffffffffff9c, &(0x7f0000000a40)='/proc/asound/card1/oss_mixer\x00', 0x242, 0x0) mmap$IORING_OFF_SQ_RING(0x0, 0xc00003, 0x3000007, 0x401d032, 0xffffffffffffffff, 0x0) writev(r0, &(0x7f0000003e80)=[{0x0, 0x4000}, {&(0x7f0000000b00)=';', 0x1}], 0x2) 7.277942476s ago: executing program 1 (id=5): mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./cgroup.cpu/test\x00', 0x777) r0 = openat(0xffffffffffffff9c, &(0x7f0000000140)='./cgroup.cpu/test/memory.limit_in_bytes\x00', 0x2, 0x0) write(r0, &(0x7f0000000380)='100000', 0x6) r1 = openat(0xffffffffffffff9c, &(0x7f00000001c0)='./cgroup.cpu/test/memory.oom_control\x00', 0x2, 0x0) write(r1, &(0x7f0000000200)='1', 0x1) r2 = openat(0xffffffffffffff9c, &(0x7f0000000240)='./cgroup.cpu/test/cgroup.procs\x00', 0x2, 0x0) write(r2, &(0x7f0000000280)='0', 0x1) mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./tracing\x00', 0x1ff) socket$nl_netfilter(0x10, 0x3, 0xc) mount(0x0, &(0x7f00000002c0)='./tracing\x00', &(0x7f00000000c0)='tracefs\x00', 0x0, 0x0) socket$nl_route(0x10, 0x3, 0x0) socket$inet6_udp(0xa, 0x2, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./gadget\x00', 0x1ff) mount(0x0, &(0x7f0000000100)='./gadget\x00', &(0x7f0000000200)='gadgetfs\x00', 0x0, 0x0) r3 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./gadget/dummy_udc\x00', 0x2, 0x0) write(r3, &(0x7f0000000400)="0000000009020900010100803212010002000000402505a0a4000100000001", 0x1f) socket$inet6(0xa, 0x1, 0x0) r4 = socket$inet(0x2, 0x1, 0x0) setsockopt$IPT_SO_SET_REPLACE(r4, 0x0, 0x40, &(0x7f00000002c0)=@mangle={'mangle\x00', 0x1f, 0x6, 0x390, 0x0, 0x130, 0x1c8, 0x260, 0x2f8, 0x98, 0x130, 0x1c8, 0x260, 0x2f8, 0x6, 0x0, {[{{@uncond, 0x0, 0x70, 0x98}, @ECN={0x28, 'ECN\x00', 0x0, {0x1, 0x1}}}, {{@uncond, 0x0, 0x70, 0x98}, @common=@unspec=@STANDARD={0x28, '\x00', 0x0, 0xfffffffe}}, {{@uncond, 0x0, 0x70, 0x98}, @common=@unspec=@STANDARD={0x28, '\x00', 0x0, 0xfffffffe}}, {{@uncond, 0x0, 0x70, 0x98}, @common=@unspec=@STANDARD={0x28, '\x00', 0x0, 0xfffffffe}}, {{@uncond, 0x0, 0x70, 0x98}, @common=@unspec=@STANDARD={0x28, '\x00', 0x0, 0xfffffffe}}], {{'\x00', 0x0, 0x70, 0x98}, {0x28}}}}, 0x3f0) r5 = fsopen(&(0x7f0000000000)='cgroup2\x00', 0x0) fsconfig$FSCONFIG_CMD_CREATE(r5, 0x6, 0x0, 0x0, 0x0) r6 = fsmount(r5, 0x0, 0x0) r7 = openat$cgroup_pressure(r6, &(0x7f00000000c0)='memory.pressure\x00', 0x2, 0x0) read(r7, &(0x7f0000000100)=""/43, 0x2b) socket$inet_tcp(0x2, 0x1, 0x0) socket$nl_netfilter(0x10, 0x3, 0xc) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./tracing/instances/inst1\x00', 0x1ff) 6.264969373s ago: executing program 0 (id=6): socket$inet6_udp(0xa, 0x2, 0x0) r0 = getpid() r1 = syz_pidfd_open(r0, 0x0) setns(r1, 0x24020000) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./file0\x00', 0x0) r2 = socket$netlink(0x10, 0x3, 0x8) sendmsg$netlink(r2, 0x0, 0x0) seccomp$SECCOMP_SET_MODE_FILTER_LISTENER(0x1, 0xa, 0x0) mount$bind(&(0x7f0000000040)='.\x00', &(0x7f00000000c0)='./file0/../file0\x00', 0x0, 0x2a05404, 0x0) ftruncate(0xffffffffffffffff, 0x1) syz_clone(0xb21e0180, 0x0, 0x41, 0x0, 0x0, 0x0) r3 = socket$netlink(0x10, 0x3, 0x4) sendmsg$nl_generic(r3, &(0x7f0000000040)={0x0, 0x0, 0x0}, 0x0) open_tree(0xffffffffffffff9c, &(0x7f0000000000)='./file0\x00', 0x89901) umount2(&(0x7f0000000040)='.\x00', 0x2) 0s ago: executing program 0 (id=7): r0 = socket$nl_rdma(0x10, 0x3, 0x14) sendmsg$RDMA_NLDEV_CMD_STAT_SET(r0, &(0x7f0000000740)={0x0, 0x0, &(0x7f0000000240)={&(0x7f0000000000)={0x28, 0x1410, 0x8b7fbbc5948fecd9, 0x70bd29, 0x25dfdbfe, "", [@RDMA_NLDEV_ATTR_PORT_INDEX={0x8, 0x3, 0x1}, @RDMA_NLDEV_ATTR_DEV_INDEX={0x8}, @RDMA_NLDEV_ATTR_STAT_MODE={0x8}]}, 0x28}, 0x1, 0x0, 0x0, 0x20004085}, 0x4004080) kernel console output (not intermixed with test programs): Warning: Permanently added '[localhost]:48722' (ED25519) to the list of known hosts. syzkaller login: [ 503.446922][ T3211] cgroup: Unknown subsys name 'net' [ 504.135129][ T3211] cgroup: Unknown subsys name 'cpuset' [ 504.251405][ T3211] cgroup: Unknown subsys name 'rlimit' Setting up swapspace version 1, size = 127995904 bytes [ 578.077795][ T3211] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 739.713830][ T3223] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 739.867329][ T3223] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 742.919117][ T3226] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 743.163133][ T3226] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 751.673129][ T3223] hsr_slave_0: entered promiscuous mode [ 751.736206][ T3223] hsr_slave_1: entered promiscuous mode [ 758.769562][ T3226] hsr_slave_0: entered promiscuous mode [ 758.793910][ T3226] hsr_slave_1: entered promiscuous mode [ 758.813541][ T3226] debugfs: 'hsr0' already exists in 'hsr' [ 758.815582][ T3226] Cannot create hsr debugfs directory [ 764.568130][ T3223] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 764.730977][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 765.554232][ T3223] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 765.755453][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 766.092608][ T3223] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 766.176014][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 766.310453][ T3223] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 766.436890][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 770.329515][ T3226] netdevsim netdevsim1 netdevsim0: renamed from eth0 [ 770.625849][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 770.988264][ T3226] netdevsim netdevsim1 netdevsim1: renamed from eth1 [ 771.178538][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 771.219952][ T3226] netdevsim netdevsim1 netdevsim2: renamed from eth2 [ 771.390345][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 771.435208][ T3226] netdevsim netdevsim1 netdevsim3: renamed from eth3 [ 771.794523][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 784.738895][ T3223] 8021q: adding VLAN 0 to HW filter on device bond0 [ 792.979047][ T3226] 8021q: adding VLAN 0 to HW filter on device bond0 [ 836.869055][ T3223] veth0_vlan: entered promiscuous mode [ 838.522027][ T3223] veth1_vlan: entered promiscuous mode [ 841.948566][ T3223] veth0_macvtap: entered promiscuous mode [ 842.966654][ T3223] veth1_macvtap: entered promiscuous mode [ 846.826855][ T3309] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 846.828524][ T3309] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 846.829271][ T3309] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 846.855192][ T3309] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 855.811230][ T3226] veth0_vlan: entered promiscuous mode [ 857.436801][ T3223] soft_limit_in_bytes is deprecated and will be removed. Writing any value to this file has no effect. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. [ 857.510319][ T3226] veth1_vlan: entered promiscuous mode [ 860.966953][ T3226] veth0_macvtap: entered promiscuous mode [ 861.146719][ T3226] veth1_macvtap: entered promiscuous mode [ 865.727671][ T3309] netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 866.203816][ T12] netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 866.472415][ T3240] netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 866.493362][ T3240] netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 872.929426][ T3845] Zero length message leads to an empty skb [ 888.648175][ T3850] ALSA: mixer_oss: invalid OSS volume '' [ 894.383665][ T3856] oom_control is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. [ 897.656984][ T3858] ip_tables: iptables: counters copy to user failed while replacing table [ 899.706461][ T3856] udc dummy_udc.0: failed to start USB Gadget filesystem: -12 [ 899.707047][ T3856] gadgetfs gadget.0: probe with driver gadgetfs failed with error -12 [ 903.058837][ T3856] udc dummy_udc.1: failed to start USB Gadget filesystem: -12 [ 903.177812][ T3856] gadgetfs gadget.1: probe with driver gadgetfs failed with error -12 [ 903.653657][ T3856] UDC core: USB Gadget filesystem: couldn't find an available UDC [ 903.705408][ T3856] ================================================================== [ 903.706552][ T3856] BUG: KASAN: slab-use-after-free in dev_config+0x13d6/0x1450 [ 903.709086][ T3856] Write of size 1 at addr ffffaf801a714099 by task syz.1.5/3856 [ 903.709534][ T3856] [ 903.711132][ T3856] CPU: 1 UID: 0 PID: 3856 Comm: syz.1.5 Not tainted syzkaller #0 PREEMPT [ 903.712060][ T3856] Hardware name: riscv-virtio,qemu (DT) [ 903.712696][ T3856] Call Trace: [ 903.713247][ T3856] [] dump_backtrace+0x2e/0x3c [ 903.714027][ T3856] [] show_stack+0x30/0x3c [ 903.714586][ T3856] [] dump_stack_lvl+0x114/0x1aa [ 903.715113][ T3856] [] print_report+0x27a/0x592 [ 903.715852][ T3856] [] kasan_report+0xf0/0x26c [ 903.716709][ T3856] [] __asan_report_store1_noabort+0x12/0x1a [ 903.717342][ T3856] [] dev_config+0x13d6/0x1450 [ 903.718102][ T3856] [] vfs_write+0x308/0x1020 [ 903.718882][ T3856] [] ksys_write+0x126/0x244 [ 903.719748][ T3856] [] __riscv_sys_write+0x6e/0xa0 [ 903.720586][ T3856] [] syscall_handler+0x92/0x114 [ 903.721295][ T3856] [] do_trap_ecall_u+0x4ca/0x658 [ 903.721979][ T3856] [] handle_exception+0x168/0x174 [ 903.723034][ T3856] [ 903.723263][ T3856] Allocated by task 3223: [ 903.723708][ T3856] stack_trace_save+0xa0/0xd2 [ 903.724428][ T3856] kasan_save_stack+0x3e/0x66 [ 903.725149][ T3856] kasan_save_track+0x16/0x28 [ 903.725867][ T3856] kasan_save_alloc_info+0x30/0x3e [ 903.726365][ T3856] __kasan_kmalloc+0xa0/0xa6 [ 903.727056][ T3856] __kmalloc_cache_noprof+0x254/0x6aa [ 903.727554][ T3856] gadgetfs_fill_super+0x1cc/0x3e6 [ 903.728274][ T3856] get_tree_single+0xd8/0x17c [ 903.728803][ T3856] gadgetfs_get_tree+0x26/0x30 [ 903.729432][ T3856] vfs_get_tree+0x7e/0x314 [ 903.729952][ T3856] fc_mount+0x1c/0x1d6 [ 903.730441][ T3856] path_mount+0x6ae/0x1dd0 [ 903.730983][ T3856] __riscv_sys_mount+0x5c2/0x778 [ 903.731548][ T3856] syscall_handler+0x92/0x114 [ 903.732157][ T3856] do_trap_ecall_u+0x4ca/0x658 [ 903.732730][ T3856] handle_exception+0x168/0x174 [ 903.733369][ T3856] [ 903.733533][ T3856] Freed by task 3856: [ 903.733788][ T3856] stack_trace_save+0xa0/0xd2 [ 903.734434][ T3856] kasan_save_stack+0x3e/0x66 [ 903.735189][ T3856] kasan_save_track+0x16/0x28 [ 903.735955][ T3856] kasan_save_free_info+0x40/0x5c [ 903.736456][ T3856] __kasan_slab_free+0x5e/0x7e [ 903.737179][ T3856] kfree+0x298/0x774 [ 903.737590][ T3856] put_dev+0xc8/0xe0 [ 903.738274][ T3856] gadgetfs_unbind+0x1a8/0x21a [ 903.738952][ T3856] gadgetfs_bind+0x620/0x80e [ 903.739646][ T3856] gadget_bind_driver+0x228/0xafa [ 903.740248][ T3856] really_probe+0x222/0xa8e [ 903.740827][ T3856] __driver_probe_device+0x1d6/0x46c [ 903.741427][ T3856] driver_probe_device+0x5e/0x162 [ 903.742029][ T3856] __driver_attach+0x1fc/0x57e [ 903.742619][ T3856] bus_for_each_dev+0x126/0x1bc [ 903.743156][ T3856] driver_attach+0x3e/0x52 [ 903.743711][ T3856] bus_add_driver+0x2c8/0x612 [ 903.744297][ T3856] driver_register+0x1a4/0x3b4 [ 903.744905][ T3856] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 903.745522][ T3856] dev_config+0x7ea/0x1450 [ 903.746211][ T3856] vfs_write+0x308/0x1020 [ 903.746914][ T3856] ksys_write+0x126/0x244 [ 903.747633][ T3856] __riscv_sys_write+0x6e/0xa0 [ 903.748384][ T3856] syscall_handler+0x92/0x114 [ 903.749315][ T3856] do_trap_ecall_u+0x4ca/0x658 [ 903.749907][ T3856] handle_exception+0x168/0x174 [ 903.750524][ T3856] [ 903.750785][ T3856] The buggy address belongs to the object at ffffaf801a714000 [ 903.750785][ T3856] which belongs to the cache kmalloc-1k of size 1024 [ 903.751334][ T3856] The buggy address is located 153 bytes inside of [ 903.751334][ T3856] freed 1024-byte region [ffffaf801a714000, ffffaf801a714400) [ 903.751874][ T3856] [ 903.752171][ T3856] The buggy address belongs to the physical page: [ 903.753800][ T3856] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffaf801a712000 pfn:0x9a710 [ 903.754769][ T3856] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 903.755418][ T3856] flags: 0x240(workingset|head|node=0|zone=0) [ 903.756692][ T3856] page_type: f5(slab) [ 903.758045][ T3856] raw: 0000000000000240 ffffaf8012001dc0 ffff8d8002782610 ffff8d8002686610 [ 903.758599][ T3856] raw: ffffaf801a712000 000000000010000f 00000000f5000000 0000000000000000 [ 903.759236][ T3856] head: 0000000000000240 ffffaf8012001dc0 ffff8d8002782610 ffff8d8002686610 [ 903.759720][ T3856] head: ffffaf801a712000 000000000010000f 00000000f5000000 0000000000000000 [ 903.760209][ T3856] head: 0000000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff [ 903.760696][ T3856] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 903.761121][ T3856] page dumped because: kasan: bad access detected [ 903.761798][ T3856] page_owner tracks the page as allocated [ 903.762120][ T3856] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3068, tgid 3068 (default.script), ts 218016493900 [ 903.763000][ T3856] __set_page_owner+0x92/0x4b0 [ 903.763814][ T3856] post_alloc_hook+0xe2/0x19e [ 903.764281][ T3856] get_page_from_freelist+0x916/0x3a04 [ 903.764784][ T3856] __alloc_frozen_pages_noprof+0x274/0x35b2 [ 903.765349][ T3856] new_slab+0x94/0x6ea [ 903.765836][ T3856] refill_objects+0x20a/0x3ba [ 903.766336][ T3856] __pcs_replace_empty_main+0x282/0x5fe [ 903.766798][ T3856] __kmalloc_noprof+0x58e/0x8fc [ 903.767312][ T3856] tomoyo_init_log+0x10a6/0x1e76 [ 903.767812][ T3856] tomoyo_supervisor+0x40a/0x1944 [ 903.768340][ T3856] tomoyo_env_perm+0x196/0x1f0 [ 903.768871][ T3856] tomoyo_find_next_domain+0x1254/0x1c9c [ 903.769465][ T3856] tomoyo_bprm_check_security+0x118/0x1a6 [ 903.770174][ T3856] security_bprm_check+0xb4/0x24e [ 903.770761][ T3856] bprm_execve+0x7d6/0x1aac [ 903.771401][ T3856] do_execveat_common.isra.0+0x45e/0x560 [ 903.772282][ T3856] page last free pid 3065 tgid 3065 ts 215013919100 stack trace: [ 903.772659][ T3856] __reset_page_owner+0x76/0x1bc [ 903.773345][ T3856] __free_frozen_pages+0x6a8/0x13a2 [ 903.774106][ T3856] free_frozen_pages+0xe/0x16 [ 903.774561][ T3856] __free_slab+0xda/0x250 [ 903.774984][ T3856] free_slab+0x28/0x16c [ 903.775412][ T3856] __slab_free+0x23e/0x2fe [ 903.775884][ T3856] ___cache_free+0x94/0xac [ 903.776416][ T3856] qlist_free_all+0x64/0x134 [ 903.776909][ T3856] kasan_quarantine_reduce+0x152/0x1b4 [ 903.777460][ T3856] __kasan_slab_alloc+0x5c/0x82 [ 903.778156][ T3856] kmem_cache_alloc_noprof+0x1f6/0x6a2 [ 903.778678][ T3856] mas_preallocate+0xb0e/0xd74 [ 903.779140][ T3856] commit_merge+0x2ae/0x235e [ 903.779748][ T3856] vma_expand+0x3c6/0xa86 [ 903.780338][ T3856] relocate_vma_down+0x26c/0x458 [ 903.781014][ T3856] setup_arg_pages+0x6a4/0xd24 [ 903.781848][ T3856] [ 903.782030][ T3856] Memory state around the buggy address: [ 903.782725][ T3856] ffffaf801a713f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 903.783157][ T3856] ffffaf801a714000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 903.783551][ T3856] >ffffaf801a714080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 903.783912][ T3856] ^ [ 903.784340][ T3856] ffffaf801a714100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 903.784703][ T3856] ffffaf801a714180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 903.785145][ T3856] ================================================================== [ 903.928669][ T3856] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 904.104460][ T3856] CPU: 1 UID: 0 PID: 3856 Comm: syz.1.5 Not tainted syzkaller #0 PREEMPT [ 904.108082][ T3856] Hardware name: riscv-virtio,qemu (DT) [ 904.110301][ T3856] Call Trace: [ 904.111844][ T3856] [] dump_backtrace+0x2e/0x3c [ 904.114761][ T3856] [] show_stack+0x30/0x3c [ 904.117469][ T3856] [] dump_stack_lvl+0x114/0x1aa [ 904.120170][ T3856] [] dump_stack+0x1c/0x24 [ 904.122623][ T3856] [] vpanic+0x32e/0x762 [ 904.125113][ T3856] [] trace_suspend_resume+0x0/0x3f6 [ 904.127946][ T3856] [] check_panic_on_warn+0xc0/0xe4 [ 904.130862][ T3856] [] end_report.part.0+0x4e/0xae [ 904.133780][ T3856] [] kasan_report+0x164/0x26c [ 904.136796][ T3856] [] __asan_report_store1_noabort+0x12/0x1a [ 904.139962][ T3856] [] dev_config+0x13d6/0x1450 [ 904.142962][ T3856] [] vfs_write+0x308/0x1020 [ 904.145926][ T3856] [] ksys_write+0x126/0x244 [ 904.148865][ T3856] [] __riscv_sys_write+0x6e/0xa0 [ 904.152014][ T3856] [] syscall_handler+0x92/0x114 [ 904.154949][ T3856] [] do_trap_ecall_u+0x4ca/0x658 [ 904.157861][ T3856] [] handle_exception+0x168/0x174 [ 904.161358][ T3856] SMP: stopping secondary CPUs [ 904.167051][ T3856] Rebooting in 86400 seconds.. VM DIAGNOSIS: 03:37:11 Registers: info registers vcpu 0 CPU#0 V = 0 pc ffffffff805400f4 mhartid 0000000000000000 mstatus 0000000a000000a0 hstatus 0000000200000000 vsstatus 0000000a00000000 mip 0000000000000000 mie 000000000000022a mideleg 0000000000001666 hideleg 0000000000000000 medeleg 0000000000f4b509 hedeleg 0000000000000000 mtvec 00000000800004f8 stvec ffffffff8663b0b0 vstvec 0000000000000000 mepc ffffffff86637eee sepc ffffffff8017a2a0 vsepc 0000000000000000 mcause 8000000000000003 scause 8000000000000009 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080049000 sscratch 0000000000000000 satp 90134000000af312 x0/zero 0000000000000000 x1/ra ffffffff8007eab0 x2/sp ffff8f8000007500 x3/gp ffffffff8a6d9c00 x4/tp ffffaf801a690000 x5/t0 ffffaf805cbbd4d0 x6/t1 ffffffff8007e9b2 x7/t2 ffffaf805cbbd8a8 x8/s0 ffff8f8000007610 x9/s1 0000000000000000 x10/a0 0000000000000007 x11/a1 0000000000000000 x12/a2 0000080800000000 x13/a3 ffffffff8007eabe x14/a4 0000000000000000 x15/a5 ffffaf801a690000 x16/a6 0000080800000000 x17/a7 0000000041b58ab3 x18/s2 ffff8f8000007720 x19/s3 ffffaf801a690000 x20/s4 ffff8f80000075a0 x21/s5 0000000000000002 x22/s6 ffffffff800735c0 x23/s7 ffff8f8000007660 x24/s8 ffffffff8663682c x25/s9 1ffff1f000000ea8 x26/s10 ffff8f8000007720 x27/s11 ffff8f8000007730 x28/t3 ffffffff8828dcd0 x29/t4 ffffffff9191b3a0 x30/t5 0000000000000003 x31/t6 0000000000000002 fcsr 0000000000000000 f0/ft0 0000000000000000 f1/ft1 0000000000000000 f2/ft2 0000000000000000 f3/ft3 0000000000000000 f4/ft4 0000000000000000 f5/ft5 0000000000000000 f6/ft6 0000000000000000 f7/ft7 0000000000000000 f8/fs0 0000000000000000 f9/fs1 0000000000000000 f10/fa0 0000000000000000 f11/fa1 0000000000000000 f12/fa2 0000000000000000 f13/fa3 0000000000000000 f14/fa4 0000000000000000 f15/fa5 0000000000000000 f16/fa6 0000000000000000 f17/fa7 0000000000000000 f18/fs2 0000000000000000 f19/fs3 0000000000000000 f20/fs4 0000000000000000 f21/fs5 0000000000000000 f22/fs6 0000000000000000 f23/fs7 0000000000000000 f24/fs8 0000000000000000 f25/fs9 0000000000000000 f26/fs10 0000000000000000 f27/fs11 0000000000000000 f28/ft8 0000000000000000 f29/ft9 0000000000000000 f30/ft10 0000000000000000 f31/ft11 0000000000000000 info registers vcpu 1 CPU#1 V = 0 pc ffffffff8007e9b2 mhartid 0000000000000001 mstatus 0000000a000000a2 hstatus 0000000200000000 vsstatus 0000000a00000000 mip 0000000000000000 mie 000000000000022a mideleg 0000000000001666 hideleg 0000000000000000 medeleg 0000000000f4b509 hedeleg 0000000000000000 mtvec 00000000800004f8 stvec ffffffff8663b0b0 vstvec 0000000000000000 mepc ffffffff80095c36 sepc ffffffff801f76e6 vsepc 0000000000000000 mcause 0000000000000009 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080047000 sscratch 0000000000000000 satp 901b80000009dc02 x0/zero 0000000000000000 x1/ra ffffffff8007eb22 x2/sp ffff8f8002287790 x3/gp ffffffff8a6d9c00 x4/tp ffffaf801bdb9ac0 x5/t0 1ffffffff2323675 x6/t1 ffffffff8007e9b2 x7/t2 ffffffff9191b3a8 x8/s0 ffff8f8002287890 x9/s1 ffff8f8002287920 x10/a0 ffffffff8342484c x11/a1 0000000000000000 x12/a2 0000000000000000 x13/a3 0000000000000007 x14/a4 0000000000000002 x15/a5 0000000000000000 x16/a6 0000000000000050 x17/a7 0000000000001fff x18/s2 ffffffff8a865290 x19/s3 140ed069151ef943 x20/s4 0000000000000000 x21/s5 0000000000000000 x22/s6 0000000000000000 x23/s7 ffffffff89988968 x24/s8 1ffffffff133112d x25/s9 ffffffff8a7eea80 x26/s10 ffffffff8a83d820 x27/s11 1ffffffff14fdd50 x28/t3 ffffffff8829f558 x29/t4 fffff1ef00450f18 x30/t5 fffff1ef00450f19 x31/t6 0000000000000002 fcsr 0000000000000000 f0/ft0 0000000000000000 f1/ft1 0000000000000000 f2/ft2 0000000000000000 f3/ft3 0000000000000000 f4/ft4 0000000000000000 f5/ft5 0000000000000000 f6/ft6 0000000000000000 f7/ft7 0000000000000000 f8/fs0 0000000000000000 f9/fs1 0000000000000000 f10/fa0 0000000000000000 f11/fa1 0000000000000000 f12/fa2 0000000000000000 f13/fa3 0000000000000000 f14/fa4 0000000000000000 f15/fa5 0000000000000000 f16/fa6 0000000000000000 f17/fa7 0000000000000000 f18/fs2 0000000000000000 f19/fs3 0000000000000000 f20/fs4 0000000000000000 f21/fs5 0000000000000000 f22/fs6 0000000000000000 f23/fs7 0000000000000000 f24/fs8 0000000000000000 f25/fs9 0000000000000000 f26/fs10 0000000000000000 f27/fs11 0000000000000000 f28/ft8 0000000000000000 f29/ft9 0000000000000000 f30/ft10 0000000000000000 f31/ft11 0000000000000000