From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796083800; b=quRiwxhE7PTi88FlIj68K0+vwRsB44U9RNziiDV8HjdnDAH/pJKMukSbmGMdY/YXQ39g +HEXNmy40mBiiTrhf7rj1JG9LcwGaqkAHfAPHm3xWAJUVgyCxzgOfsZ0X/dOKE1IDpF0p OVNveUFnejP9stNsIXadFaLQ8ca1yrWKbuXAmygmfuO+oDswqayCnTekvWP+uA5w9rTqV cPqLFrHl2QCo5yWvJYh2x/ditd5o4uPRldfFLCS0MDAA84TOHAZ09TJOENJb+Zg/xq/Zo Iqjl4vPRVQyKHJQZFP9IjSkp4WmFPfPKx06dFWtlzrcETBTqyrIwQywVz+F/QHdc5tw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796083800; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=g502YRYwSsZHedxVq2OteO1o9+dmuJFr3kfA3E4BooM=; b=Zr8WKrrowKYs/wbDqdj+MYGPelcjYk029KEuceAVR6TU8O2HSDaWQ58HkgXBQKPneHIh btdd0BZZX08Sk3MXP5Nx59LcaJnqJgjdUwwwOZIHg0VCWHyPl4mAb4h7WXTT85ejTZQNC 9Py9uGqf+mrwY3ANIKtVeFuUx9wzGzYxSzcUIV/8BqxD6DfXFpt4gs2lYsLY4RmiH8QJV 1TE4YLwiMiWzH9RYIKPDd6u4o2Gwf8sG8MDMC1pbdQFpUnwdoD1lgcD2W+FewhY0blzZe mE8HL4aW8KXMXNIv9wNpFNFiBXCdgxT/hQkHOdPKbcZ5u+DRyYaYPQPCSAbups8uzWw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Cl3Ofoec; arc=none smtp.remote-ip=209.85.214.199 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (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 23839606A31A for ; Tue, 1 Dec 2026 00:09:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23839606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Cl3Ofoec Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2f074b87307so77057985ad.2 for ; Mon, 30 Nov 2026 16:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796083798; x=1796688598; darn=lists.linux.dev; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=g502YRYwSsZHedxVq2OteO1o9+dmuJFr3kfA3E4BooM=; b=Cl3Ofoecq8q8d+MwVNTpzLM+I6AN/l5BQ6Tljlx63Lyg6LrHkFT0Ni3R2Zg4LW2ZWe m39/xVzRWzbHzc7ApaoRmjccSP32s56tXCzHbGo6SciVEGpihtTk1Vd7iXqnLq/qox5T c/dfZYwDvbBYMdr+SNeCRc5GS/0uHq3vqtCziZBV8Q8bf+ZVq1JkA/WDMnUl6lJx6mR/ INFEuLG1gWVVTsF3RGPpEEsosNypEHzcf8M50jbVnVO8cnkL51eOKXhDQecMfAaHI+CP 0k7TwQw9qYhLaGRSjWL99cZ7CqCjwLzRr2JdJGAPoCHf0dqXHuEzjaKDUZl05y06BztV 8HAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796083798; x=1796688598; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=g502YRYwSsZHedxVq2OteO1o9+dmuJFr3kfA3E4BooM=; b=TKqyN3wZoPg562Ra5uaUIx4IrI15tkbWm79UEOahZTiCSMHNgYmbycQCkSCfaTRvAo 6dKLk/PRf4A4g/iHowfexOlWfmDixKTHW3LrccB4GqYAcT/csE4rCmYItdns1zdDsaNt MvzPVdJqmMBKFeJ6gQOZ3wE5VmuQDK9/HnxmwX4WW03SgMIKeG23Tmagdpi66zEm4Zuj rpohW34ov/3Oaqk8v40z1Mwn533PDUmExq5N9Jgw9lk3/WL37v647PQ41slu1Cd1hWpS MiEcKsZpjmoWkbSEDxZMH7wJct1ShXMvNA+swTVvYrmPZOYhX0mg3TCC9FcyLI9eAknP oYPg== X-Forwarded-Encrypted: i=1; AL+hErFfTAIDJkTMeCkDGfkyOuURnfCgACE0PA3riB0murp0ZYdo49KZ2LBuT0e7p/eMqBF6RLR3xA==@lists.linux.dev X-Gm-Message-State: APuU4Z+PGSDpA0aLqWdaLg6U8FDA47XPTdSZvd8rLW3kpDzHpEIn2q+I tEJXjTfF4Bgvgj863OqNY1VRYszPqrQHE9O/9vUZ9HNNakEE6LvhGo9dfGCtxbemlakxYHOpxcH bqptDcQ== X-Received: from plpj15.prod.google.com ([2002:a17:903:3d8f:b0:2ef:a836:c1be]) (user=kuniyu job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:db08:b0:2ef:dff3:47e7 with SMTP id d9443c01a7336-2f03f170f5amr375687765ad.33.1796083798212; Mon, 30 Nov 2026 16:09:58 -0800 (PST) Date: Tue, 1 Dec 2026 09:09:57 +0900 In-Reply-To: <20261123-net-mptcp-misc-fixes-7-4-rc5-v1-7-278042217e8d@kernel.org> X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261123-net-mptcp-misc-fixes-7-4-rc5-v1-0-278042217e8d@kernel.org> <20261123-net-mptcp-misc-fixes-7-4-rc5-v1-7-278042217e8d@kernel.org> Message-ID: Subject: Re: [PATCH net 07/10] net: add __sk_net_refcnt_upgrade() with a GFP mask From: Kuniyuki Iwashima To: "Matthieu Baerts (NGI0)" Cc: Eric Dumazet , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , Mat Martineau , Geliang Tang , Christoph Paasch , Florian Westphal , netdev@vger.kernel.org, mptcp@lists.linux.dev, Davide Caratti , stable@vger.kernel.org, Neal Cardwell Content-Type: text/plain; charset="us-ascii" On Mon, 23 Nov 2026 14:24:55 +0100, Matthieu Baerts (NGI0) wrote: > sk_net_refcnt_upgrade() gives a kernel socket a reference on its network > namespace, with a netns tracker allocated with GFP_KERNEL. The next > commit needs to do that for a socket created in atomic context: the > child of a kernel MPTCP listener, created when an MP_JOIN request is > accepted. > > Add __sk_net_refcnt_upgrade(), taking the GFP mask to use, and make > sk_net_refcnt_upgrade() call it with GFP_KERNEL: no functional change > for the existing callers. > > The 'Fixes' tag here below is the same as the one from the next commit: > this patch is needed to fix the issue introduced by this commit ID. > > Fixes: 1729cf186d8a ("mptcp: create the listening socket for new port") > Cc: stable@vger.kernel.org > Signed-off-by: Matthieu Baerts (NGI0) Reviewed-by: Kuniyuki Iwashima