From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7077355F47 for ; Tue, 28 Apr 2026 02:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777342523; cv=none; b=QTjAzBT+EtVHXSleNwpG91CrWHYjZ/C1Vq6FF0Itkxo0SZgI/hCOtJB/WnbqjzKm+7OBQw32z6kWxuK5BhSxaWr/SJC+jjXZ6JwNm4I2frHQ+fMZx6jgXB65fMm9M3XBn518CAGOTXb83knJxO2sgKNMpFF9JpdSy5jRM2YEMXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777342523; c=relaxed/simple; bh=nkxGLuW7w9llD4Cl9gHgWH4rjRfRUjEizKs4BPfT1yk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fTqu8uCYps0OyqxCHc1hO+vNSPbGn3GstE2O/nEcmUMqfvzFReTN3WiGrQq/4K7FugkVkoNxwUmLd6pgBRb0vmCsy20O2dpUCfaxy4qDMlfSNrfq7OlIQIgPxNaihEcttU23scoSbeq+aAiy2vh40oHwGlkXdeYqRyns0T4svOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Vz0mdGHY; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Vz0mdGHY" Message-ID: <0ef2f2e0-e437-4ec9-8ebe-21c702041acb@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1777342519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mgOjJvb3XCt8mC/UY9IfviKJMwFQRRCL4Ls6LrRK7cc=; b=Vz0mdGHY4kVuJd5Ugnz2O1/ak4KIVNdmKRax5MkaosCA3xhQiLrHgGj4FPBvqUYUSrJHZG +yflVg4jwYAZyJPx6G30xXqs+jTA4DhjNCAxpbq1PXZ/lQpykYNzfOxd78wyUxY/n6V5jL 3Y2kbSw6uy+Vb2awkzIo9yJiGJ8VtLA= Date: Mon, 27 Apr 2026 19:15:14 -0700 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 1/2] RDMA/rxe: Fix null-ptr-deref in kernel_sock_shutdown(). To: David Ahern , Kuniyuki Iwashima Cc: Zhu Yanjun , Jason Gunthorpe , Leon Romanovsky , Kuniyuki Iwashima , linux-rdma@vger.kernel.org, syzbot+d8f76778263ab65c2b21@syzkaller.appspotmail.com References: <20260425060436.2316620-1-kuniyu@google.com> <20260425060436.2316620-2-kuniyu@google.com> <030d3487-b5b9-4067-8b8c-89b4e8756e1a@linux.dev> <86499305-4522-4a82-a689-0247f2d5f6c0@kernel.org> <4196fe33-88c2-416d-ac20-b68bf7f328a6@linux.dev> <9681c9e2-79a9-4d72-b1ad-229ba6d7aab7@kernel.org> <0cf42593-0149-4019-a51b-36f74ff67f51@linux.dev> <0c1258e2-7060-4084-9a07-dd7af8262dec@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zhu Yanjun In-Reply-To: <0c1258e2-7060-4084-9a07-dd7af8262dec@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2026/4/27 17:58, David Ahern 写道: > On 4/27/26 6:52 PM, Kuniyuki Iwashima wrote: >> To be clear, you meant implementing David' idea, right ? >> I'm asking because dellink won't need locking then. > dellink is not needed with my suggestion. It was added to manage > basically a refcount on the socket to close on last rxe delete in the This is my original implementation. @Kuniyuki Iwashima, can you reproduce this problem in your local host or other test environments? If yes, can you make tests after applying the commit in the link: https://patchwork.kernel.org/project/linux-rdma/patch/20260424043522.22901-1-yanjun.zhu@linux.dev/ Thanks a lot. Zhu Yanjun > namespace. -- Best Regards, Yanjun.Zhu