ip6_vti0 speed is unknown, defaulting to 1000 ip6_vti0 speed is unknown, defaulting to 1000 infiniband syz2: set down infiniband syz2: added ip6_vti0 RDS/IB: syz2: added ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: slab-use-after-free in refcount_read include/linux/refcount.h:170 [inline] BUG: KASAN: slab-use-after-free in __ns_ref_read include/linux/ns_common.h:65 [inline] BUG: KASAN: slab-use-after-free in check_net include/net/net_namespace.h:309 [inline] BUG: KASAN: slab-use-after-free in rds_destroy_pending net/rds/rds.h:984 [inline] BUG: KASAN: slab-use-after-free in rds_conn_path_connect_if_down+0x118/0x3a0 net/rds/connection.c:934 Read of size 4 at addr ffff88805a702780 by task syz.1.8301/7012 CPU: 0 UID: 0 PID: 7012 Comm: syz.1.8301 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] refcount_read include/linux/refcount.h:170 [inline] __ns_ref_read include/linux/ns_common.h:65 [inline] check_net include/net/net_namespace.h:309 [inline] rds_destroy_pending net/rds/rds.h:984 [inline] rds_conn_path_connect_if_down+0x118/0x3a0 net/rds/connection.c:934 rds_ib_nodev_connect+0x4e/0xa0 net/rds/ib.c:79 rds_ib_add_one+0x7e0/0xa10 net/rds/ib.c:222 add_client_context+0x37c/0x7a0 drivers/infiniband/core/device.c:757 enable_device_and_get+0x19c/0x3e0 drivers/infiniband/core/device.c:1368 ib_register_device+0x110f/0x13e0 drivers/infiniband/core/device.c:1487 rxe_register_device+0x1e3/0x350 drivers/infiniband/sw/rxe/rxe_verbs.c:1556 rxe_net_add+0x81/0x110 drivers/infiniband/sw/rxe/rxe_net.c:618 rxe_newlink+0xdd/0x190 drivers/infiniband/sw/rxe/rxe.c:234 nldev_newlink+0x5bd/0x650 drivers/infiniband/core/nldev.c:1797 rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:-1 [inline] rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x6d7/0xa10 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa68/0xad0 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f988fd9c629 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:00007f9890bf3028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f9890015fa0 RCX: 00007f988fd9c629 RDX: 0000000000004000 RSI: 0000200000000480 RDI: 000000000000000a RBP: 00007f988fe32b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9890016038 R14: 00007f9890015fa0 R15: 00007ffc195d56a8 Allocated by task 5729: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4459 [inline] slab_alloc_node mm/slub.c:4788 [inline] kmem_cache_alloc_noprof+0x2bc/0x650 mm/slub.c:4795 net_alloc net/core/net_namespace.c:490 [inline] copy_net_ns+0x1e3/0x730 net/core/net_namespace.c:565 create_new_namespaces+0x3e7/0x6a0 kernel/nsproxy.c:130 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:226 ksys_unshare+0x4f4/0x900 kernel/fork.c:3174 __do_sys_unshare kernel/fork.c:3245 [inline] __se_sys_unshare kernel/fork.c:3243 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3243 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 12: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2670 [inline] slab_free mm/slub.c:6082 [inline] kmem_cache_free+0x180/0x610 mm/slub.c:6212 net_complete_free net/core/net_namespace.c:526 [inline] cleanup_net+0x5cc/0x800 net/core/net_namespace.c:713 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xaec/0x17a0 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88805a702600 which belongs to the cache net_namespace of size 9472 The buggy address is located 384 bytes inside of freed 9472-byte region [ffff88805a702600, ffff88805a704b00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805a704c00 pfn:0x5a700 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88805a707201 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff888140410dc0 ffffea0002279a10 ffffea0001f64c10 raw: ffff88805a704c00 0000000800030002 00000000f5000000 ffff88805a707201 head: 00fff00000000240 ffff888140410dc0 ffffea0002279a10 ffffea0001f64c10 head: ffff88805a704c00 0000000800030002 00000000f5000000 ffff88805a707201 head: 00fff00000000003 ffffea000169c001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 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 6797, tgid 6791 (syz.2.215), ts 111054043392, free_ts 108557220242 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5245 alloc_slab_page mm/slub.c:3238 [inline] allocate_slab+0x77/0x660 mm/slub.c:3411 new_slab mm/slub.c:3469 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7091 refill_sheaf mm/slub.c:2787 [inline] __pcs_replace_empty_main+0x2b9/0x620 mm/slub.c:4536 alloc_from_pcs mm/slub.c:4639 [inline] slab_alloc_node mm/slub.c:4773 [inline] kmem_cache_alloc_noprof+0x37d/0x650 mm/slub.c:4795 net_alloc net/core/net_namespace.c:490 [inline] copy_net_ns+0x1e3/0x730 net/core/net_namespace.c:565 create_new_namespaces+0x3e7/0x6a0 kernel/nsproxy.c:130 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:226 ksys_unshare+0x4f4/0x900 kernel/fork.c:3174 __do_sys_unshare kernel/fork.c:3245 [inline] __se_sys_unshare kernel/fork.c:3243 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3243 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6701 tgid 6697 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xbf8/0xd70 mm/page_alloc.c:2973 __folio_put+0x414/0x4f0 mm/swap.c:112 put_netmem include/net/netmem.h:420 [inline] skb_page_unref include/linux/skbuff_ref.h:43 [inline] __skb_frag_unref include/linux/skbuff_ref.h:56 [inline] skb_release_data+0x4cb/0x940 net/core/skbuff.c:1122 skb_release_all net/core/skbuff.c:1203 [inline] kfree_skb_add_bulk net/core/skbuff.c:1276 [inline] kfree_skb_list_reason+0x28b/0x4a0 net/core/skbuff.c:1298 skb_release_data+0x61a/0x940 net/core/skbuff.c:1126 skb_release_all net/core/skbuff.c:1203 [inline] __kfree_skb+0x5d/0x210 net/core/skbuff.c:1217 kfree_skb_reason include/linux/skbuff.h:1322 [inline] kfree_skb include/linux/skbuff.h:1331 [inline] kcm_sendmsg+0x3da/0x2b00 net/kcm/kcmsock.c:945 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] sock_write_iter+0x503/0x550 net/socket.c:1195 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805a702680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805a702700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805a702780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805a702800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805a702880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================