loop2: detected capacity change from 0 to 4096 ntfs: volume version 3.1. ================================================================== BUG: KASAN: slab-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:72 [inline] BUG: KASAN: slab-out-of-bounds in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-out-of-bounds in NInoAttr fs/ntfs/inode.h:200 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_test_inode+0x7b/0x2d0 fs/ntfs/inode.c:55 Read of size 8 at addr ffff8880919ffec0 by task syz-executor.2/18485 CPU: 0 PID: 18485 Comm: syz-executor.2 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x220 mm/kasan/report.c:417 kasan_report+0x139/0x170 mm/kasan/report.c:517 kasan_check_range+0x2a7/0x2e0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:72 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] NInoAttr fs/ntfs/inode.h:200 [inline] ntfs_test_inode+0x7b/0x2d0 fs/ntfs/inode.c:55 find_inode+0x19c/0x4d0 fs/inode.c:915 ilookup5_nowait fs/inode.c:1428 [inline] ilookup5+0x9d/0x1d0 fs/inode.c:1457 iget5_locked+0x33/0x270 fs/inode.c:1238 ntfs_iget+0xc0/0x190 fs/ntfs/inode.c:168 load_and_check_logfile+0x3f/0xd0 fs/ntfs/super.c:1208 load_system_files+0x3376/0x48d0 fs/ntfs/super.c:1941 ntfs_fill_super+0x19a9/0x2bf0 fs/ntfs/super.c:2892 mount_bdev+0x26c/0x3a0 fs/super.c:1359 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1489 do_new_mount+0x289/0xad0 fs/namespace.c:3145 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3af0c8d5da Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f3af197ff88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000001ec8d RCX: 00007f3af0c8d5da RDX: 000000002001ec80 RSI: 000000002001ecc0 RDI: 00007f3af197ffe0 RBP: 00007f3af1980020 R08: 00007f3af1980020 R09: 000000004e000319 R10: 000000004e000319 R11: 0000000000000202 R12: 000000002001ec80 R13: 000000002001ecc0 R14: 00007f3af197ffe0 R15: 0000000020000180 Allocated by task 31648: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:325 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc+0x1b3/0x350 mm/slub.c:3476 radix_tree_node_alloc+0x192/0x3b0 lib/radix-tree.c:251 idr_get_free+0x2f7/0xb30 lib/radix-tree.c:1505 idr_alloc_u32 lib/idr.c:46 [inline] idr_alloc_cyclic+0x1f3/0x5e0 lib/idr.c:125 __kernfs_new_node+0x124/0x730 fs/kernfs/dir.c:620 kernfs_new_node+0x95/0x160 fs/kernfs/dir.c:676 __kernfs_create_file+0x45/0x2e0 fs/kernfs/file.c:1047 sysfs_add_file_mode_ns+0x21d/0x330 fs/sysfs/file.c:294 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x55c/0xf50 fs/sysfs/group.c:148 br_sysfs_addbr+0x24/0x140 net/bridge/br_sysfs_br.c:1049 br_device_event+0x1d7/0x940 net/bridge/br.c:46 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xe7/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1944 [inline] call_netdevice_notifiers_extack net/core/dev.c:1982 [inline] call_netdevice_notifiers+0x14e/0x1d0 net/core/dev.c:1996 register_netdevice+0x15e4/0x1a30 net/core/dev.c:10078 br_dev_newlink+0x24/0x110 net/bridge/br_netlink.c:1517 rtnl_newlink_create net/core/rtnetlink.c:3407 [inline] __rtnl_newlink net/core/rtnetlink.c:3624 [inline] rtnl_newlink+0x1521/0x20a0 net/core/rtnetlink.c:3637 rtnetlink_rcv_msg+0x7ca/0xec0 net/core/rtnetlink.c:6141 netlink_rcv_skb+0x1f0/0x470 net/netlink/af_netlink.c:2564 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x7e7/0x9c0 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x9b3/0xcd0 net/netlink/af_netlink.c:1932 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] ____sys_sendmsg+0x597/0x8e0 net/socket.c:2476 ___sys_sendmsg net/socket.c:2530 [inline] __sys_sendmsg+0x28e/0x390 net/socket.c:2559 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:488 __call_rcu_common kernel/rcu/tree.c:2755 [inline] call_rcu+0x163/0xab0 kernel/rcu/tree.c:2868 radix_tree_node_free lib/radix-tree.c:308 [inline] radix_tree_shrink lib/radix-tree.c:534 [inline] delete_node+0x59d/0x790 lib/radix-tree.c:552 radix_tree_delete_item+0x2e2/0x3d0 lib/radix-tree.c:1429 free_pid+0x1ac/0x280 kernel/pid.c:152 __unhash_process kernel/exit.c:128 [inline] __exit_signal kernel/exit.c:198 [inline] release_task+0xd83/0x1880 kernel/exit.c:255 wait_task_zombie kernel/exit.c:1198 [inline] wait_consider_task+0x196c/0x2cd0 kernel/exit.c:1425 do_wait_thread kernel/exit.c:1488 [inline] do_wait+0x291/0x9d0 kernel/exit.c:1605 kernel_wait4+0x29c/0x3e0 kernel/exit.c:1768 __do_sys_wait4 kernel/exit.c:1796 [inline] __se_sys_wait4 kernel/exit.c:1792 [inline] __x64_sys_wait4+0x130/0x1e0 kernel/exit.c:1792 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:488 __call_rcu_common kernel/rcu/tree.c:2755 [inline] call_rcu+0x163/0xab0 kernel/rcu/tree.c:2868 radix_tree_node_free lib/radix-tree.c:308 [inline] radix_tree_shrink lib/radix-tree.c:534 [inline] delete_node+0x59d/0x790 lib/radix-tree.c:552 radix_tree_delete_item+0x2e2/0x3d0 lib/radix-tree.c:1429 free_pid+0x1ac/0x280 kernel/pid.c:152 __unhash_process kernel/exit.c:128 [inline] __exit_signal kernel/exit.c:198 [inline] release_task+0xd83/0x1880 kernel/exit.c:255 wait_task_zombie kernel/exit.c:1198 [inline] wait_consider_task+0x196c/0x2cd0 kernel/exit.c:1425 do_wait_thread kernel/exit.c:1488 [inline] do_wait+0x291/0x9d0 kernel/exit.c:1605 kernel_wait4+0x29c/0x3e0 kernel/exit.c:1768 __do_sys_wait4 kernel/exit.c:1796 [inline] __se_sys_wait4 kernel/exit.c:1792 [inline] __x64_sys_wait4+0x130/0x1e0 kernel/exit.c:1792 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880919ffc80 which belongs to the cache radix_tree_node of size 576 The buggy address is located 0 bytes to the right of 576-byte region [ffff8880919ffc80, ffff8880919ffec0) The buggy address belongs to the physical page: page:ffffea0002467f00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x919fc head:ffffea0002467f00 order:2 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 memcg:ffff88802239df01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff88801284fdc0 ffffea00025b7300 dead000000000004 raw: 0000000000000000 0000000000170017 00000001ffffffff ffff88802239df01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x152810(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 14601, tgid 14597 (syz-executor.0), ts 595086137693, free_ts 551563607071 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0xbd/0x190 mm/slub.c:1851 allocate_slab+0x5e/0x3c0 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0x7f4/0xeb0 mm/slub.c:3193 __slab_alloc mm/slub.c:3292 [inline] __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x238/0x320 mm/slub.c:3483 xas_alloc lib/xarray.c:377 [inline] xas_create+0x11d1/0x1710 lib/xarray.c:679 xas_store+0x9b/0x1990 lib/xarray.c:789 __xa_store+0x1dd/0x380 lib/xarray.c:1551 xa_store+0x30/0x50 lib/xarray.c:1582 __io_uring_add_tctx_node+0x1ab/0x530 io_uring/tctx.c:122 __io_uring_add_tctx_node_from_submit+0x95/0x120 io_uring/tctx.c:144 io_uring_add_tctx_node io_uring/tctx.h:32 [inline] __do_sys_io_uring_enter io_uring/io_uring.c:3328 [inline] __se_sys_io_uring_enter+0x216d/0x25c0 io_uring/io_uring.c:3265 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x751/0x780 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x19/0x4c0 mm/page_alloc.c:3464 qlist_free_all+0x2b/0x70 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:302 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slub.c:3452 [inline] kmem_cache_alloc_node+0x1dc/0x390 mm/slub.c:3497 __alloc_skb+0xd7/0x2c0 net/core/skbuff.c:552 alloc_skb include/linux/skbuff.h:1270 [inline] nlmsg_new include/net/netlink.h:1002 [inline] inet_netconf_notify_devconf+0x156/0x210 net/ipv4/devinet.c:2102 __devinet_sysctl_unregister net/ipv4/devinet.c:2614 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2638 [inline] inetdev_destroy net/ipv4/devinet.c:328 [inline] inetdev_event+0x79b/0x1470 net/ipv4/devinet.c:1603 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xe7/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1944 [inline] call_netdevice_notifiers_extack net/core/dev.c:1982 [inline] call_netdevice_notifiers net/core/dev.c:1996 [inline] unregister_netdevice_many_notify+0x102e/0x1c20 net/core/dev.c:10839 unregister_netdevice_many net/core/dev.c:10895 [inline] default_device_exit_batch+0x664/0x6d0 net/core/dev.c:11348 ops_exit_list net/core/net_namespace.c:174 [inline] cleanup_net+0x80c/0xc60 net/core/net_namespace.c:606 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 Memory state around the buggy address: ffff8880919ffd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880919ffe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880919ffe80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8880919fff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880919fff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================