From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (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 52030318BB3 for ; Tue, 9 Jun 2026 06:14:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780985684; cv=none; b=hRKfp/th12SgG0tlWsL4GVVnKZvOcj2OlQsC/PmR3BIYDqMwbZrnTcDmYPlWQKuQxg4ufIkXhB4BiPsTh9VoNQgqQpRwD3bXPV9y63cuet+u6feiSKNDShYmyxV8l6HCdA3N0OCrNdVZW5uD8ulVDOumxkllu7zTzDX8+lnMsoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780985684; c=relaxed/simple; bh=KvRxid8MhZYIZmOgsEWn34Ns+SaA+u4dWe+sxfJm7eg=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f1MWMWGLv1KC9fgfXZa2NqPIw97XsAZfCyt6TMDcW4G+t8wvkQq60b5JHtqKUzDUXNzgZxE/gx6qPg72jAeWW8zOTlo/Aqc/g5g3Sf4PlqDHeGECOQxGQfJUTm8GowAaw8OF9+DNiVgOvDr9WtCPKNVNv4+VJ/Lgse9HQ+oeN/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=koj78Ox0; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="koj78Ox0" Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id A6040205E3; Tue, 9 Jun 2026 08:14:41 +0200 (CEST) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CCVAa9MZLlRz; Tue, 9 Jun 2026 08:14:41 +0200 (CEST) Received: from EXCH-01.secunet.de (rl1.secunet.de [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 0F4B8204D9; Tue, 9 Jun 2026 08:14:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 0F4B8204D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1780985681; bh=MMPhR1fF46fp2XC0vdJQyJQoVQYvMTHkL2duWbzItNA=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=koj78Ox0ngKuCKYYuGFHYFWYiMy4sJRWsPv/tUH0Hu6eHqsqFHfDdXPCAwSBU/4Mg oWtl17+C/rMa29YbCYzwYtSlHRii4X6OiUt8FprlK61uEfczKz7AQhirJMbnDH3RD5 8T8vsDR/1EhcaOsPt7S+l8Y12His6H0rnvTfnzqFwHUOnxWYR+wj4iopLn1B1+vrZK siqSG8vRvo+0An1KPtuRsDIttd9iOwLpLtEBkI+hlOR1sCaKm4Jy3O2+njQU9U363z Toal98rzFhTYDDdDgLHSgwy/QuW97v+HG3rMYfPrvwr2FLE2faxgbse5sQ1hUEH546 2BDPwUxvpIpcg== Received: from secunet.com (10.182.7.193) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Tue, 9 Jun 2026 08:14:40 +0200 Received: (nullmailer pid 893511 invoked by uid 1000); Tue, 09 Jun 2026 06:14:39 -0000 Date: Tue, 9 Jun 2026 08:14:39 +0200 From: Steffen Klassert To: "dongchenchen (A)" CC: , , , , , , , , , Subject: Re: [PATCH net] xfrm: Fix dev use-after-free in xfrm async resumption Message-ID: References: <20260529092111.1089315-1-dongchenchen2@huawei.com> <70a09730-69bc-49cd-aa61-89e63ba766e3@huawei.com> <7c79c7a1-897a-490e-91e1-83a1ac5ad27a@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <7c79c7a1-897a-490e-91e1-83a1ac5ad27a@huawei.com> X-ClientProxiedBy: EXCH-03.secunet.de (10.32.0.183) To EXCH-01.secunet.de (10.32.0.171) On Tue, Jun 02, 2026 at 03:38:29PM +0800, dongchenchen (A) wrote: > > Maybe we can fix it as bellow: > Stash the original dev to fix refcnt imbalance. Add rcu protection > for new skb->dev set by xfrm_rcv_cb to fix potential race with device > teardown. Please submit the patch. In case we find issues then, you can just do another version.