================================================================== BUG: KASAN: slab-out-of-bounds in get_node_id fs/fuse/fuse_i.h:874 [inline] BUG: KASAN: slab-out-of-bounds in fuse_inode_eq+0x54/0x80 fs/fuse/inode.c:295 Read of size 8 at addr ffff88810e80bad8 by task syz-executor.2/12163 CPU: 1 PID: 12163 Comm: syz-executor.2 Tainted: G W 5.10.102-syzkaller-00166-gcbfab5c59cf6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x8d/0x3d0 mm/kasan/report.c:233 __kasan_report+0x142/0x220 mm/kasan/report.c:419 kasan_report+0x51/0x70 mm/kasan/report.c:436 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 get_node_id fs/fuse/fuse_i.h:874 [inline] fuse_inode_eq+0x54/0x80 fs/fuse/inode.c:295 find_inode+0x19c/0x4c0 fs/inode.c:827 ilookup5_nowait fs/inode.c:1337 [inline] ilookup5+0x90/0x1a0 fs/inode.c:1366 iget5_locked+0x36/0x3c0 fs/inode.c:1147 fuse_iget+0x29a/0x7d0 fs/fuse/inode.c:336 fuse_get_root_inode fs/fuse/inode.c:766 [inline] fuse_fill_super_common+0x9e9/0xf90 fs/fuse/inode.c:1404 fuse_fill_super+0x280/0x3f0 fs/fuse/inode.c:1480 vfs_get_super fs/super.c:1191 [inline] get_tree_nodev+0xb2/0x160 fs/super.c:1221 fuse_get_tree+0x8f/0xd0 fs/fuse/inode.c:1514 vfs_get_tree+0x89/0x270 fs/super.c:1549 do_new_mount fs/namespace.c:2899 [inline] path_mount+0x1975/0x2ab0 fs/namespace.c:3229 do_mount fs/namespace.c:3242 [inline] __do_sys_mount fs/namespace.c:3450 [inline] __se_sys_mount+0x2f7/0x3b0 fs/namespace.c:3427 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7ff1384c9059 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff13761e168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff1385dc030 RCX: 00007ff1384c9059 RDX: 0000000020002000 RSI: 00000000200042c0 RDI: 0000000000000000 RBP: 00007ff13852308d R08: 0000000020002280 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe1a46119f R14: 00007ff13761e300 R15: 0000000000022000 Allocated by task 27678: 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:428 [inline] ____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:507 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:516 kasan_kmalloc include/linux/kasan.h:269 [inline] kmem_cache_alloc_trace+0x210/0x3a0 mm/slub.c:2981 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] alloc_inode+0x47/0x70 fs/incfs/vfs.c:1550 alloc_inode fs/inode.c:234 [inline] iget5_locked+0xae/0x3c0 fs/inode.c:1150 fetch_regular_inode+0x22f/0x300 fs/incfs/vfs.c:377 incfs_mount_fs+0x532/0x950 fs/incfs/vfs.c:1841 legacy_get_tree+0xf0/0x190 fs/fs_context.c:592 vfs_get_tree+0x89/0x270 fs/super.c:1549 do_new_mount fs/namespace.c:2899 [inline] path_mount+0x1975/0x2ab0 fs/namespace.c:3229 do_mount fs/namespace.c:3242 [inline] __do_sys_mount fs/namespace.c:3450 [inline] __se_sys_mount+0x2f7/0x3b0 fs/namespace.c:3427 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Last potentially related work creation: kasan_save_stack+0x36/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:345 __call_rcu kernel/rcu/tree.c:2963 [inline] call_rcu+0x12f/0x1500 kernel/rcu/tree.c:3037 in6_dev_finish_destroy+0x119/0x180 net/ipv6/addrconf_core.c:264 in6_dev_put include/net/addrconf.h:392 [inline] addrconf_ifdown+0x1694/0x17f0 net/ipv6/addrconf.c:3894 addrconf_notify+0x467/0x3ad0 net/ipv6/addrconf.c:3673 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8e/0xf0 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] rollback_registered_many+0xe2e/0x1620 net/core/dev.c:9563 unregister_netdevice_many+0x4e/0x290 net/core/dev.c:10772 ip6_tnl_exit_batch_net+0x449/0x490 net/ipv6/ip6_tunnel.c:2340 ops_exit_list net/core/net_namespace.c:192 [inline] cleanup_net+0x76c/0xd60 net/core/net_namespace.c:608 process_one_work+0x6b4/0xfb0 kernel/workqueue.c:2296 worker_thread+0xb15/0x1600 kernel/workqueue.c:2442 kthread+0x371/0x390 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Second to last potentially related work creation: kasan_save_stack+0x36/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:345 __call_rcu kernel/rcu/tree.c:2963 [inline] call_rcu+0x12f/0x1500 kernel/rcu/tree.c:3037 qdisc_destroy+0x13b/0x220 net/sched/sch_generic.c:1006 qdisc_put net/sched/sch_generic.c:1018 [inline] shutdown_scheduler_queue net/sched/sch_generic.c:1362 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2306 [inline] dev_shutdown+0x19e/0x5a0 net/sched/sch_generic.c:1368 rollback_registered_many+0x9b1/0x1620 net/core/dev.c:9556 rollback_registered net/core/dev.c:9608 [inline] unregister_netdevice_queue+0x2e5/0x4c0 net/core/dev.c:10753 unregister_netdevice include/linux/netdevice.h:2916 [inline] __tun_detach+0x1201/0x1c70 drivers/net/tun.c:681 tun_detach drivers/net/tun.c:698 [inline] tun_chr_close+0x92/0xd0 drivers/net/tun.c:3450 __fput+0x348/0x7d0 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x147/0x1b0 kernel/task_work.c:154 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0xc3/0xe0 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x24/0x40 kernel/entry/common.c:266 do_syscall_64+0x3d/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88810e80b800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 728 bytes inside of 1024-byte region [ffff88810e80b800, ffff88810e80bc00) The buggy address belongs to the page: page:ffffea00043a0200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810e80d800 pfn:0x10e808 head:ffffea00043a0200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 ffffea00042e2e08 ffffea00045aae08 ffff888100042f00 raw: ffff88810e80d800 000000000010000c 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 16999, ts 504305392444, free_ts 495968845526 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2385 [inline] prep_new_page mm/page_alloc.c:2391 [inline] get_page_from_freelist+0xa74/0xa90 mm/page_alloc.c:4063 __alloc_pages_nodemask+0x3c8/0x820 mm/page_alloc.c:5107 alloc_slab_page mm/slub.c:1813 [inline] allocate_slab+0x6b/0x350 mm/slub.c:1815 new_slab mm/slub.c:1876 [inline] new_slab_objects mm/slub.c:2635 [inline] ___slab_alloc+0x143/0x2f0 mm/slub.c:2798 __slab_alloc mm/slub.c:2838 [inline] slab_alloc_node mm/slub.c:2920 [inline] slab_alloc mm/slub.c:2962 [inline] __kmalloc_track_caller+0x299/0x3b0 mm/slub.c:4543 __kmalloc_reserve net/core/skbuff.c:143 [inline] __alloc_skb+0xb7/0x580 net/core/skbuff.c:211 alloc_skb include/linux/skbuff.h:1101 [inline] alloc_uevent_skb+0x7f/0x230 lib/kobject_uevent.c:290 uevent_net_broadcast_untagged lib/kobject_uevent.c:326 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:409 [inline] kobject_uevent_env+0xd6c/0x1400 lib/kobject_uevent.c:593 kvm_uevent_notify_change+0x31e/0x3c0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4733 kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4021 [inline] kvm_dev_ioctl+0x1241/0x1710 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4043 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1331 [inline] __free_pages_ok+0xbe7/0xc20 mm/page_alloc.c:1611 free_the_page mm/page_alloc.c:5168 [inline] __free_pages+0x2d6/0x4a0 mm/page_alloc.c:5174 __free_slab+0xdf/0x1a0 mm/slub.c:1901 free_slab mm/slub.c:1916 [inline] discard_slab mm/slub.c:1922 [inline] __slab_free+0x458/0x4e0 mm/slub.c:3138 do_slab_free mm/slub.c:3198 [inline] ___cache_free+0x131/0x150 mm/slub.c:3217 qlink_free+0x38/0x40 mm/kasan/quarantine.c:146 qlist_free_all mm/kasan/quarantine.c:165 [inline] kasan_quarantine_reduce+0x178/0x1d0 mm/kasan/quarantine.c:272 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:438 kasan_slab_alloc include/linux/kasan.h:259 [inline] slab_post_alloc_hook mm/slab.h:583 [inline] slab_alloc_node mm/slub.c:2954 [inline] slab_alloc mm/slub.c:2962 [inline] __kmalloc_track_caller+0x1bf/0x3b0 mm/slub.c:4543 __kmalloc_reserve net/core/skbuff.c:143 [inline] __alloc_skb+0xb7/0x580 net/core/skbuff.c:211 alloc_skb include/linux/skbuff.h:1101 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet_netconf_notify_devconf+0x175/0x230 net/ipv4/devinet.c:2093 __devinet_sysctl_unregister net/ipv4/devinet.c:2599 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2623 [inline] inetdev_destroy net/ipv4/devinet.c:324 [inline] inetdev_event+0x7ce/0x10f0 net/ipv4/devinet.c:1599 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8e/0xf0 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] rollback_registered_many+0xe2e/0x1620 net/core/dev.c:9563 unregister_netdevice_many+0x4e/0x290 net/core/dev.c:10772 ip6_tnl_exit_batch_net+0x449/0x490 net/ipv6/ip6_tunnel.c:2340 Memory state around the buggy address: ffff88810e80b980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810e80ba00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88810e80ba80: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ^ ffff88810e80bb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810e80bb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================