EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue
EXT4-fs error (device loop3): ext4_xattr_ibody_get:591: inode #18: comm syz-executor.3: corrupted in-inode xattr
==================================================================
BUG: KASAN: use-after-free in get_max_inline_xattr_value_size+0x373/0x510 fs/ext4/inline.c:61
Read of size 4 at addr ffff8881eb530074 by task syz-executor.3/8108

CPU: 1 PID: 8108 Comm: syz-executor.3 Not tainted 5.4.219-syzkaller-00002-ga0eae55f26a0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1d8/0x241 lib/dump_stack.c:118
 print_address_description+0x8c/0x630 mm/kasan/report.c:384
 __kasan_report+0xf6/0x130 mm/kasan/report.c:516
 kasan_report+0x30/0x60 mm/kasan/common.c:653
 get_max_inline_xattr_value_size+0x373/0x510 fs/ext4/inline.c:61
 ext4_get_max_inline_size+0x139/0x1f0 fs/ext4/inline.c:112
 ext4_try_to_write_inline_data+0xd9/0x1750 fs/ext4/inline.c:673
 ext4_write_begin+0x247/0x1d50 fs/ext4/inode.c:1312
 ext4_da_write_begin+0x4a8/0xf80 fs/ext4/inode.c:3110
 generic_perform_write+0x2f9/0x5a0 mm/filemap.c:3311
 __generic_file_write_iter+0x239/0x490 mm/filemap.c:3440
 ext4_file_write_iter+0x495/0x10e0 fs/ext4/file.c:270
 do_iter_readv_writev+0x529/0x740 fs/read_write.c:690
 do_iter_write+0x16f/0x570 fs/read_write.c:970
 iter_file_splice_write+0x887/0x10f0 fs/splice.c:746
 splice_direct_to_actor+0x4c4/0xb20 fs/splice.c:976
 do_splice_direct+0x2a0/0x3f0 fs/splice.c:1064
 do_sendfile+0x8f2/0xf10 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1511
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1

Allocated by task 155:
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 __kasan_kmalloc+0x131/0x1e0 mm/kasan/common.c:529
 slab_post_alloc_hook mm/slab.h:584 [inline]
 slab_alloc_node mm/slub.c:2829 [inline]
 slab_alloc mm/slub.c:2837 [inline]
 kmem_cache_alloc+0xd0/0x210 mm/slub.c:2842
 kmem_cache_alloc_node include/linux/slab.h:427 [inline]
 __alloc_skb+0x78/0x4d0 net/core/skbuff.c:198
 alloc_skb include/linux/skbuff.h:1060 [inline]
 netlink_alloc_large_skb net/netlink/af_netlink.c:1184 [inline]
 netlink_sendmsg+0x782/0xcc0 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 ____sys_sendmsg+0x5a6/0x8f0 net/socket.c:2287
 ___sys_sendmsg net/socket.c:2341 [inline]
 __sys_sendmsg+0x2b7/0x3a0 net/socket.c:2387
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1

Freed by task 862:
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 kasan_set_free_info mm/kasan/common.c:345 [inline]
 __kasan_slab_free+0x178/0x240 mm/kasan/common.c:487
 slab_free_hook mm/slub.c:1455 [inline]
 slab_free_freelist_hook+0x80/0x150 mm/slub.c:1494
 slab_free mm/slub.c:3080 [inline]
 kmem_cache_free+0xa9/0x1d0 mm/slub.c:3096
 skb_free_datagram+0x24/0xd0 net/core/datagram.c:329
 netlink_recvmsg+0x5c7/0x1110 net/netlink/af_netlink.c:2011
 sock_recvmsg_nosec net/socket.c:872 [inline]
 sock_recvmsg net/socket.c:890 [inline]
 ____sys_recvmsg net/socket.c:2519 [inline]
 ___sys_recvmsg net/socket.c:2560 [inline]
 __sys_recvmsg+0x4d4/0x7c0 net/socket.c:2607
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1

