From patchwork Mon Apr 15 11:51:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gavrilov Ilia X-Patchwork-Id: 13629848 Received: from mx0.infotecs.ru (mx0.infotecs.ru [91.244.183.115]) (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 994BA79E4; Mon, 15 Apr 2024 11:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.244.183.115 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713181866; cv=none; b=u3djua9MCihYESugXO6OjCYmAFNsr5Edbv8yp1uvz/9QX2qCSQsI+57DRIHQ3wEXeOgDt6RKegnxCsVIyjPL1KM/3jyR17Xk2Ind6cc761UGO2DCGbEdTIf2Sls1Hzzocaz8wDCT5HRB6aYfAIgr1LrjG926j0h7JJItc66elrg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713181866; c=relaxed/simple; bh=mfL4lpZfvM7BlCtt4ST58fKYcVjZ6oDkZO2yKupDzdg=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Hf8asPtx8ym9FQa20GQ6xkhoS5psrQDZn7sMiqQo8MBU3NWCw4H82lHXeW1SKCeaM0InN4cdXvXP4vt8/H/xdAfsmoSizl+iYXsU+kqY++RcrJAX0qKMyAbCggdDzRhJCHpieULQQyrbMAEoGh+w90O0yEMkXT8fSJ0ZSt0TyM0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=infotecs.ru; spf=pass smtp.mailfrom=infotecs.ru; dkim=pass (1024-bit key) header.d=infotecs.ru header.i=@infotecs.ru header.b=bYv9RlUA; arc=none smtp.client-ip=91.244.183.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=infotecs.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infotecs.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=infotecs.ru header.i=@infotecs.ru header.b="bYv9RlUA" Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id CDFFE14FFA23; Mon, 15 Apr 2024 14:51:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru CDFFE14FFA23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1713181862; bh=H5icz46cAcV+OVygu5QLzJOl+JIEFHHjACrVhgKwhnk=; h=From:To:CC:Subject:Date:From; b=bYv9RlUAPSO2DMhlEPyicmhZdzl+7aviwdrAcpJm81r6dRs0x18YIDzpzCoHvX1NA muHSFqBiZBy4NoPtFtyj4UIkVUAUpi+r4iC75pInqKQ2hF4ugYmWPhFdW/zXwppUld A4d+/VZpsjAG1SFltJHO44IfV3Um2I6qsKwzN34M= Received: from msk-exch-01.infotecs-nt (msk-exch-01.infotecs-nt [10.0.7.191]) by mx0.infotecs-nt (Postfix) with ESMTP id CAC65319A98E; Mon, 15 Apr 2024 14:51:01 +0300 (MSK) From: Gavrilov Ilia To: "stable@vger.kernel.org" , Greg Kroah-Hartman CC: Michal Ostrowski , Guillaume Nault , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lvc-project@linuxtesting.org" Subject: [PATCH 6.6/6.1 0/1] pppoe: Fix memory leak in pppoe_sendmsg() Thread-Topic: [PATCH 6.6/6.1 0/1] pppoe: Fix memory leak in pppoe_sendmsg() Thread-Index: AQHajyswWUg9DipKAUu6zaSephjulw== Date: Mon, 15 Apr 2024 11:51:01 +0000 Message-ID: <20240415115100.3914582-1-Ilia.Gavrilov@infotecs.ru> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-exclaimer-md-config: 208ac3cd-1ed4-4982-a353-bdefac89ac0a Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KLMS-Rule-ID: 5 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, bases: 2024/04/15 08:48:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2024/04/15 09:42:00 #24801259 X-KLMS-AntiVirus-Status: Clean, skipped syzbot reports a memory leak in pppoe_sendmsg in 6.6 and 6.1 stable releases. The problem has been fixed by the following patch which can be cleanly applied to the 6.6 and 6.1 branches. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with Syzkaller Gavrilov Ilia (1): pppoe: Fix memory leak in pppoe_sendmsg() drivers/net/ppp/pppoe.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-)