==================================================================
BUG: KASAN: slab-use-after-free in zpool_get_total_pages+0x46/0x70
Read of size 8 at addr ffff88801b3ae530 by task syz.2.147/6256

CPU: 1 UID: 0 PID: 6256 Comm: syz.2.147 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 kasan_check_range+0x2b0/0x2c0
 zpool_get_total_pages+0x46/0x70
 zswap_total_pages+0xf6/0x1e0
 zswap_store+0x52f/0x1f40
 swap_writeout+0x710/0xd70
 shrink_folio_list+0x3011/0x4c70
 reclaim_folio_list+0xeb/0x500
 reclaim_pages+0x454/0x520
 madvise_cold_or_pageout_pte_range+0x1974/0x1d00
 walk_pgd_range+0xfe9/0x1d40
 __walk_page_range+0x14c/0x710
 walk_page_range_vma+0x393/0x440
 madvise_vma_behavior+0x311f/0x3a10
 madvise_walk_vmas+0x51c/0xa30
 madvise_do_behavior+0x38e/0x550
 do_madvise+0x1bc/0x270
 __x64_sys_madvise+0xa7/0xc0
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa0cdf8ec29
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa0cee3e038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fa0ce1d6090 RCX: 00007fa0cdf8ec29
RDX: 0000000000000015 RSI: 0000000000c00000 RDI: 0000200000000000
RBP: 00007fa0ce011e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa0ce1d6128 R14: 00007fa0ce1d6090 R15: 00007fffa61a6cd8
 </TASK>

Allocated by task 1:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x367/0x6e0
 acpi_ps_alloc_op+0x16d/0x350
 acpi_ps_create_op+0x3a2/0xb30
 acpi_ps_parse_loop+0x5ea/0x1ab0
 acpi_ps_parse_aml+0x22d/0x9b0
 acpi_ps_execute_method+0x58d/0x7c0
 acpi_ns_evaluate+0x5a6/0xa20
 acpi_evaluate_object+0x53f/0xa10
 acpi_evaluate_integer+0xfc/0x270
 acpi_bus_get_status+0x14a/0x380
 acpi_bus_attach+0x232/0xbb0
 device_for_each_child+0x103/0x190
 acpi_dev_for_each_child+0x93/0xd0
 acpi_bus_attach+0x32f/0xbb0
 device_for_each_child+0x103/0x190
 acpi_dev_for_each_child+0x93/0xd0
 acpi_bus_attach+0x32f/0xbb0
 acpi_bus_scan+0x121/0x4b0
 acpi_scan_init+0x1b0/0x550
 acpi_init+0x130/0x1f0
 do_one_initcall+0x236/0x820
 do_initcall_level+0x104/0x190
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x334/0x4b0
 kernel_init+0x1d/0x1d0
 ret_from_fork+0x4bc/0x870
 ret_from_fork_asm+0x1a/0x30

Freed by task 1:
 kasan_save_track+0x3e/0x80
 __kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x19b/0x690
 acpi_os_release_object+0x1d/0x30
 acpi_ps_delete_parse_tree+0x97/0xe0
 acpi_ps_complete_this_op+0x74c/0x8a0
 acpi_ps_complete_op+0x86/0xa90
 acpi_ps_parse_loop+0xd46/0x1ab0
 acpi_ps_parse_aml+0x22d/0x9b0
 acpi_ps_execute_method+0x58d/0x7c0
 acpi_ns_evaluate+0x5a6/0xa20
 acpi_evaluate_object+0x53f/0xa10
 acpi_evaluate_integer+0xfc/0x270
 acpi_bus_get_status+0x14a/0x380
 acpi_bus_attach+0x232/0xbb0
 device_for_each_child+0x103/0x190
 acpi_dev_for_each_child+0x93/0xd0
 acpi_bus_attach+0x32f/0xbb0
 device_for_each_child+0x103/0x190
 acpi_dev_for_each_child+0x93/0xd0
 acpi_bus_attach+0x32f/0xbb0
 acpi_bus_scan+0x121/0x4b0
 acpi_scan_init+0x1b0/0x550
 acpi_init+0x130/0x1f0
 do_one_initcall+0x236/0x820
 do_initcall_level+0x104/0x190
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x334/0x4b0
 kernel_init+0x1d/0x1d0
 ret_from_fork+0x4bc/0x870
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff88801b3ae528
 which belongs to the cache Acpi-Parse of size 56
The buggy address is located 8 bytes inside of
 freed 56-byte region [ffff88801b3ae528, ffff88801b3ae560)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88801b3aea50 pfn:0x1b3ae
anon flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88801a894b40 0000000000000000 0000000000000001
raw: ffff88801b3aea50 00000000002e0000 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 3330059397, free_ts 0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x96/0x3a0
 ___slab_alloc+0xe94/0x1920
 __slab_alloc+0x65/0x100
 kmem_cache_alloc_noprof+0x3f9/0x6e0
 acpi_ps_alloc_op+0x16d/0x350
 acpi_ps_create_op+0x3a2/0xb30
 acpi_ps_parse_loop+0x5ea/0x1ab0
 acpi_ps_parse_aml+0x22d/0x9b0
 acpi_ps_execute_method+0x58d/0x7c0
 acpi_ns_evaluate+0x5a6/0xa20
 acpi_evaluate_object+0x53f/0xa10
 acpi_evaluate_integer+0xfc/0x270
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88801b3ae400: fc fc fc fc fa fb fb fb fb fb fb fc fc fc fc fa
 ffff88801b3ae480: fb fb fb fb fb fb fc fc fc fc fa fb fb fb fb fb
>ffff88801b3ae500: fb fc fc fc fc fa fb fb fb fb fb fb fc fc fc fc
                                     ^
 ffff88801b3ae580: fa fb fb fb fb fb fb fc fc fc fc fa fb fb fb fb
 ffff88801b3ae600: fb fb fc fc fc fc fa fb fb fb fb fb fb fc fc fc
==================================================================
