No source specified ================================================ WARNING: lock held when returning to user space! 6.18.0-rc7-next-20251128 #1 Not tainted ------------------------------------------------ syz-executor.3/4401 is leaving the kernel with locks still held! 1 lock held by syz-executor.3/4401: #0: ffff888016a28848 (&sb->s_type->i_mutex_key#19/1){+.+.}-{4:4}, at: start_creating_noperm+0x84/0xd0 sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 4 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 4, async page read UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 5 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 5, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 6 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 6, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 7 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 7, async page read ================================================================== BUG: KASAN: slab-use-after-free in rwsem_down_write_slowpath+0x1522/0x1670 Read of size 4 at addr ffff88801903d374 by task syz-executor.3/4416 CPU: 1 UID: 0 PID: 4416 Comm: syz-executor.3 Not tainted 6.18.0-rc7-next-20251128 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_report+0xcb/0x610 kasan_report+0xca/0x100 rwsem_down_write_slowpath+0x1522/0x1670 down_write_nested+0x1c6/0x1f0 start_creating_noperm+0x84/0xd0 do_mq_open+0x25f/0x980 __x64_sys_mq_open+0x14f/0x1e0 do_syscall_64+0xbf/0x420 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7efd93db19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7efaeb3188 EFLAGS: 00000246 ORIG_RAX: 00000000000000f0 RAX: ffffffffffffffda RBX: 00007f7efda50f60 RCX: 00007f7efd93db19 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200001c0 RBP: 00007f7efd997f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe7e51ee1f R14: 00007f7efaeb3300 R15: 0000000000022000 Allocated by task 4397: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_node_noprof+0x228/0x730 sr 1:0:0:0: [sr0] tag#0 unaligned transfer copy_process+0x460/0x7230 kernel_clone+0xea/0x7c0 I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 __do_sys_clone+0xce/0x120 Buffer I/O error on dev sr0, logical block 0, async page read do_syscall_64+0xbf/0x420 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 4405: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x43/0x70 kmem_cache_free+0x2cd/0x660 rcu_core+0x73c/0x1ed0 handle_softirqs+0x1b1/0x740 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 Last potentially related work creation: kasan_save_stack+0x24/0x50 kasan_record_aux_stack+0x89/0xa0 __call_rcu_common.constprop.0+0x70/0xad0 delayed_put_task_struct+0xde/0x230 rcu_core+0x73c/0x1ed0 handle_softirqs+0x1b1/0x740 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 Second to last potentially related work creation: kasan_save_stack+0x24/0x50 kasan_record_aux_stack+0x89/0xa0 __call_rcu_common.constprop.0+0x70/0xad0 put_task_struct_rcu_user+0x75/0xc0 __schedule+0x1003/0x46a0 __cond_resched+0x4c/0x80 __tlb_batch_free_encoded_pages+0x12e/0x2b0 sr 1:0:0:0: [sr0] tag#0 unaligned transfer tlb_flush_mmu+0xea/0x5b0 Buffer I/O error on dev sr0, logical block 1, async page read unmap_page_range+0x1f8d/0x3b10 unmap_single_vma+0x153/0x230 unmap_vmas+0x1d6/0x430 exit_mmap+0x178/0xa70 mmput+0xd5/0x390 do_exit+0x7ad/0x2950 do_group_exit+0xd3/0x2a0 get_signal+0x24aa/0x25d0 arch_do_signal_or_restart+0x80/0x7a0 exit_to_user_mode_loop+0x92/0x4d0 do_syscall_64+0x3c3/0x420 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88801903d340 which belongs to the cache task_struct of size 6848 The buggy address is located 52 bytes inside of freed 6848-byte region [ffff88801903d340, ffff88801903ee00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x19038 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88800e47c5c1 anon flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff88800944c640 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000040004 00000000f5000000 ffff88800e47c5c1 head: 0100000000000040 ffff88800944c640 0000000000000000 dead000000000001 head: 0000000000000000 0000000000040004 00000000f5000000 ffff88800e47c5c1 head: 0100000000000003 ffffea0000640e01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 sr 1:0:0:0: [sr0] tag#0 unaligned transfer page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801903d200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801903d280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801903d300: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ^ ffff88801903d380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801903d400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer rtc_cmos 00:00: Alarms can be up to one day in the future rtc_cmos 00:00: Alarms can be up to one day in the future rtc_cmos 00:00: Alarms can be up to one day in the future rtc_cmos 00:00: Alarms can be up to one day in the future rtc_cmos 00:00: Alarms can be up to one day in the future rtc_cmos 00:00: Alarms can be up to one day in the future rtc rtc0: __rtc_set_alarm: err=-22 Bluetooth: hci6: command 0x0406 tx timeout Bluetooth: hci0: command 0x0406 tx timeout Bluetooth: hci3: command 0x0406 tx timeout Bluetooth: hci1: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout Bluetooth: hci2: command 0x0406 tx timeout