================================================================== 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 ffff88810a2bdad8 by task syz-executor.5/19181 CPU: 1 PID: 19181 Comm: syz-executor.5 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:0x7fde4209f059 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:00007fde41215168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fde421b1f60 RCX: 00007fde4209f059 RDX: 0000000020002000 RSI: 0000000020002c00 RDI: 0000000000000000 RBP: 00007fde420f908d R08: 0000000020002540 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd7f26be1f R14: 00007fde41215300 R15: 0000000000022000 Allocated by task 18892: 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 vti6_exit_batch_net+0x29b/0x2e0 net/ipv6/ip6_vti.c:1186 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 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 ip6gre_exit_batch_net+0x6a8/0x6f0 net/ipv6/ip6_gre.c:1631 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 The buggy address belongs to the object at ffff88810a2bd800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 728 bytes inside of 1024-byte region [ffff88810a2bd800, ffff88810a2bdc00) The buggy address belongs to the page: page:ffffea000428ae00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810a2ba000 pfn:0x10a2b8 head:ffffea000428ae00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 ffffea0004301c08 ffffea00042e4008 ffff888100042f00 raw: ffff88810a2ba000 000000000010000d 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 1724502629, free_ts 0 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+0x2af/0x3d0 mm/slub.c:4036 kmalloc_array include/linux/slab.h:592 [inline] blk_stat_alloc_callback+0x8e/0x210 block/blk-stat.c:113 blk_mq_init_allocated_queue+0x8d/0x1a40 block/blk-mq.c:3316 blk_mq_init_queue_data block/blk-mq.c:3150 [inline] blk_mq_init_queue+0x6c/0xc0 block/blk-mq.c:3160 scsi_mq_alloc_queue+0x42/0x140 drivers/scsi/scsi_lib.c:1881 scsi_alloc_sdev+0x638/0x970 drivers/scsi/scsi_scan.c:268 scsi_probe_and_add_lun+0x1a8/0x3ff0 drivers/scsi/scsi_scan.c:1078 __scsi_scan_target+0x1e9/0xf70 drivers/scsi/scsi_scan.c:1562 scsi_scan_channel drivers/scsi/scsi_scan.c:1650 [inline] scsi_scan_host_selected+0x342/0x610 drivers/scsi/scsi_scan.c:1679 do_scsi_scan_host drivers/scsi/scsi_scan.c:1818 [inline] scsi_scan_host+0x4a8/0x680 drivers/scsi/scsi_scan.c:1848 virtscsi_probe+0x17ef/0x1ac0 drivers/scsi/virtio_scsi.c:917 virtio_dev_probe+0x815/0xbd0 drivers/virtio/virtio.c:274 page_owner free stack trace missing Memory state around the buggy address: ffff88810a2bd980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810a2bda00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88810a2bda80: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ^ ffff88810a2bdb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810a2bdb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================