Message ID | 20240208114800.27676-1-apanov@astralinux.ru |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-57987-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp106882dyd; Thu, 8 Feb 2024 03:49:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf3e35R/iI2c0MxSKggWp/Eiwp+UhM2CnUDbgaHixYCFH9UKywZYBpktvEEHzoXp1J9fNa X-Received: by 2002:aca:2415:0:b0:3be:7321:a572 with SMTP id n21-20020aca2415000000b003be7321a572mr7327460oic.17.1707392986576; Thu, 08 Feb 2024 03:49:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707392986; cv=pass; d=google.com; s=arc-20160816; b=suhPTHhzTx6c3xN59vqqeefBPzLFWHTKhDw6exxuHGBGwuDVM5jWuJPeUoL8oqrzM+ 3r+gq6n7MCjhggppwfkgcI44hWPVS39mPoDzj+cAe/wZ0wz5H6FG4RIOa0zSert9L8qP R2ovpgjYx0Oci75CfEjdEBoisEVJeDHDqF/93MYrRFIW7rJllwygvua0hNQuiYWZ0r4w wXMprxhrQ6G4MaXvyFNnbM6/Qb7ZWJjzLKu3bo8slttlPqgB7rsAvhpNJ4MowWtL4MTm 49HIzLR3c2eA+jfZfIgpM13oRZl7JAnaZIC0rzoXwoTwQcFdRJSKWNypnLnGcJtiayRu DGvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=1P2tm3EYDhfOGtF0LkgV060qH1EYIgD1fPpolN912ko=; fh=+4Hc9nwzuSGbi4E+GzXLO5fRnvXerxB9hrXpsZP6jC4=; b=j8tohtBTv7rMkuHbuf8DP5gd7iwAU2H61HHGknSD9JONnrqdxQ0/xOBJ2Lv5WPGHme FZO1G5bgDYnHjst2iYY84Rx+017t3P5WyapAChaKhjaNKtWcMrUHNkmqLnjrTIZ1Nhgc i9+VbRfjrm1JMASxgr7LY3JH6wE93PV7dIsVmW1xzLw+rhxUDnuPeI7ZCYzqPe73flbF tVPI4+A0YY+W5gtx11tK++ETe55wzrw21fzg1+gZq4q8l/jPOQBcfQQJn3Zs/OubCczN pSe7Al+Kq1FQSLpc+DwfnPZRnLOeqrq8hYlf3Acv5C2k4ELe4tN1rt18xG06StTqA96S 49Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=astralinux.ru); spf=pass (google.com: domain of linux-kernel+bounces-57987-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57987-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCX1sL5u7nEqd3BG8jypm0I+VD5/TkqPDtkjBVOaWEV7o9jFZjdQb1oi+MF7aYu0d+LDCyJpydXqEhWh8JOCmHcjff8Mvw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t20-20020a056a0021d400b006e03efbcb47si4111803pfj.347.2024.02.08.03.49.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 03:49:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57987-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=astralinux.ru); spf=pass (google.com: domain of linux-kernel+bounces-57987-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57987-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D686D2841A8 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 11:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62B9C76026; Thu, 8 Feb 2024 11:48:34 +0000 (UTC) Received: from new-mail.astralinux.ru (new-mail.astralinux.ru [51.250.53.244]) (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 BD7CB6EB70; Thu, 8 Feb 2024 11:48:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.250.53.244 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707392912; cv=none; b=HT7fm0PU62Mctle1djWSlenHspymfWuCTvOY9JHAtfzgCuIL2evpAoZBfXer87CmFDVwO/ys+agg+JQCZwssBEx8ig6T+QwHYgn7Xigb2y6Wg/ZubT4lXMSSKnEQzk/L01pvGK6jHPzxn0+y0DcEjfveRRJRvGb3hxk8anS6PCA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707392912; c=relaxed/simple; bh=1P2tm3EYDhfOGtF0LkgV060qH1EYIgD1fPpolN912ko=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ET94NcUGUw1koJQbg3jpaL2f1emV05hOd9p4ZguoWg3eSIonv5Doh0W8XJ3sCGvRHvrYaKaXdFPjTno+JNnXgFBywuP02AtwRjpx4krzE8simAQvEeqGbe9cIssciMy4bUmeQa9woadXQ10HZOXffEjgZ9iAXyNDVpN10IV41jg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=astralinux.ru; spf=pass smtp.mailfrom=astralinux.ru; arc=none smtp.client-ip=51.250.53.244 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=astralinux.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=astralinux.ru Received: from rbta-msk-lt-156703.astralinux.ru (unknown [10.177.233.118]) by new-mail.astralinux.ru (Postfix) with ESMTPA id 4TVwGq0M5lzfZ1C; Thu, 8 Feb 2024 14:48:18 +0300 (MSK) From: Alexey Panov <apanov@astralinux.ru> To: stable@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Alexey Panov <apanov@astralinux.ru>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend <john.fastabend@gmail.com>, Andrii Nakryiko <andrii@kernel.org>, Martin KaFai Lau <kafai@fb.com>, Song Liu <songliubraving@fb.com>, Yonghong Song <yhs@fb.com>, KP Singh <kpsingh@kernel.org>, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: [PATCH 5.10 0/2] bpf: cpumap: Fix memory leak in cpu_map_update_elem Date: Thu, 8 Feb 2024 14:47:58 +0300 Message-Id: <20240208114800.27676-1-apanov@astralinux.ru> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DrWeb-SpamScore: -100 X-DrWeb-SpamState: legit X-DrWeb-SpamDetail: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehuddgtddvucetufdoteggodetrfcurfhrohhfihhlvgemucfftfghgfeunecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeetlhgvgigvhicurfgrnhhovhcuoegrphgrnhhovhesrghsthhrrghlihhnuhigrdhruheqnecuggftrfgrthhtvghrnhepudehuefgveehffekleekleetteefvedtveeujeekvdetjedvtdeuueetjedtleeunecuffhomhgrihhnpehlihhnuhigthgvshhtihhnghdrohhrghenucfkphepuddtrddujeejrddvfeefrdduudeknecurfgrrhgrmhephhgvlhhopehrsghtrgdqmhhskhdqlhhtqdduheeijedtfedrrghsthhrrghlihhnuhigrdhruhdpihhnvghtpedutddrudejjedrvdeffedruddukeemgeefjedtvddpmhgrihhlfhhrohhmpegrphgrnhhovhesrghsthhrrghlihhnuhigrdhruhdpnhgspghrtghpthhtohepudekpdhrtghpthhtohepshhtrggslhgvsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhgpdhrtghpthhtoheprghprghnohhvsegrshhtrhgrlhhinhhugidrrhhupdhrtghpthhtoheprghstheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuggrnhhivghlsehiohhgvggrrhgsohigrd hnvghtpdhrtghpthhtohepuggrvhgvmhesuggrvhgvmhhlohhfthdrnhgvthdprhgtphhtthhopehkuhgsrgeskhgvrhhnvghlrdhorhhgpdhrtghpthhtohephhgrfihksehkvghrnhgvlhdrohhrghdprhgtphhtthhopehjohhhnhdrfhgrshhtrggsvghnugesghhmrghilhdrtghomhdprhgtphhtthhopegrnhgurhhiiheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepkhgrfhgrihesfhgsrdgtohhmpdhrtghpthhtohepshhonhhglhhiuhgsrhgrvhhinhhgsehfsgdrtghomhdprhgtphhtthhopeihhhhssehfsgdrtghomhdprhgtphhtthhopehkphhsihhnghhhsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehnvghtuggvvhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegsphhfsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhvtgdqphhrohhjvggttheslhhinhhugihtvghsthhinhhgrdhorhhg X-DrWeb-SpamVersion: Vade Retro 01.423.251#02 AS+AV+AP Profile: DRWEB; Bailout: 300 X-AntiVirus: Checked by Dr.Web [MailD: 11.1.19.2307031128, SE: 11.1.12.2210241838, Core engine: 7.00.61.08090, Virus records: 12345016, Updated: 2024-Feb-08 09:34:35 UTC] X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790331308008287321 X-GMAIL-MSGID: 1790331308008287321 |
Series |
bpf: cpumap: Fix memory leak in cpu_map_update_elem
|
|
Message
Alexey Panov
Feb. 8, 2024, 11:47 a.m. UTC
Syzkaller reports "memory leak in cpu_map_update_elem" in 5.10 stable release. The problem has been fixed by the following patches which can be cleanly applied to the 5.10 branch. Found by Linux Verification Center (linuxtesting.org) with Syzkaller.