gfs2: fsid=syz:syz.0: found 1 quota changes ================================================================== BUG: KASAN: slab-out-of-bounds in should_fault_in_pages fs/gfs2/file.c:785 [inline] BUG: KASAN: slab-out-of-bounds in gfs2_file_buffered_write+0x576/0x900 fs/gfs2/file.c:1070 Read of size 8 at addr ffff888079f5e500 by task syz.4.58/4479 CPU: 1 PID: 4479 Comm: syz.4.58 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 should_fault_in_pages fs/gfs2/file.c:785 [inline] gfs2_file_buffered_write+0x576/0x900 fs/gfs2/file.c:1070 gfs2_file_write_iter+0xf3b/0x11d0 fs/gfs2/file.c:1145 do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 iter_file_splice_write+0x665/0xc50 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] do_splice+0xe65/0x1640 fs/splice.c:1108 __do_splice fs/splice.c:1173 [inline] __do_sys_splice fs/splice.c:1379 [inline] __se_sys_splice+0x327/0x410 fs/splice.c:1361 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb8998696c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb897ad0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007fb899abffa0 RCX: 00007fb8998696c9 RDX: 0000000000000011 RSI: 0000000000000000 RDI: 000000000000000f RBP: 00007fb8998ebf91 R08: 00000000088000cc R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb899ac0038 R14: 00007fb899abffa0 R15: 00007ffe0d0ddb48 Allocated by task 4479: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb5/0xf0 mm/kasan/common.c:522 kmalloc_array include/linux/slab.h:647 [inline] kcalloc include/linux/slab.h:676 [inline] iter_file_splice_write+0x185/0xc50 fs/splice.c:628 do_splice_from fs/splice.c:767 [inline] do_splice+0xe65/0x1640 fs/splice.c:1108 __do_splice fs/splice.c:1173 [inline] __do_sys_splice fs/splice.c:1379 [inline] __se_sys_splice+0x327/0x410 fs/splice.c:1361 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888079f5e400 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes to the right of 256-byte region [ffff888079f5e400, ffff888079f5e500) The buggy address belongs to the page: page:ffffea0001e7d780 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888079f5e800 pfn:0x79f5e head:ffffea0001e7d780 order:1 compound_mapcount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001d9f800 0000000600000006 ffff888016841b40 raw: ffff888079f5e800 000000008010000e 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 4184, ts 58112098054, free_ts 57515860926 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc_trace+0x1a5/0x2a0 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] kzalloc include/linux/slab.h:738 [inline] ____ip_mc_inc_group+0x2ad/0xac0 net/ipv4/igmp.c:1452 __ip_mc_inc_group net/ipv4/igmp.c:1487 [inline] ip_mc_inc_group net/ipv4/igmp.c:1493 [inline] ip_mc_up+0x121/0x2f0 net/ipv4/igmp.c:1792 inetdev_event+0xe02/0x1360 net/ipv4/devinet.c:1586 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 call_netdevice_notifiers_extack net/core/dev.c:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] __dev_notify_flags+0x178/0x2d0 net/core/dev.c:-1 dev_change_flags+0xe3/0x1a0 net/core/dev.c:8929 devinet_ioctl+0x8dc/0x1a70 net/ipv4/devinet.c:1152 inet_ioctl+0x2c9/0x400 net/ipv4/af_inet.c:987 sock_do_ioctl+0xd3/0x2f0 net/socket.c:1150 sock_ioctl+0x4ed/0x6e0 net/socket.c:1267 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] kmem_cache_alloc_node+0x12d/0x2d0 mm/slub.c:3261 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] alloc_skb_with_frags+0xa7/0x730 net/core/skbuff.c:6170 sock_alloc_send_pskb+0x853/0x980 net/core/sock.c:2536 unix_dgram_sendmsg+0x5ef/0x1890 net/unix/af_unix.c:1809 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] __sys_sendto+0x423/0x580 net/socket.c:2073 __do_sys_sendto net/socket.c:2085 [inline] __se_sys_sendto net/socket.c:2081 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2081 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888079f5e400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888079f5e480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888079f5e500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888079f5e580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888079f5e600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================