RDS/IB: syz2: added ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:82 [inline] BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:170 [inline] BUG: KASAN: use-after-free in __ns_ref_read include/linux/ns_common.h:67 [inline] BUG: KASAN: use-after-free in check_net include/net/net_namespace.h:309 [inline] BUG: KASAN: use-after-free in rds_destroy_pending net/rds/rds.h:984 [inline] BUG: KASAN: use-after-free in rds_conn_path_connect_if_down+0xb6/0x3f0 net/rds/connection.c:937 Read of size 4 at addr ffff88805cbaa7c0 by task syz.4.4484/23720 CPU: 1 UID: 0 PID: 23720 Comm: syz.4.4484 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1e0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:82 [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:67 [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+0xb6/0x3f0 net/rds/connection.c:937 rds_ib_nodev_connect net/rds/ib.c:79 [inline] rds_ib_add_one.cold+0x1d5/0x20f net/rds/ib.c:220 add_client_context+0x3f2/0x5b0 drivers/infiniband/core/device.c:730 enable_device_and_get+0x1d4/0x3f0 drivers/infiniband/core/device.c:1340 ib_register_device drivers/infiniband/core/device.c:1459 [inline] ib_register_device+0x8e6/0xdd0 drivers/infiniband/core/device.c:1405 rxe_register_device+0x277/0x360 drivers/infiniband/sw/rxe/rxe_verbs.c:1556 rxe_net_add+0x95/0xf0 drivers/infiniband/sw/rxe/rxe_net.c:618 rxe_newlink+0x70/0x150 drivers/infiniband/sw/rxe/rxe.c:234 nldev_newlink+0x3ae/0x620 drivers/infiniband/core/nldev.c:1797 rdma_nl_rcv_msg+0x38a/0x6e0 drivers/infiniband/core/netlink.c:195 rdma_nl_rcv_skb.constprop.0.isra.0+0x2cb/0x410 drivers/infiniband/core/netlink.c:239 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0x9e1/0xb70 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f46dad9c799 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:00007f46dbce6028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f46db016180 RCX: 00007f46dad9c799 RDX: 0000000000000000 RSI: 0000200000000240 RDI: 0000000000000008 RBP: 00007f46dae32c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f46db016218 R14: 00007f46db016180 R15: 00007fff7704f448 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5cbaa flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 ffffea000172ea90 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 18090, tgid 18090 (kworker/u8:1), ts 1209000770128, free_ts 1229371622303 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab mm/slub.c:3481 [inline] new_slab+0xa6/0x6b0 mm/slub.c:3539 refill_objects+0x26b/0x400 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x1ab/0x660 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] __do_kmalloc_node mm/slub.c:5259 [inline] __kmalloc_node_track_caller_noprof+0x694/0x850 mm/slub.c:5368 kmalloc_reserve+0xe8/0x350 net/core/skbuff.c:635 __alloc_skb+0x185/0x710 net/core/skbuff.c:713 alloc_skb include/linux/skbuff.h:1383 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:819 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:876 [inline] nsim_dev_trap_report_work+0x2af/0xd10 drivers/net/netdevsim/dev.c:922 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 18255 tgid 18255 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7e1/0x10d0 mm/page_alloc.c:2978 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xe0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4538 [inline] slab_alloc_node mm/slub.c:4866 [inline] __kmalloc_cache_node_noprof+0x287/0x770 mm/slub.c:5388 kmalloc_node_noprof include/linux/slab.h:1077 [inline] __get_vm_area_node+0x101/0x330 mm/vmalloc.c:3221 __vmalloc_node_range_noprof+0x213/0x1530 mm/vmalloc.c:4024 __vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4124 alloc_thread_stack_node kernel/fork.c:355 [inline] dup_task_struct kernel/fork.c:924 [inline] copy_process+0x5ec/0x7a10 kernel/fork.c:2050 kernel_clone+0xfc/0x9a0 kernel/fork.c:2654 __do_sys_clone+0xd9/0x120 kernel/fork.c:2795 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805cbaa680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805cbaa700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805cbaa780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805cbaa800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805cbaa880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================