xfs filesystem being mounted at /root/file0 supports timestamps until 2038-01-19 (0x7fffffff) XFS (loop0): Unmounting Filesystem acfebfcd-0806-4e27-9777-0ac4ff5ddf54 ================================================================== BUG: KASAN: slab-out-of-bounds in xlog_pack_data+0x501/0x570 fs/xfs/xfs_log.c:1822 Read of size 4 at addr ffff888075ce4e00 by task syz-executor583/5001 CPU: 0 PID: 5001 Comm: syz-executor583 Not tainted 6.4.0-rc6-syzkaller-00026-gfb054096aea0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 xlog_pack_data+0x501/0x570 fs/xfs/xfs_log.c:1822 xlog_sync+0x189/0xa50 fs/xfs/xfs_log.c:2093 xlog_state_release_iclog+0x42e/0x7f0 fs/xfs/xfs_log.c:619 xlog_force_iclog fs/xfs/xfs_log.c:888 [inline] xlog_force_and_check_iclog fs/xfs/xfs_log.c:3172 [inline] xlog_force_lsn+0x5d1/0x910 fs/xfs/xfs_log.c:3344 xfs_log_force_seq+0x22b/0x630 fs/xfs/xfs_log.c:3409 __xfs_trans_commit+0xac5/0xe20 fs/xfs/xfs_trans.c:1021 xfs_sync_sb+0xfd/0x140 fs/xfs/libxfs/xfs_sb.c:1015 xfs_log_cover fs/xfs/xfs_log.c:1300 [inline] xfs_log_quiesce+0x24d/0x320 fs/xfs/xfs_log.c:1109 xfs_log_clean fs/xfs/xfs_log.c:1116 [inline] xfs_log_unmount+0x22/0x270 fs/xfs/xfs_log.c:1131 xfs_unmountfs+0x151/0x290 fs/xfs/xfs_mount.c:1096 xfs_fs_put_super+0x7b/0x3b0 fs/xfs/xfs_super.c:1130 generic_shutdown_super+0x158/0x480 fs/super.c:500 kill_block_super+0xa1/0x100 fs/super.c:1407 deactivate_locked_super+0x98/0x160 fs/super.c:331 deactivate_super+0xb1/0xd0 fs/super.c:362 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1177 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xaa3/0x29b0 kernel/exit.c:874 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1033 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc5831b1999 Code: Unable to access opcode bytes at 0x7fc5831b196f. RSP: 002b:00007ffd0dbc6fd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fc583233330 RCX: 00007fc5831b1999 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 000000000000c157 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc583233330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 The buggy address belongs to the physical page: page:ffffea0001d73000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75cc0 head:ffffea0001d73000 order:6 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010000(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 6, migratetype Unmovable, gfp_mask 0x46dc0(GFP_KERNEL|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP|__GFP_ZERO), pid 5001, tgid 5001 (syz-executor583), ts 55368962889, free_ts 21790870644 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2db/0x350 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0xf41/0x2c00 mm/page_alloc.c:3502 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4768 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] __kmalloc_large_node+0x94/0x1d0 mm/slab_common.c:1107 __do_kmalloc_node mm/slab_common.c:954 [inline] __kmalloc_node+0x10b/0x1a0 mm/slab_common.c:973 kmalloc_node include/linux/slab.h:579 [inline] kvmalloc_node+0x76/0x1a0 mm/util.c:604 kvmalloc include/linux/slab.h:697 [inline] kvzalloc include/linux/slab.h:705 [inline] xlog_alloc_log+0x755/0x1450 fs/xfs/xfs_log.c:1649 xfs_log_mount+0xef/0x700 fs/xfs/xfs_log.c:658 xfs_mountfs+0x11e1/0x1f60 fs/xfs/xfs_mount.c:819 xfs_fs_fill_super+0x1490/0x1fc0 fs/xfs/xfs_super.c:1694 get_tree_bdev+0x44a/0x770 fs/super.c:1303 vfs_get_tree+0x8d/0x350 fs/super.c:1510 do_new_mount fs/namespace.c:3039 [inline] path_mount+0x134b/0x1e40 fs/namespace.c:3369 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x62e/0xcb0 mm/page_alloc.c:2564 free_unref_page+0x33/0x370 mm/page_alloc.c:2659 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2636 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x195/0x220 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:711 [inline] slab_alloc_node mm/slub.c:3451 [inline] kmem_cache_alloc_node+0x185/0x3e0 mm/slub.c:3496 __alloc_skb+0x288/0x330 net/core/skbuff.c:644 alloc_skb include/linux/skbuff.h:1288 [inline] alloc_skb_with_frags+0x9a/0x6c0 net/core/skbuff.c:6380 sock_alloc_send_pskb+0x7a7/0x930 net/core/sock.c:2729 unix_dgram_sendmsg+0x41b/0x1950 net/unix/af_unix.c:1944 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 sock_write_iter+0x295/0x3d0 net/socket.c:1140 call_write_iter include/linux/fs.h:1868 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x185/0x7e0 fs/read_write.c:860 vfs_writev+0x1aa/0x670 fs/read_write.c:933 Memory state around the buggy address: ffff888075ce4d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888075ce4d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888075ce4e00: 01 fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff888075ce4e80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff888075ce4f00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================