The buggy address belongs to the object at ffff8881eb530000
 which belongs to the cache skbuff_head_cache of size 240
The buggy address is located 116 bytes inside of
 240-byte region [ffff8881eb530000, ffff8881eb5300f0)
The buggy address belongs to the page:
page:ffffea0007ad4c00 refcount:1 mapcount:0 mapping:ffff8881f1ddd680 index:0x0
flags: 0x8000000000000200(slab)
raw: 8000000000000200 dead000000000100 dead000000000122 ffff8881f1ddd680
raw: 0000000000000000 00000000000c000c 00000001ffffffff 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 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL)
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook mm/page_alloc.c:2165 [inline]
 prep_new_page+0x194/0x380 mm/page_alloc.c:2171
 get_page_from_freelist+0x524/0x560 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x372/0x860 mm/page_alloc.c:4891
 alloc_slab_page+0x39/0x3e0 mm/slub.c:343
 allocate_slab mm/slub.c:1683 [inline]
 new_slab+0x97/0x450 mm/slub.c:1749
 new_slab_objects mm/slub.c:2505 [inline]
 ___slab_alloc+0x320/0x4a0 mm/slub.c:2667
 __slab_alloc+0x5a/0x90 mm/slub.c:2707
 slab_alloc_node mm/slub.c:2792 [inline]
 slab_alloc mm/slub.c:2837 [inline]
 kmem_cache_alloc+0x100/0x210 mm/slub.c:2842
 kmem_cache_alloc_node include/linux/slab.h:427 [inline]
 __alloc_skb+0x78/0x4d0 net/core/skbuff.c:198
 alloc_skb include/linux/skbuff.h:1060 [inline]
 nlmsg_new include/net/netlink.h:888 [inline]
 inet6_ifa_notify net/ipv6/addrconf.c:5436 [inline]
 __ipv6_ifa_notify+0x2c0/0x12d0 net/ipv6/addrconf.c:6049
 ipv6_ifa_notify net/ipv6/addrconf.c:6102 [inline]
 addrconf_dad_completed+0x17e/0xe40 net/ipv6/addrconf.c:4212
 addrconf_dad_work+0xd60/0x15b0 net/ipv6/addrconf.c:4016
 process_one_work+0x6ca/0xc40 kernel/workqueue.c:2287
 worker_thread+0xae0/0x1440 kernel/workqueue.c:2433
 kthread+0x2d8/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1176 [inline]
 free_pcp_prepare+0x1a4/0x290 mm/page_alloc.c:1233
 free_unref_page_prepare mm/page_alloc.c:3085 [inline]
 free_unref_page mm/page_alloc.c:3134 [inline]
 free_the_page mm/page_alloc.c:4951 [inline]
 __free_pages+0x9c/0x250 mm/page_alloc.c:4959
 mm_free_pgd kernel/fork.c:643 [inline]
 __mmdrop+0xae/0x3c0 kernel/fork.c:694
 exit_mm kernel/exit.c:489 [inline]
 do_exit+0xc44/0x2d30 kernel/exit.c:799
 do_group_exit+0x136/0x300 kernel/exit.c:910
 get_signal+0xd99/0x13f0 kernel/signal.c:2735
 do_signal+0xb0/0x1200 arch/x86/kernel/signal.c:809
 exit_to_usermode_loop+0xdd/0x1d0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode+0x17c/0x1d0 arch/x86/entry/common.c:194
 swapgs_restore_regs_and_return_to_usermode+0x0/0x54

Memory state around the buggy address:
 ffff8881eb52ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881eb52ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881eb530000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                             ^
 ffff8881eb530080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
 ffff8881eb530100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
==================================================================
EXT4-fs error (device loop3): ext4_read_block_bitmap_nowait:430: comm syz-executor.3: Invalid block bitmap block 0 in block_group 0