From patchwork Wed Mar 20 14:36:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gavrilov Ilia X-Patchwork-Id: 13597913 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 25F24482D8; Wed, 20 Mar 2024 14:36:46 +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=1710945410; cv=none; b=NEVkO3X88OFQ8JR/UpQF1NleH1oEsVwbNgGcdbQZB5//AEHgse78rp4cAA5sr+fdOoWrKw3h9LTw0+Db13KdYZPaR+fNVLR0zXkd41F0I7kBBoV4XormbHNW3hEKSLEmY5Doz/Xh7hLL5pUnQPExiOb7sJNHYGL/Y/nSooTvzhs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710945410; c=relaxed/simple; bh=mfL4lpZfvM7BlCtt4ST58fKYcVjZ6oDkZO2yKupDzdg=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Vg4CYyqjDPd+pmAC//h/RrTasQqyGUsbCOqIyX7VyCPxMqG2PLxvbarIgYjtEeRLqh1RbFILKmZ1jkV/BT6w6uHSeLpMZFPOPku0trSjrlNJP/ac89u7GTVzhGenqJnPQgEgkfGnYZ2I9covHr7tQAnq3nMERczbE/jF0f3uEXY= 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=cMBNmGSu; 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="cMBNmGSu" Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id 7680710D0AAD; Wed, 20 Mar 2024 17:36:38 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru 7680710D0AAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1710945398; bh=H5icz46cAcV+OVygu5QLzJOl+JIEFHHjACrVhgKwhnk=; h=From:To:CC:Subject:Date:From; b=cMBNmGSuTOL4P51rHxadCZ+Nd8E4YXOuE1SdY44+EvzD5pDHL37nOpbms/TgKIuZC a5IckhKlohtZ/FDI71aUEgr7cyBX4fhi4DXlOzHWIt3vSxhdyaKF5FrehSFrS5An9a X7uwemkAn+59HeEbMMLN3ouwlqNqhndSmvRveUt0= Received: from msk-exch-01.infotecs-nt (msk-exch-01.infotecs-nt [10.0.7.191]) by mx0.infotecs-nt (Postfix) with ESMTP id 72D7930537AB; Wed, 20 Mar 2024 17:36:38 +0300 (MSK) From: Gavrilov Ilia To: "stable@vger.kernel.org" , Greg Kroah-Hartman CC: Michal Ostrowski , "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: AQHaetQEdZJQK19qr0KbG/EQESuzkg== Date: Wed, 20 Mar 2024 14:36:38 +0000 Message-ID: <20240320143637.2904385-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/03/20 07:32:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2024/03/20 12:55:00 #24319174 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(-)