loop0: detected capacity change from 0 to 512 EXT4-fs (loop0): revision level too high, forcing read-only mode [EXT4 FS bs=1024, gc=1, bpg=8192, ipg=32, mo=8842c01c, mo2=0002] EXT4-fs (loop0): orphan cleanup on readonly fs EXT4-fs error (device loop0): ext4_orphan_get:1391: inode #13: comm syz.0.0: iget: bad i_size value: 12154761577498 EXT4-fs error (device loop0): ext4_orphan_get:1396: comm syz.0.0: couldn't read orphan inode 13 (err -117) EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 ro without journal. Quota mode: none. EXT4-fs warning (device loop0): dx_probe:861: inode #2: comm syz.0.0: dx entry: limit 65535 != root limit 120 EXT4-fs warning (device loop0): dx_probe:934: inode #2: comm syz.0.0: Corrupt directory, running e2fsck is recommended ================================================================== BUG: KASAN: slab-use-after-free in __ext4_check_dir_entry+0x755/0x8e0 fs/ext4/dir.c:85 Read of size 2 at addr ffff888000f3b003 by task syz.0.0/5341 CPU: 0 UID: 0 PID: 5341 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 __ext4_check_dir_entry+0x755/0x8e0 fs/ext4/dir.c:85 ext4_readdir+0x13ee/0x3e90 fs/ext4/dir.c:262 iterate_dir+0x399/0x570 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:410 [inline] __se_sys_getdents64+0xe4/0x260 fs/readdir.c:396 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f94c458f7c9 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:00007f94c09f5038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f94c47e5fa0 RCX: 00007f94c458f7c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f94c4613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f94c47e6038 R14: 00007f94c47e5fa0 R15: 00007ffc7c1cec68 Allocated by task 73: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x37d/0x710 mm/slub.c:5270 __skb_ext_alloc net/core/skbuff.c:7023 [inline] skb_ext_add+0x148/0x8f0 net/core/skbuff.c:7127 nf_bridge_alloc include/net/netfilter/br_netfilter.h:12 [inline] br_nf_pre_routing_ipv6+0x132/0x6b0 net/bridge/br_netfilter_ipv6.c:172 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] nf_hook_bridge_pre net/bridge/br_input.c:291 [inline] br_handle_frame+0x96e/0x14f0 net/bridge/br_input.c:442 __netif_receive_skb_core+0x95f/0x2f90 net/core/dev.c:6026 __netif_receive_skb_one_core net/core/dev.c:6137 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6252 process_backlog+0x54f/0x1340 net/core/dev.c:6604 __napi_poll+0xae/0x320 net/core/dev.c:7668 napi_poll net/core/dev.c:7731 [inline] net_rx_action+0x64a/0xe00 net/core/dev.c:7883 handle_softirqs+0x22b/0x7c0 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:936 [inline] __dev_queue_xmit+0x19cb/0x31c0 net/core/dev.c:4846 __ip6_finish_output net/ipv6/ip6_output.c:-1 [inline] ip6_finish_output+0x234/0x7d0 net/ipv6/ip6_output.c:220 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip6_output+0x340/0x550 net/ipv6/ip6_output.c:247 NF_HOOK+0x9e/0x380 include/linux/netfilter.h:318 mld_sendpack+0x8d4/0xe60 net/ipv6/mcast.c:1855 ipv6_mc_dad_complete+0x88/0x410 net/ipv6/mcast.c:2279 addrconf_dad_completed+0x6d5/0xd60 net/ipv6/addrconf.c:4340 addrconf_dad_work+0xc36/0x14b0 net/ipv6/addrconf.c:-1 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xad1/0x1770 kernel/workqueue.c:3340 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3421 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Freed by task 73: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x197/0x620 mm/slub.c:6781 skb_ext_reset include/linux/skbuff.h:5074 [inline] skb_release_head_state+0x270/0x360 net/core/skbuff.c:1174 skb_release_all net/core/skbuff.c:1180 [inline] __kfree_skb net/core/skbuff.c:1196 [inline] sk_skb_reason_drop+0xe9/0x170 net/core/skbuff.c:1234 kfree_skb_reason include/linux/skbuff.h:1322 [inline] kfree_skb include/linux/skbuff.h:1331 [inline] ip6_mc_input+0x8de/0xb70 net/ipv6/ip6_input.c:593 ip_sabotage_in+0x1e1/0x270 net/bridge/br_netfilter_hooks.c:990 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] nf_hook_slow+0xc5/0x220 net/netfilter/core.c:623 nf_hook include/linux/netfilter.h:273 [inline] NF_HOOK+0x206/0x3a0 include/linux/netfilter.h:316 __netif_receive_skb_one_core net/core/dev.c:6139 [inline] __netif_receive_skb+0xd3/0x380 net/core/dev.c:6252 netif_receive_skb_internal net/core/dev.c:6338 [inline] netif_receive_skb+0x1bb/0x750 net/core/dev.c:6397 NF_HOOK+0xa0/0x390 include/linux/netfilter.h:319 br_handle_frame_finish+0x15c6/0x1c90 net/bridge/br_input.c:235 br_nf_hook_thresh+0x3c6/0x4a0 net/bridge/br_netfilter_hooks.c:-1 br_nf_pre_routing_finish_ipv6+0x999/0xd60 net/bridge/br_netfilter_ipv6.c:-1 NF_HOOK include/linux/netfilter.h:318 [inline] br_nf_pre_routing_ipv6+0x37e/0x6b0 net/bridge/br_netfilter_ipv6.c:184 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] nf_hook_bridge_pre net/bridge/br_input.c:291 [inline] br_handle_frame+0x96e/0x14f0 net/bridge/br_input.c:442 __netif_receive_skb_core+0x95f/0x2f90 net/core/dev.c:6026 __netif_receive_skb_one_core net/core/dev.c:6137 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6252 process_backlog+0x54f/0x1340 net/core/dev.c:6604 __napi_poll+0xae/0x320 net/core/dev.c:7668 napi_poll net/core/dev.c:7731 [inline] net_rx_action+0x64a/0xe00 net/core/dev.c:7883 handle_softirqs+0x22b/0x7c0 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:936 [inline] __dev_queue_xmit+0x19cb/0x31c0 net/core/dev.c:4846 __ip6_finish_output net/ipv6/ip6_output.c:-1 [inline] ip6_finish_output+0x234/0x7d0 net/ipv6/ip6_output.c:220 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip6_output+0x340/0x550 net/ipv6/ip6_output.c:247 NF_HOOK+0x9e/0x380 include/linux/netfilter.h:318 mld_sendpack+0x8d4/0xe60 net/ipv6/mcast.c:1855 ipv6_mc_dad_complete+0x88/0x410 net/ipv6/mcast.c:2279 addrconf_dad_completed+0x6d5/0xd60 net/ipv6/addrconf.c:4340 addrconf_dad_work+0xc36/0x14b0 net/ipv6/addrconf.c:-1 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xad1/0x1770 kernel/workqueue.c:3340 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3421 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the object at ffff888000f3b000 which belongs to the cache skbuff_ext_cache of size 192 The buggy address is located 3 bytes inside of freed 192-byte region [ffff888000f3b000, ffff888000f3b0c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf3b flags: 0x7ff00000000000(node=0|zone=0|lastcpupid=0x7ff) page_type: f5(slab) raw: 007ff00000000000 ffff888030465140 dead000000000122 0000000000000000 raw: 0000000000000000 0000000080100010 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 73, tgid 73 (kworker/u4:5), ts 75075531408, free_ts 12313965196 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0x24e0/0x2580 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3b0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xe53/0x1820 mm/slub.c:4656 __slab_alloc+0x65/0x100 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_noprof+0x40f/0x710 mm/slub.c:5270 __skb_ext_alloc net/core/skbuff.c:7023 [inline] skb_ext_add+0x148/0x8f0 net/core/skbuff.c:7127 nf_bridge_alloc include/net/netfilter/br_netfilter.h:12 [inline] br_nf_pre_routing_ipv6+0x132/0x6b0 net/bridge/br_netfilter_ipv6.c:172 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] nf_hook_bridge_pre net/bridge/br_input.c:291 [inline] br_handle_frame+0x96e/0x14f0 net/bridge/br_input.c:442 __netif_receive_skb_core+0x95f/0x2f90 net/core/dev.c:6026 __netif_receive_skb_one_core net/core/dev.c:6137 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6252 process_backlog+0x54f/0x1340 net/core/dev.c:6604 __napi_poll+0xae/0x320 net/core/dev.c:7668 napi_poll net/core/dev.c:7731 [inline] net_rx_action+0x64a/0xe00 net/core/dev.c:7883 page last free pid 9 tgid 9 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0xbc8/0xd30 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x146/0x170 mm/slub.c:3886 __slab_free+0x294/0x320 mm/slub.c:5952 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __kmalloc_cache_noprof+0x37c/0x700 mm/slub.c:5771 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] virtio_gpu_plane_duplicate_state+0x72/0xb0 drivers/gpu/drm/virtio/virtgpu_plane.c:82 drm_atomic_get_plane_state+0x25a/0x670 drivers/gpu/drm/drm_atomic.c:569 drm_atomic_helper_dirtyfb+0xce5/0xee0 drivers/gpu/drm/drm_damage_helper.c:173 drm_fbdev_shmem_helper_fb_dirty+0x160/0x2d0 drivers/gpu/drm/drm_fbdev_shmem.c:117 drm_fb_helper_fb_dirty drivers/gpu/drm/drm_fb_helper.c:346 [inline] drm_fb_helper_damage_work+0x245/0x710 drivers/gpu/drm/drm_fb_helper.c:369 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xad1/0x1770 kernel/workqueue.c:3340 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3421 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 Memory state around the buggy address: ffff888000f3af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888000f3af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888000f3b000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888000f3b080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888000f3b100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================