================================================================== BUG: KASAN: slab-out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: slab-out-of-bounds in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:167 [inline] BUG: KASAN: slab-out-of-bounds in __refcount_sub_and_test include/linux/refcount.h:272 [inline] BUG: KASAN: slab-out-of-bounds in __refcount_dec_and_test include/linux/refcount.h:315 [inline] BUG: KASAN: slab-out-of-bounds in refcount_dec_and_test include/linux/refcount.h:333 [inline] BUG: KASAN: slab-out-of-bounds in ax25_dev_put include/net/ax25.h:301 [inline] BUG: KASAN: slab-out-of-bounds in ax25_dev_device_down+0x191/0x520 net/ax25/ax25_dev.c:119 Write of size 4 at addr ffff8880787df2b8 by task syz.3.5194/27481 CPU: 1 PID: 27481 Comm: syz.3.5194 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:167 [inline] __refcount_sub_and_test include/linux/refcount.h:272 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] ax25_dev_put include/net/ax25.h:301 [inline] ax25_dev_device_down+0x191/0x520 net/ax25/ax25_dev.c:119 ax25_device_event+0x4b4/0x4f0 net/ax25/af_ax25.c:144 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 dev_ifsioc+0x147/0xe70 net/core/dev_ioctl.c:324 dev_ioctl+0x55f/0xe50 net/core/dev_ioctl.c:587 sock_do_ioctl+0x222/0x2f0 net/socket.c:1154 sock_ioctl+0x4ed/0x6e0 net/socket.c:1257 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 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:0x7f817e136969 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:00007f817bf9e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f817e35dfa0 RCX: 00007f817e136969 RDX: 0000200000000000 RSI: 0000000000008914 RDI: 0000000000000004 RBP: 00007f817e1b8ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f817e35dfa0 R15: 00007ffeb3fb3d58 Allocated by task 25178: 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_node include/linux/slab.h:697 [inline] kcalloc_node include/linux/slab.h:702 [inline] memcg_alloc_page_obj_cgroups+0x81/0x120 mm/memcontrol.c:2841 memcg_slab_post_alloc_hook mm/slab.h:313 [inline] slab_post_alloc_hook+0xba/0x380 mm/slab.h:526 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 __d_alloc+0x2a/0x6f0 fs/dcache.c:1749 d_alloc fs/dcache.c:1828 [inline] d_alloc_parallel+0x7e/0x12d0 fs/dcache.c:2582 __lookup_slow+0x113/0x3d0 fs/namei.c:1648 lookup_slow+0x53/0x70 fs/namei.c:1680 walk_component+0x319/0x460 fs/namei.c:1976 link_path_walk+0x662/0xd40 fs/namei.c:-1 path_lookupat+0x9d/0x440 fs/namei.c:2454 filename_lookup+0x1e2/0x4f0 fs/namei.c:2484 user_path_at_empty+0x40/0x190 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_sys_truncate+0xa3/0x190 fs/open.c:132 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 insert_work+0x54/0x3d0 kernel/workqueue.c:1366 __queue_work+0x9c5/0xd50 kernel/workqueue.c:1532 queue_work_on+0x11d/0x1d0 kernel/workqueue.c:1559 inetaddr_event+0xe0/0x140 drivers/infiniband/core/roce_gid_mgmt.c:869 notifier_call_chain kernel/notifier.c:83 [inline] blocking_notifier_call_chain+0x103/0x1b0 kernel/notifier.c:318 __inet_del_ifa+0x879/0x1020 net/ipv4/devinet.c:443 inet_del_ifa net/ipv4/devinet.c:480 [inline] inetdev_destroy net/ipv4/devinet.c:320 [inline] inetdev_event+0x5d3/0x1360 net/ipv4/devinet.c:1612 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+0xf57/0x18f0 net/core/dev.c:11134 default_device_exit_batch+0x336/0x390 net/core/dev.c:11667 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x77b/0xb80 net/core/net_namespace.c:635 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 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 insert_work+0x54/0x3d0 kernel/workqueue.c:1366 __queue_work+0x9c5/0xd50 kernel/workqueue.c:1532 queue_work_on+0x11d/0x1d0 kernel/workqueue.c:1559 queue_work include/linux/workqueue.h:512 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:659 [inline] netdevice_event+0x803/0x900 drivers/infiniband/core/roce_gid_mgmt.c:802 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+0xf57/0x18f0 net/core/dev.c:11134 default_device_exit_batch+0x336/0x390 net/core/dev.c:11667 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x77b/0xb80 net/core/net_namespace.c:635 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff8880787df200 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 184 bytes inside of 192-byte region [ffff8880787df200, ffff8880787df2c0) The buggy address belongs to the page: page:ffffea0001e1f7c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x787df flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001dd7dc0 0000000900000003 ffff888016841a00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 14706, ts 1098914701795, free_ts 1098887447433 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:5466 __alloc_pages_node include/linux/gfp.h:570 [inline] alloc_slab_page mm/slub.c:1777 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xb6/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] __kmalloc_node+0x200/0x3b0 mm/slub.c:4451 kmalloc_array_node include/linux/slab.h:697 [inline] kcalloc_node include/linux/slab.h:702 [inline] memcg_alloc_page_obj_cgroups+0x81/0x120 mm/memcontrol.c:2841 memcg_slab_post_alloc_hook mm/slab.h:313 [inline] slab_post_alloc_hook+0xba/0x380 mm/slab.h:526 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:725 [inline] alloc_buffer_head+0x21/0x100 fs/buffer.c:3311 alloc_page_buffers+0x341/0x600 fs/buffer.c:832 grow_dev_page fs/buffer.c:968 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow fs/buffer.c:1041 [inline] __getblk_gfp+0x4d2/0xb70 fs/buffer.c:1336 sb_getblk_gfp include/linux/buffer_head.h:368 [inline] ext4_ext_split fs/ext4/extents.c:1122 [inline] ext4_ext_create_new_leaf fs/ext4/extents.c:1419 [inline] ext4_ext_insert_extent+0x2367/0x47e0 fs/ext4/extents.c:2102 ext4_ext_map_blocks+0x15c1/0x64e0 fs/ext4/extents.c:4360 ext4_map_blocks+0x981/0x1b30 fs/ext4/inode.c:673 _ext4_get_block+0x1d7/0x4e0 fs/ext4/inode.c:816 ext4_block_write_begin+0x60f/0x1210 fs/ext4/inode.c:1101 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 __vunmap+0x8ab/0xa40 mm/vmalloc.c:2621 free_work+0x56/0x80 mm/vmalloc.c:95 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff8880787df180: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880787df200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880787df280: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880787df300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880787df380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================