Article View: linux.kernel.netdev
Article #14306Re: [PATCH v1 net] net: Fix memory_allocated leak in __sk_mem_raise_allocated().
From: Jakub Kicinski
Date: Tue, 10 Nov 2026 23:25
Date: Tue, 10 Nov 2026 23:25
24 lines
8805 bytes
8805 bytes
On Thu, 5 Nov 2026 13:45:21 -0800 Kuniyuki Iwashima wrote: > > This is an automated message. This series looks like a fix, but its > > commit messages seem to be missing some information: > > > > - Whether the issue was actually triggered, or is only theoretical > > (e.g. found by code inspection). > > "Found this while converting sk_memcg to obj_cgroup." I assume you mean to imply that this sentence answers the question of whether it was triggered, but either I'm too limited or it doesn't. It only explains how you find the issue, which is _not_ what the bot is asking. > > If it was triggered please include > > the symptoms, like the stack trace or error messages. > > "Then, if mem_cgroup_sk_charge() succeeds, sk_prot_mem_limits() > checks are bypassed, and if mem_cgroup_sk_charge() fails, > sk_memory_allocated_sub() is not called, leaking counters." "symptoms" mean dmesg basically. Please suggest better phrasing, if you can think of it.
Technical Details
Message-ID:
<20261110152541.04462dda@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360720-linux-kernel-netdev=dewy.ruReferences:
<20261105212905.3122712-1-kuniyu@google.com> <179391463924.488859.10033550397120765032@kernel.org> <CAAVpQUCYHbdAdfxckQO=T5L8Y6896SZynJeGFUwP9Hv2dXDpTw@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360720-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v1 net] net: Fix memory_allocated leak in __sk_mem_raise_allocated(). Date: Tue, 10 Nov 2026 15:25:41 -0800 Organization: Usenet Network Message-ID: <20261110152541.04462dda@kernel.org> References: <20261105212905.3122712-1-kuniyu@google.com> <179391463924.488859.10033550397120765032@kernel.org> <CAAVpQUCYHbdAdfxckQO=T5L8Y6896SZynJeGFUwP9Hv2dXDpTw@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="731625"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:WWZFcKjq63FPl5ARu7j7C3AghOg= sha256:QoNrtF5/7qpHTqJjWGB6C9DZs+0fu5xfAJT/CREz3KM= sha1:D9OCAvZzXU7vg5j3EnddBiGU+/k= sha256:YuP2BcTu45u+ucefJEgMmgAakk8E1I9NUKGRKMAATrA= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id EB7D6113DB8; Wed, 11 Nov 2026 02:44:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KFBv2B4yMEvQ; Wed, 11 Nov 2026 02:44:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-360720-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 9CFEE113DA9; Wed, 11 Nov 2026 02:44:11 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 3B052488AE; Tue, 10 Nov 2026 23:25:46 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794353143; b=qsaWntXaJVid7eB5k4AN3x9Pv37tPPNvhe0/3wr+j6aXuIw2WrHhsg5urFjUPlmb0Z3I 45rD+UQsBVOs1SRzKQJUOn0PSLY7TS2jwThPGb0OFuXxKIm8qF9HVDNPXvQ71H5JxfHVI Y6pAe3Emfq4xRKV4BSRe5J180i7fu/4/RVLeW5/e6dFGWaiCHe18xuUh26mr/KtJfVC/U VUnu0SslR6TZN88RAJ+mCm31218Qg/FBelxUTVXbv2ykxaZ71pMTLK5VGlCKLJ1AbF14Q 7R511q0z+bS2DFv7FwH2tfWMSwH5J2YijQKKDsU5UZ/GwbqNpjqAgIkHJ4x6Keyy0Qg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794353143; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=kzuVvzEBMW2diGcIYuw1BYGN+uSaHFkI+ufWEuT8wi0=; b=U/jO6XJ8BA6SpdvWC6qTqHkNNzKX5iIDw1SEIxTdGQ33r9C9HLIw6W6uwmDV8uAzmSYV eZWEFK3HPCEC8NNMF+ZjnHI+JCn0vJ8Jnfkcne5AjiL6soJyLlKHZ/n56jDFsqMEEhCWX vur4sRzfJkCI8vYAGqLd1jhHH2GwUBjJiIjQVC6QEr3TA6xPJLNSoS4Llx5TqqpXhnaPT mRyrm0VZyVRQaCpXzLJSN7vflZ8NKqD5vqL+K8Jf5Zy+26Dh3rpTVG2phbjO1ybq7cpgF 0sdcfD0DuBYpfc7WlvZtfBdKK38vbEDvFaKC0Wzql9JZ1GdbG1390B63lgx3+sloOUg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b630V1FH; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5FC0606A326; Tue, 10 Nov 2026 23:25:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b630V1FH X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794353142; b=AZTtaBfMM5Be8dD+YO5RBv7STdVPjhYwhRbMdIMBk/8Afg4oqxQ/svcF9fyd6UpW7Yd4 qvDa6IaqxCcZsbugDM3UiIAZ3hq3ykSM2cSG/YsP9LbxX7HTvnlX4yS/xwgVlaXikTgMB qLqxUAv/wXWBHT/wCn9iktOjri9X0B+LJjbV0cRZMac1gQhOWd6hiE2NtmUavHkSbs7Ka 7TXZJQNQlRwQcYxpHgGqcoWi59ctb6Aa9r527ZGQ680v7tWtEhtdC8pL8eoxj3xaMzsPw /UALC1ep6noYN173qOc5e9SvZfz5i4pDztNccJNJXSfG76edpTCgh+mCS6Z3kOqAxUQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794353142; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=kzuVvzEBMW2diGcIYuw1BYGN+uSaHFkI+ufWEuT8wi0=; b=yHzBIqwJu8S/GQUIKtQGhJL3LoFrjUlibLY6Oh98NWj06lyiZxMk0/GpsYk2kuRIltEd t9QaR93PhDa9rew7/RmD7bShYdfz9rxG3R3V6hJtSZJT3XMqWgBxEyITGxAPOqpAb3+YI OW0ysRQclwhEEU89M0xr7uLzNn80RXZy3RY/6oJcvqAJ3Fku8P+n4H4YCEGuhAGZfo2ab bhzsKenNBNCkTGiKvNo/FvnM1dq/WenPVLRewutOwO6s7uwIjt7+7wQSn3auUqpTpj1yn Oe9QJXF821DJPKInoPGmWv81zoQi2pr/ce8LV8kS26xOavkMe8PjLPY4FPCmc93nmXQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b630V1FH; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2827606A31C for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 23:25:42 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33B571F0093C; Tue, 10 Nov 2026 23:25:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794353142; bh=kzuVvzEBMW2diGcIYuw1BYGN+uSaHFkI+ufWEuT8wi0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=b630V1FHCsB+olWrNaLCZCLM7XV4quMA4lPj4P2hnceNnri5kt53DxSRALfqmOOUZ Aw0yMkrMsS5k3aHLPpHg1IgbfJ/no949+ZfTyJ+RcYO1gB8woTg5Uj9WfR6bjUY6Ug sp4i5WSku0WlwmXQeVzpMQh+0XCwCtJkxttwELkz3i4ye1Ka9GjYuqEjv9vzLRgP19 OjIJ6WaUd3TdVGsQnduVBLK7LnrPgAC4jkqAXm07PORYCg0oUepqHYAs5wGUwVA1Gr 4KNXo6qRlYXn2B/qufzzLEuXbdCyen/N1c4wRFxoN80rcwDYsBMtv5qOTijh5nja8f 3H0Uc2PPBolqQ== X-Cc: netdev-bot+sinfo@kernel.org, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Kuniyuki Iwashima <kuni1840@gmail.com>, netdev@vger.kernel.org X-In-Reply-To: <CAAVpQUCYHbdAdfxckQO=T5L8Y6896SZynJeGFUwP9Hv2dXDpTw@mail.gmail.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list