loop7: detected capacity change from 0 to 32768
==================================================================
BUG: KASAN: slab-use-after-free in dtSearch+0x16b4/0x21b0
Read of size 1 at addr ffff888031db9014 by task syz.7.9063/29812

CPU: 1 UID: 0 PID: 29812 Comm: syz.7.9063 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
 dtSearch+0x16b4/0x21b0
 jfs_lookup+0x155/0x380
 path_openat+0x1101/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff6eb78ec29
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:00007ff6ec57a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ff6eb9d5fa0 RCX: 00007ff6eb78ec29
RDX: 0000000000143042 RSI: 0000200000000d80 RDI: ffffffffffffff9c
RBP: 00007ff6eb811e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff6eb9d6038 R14: 00007ff6eb9d5fa0 R15: 00007ffe2c9cf3b8
 </TASK>

Allocated by task 27287:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 jfs_alloc_inode+0x28/0x70
 alloc_inode+0x6a/0x1b0
 new_inode+0x22/0x170
 ialloc+0x4c/0x8f0
 jfs_create+0x18d/0xa80
 path_openat+0x14f4/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 23:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free+0x18f/0x400
 rcu_core+0xcab/0x1770
 handle_softirqs+0x286/0x870
 run_ksoftirqd+0x9b/0x100
 smpboot_thread_fn+0x542/0xa60
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 evict+0x847/0x9c0
 evict_inodes+0x64c/0x6d0
 generic_shutdown_super+0x9a/0x2c0
 kill_block_super+0x44/0x90
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x425/0x4c0
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888031db8928
 which belongs to the cache jfs_ip of size 2216
The buggy address is located 1772 bytes inside of
 freed 2216-byte region [ffff888031db8928, ffff888031db91d0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888031db9b78 pfn:0x31db8
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88803a957a01
ksm flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801ab3ba00 ffffea0000f79200 0000000000000003
raw: ffff888031db9b78 00000000800d000c 00000000f5000000 ffff88803a957a01
head: 00fff00000000040 ffff88801ab3ba00 ffffea0000f79200 0000000000000003
head: ffff888031db9b78 00000000800d000c 00000000f5000000 ffff88803a957a01
head: 00fff00000000003 ffffea0000c76e01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd2050(__GFP_RECLAIMABLE|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 27010, tgid 27009 (syz.6.4941), ts 662312207500, free_ts 488005379573
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x370
 ___slab_alloc+0xbeb/0x1420
 kmem_cache_alloc_lru_noprof+0x288/0x3d0
 jfs_alloc_inode+0x28/0x70
 alloc_inode+0x6a/0x1b0
 iget_locked+0x106/0x580
 jfs_iget+0x24/0x3e0
 jfs_nfs_get_inode+0x2f/0xd0
 generic_fh_to_dentry+0x9f/0xf0
 exportfs_decode_fh_raw+0x178/0x6e0
 do_handle_to_path+0xa4/0x1a0
 do_handle_open+0x6b4/0x8f0
page last free pid 5851 tgid 5851 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 __slab_free+0x303/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_cache_noprof+0x1be/0x3d0
 netdevice_event+0x3a1/0x8a0
 notifier_call_chain+0x1b6/0x3e0
 unregister_netdevice_many_notify+0x14d7/0x1ff0
 default_device_exit_batch+0x819/0x890
 ops_undo_list+0x525/0x990
 cleanup_net+0x4d8/0x820
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0

Memory state around the buggy address:
 ffff888031db8f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888031db8f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888031db9000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                         ^
 ffff888031db9080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888031db9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
