EXT4-fs (loop4): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117) EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 6: len 1: ext4_ext_map_blocks returned -117 EXT4-fs (loop4): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117) ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_ext_binsearch fs/ext4/extents.c:826 [inline] BUG: KASAN: slab-out-of-bounds in ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:945 Read of size 4 at addr ffff888121813a58 by task kworker/u4:2/286 CPU: 1 PID: 286 Comm: kworker/u4:2 Not tainted 5.10.240-syzkaller-1008085-g1154f779f3f3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_ext_binsearch fs/ext4/extents.c:826 [inline] ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:945 ext4_ext_map_blocks+0x1de/0x5d40 fs/ext4/extents.c:4160 ext4_map_blocks+0x978/0x1bc0 fs/ext4/inode.c:674 ext4_convert_unwritten_extents+0x21c/0x3f0 fs/ext4/extents.c:4862 ext4_convert_unwritten_io_end_vec+0x103/0x180 fs/ext4/extents.c:4901 ext4_end_io_end fs/ext4/page-io.c:189 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:262 [inline] ext4_end_io_rsv_work+0x2b9/0x600 fs/ext4/page-io.c:276 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Allocated by task 325: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a7/0x330 mm/slub.c:4033 __kmalloc_node include/linux/slab.h:418 [inline] kmalloc_node include/linux/slab.h:575 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:822 [inline] kvmalloc_array include/linux/mm.h:840 [inline] __ptr_ring_init_queue_alloc include/linux/ptr_ring.h:471 [inline] ptr_ring_init include/linux/ptr_ring.h:489 [inline] wg_packet_queue_init+0x95/0x320 drivers/net/wireguard/queueing.c:32 wg_newlink+0x489/0x7a0 drivers/net/wireguard/device.c:341 __rtnl_newlink net/core/rtnetlink.c:3482 [inline] rtnl_newlink+0x11bd/0x1640 net/core/rtnetlink.c:3530 rtnetlink_rcv_msg+0x9db/0xb90 net/core/rtnetlink.c:5610 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5628 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x88d/0xb30 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x41d/0x580 net/socket.c:2006 __do_sys_sendto net/socket.c:2018 [inline] __se_sys_sendto net/socket.c:2014 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2014 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888121810000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 6744 bytes to the right of 8192-byte region [ffff888121810000, ffff888121812000) The buggy address belongs to the page: page:ffffea0004860400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121810 head:ffffea0004860400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042a80 raw: 0000000000000000 0000000000020002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 325, ts 51630222443, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1808 [inline] new_slab+0x84/0x3f0 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2791 __slab_alloc+0x63/0xa0 mm/slub.c:2831 slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] __kmalloc+0x201/0x330 mm/slub.c:4029 __kmalloc_node include/linux/slab.h:418 [inline] kmalloc_node include/linux/slab.h:575 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:822 [inline] kvmalloc_array include/linux/mm.h:840 [inline] __ptr_ring_init_queue_alloc include/linux/ptr_ring.h:471 [inline] ptr_ring_init include/linux/ptr_ring.h:489 [inline] wg_packet_queue_init+0x95/0x320 drivers/net/wireguard/queueing.c:32 wg_newlink+0x454/0x7a0 drivers/net/wireguard/device.c:336 __rtnl_newlink net/core/rtnetlink.c:3482 [inline] rtnl_newlink+0x11bd/0x1640 net/core/rtnetlink.c:3530 rtnetlink_rcv_msg+0x9db/0xb90 net/core/rtnetlink.c:5610 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5628 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x88d/0xb30 net/netlink/af_netlink.c:1914 page_owner free stack trace missing Memory state around the buggy address: ffff888121813900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888121813980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888121813a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888121813a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888121813b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 7: len 1: ext4_ext_map_blocks returned -117 EXT4-fs (loop4): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117) EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 8: len 1: ext4_ext_map_blocks returned -117 EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 9: len 1: ext4_ext_map_blocks returned -117 EXT4-fs error (device loop4): ext4_map_blocks:740: inode #19: block 205: comm kworker/u4:2: lblock 13 mapped to illegal pblock 205 (length 1) EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 13: len 1: ext4_ext_map_blocks returned -117 EXT4-fs error (device loop4): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop4) in ext4_reserve_inode_write:5933: Corrupt filesystem EXT4-fs error (device loop4): ext4_convert_unwritten_extents:4870: inode #19: comm kworker/u4:2: mark_inode_dirty error EXT4-fs (loop4): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117) EXT4-fs error (device loop2): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop2): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop4): ext4_map_blocks:740: inode #19: block 224: comm kworker/u4:2: lblock 16 mapped to illegal pblock 224 (length 1) EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 16: len 1: ext4_ext_map_blocks returned -117 EXT4-fs error (device loop4): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop4) in ext4_reserve_inode_write:5933: Corrupt filesystem EXT4-fs error (device loop4): ext4_convert_unwritten_extents:4870: inode #19: comm kworker/u4:2: mark_inode_dirty error EXT4-fs (loop4): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117) EXT4-fs error (device loop4): ext4_map_blocks:740: inode #19: block 204: comm kworker/u4:2: lblock 12 mapped to illegal pblock 204 (length 1) EXT4-fs warning (device loop4): ext4_convert_unwritten_extents:4869: inode #19: block 12: len 1: ext4_ext_map_blocks returned -117 EXT4-fs error (device loop4): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop4) in ext4_reserve_inode_write:5933: Corrupt filesystem EXT4-fs error (device loop4): ext4_convert_unwritten_extents:4870: inode #19: comm kworker/u4:2: mark_inode_dirty error EXT4-fs (loop4): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117) EXT4-fs error (device loop4): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop4): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop1): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop3): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop3): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop1): ext4_map_blocks:740: inode #19: block 203: comm kworker/u4:2: lblock 11 mapped to illegal pblock 203 (length 1) EXT4-fs warning (device loop1): ext4_convert_unwritten_extents:4869: inode #19: block 11: len 1: ext4_ext_map_blocks returned -117 EXT4-fs error (device loop1): __ext4_get_inode_loc:4438: comm kworker/u4:2: Invalid inode table block 34360905424 in block_group 0 EXT4-fs error (device loop1) in ext4_reserve_inode_write:5933: Corrupt filesystem EXT4-fs error (device loop1): ext4_convert_unwritten_extents:4870: inode #19: comm kworker/u4:2: mark_inode_dirty error EXT4-fs (loop1): failed to convert unwritten extents to written extents -- potential data loss! (inode 19, error -117)