From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796525378; b=Gk9CfUjIjnI0mPzrXCorp35+ORNG5LWygYeOfullbNFDxMws+goAUY7bR/77+TfJLIOs sNBaodr8lxHgVjEGDP5dbLMcoOl4u3DgR4XUodUGt4lHkmCSYS7xZ96Q0x+FZ7rJSyqJh 0p6yB7BypKUYp5djtYPFqFDQFzpiOCRrQ8KpVQO7cI4P64ZkcQ4a/+sd1Mv9WEImHcS1T ojsiyOnuROdQJnx4ZM0oQCaXARWLc5mXeeX6TnapKQzYvbeiHQjhsV4hf9PRHaJV+pQyo 2bFtACUTQRk3+1+IsnUeEFIykfQ60XIrx5NyfeWgPqU0nQri/dO//MbWbdqZxsBr7DQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796525378; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=4MXhyi9PciQPqO76n7Vs/Wn8gI31CR8IWetitXdXBjw=; b=EC3dpdx/B3ZXtrh3lNm1pOoildOmRHe8qvw7Re63hBFHbo9SLUFSUG4PhHh6emG9f05B QFlgqjwC4bnwhBhBhp/+y+M/z1CAK18FmX8UirUYyREt6aUGqcT2v0jFSCG8jteYpjhIB 4Qmu05WOirxZ8txFmIHQGltUXLeJMhtJy5YM7NboP+l7Ht8+aTgaotnxocjml6SBzhuaE xiiAu6a+Fw0sp/dxmdQZZ6AwzZCbUTZY9g+6Wp9LT804U4sCvOXaiEmbA2Da2TAbzVJd2 kwngR3N8nGHxmqWar5ftH0Nxg5qHWiXSLFexrMB9OVlZsYpTqYolQ54W9t0lpbkU2uw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=209.85.167.198 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3470B606A31F for ; Sun, 6 Dec 2026 02:49:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3470B606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-57ea02bd004so1849394b6e.0 for ; Sat, 05 Dec 2026 18:49:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796525377; x=1797130177; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4MXhyi9PciQPqO76n7Vs/Wn8gI31CR8IWetitXdXBjw=; b=qNWmKuqIHXHCEaqfADp/q/Fp3PuAVPHzNgx8R8aQQhIVc0V3X1WpUgUyvR/4MxFiC4 Xa0mETxWzB5acxZnL3P01rcceYit3udCeuy8T3wFADod+0f4JCko+TbzcqyUQ+fk8VHn SXwk580JlN5OBUZd+YCppVNd9UhhlUZ5GBkiKvOpxuUS1UOVEM2S00nlZgcp42q2NtW0 0sgvPBCaenWxyhk9OG97Ia7mbikJqgqgtQE9SkPudaIuHGcUYUSA/pb3fvF2rpRbod3F F4i0sMkjsxmY1hywlLTvZBxlwgZXmFds5OxeW9MV0SzCNmpGZiD3eoJfbpqXoaGbraHF utQA== X-Forwarded-Encrypted: i=1; AL+hErFmeFMQH8ToxO6mxFbrgWE9w6A0ZvyDJuyrWLGUH8eH8flLTW2nuLoLFKh5h6oJiODnApz2+ffP2YZyV0o=@vger.kernel.org X-Gm-Message-State: APuU4Z80xYXJmeVeAXVJz3evbhnaKCSV5k7uLhib/ptGT1zkZkcNmVbs 7myQhXoP7A+H6Yjl929b/YASNUjcwTDdGmhyyftTicRN0rnCb/5O8OeLTD+LgMMxoEBtC22YxU+ p41CP/kdodFKWhN5DaJGzIp8P4A0BodMvtSACG99xDcS2FBFjsHPdIY3MDxg= X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6808:251a:b0:4af:5d69:1cb4 with SMTP id 5614622812f47-57f2075206cmr6927237b6e.15.1796525377248; Sat, 05 Dec 2026 18:49:37 -0800 (PST) Date: Sat, 05 Dec 2026 18:49:37 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b14cd41.7375a9b9.1d867b.10ff.GAE@google.com> Subject: [syzbot] [rdma?] general protection fault in cma_process_remove From: syzbot To: ammrat13@gmail.com, jgg@nvidia.com, jgg@ziepe.ca, leon@kernel.org, leonro@nvidia.com, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, metze@samba.org, shayd@nvidia.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: d5cf954cebe4 net: pktgen: hold if_lock across pktgen_find_.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git console output: https://syzkaller.appspot.com/x/log.txt?x=161e5fbd580000 kernel config: https://syzkaller.appspot.com/x/.config?x=e9d235254b80f741 dashboard link: https://syzkaller.appspot.com/bug?extid=9a9d0804227064a915d3 compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1417aeb5580000 The issue was bisected by AI to: commit 889d916b6f8a48b8c9489fffcad3b78eedd01a51 Author: Shay Drory Date: Tue May 11 05:48:28 2021 +0000 RDMA/core: Don't access cm_id after its destruction reasoning: https://syzkaller.appspot.com/ai_job?id=a6f460af-a0a1-4736-a033-bfca6e4ba01b AI-generated root cause summary: In drivers/infiniband/core/cma.c, cma_send_device_removal_put() releases id_priv->handler_mutex after delivering RDMA_CM_EVENT_DEVICE_REMOVAL and before calling cma_cancel_operation(id_priv, state). If the event handler returns 0 (e.g., ucma_event_handler() queuing ucma_close_id()), a concurrent rdma_destroy_id() can acquire handler_mutex, transition id_priv->state from RDMA_CM_DEVICE_REMOVAL to RDMA_CM_DESTROYING, and invoke _destroy_id() -> cma_release_dev(), which sets id_priv->id.device = NULL. When cma_send_device_removal_put() subsequently calls cma_cancel_operation() with the previously saved RDMA_CM_ROUTE_QUERY state, cma_cancel_route() passes the NULL id_priv->id.device to rdma_cap_ib_sa(), dereferencing offset 0x798 (struct ib_device::port_data) and triggering a NULL-pointer dereference. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=9a9d0804227064a915d3 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+9a9d0804227064a915d3@syzkaller.appspotmail.com The bisection result may be wrong. If you agree with it, please also add: Fixes: 889d916b6f8a ("RDMA/core: Don't access cm_id after its destruction") smc: removing ib device rxe_rep1 Oops: general protection fault, probably for non-canonical address 0xdffffc00000000f3: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000798-0x000000000000079f] CPU: 0 UID: 0 PID: 6149 Comm: syz-executor360 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2026 RIP: 0010:rdma_cap_ib_sa include/rdma/ib_verbs.h:3563 [inline] RIP: 0010:cma_cancel_route drivers/infiniband/core/cma.c:1924 [inline] RIP: 0010:cma_cancel_operation drivers/infiniband/core/cma.c:1979 [inline] RIP: 0010:cma_send_device_removal_put drivers/infiniband/core/cma.c:5356 [inline] RIP: 0010:cma_process_remove+0x6ae/0xc50 drivers/infiniband/core/cma.c:5372 Code: 4d 8d 74 24 98 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 a2 03 00 00 45 8b 36 48 81 c3 98 07 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 63 97 40 f9 48 8b 03 49 69 ce a0 RSP: 0018:ffffc900042df0a0 EFLAGS: 00010206 RAX: 00000000000000f3 RBX: 0000000000000798 RCX: 0000000000000005 RDX: ffffffff890103a5 RSI: ffffffff9140e690 RDI: 0000000000000003 RBP: ffffc900042df1e0 R08: ffff888036815dc0 R09: 0000000000000003 R10: 0000000000000008 R11: 0000000000000000 R12: ffff8880798b4240 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880798b4000 FS: 00007f9d9fd6a6c0(0000) GS:ffff8881233e3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005601a3745950 CR3: 0000000074b34000 CR4: 00000000003526f0 Call Trace: cma_remove_one+0x18a/0x340 drivers/infiniband/core/cma.c:5479 remove_client_context+0xb9/0x1e0 drivers/infiniband/core/device.c:810 disable_device+0x137/0x330 drivers/infiniband/core/device.c:1325 __ib_unregister_device+0x2c9/0x400 drivers/infiniband/core/device.c:1571 ib_unregister_device_and_put+0xb8/0xf0 drivers/infiniband/core/device.c:1636 nldev_dellink+0x3a4/0x440 drivers/infiniband/core/nldev.c:1906 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+0x6ef/0xa40 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1368 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1927 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2283 __do_sys_sendto net/socket.c:2290 [inline] __se_sys_sendto net/socket.c:2286 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2286 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9d9fdd021e Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08 RSP: 002b:00007f9d9fd69ff8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f9d9fd6a6c0 RCX: 00007f9d9fdd021e RDX: 0000000000000018 RSI: 00007f9d9fd6a060 RDI: 0000000000000004 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0 R13: 0000000000000000 R14: 00007ffe20087db0 R15: 00007ffe20087e98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:rdma_cap_ib_sa include/rdma/ib_verbs.h:3563 [inline] RIP: 0010:cma_cancel_route drivers/infiniband/core/cma.c:1924 [inline] RIP: 0010:cma_cancel_operation drivers/infiniband/core/cma.c:1979 [inline] RIP: 0010:cma_send_device_removal_put drivers/infiniband/core/cma.c:5356 [inline] RIP: 0010:cma_process_remove+0x6ae/0xc50 drivers/infiniband/core/cma.c:5372 Code: 4d 8d 74 24 98 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 a2 03 00 00 45 8b 36 48 81 c3 98 07 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 63 97 40 f9 48 8b 03 49 69 ce a0 RSP: 0018:ffffc900042df0a0 EFLAGS: 00010206 RAX: 00000000000000f3 RBX: 0000000000000798 RCX: 0000000000000005 RDX: ffffffff890103a5 RSI: ffffffff9140e690 RDI: 0000000000000003 RBP: ffffc900042df1e0 R08: ffff888036815dc0 R09: 0000000000000003 R10: 0000000000000008 R11: 0000000000000000 R12: ffff8880798b4240 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880798b4000 FS: 00007f9d9fd6a6c0(0000) GS:ffff8881233e3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005601a3745950 CR3: 0000000074b34000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 4d 8d 74 24 98 lea -0x68(%r12),%r14 5: 4c 89 f0 mov %r14,%rax 8: 48 c1 e8 03 shr $0x3,%rax c: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax 11: 84 c0 test %al,%al 13: 0f 85 a2 03 00 00 jne 0x3bb 19: 45 8b 36 mov (%r14),%r14d 1c: 48 81 c3 98 07 00 00 add $0x798,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 63 97 40 f9 call 0xf940979c 39: 48 8b 03 mov (%rbx),%rax 3c: 49 rex.WB 3d: 69 .byte 0x69 3e: ce (bad) 3f: a0 .byte 0xa0 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup