(kworker/u4:10,3000,0):ocfs2_read_blocks_sync:112 ERROR: status = -12 (kworker/u4:10,3000,0):ocfs2_read_locked_inode:521 ERROR: status = -12 ================================================================== BUG: KASAN: slab-out-of-bounds in ocfs2_check_dir_entry fs/ocfs2/dir.c:305 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_dir_foreach_blk_id fs/ocfs2/dir.c:1784 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_dir_foreach_blk+0x1704/0x1b20 fs/ocfs2/dir.c:1912 Read of size 2 at addr ffff88804ef6e780 by task kworker/u4:10/3000 CPU: 0 UID: 0 PID: 3000 Comm: kworker/u4:10 Not tainted 6.12.0-rc5-syzkaller-00005-ge42b1a9a2557 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: ocfs2_wq ocfs2_complete_recovery Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 ocfs2_check_dir_entry fs/ocfs2/dir.c:305 [inline] ocfs2_dir_foreach_blk_id fs/ocfs2/dir.c:1784 [inline] ocfs2_dir_foreach_blk+0x1704/0x1b20 fs/ocfs2/dir.c:1912 ocfs2_dir_foreach+0xb4/0x100 fs/ocfs2/dir.c:1923 ocfs2_queue_orphans fs/ocfs2/journal.c:2186 [inline] ocfs2_recover_orphans fs/ocfs2/journal.c:2270 [inline] ocfs2_complete_recovery+0xcf1/0x25c0 fs/ocfs2/journal.c:1351 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 5307: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:247 [inline] slab_post_alloc_hook mm/slub.c:4085 [inline] slab_alloc_node mm/slub.c:4134 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4141 fib_table_insert+0x604/0x1f30 net/ipv4/fib_trie.c:1363 fib_magic+0x3d8/0x620 net/ipv4/fib_frontend.c:1104 fib_add_ifaddr+0x40c/0x5e0 net/ipv4/fib_frontend.c:1148 fib_netdev_event+0x375/0x490 net/ipv4/fib_frontend.c:1486 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 __dev_notify_flags+0x207/0x400 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8918 do_setlink+0xcd0/0x41f0 net/core/rtnetlink.c:2929 __rtnl_newlink net/core/rtnetlink.c:3725 [inline] rtnl_newlink+0x180d/0x20a0 net/core/rtnetlink.c:3772 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6675 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2551 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:744 __sys_sendto+0x39b/0x4f0 net/socket.c:2214 __do_sys_sendto net/socket.c:2226 [inline] __se_sys_sendto net/socket.c:2222 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2222 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88804ef6e738 which belongs to the cache ip_fib_alias of size 56 The buggy address is located 16 bytes to the right of allocated 56-byte region [ffff88804ef6e738, ffff88804ef6e770) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ef6e flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88801e123dc0 dead000000000122 0000000000000000 raw: 0000000000000000 00000000002e002e 00000001f5000000 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 5307, tgid 5307 (syz-executor), ts 66526074518, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1545 [inline] get_page_from_freelist+0x3045/0x3190 mm/page_alloc.c:3457 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4733 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 alloc_slab_page+0x6a/0x120 mm/slub.c:2412 allocate_slab+0x5a/0x2f0 mm/slub.c:2578 new_slab mm/slub.c:2631 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3818 __slab_alloc+0x58/0xa0 mm/slub.c:3908 __slab_alloc_node mm/slub.c:3961 [inline] slab_alloc_node mm/slub.c:4122 [inline] kmem_cache_alloc_noprof+0x1c1/0x2a0 mm/slub.c:4141 fib_table_insert+0x604/0x1f30 net/ipv4/fib_trie.c:1363 fib_magic+0x3d8/0x620 net/ipv4/fib_frontend.c:1104 fib_add_ifaddr+0x40c/0x5e0 net/ipv4/fib_frontend.c:1148 fib_netdev_event+0x375/0x490 net/ipv4/fib_frontend.c:1486 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 __dev_notify_flags+0x207/0x400 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8918 page_owner free stack trace missing Memory state around the buggy address: ffff88804ef6e680: fc 00 00 00 00 00 00 00 fc fc fc fc 00 00 00 00 ffff88804ef6e700: 00 00 00 fc fc fc fc 00 00 00 00 00 00 00 fc fc >ffff88804ef6e780: fc fc 00 00 00 00 00 00 00 fc fc fc fc 00 00 00 ^ ffff88804ef6e800: 00 00 00 00 fc fc fc fc 00 00 00 00 00 00 00 fc ffff88804ef6e880: fc fc fc 00 00 00 00 00 00 00 fc fc fc fc 00 00 ==================================================================