EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 1280 (only 16 groups) ================================================================== BUG: KASAN: slab-out-of-bounds in shrink_folio_list+0x141d/0x37d0 Read of size 8 at addr ffff88800e64ffc1 by task syz-executor.1/5302 CPU: 1 PID: 5302 Comm: syz-executor.1 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 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 syz-executor.6: attempt to access beyond end of device loop6: rw=4096, sector=2, nr_sectors = 2 limit=0 EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 1280 (only 16 groups) walk_pgd_range+0xcc3/0x1740 EXT4-fs (loop6): unable to read superblock __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:0x7f534afb4b19 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:00007f534852a188 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f534b0c7f60 RCX: 00007f534afb4b19 RDX: 0000000000000015 RSI: 0000000000004000 RDI: 0000000020ffa000 RBP: 00007f534b00ef6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd256d631f R14: 00007f534852a300 R15: 0000000000022000 Allocated by task 268: kasan_save_stack+0x22/0x50 kasan_set_track+0x25/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc+0x17b/0x390 anon_vma_fork+0xe6/0x630 dup_mmap+0xaf9/0x1250 copy_process+0x3e68/0x7320 kernel_clone+0xeb/0x7d0 __do_sys_clone+0xba/0x100 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 The buggy address belongs to the object at ffff88800e64fee0 which belongs to the cache anon_vma of size 208 The buggy address is located 17 bytes to the right of allocated 208-byte region [ffff88800e64fee0, ffff88800e64ffb0) The buggy address belongs to the physical page: page:000000009192c854 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe64f memcg:ffff88803eafd801 flags: 0x100000000000200(slab|node=0|zone=1) page_type: 0xffffffff() raw: 0100000000000200 ffff8880087a2280 ffffea000105e500 dead000000000006 raw: 0000000000000000 00000000000f000f 00000001ffffffff ffff88803eafd801 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88800e64fe80: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 ffff88800e64ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88800e64ff80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff88800e650000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88800e650080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. syz-executor.0 uses obsolete (PF_INET,SOCK_PACKET) syz-executor.6: attempt to access beyond end of device loop6: rw=4096, sector=2, nr_sectors = 2 limit=0 EXT4-fs (loop6): unable to read superblock EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 1280 (only 16 groups) sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s sr 1:0:0:0: [sr0] tag#0 Sense Key : Not Ready [current] sr 1:0:0:0: [sr0] tag#0 Add. Sense: Medium not present sr 1:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 40 00 I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 2 sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 0, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 1, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 2, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 3 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 3, async page read 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 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 sr 1:0:0:0: [sr0] tag#0 unaligned transfer I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 Buffer I/O error on dev sr0, logical block 0, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer Buffer I/O error on dev sr0, logical block 1, async page read 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 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 EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 1280 (only 16 groups) netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 1280 (only 16 groups)