================================================================== BUG: KASAN: slab-out-of-bounds in shrink_folio_list+0x141d/0x37d0 Read of size 8 at addr ffff888042498741 by task syz-executor.5/89988 CPU: 0 PID: 89988 Comm: syz-executor.5 Not tainted 6.4.0-next-20230706 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0x91/0xf0 print_report+0xcc/0x620 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 kasan_report+0xbe/0xf0 kasan_check_range+0x39/0x1b0 shrink_folio_list+0x141d/0x37d0 reclaim_folio_list+0xc4/0x300 reclaim_pages+0x377/0x520 madvise_cold_or_pageout_pte_range+0xc9c/0xf90 walk_pgd_range+0xcc3/0x1740 __walk_page_range+0x5f6/0x720 walk_page_range+0x316/0x4b0 madvise_pageout+0x30b/0x580 madvise_vma_behavior+0x413/0x20a0 do_madvise.part.0+0x39a/0x650 __x64_sys_madvise+0x10c/0x160 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f9871fabb19 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:00007f986f521188 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f98720bef60 RCX: 00007f9871fabb19 RDX: 0000000000000015 RSI: 0000000000004000 RDI: 0000000020ffa000 RBP: 00007f9872005f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc195a572f R14: 00007f986f521300 R15: 0000000000022000 CPU: 1 PID: 89984 Comm: syz-executor.7 Not tainted 6.4.0-next-20230706 #1 Allocated by task 7327: Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 kasan_save_stack+0x22/0x50 Call Trace: kasan_set_track+0x25/0x30 __kasan_slab_alloc+0x59/0x70 dump_stack_lvl+0xc1/0xf0 kmem_cache_alloc+0x17b/0x390 should_fail_ex+0x4b4/0x5b0 anon_vma_fork+0xe6/0x630 dup_mmap+0xaf9/0x1250 should_failslab+0x9/0x20 copy_process+0x3e68/0x7320 __kmem_cache_alloc_node+0x66/0x310 kernel_clone+0xeb/0x7d0 __do_sys_clone+0xba/0x100 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 __kmalloc_node_track_caller+0x4b/0x160 The buggy address belongs to the object at ffff888042498660 which belongs to the cache anon_vma of size 208 kstrdup+0x3f/0x80 The buggy address is located 17 bytes to the right of allocated 208-byte region [ffff888042498660, ffff888042498730) kstrdup_const+0x57/0x80 The buggy address belongs to the physical page: alloc_vfsmnt+0xb5/0x6c0 page:00000000f8135b68 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42498 clone_mnt+0x6c/0xd80 memcg:ffff888019d25a01 copy_tree+0x3b3/0x8a0 anon flags: 0x100000000000200(slab|node=0|zone=1) copy_mnt_ns+0x1a9/0xae0 page_type: 0xffffffff() raw: 0100000000000200 ffff8880087a2280 ffffea00003d2380 dead000000000003 create_new_namespaces+0xd6/0xb30 raw: 0000000000000000 00000000000f000f 00000001ffffffff ffff888019d25a01 page dumped because: kasan: bad access detected copy_namespaces+0x414/0x500 Memory state around the buggy address: copy_process+0x2b78/0x7320 ffff888042498600: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 ffff888042498680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888042498700: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 ^ kernel_clone+0xeb/0x7d0 ffff888042498780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888042498800: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ================================================================== hpet: Lost 4 RTC interrupts __do_sys_clone3+0x1d5/0x250 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7ff715676b19 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:00007ff712bec188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007ff715789f60 RCX: 00007ff715676b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00000000200016c0 RBP: 00007ff712bec1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc76087d6f R14: 00007ff712bec300 R15: 0000000000022000 UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy misc raw-gadget: fail, usb_gadget_register_driver returned -16