00000040: 00 00 00 00 00 00 00 81 00 00 00 00 00 00 00 82 ................ 00000060: 00 00 06 c0 b4 a4 02 00 01 00 00 10 00 00 00 00 ................ XFS (loop5): SB sanity check failed ================================================================== XFS (loop5): Metadata corruption detected at xfs_sb_read_verify+0x4b2/0x600 fs/xfs/libxfs/xfs_sb.c:720, xfs_sb block 0xffffffffffffffff BUG: KASAN: use-after-free in kernel_accept+0x2a4/0x310 net/socket.c:3250 Read of size 8 at addr ffff8881c048e4e8 by task kworker/1:1/22 CPU: 1 PID: 22 Comm: kworker/1:1 Not tainted 4.20.0-rc5+ #369 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events smc_tcp_listen_work XFS (loop5): Unmount and run xfs_repair Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 XFS (loop5): First 128 bytes of corrupted metadata buffer: print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 00000000: 58 46 53 42 00 00 10 00 00 00 0f 00 00 00 10 00 XFSB............ kernel_accept+0x2a4/0x310 net/socket.c:3250 smc_clcsock_accept net/smc/af_smc.c:837 [inline] smc_tcp_listen_work+0x218/0x11c0 net/smc/af_smc.c:1305 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020: 98 4f 0b 50 42 b6 4b 06 bc 86 cb a3 e6 cc 3f 80 .O.PB.K.......?. 00000030: 00 00 00 00 00 00 00 40 00 00 10 00 00 00 00 80 .......@........ 00000040: 00 00 00 00 00 00 00 81 00 00 00 00 00 00 00 82 ................ worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 00000050: 00 00 00 01 00 00 10 00 00 00 00 01 00 00 00 00 ................ 00000050: 00 00 00 01 00 00 10 00 00 00 00 01 00 00 00 00 ................ 00000060: 00 00 06 c0 b4 a4 02 00 01 00 00 10 00 00 00 00 ................ 00000060: 00 00 06 c0 b4 a4 02 00 01 00 00 10 00 00 00 00 ................ kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 00000070: 00 00 00 00 00 00 00 00 0c 09 08 04 0c 00 00 00 ................ Allocated by task 3310: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3554 sock_alloc_inode+0x1d/0x260 net/socket.c:244 alloc_inode+0x63/0x190 fs/inode.c:210 00000070: 00 00 00 00 00 00 00 00 0c 09 08 04 0c 00 00 00 ................ new_inode_pseudo+0x71/0x1a0 fs/inode.c:906 sock_alloc+0x41/0x270 net/socket.c:547 __sock_create+0x175/0x930 net/socket.c:1241 sock_create_kern+0x3b/0x50 net/socket.c:1323 smc_create+0x17c/0x3b0 net/smc/af_smc.c:1910 __sock_create+0x536/0x930 net/socket.c:1277 sock_create net/socket.c:1317 [inline] __sys_socket+0x106/0x260 net/socket.c:1347 __do_sys_socket net/socket.c:1356 [inline] __se_sys_socket net/socket.c:1354 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1354 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3317: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 XFS (loop5): SB validate failed with error -117. set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3760 sock_destroy_inode+0x51/0x60 net/socket.c:272 destroy_inode+0x159/0x200 fs/inode.c:267 evict+0x5e0/0x980 fs/inode.c:575 iput_final fs/inode.c:1550 [inline] iput+0x679/0xa90 fs/inode.c:1576 XFS (loop4): SB validate failed with error -117. __sock_release+0x1ec/0x250 net/socket.c:590 sock_release+0x17/0x20 net/socket.c:598 smc_release+0x223/0x850 net/smc/af_smc.c:150 __sock_release+0xd7/0x250 net/socket.c:579 sock_close+0x19/0x20 net/socket.c:1141 __fput+0x385/0xa30 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881c048e4c0 which belongs to the cache sock_inode_cache(81:syz3) of size 976 The buggy address is located 40 bytes inside of 976-byte region [ffff8881c048e4c0, ffff8881c048e890) 00000070: 00 00 00 00 00 00 00 00 0c 09 08 04 0c 00 00 00 ................ The buggy address belongs to the page: page:ffffea0007012380 count:1 mapcount:0 mapping:ffff8881c217c640 index:0xffff8881c048effd flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea0005de5d48 ffff8881cd9f4048 ffff8881c217c640 raw: ffff8881c048effd ffff8881c048e040 0000000100000003 ffff888182832340 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888182832340 Memory state around the buggy address: ffff8881c048e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881c048e400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881c048e480: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8881c048e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c048e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== XFS (loop2): SB validate failed with error -117.