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 ffff888024562100 by task syz.6.599/6313 CPU: 1 PID: 6313 Comm: syz.6.599 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x188/0x250 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+0xfaf/0x1240 fs/gfs2/file.c:1145 do_iter_readv_writev+0x47e/0x5f0 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 iter_file_splice_write+0x699/0xcc0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4ea/0xc10 fs/splice.c:902 do_splice_direct+0x1d4/0x2f0 fs/splice.c:1008 do_sendfile+0x5fc/0xeb0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1303 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:0x7f3ba97edcb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3ba7a49028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3ba9a68fa0 RCX: 00007f3ba97edcb9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f3ba985bbf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3ba9a69038 R14: 00007f3ba9a68fa0 R15: 00007ffed3a5f9f8 Allocated by task 6313: 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+0x19f/0xcc0 fs/splice.c:628 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4ea/0xc10 fs/splice.c:902 do_splice_direct+0x1d4/0x2f0 fs/splice.c:1008 do_sendfile+0x5fc/0xeb0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1303 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 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 kvfree_call_rcu+0x105/0x7d0 kernel/rcu/tree.c:3600 drop_sysctl_table+0x359/0x4e0 fs/proc/proc_sysctl.c:1685 drop_sysctl_table+0x348/0x4e0 fs/proc/proc_sysctl.c:1688 unregister_sysctl_table+0x87/0x130 fs/proc/proc_sysctl.c:1723 mpls_dev_sysctl_unregister+0x8b/0xc0 net/mpls/af_mpls.c:1445 mpls_dev_notify+0x545/0x780 net/mpls/af_mpls.c:1663 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] unregister_netdevice_many+0x1049/0x19f0 net/core/dev.c:11134 ip_tunnel_delete_nets+0x320/0x370 net/ipv4/ip_tunnel.c:1137 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x791/0xba0 net/core/net_namespace.c:635 process_one_work+0x85f/0x1010 kernel/workqueue.c:2310 worker_thread+0xaa6/0x1290 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Second to last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 kvfree_call_rcu+0x105/0x7d0 kernel/rcu/tree.c:3600 hash_ipportnet6_add+0x2644/0x31b0 net/netfilter/ipset/ip_set_hash_gen.h:979 hash_ipportnet6_uadt+0xaa2/0xe30 net/netfilter/ipset/ip_set_hash_ipportnet.c:504 call_ad+0x182/0xa00 net/netfilter/ipset/ip_set_core.c:1753 ip_set_ad+0x816/0x9c0 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0xbb0/0x11f0 net/netfilter/nfnetlink.c:297 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2507 nfnetlink_rcv+0x2b4/0x2460 net/netfilter/nfnetlink.c:654 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ba/0xbe0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2445 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2499 __sys_sendmsg net/socket.c:2528 [inline] __do_sys_sendmsg net/socket.c:2537 [inline] __se_sys_sendmsg+0x1af/0x290 net/socket.c:2535 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 ffff888024562000 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes to the right of 256-byte region [ffff888024562000, ffff888024562100) The buggy address belongs to the page: page:ffffea0000915880 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x24562 head:ffffea0000915880 order:1 compound_mapcount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 0000000100000001 ffff888016c41b40 raw: 0000000000000000 0000000080100010 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4198, ts 89416998609, free_ts 89023967713 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 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+0x80a/0xdd0 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] __kmalloc+0x1cd/0x330 mm/slub.c:4408 kmalloc include/linux/slab.h:612 [inline] kzalloc include/linux/slab.h:738 [inline] fib_create_info+0xabc/0x24f0 net/ipv4/fib_semantics.c:1478 fib_table_insert+0xe4/0x1bb0 net/ipv4/fib_trie.c:1212 fib_magic+0x2e1/0x3c0 net/ipv4/fib_frontend.c:1106 fib_add_ifaddr+0x3f7/0x5e0 net/ipv4/fib_frontend.c:1150 fib_inetaddr_event+0x13c/0x1c0 net/ipv4/fib_frontend.c:1442 notifier_call_chain kernel/notifier.c:83 [inline] blocking_notifier_call_chain+0x103/0x1b0 kernel/notifier.c:318 __inet_insert_ifa+0x9f7/0xbe0 net/ipv4/devinet.c:567 inet_rtm_newaddr+0x99a/0x1890 net/ipv4/devinet.c:966 rtnetlink_rcv_msg+0x844/0xf30 net/core/rtnetlink.c:5684 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2507 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 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+0x8f/0x2a0 mm/page_alloc.c:3396 free_slab mm/slub.c:2020 [inline] discard_slab mm/slub.c:2026 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2512 put_cpu_partial+0x12d/0x190 mm/slub.c:2592 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] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 vm_area_alloc+0x20/0xe0 kernel/fork.c:350 __mmap_region mm/mmap.c:1782 [inline] mmap_region+0xac0/0x1650 mm/mmap.c:2933 do_mmap+0x819/0xe90 mm/mmap.c:1586 vm_mmap_pgoff+0x1c1/0x2d0 mm/util.c:551 ksys_mmap_pgoff+0x54b/0x790 mm/mmap.c:1635 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: ffff888024562000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888024562080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888024562100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888024562180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888024562200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================