Article View: linux.kernel.netdev
Article #21212Re: [PATCH] net: lapb: fix uninitialized stack frame fields in lapb_decode()
From: Martin Schiller
Date: Mon, 23 Nov 2026 18:17
Date: Mon, 23 Nov 2026 18:17
25 lines
10556 bytes
10556 bytes
On Wed, 23 Sep 2026 20:36:52 +0200, netdev-bot wrote: > - [Medium] The second justification in the commit message is factually > wrong. > - [Medium] The patch bundles an orthogonal receive-path acceptance-policy > change into what is presented as an uninitialized-memory fix. I agree with both points. frame->cr is really left uninitialized for an unexpected address byte, and it is used by lapb_check_need_response() and lapb_transmit_frmr(), so zeroing the frame is the right fix for net. control[1], however, is always set in extended mode and never sent in standard mode. Hui, please send a v2 for net, as a new thread with [PATCH net v2] in the subject, that only adds the memset() and describes this effect, including how you found the issue. Please drop the Assisted-by: line; checkpatch rejects it, and tool details can go below the "---" line. Rejecting frames with an unexpected address byte is a separate behavioural change: such frames are then dropped silently, and a peer with a mismatching configuration can no longer bring the link up. Discarding them matches ISO 7776, as the review notes, so I'm open to that as a separate patch for net-next, with the consequence spelled out in the commit message and ideally a lapb_dbg() message for the dropped frame.
Technical Details
Message-ID:
<4b13f8daeb814d4efbd04427debc1013@dev.tdt.de>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369657-linux-kernel-netdev=dewy.ruReferences:
<20260919213639.3314894-1-benquike@gmail.com> <179018861262.2160803.7893822871484169869@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369657-linux-kernel-netdev=dewy.ru From: ms@dev.tdt.de (Martin Schiller) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] net: lapb: fix uninitialized stack frame fields in lapb_decode() Date: Mon, 23 Nov 2026 19:17:46 +0100 (CET) Organization: Usenet Network Message-ID: <4b13f8daeb814d4efbd04427debc1013@dev.tdt.de> References: <20260919213639.3314894-1-benquike@gmail.com> <179018861262.2160803.7893822871484169869@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3949898"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uQv6LNMOjTnrs+kmlQnS8h5QE1M= sha256:w88Lu5Ng7ZT5GZqkG19HehPxQRupxhsy31gDHfjKggE= sha1:djTI+qbJdPZLQJ6ISFijPF21+5U= sha256:tMNsxS5krCu3YGMrhFbQuVAZ2W9DlOcYNId2wXgMWnE= 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 B6CD6125DB9; Mon, 23 Nov 2026 21:19:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=dev.tdt.de 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 G9LyoAjYFKV1; Mon, 23 Nov 2026 21:18:59 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369657-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=dev.tdt.de X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 20E12125DC0; Mon, 23 Nov 2026 21:18:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 445A731EC5; Mon, 23 Nov 2026 18:18:39 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1795457888; b=vI2JgNIJuhGxkasLuaL3+Eza9LwnWzdSORLV7qsA/vwCSJrvs0Wi78dzU1FVzmJf7jof SmzrI88HA7G+1crlascl/IH/LkIQQK7zrQNlk6De43oRZ/DmAJIl9BWTkzCn7rmsHeBCr Zu+q869e23OrJjW9WRGJf092zPm8HXgLtfCdV44mAUAudjjRmtdxpM/es4miht+y/+WPg BwDxpzzqFEujzUCH8Ny6MuP9Nv3dnrUkdwbexnKw5o3t2UpjMnfz4/k4+WrPWxfwRDELe 73Jb4O3NJ3EcIfgcH7AD93yG0UmuFSVjlcqBewBpA5vQRnVosOWG0LIJyJ7TAj3E1yg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795457888; h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature: Received:Received:Received:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject: Organization:In-Reply-To:References:Message-ID:X-Sender:User-Agent: X-purgate-ID:X-purgate-type:X-purgate; bh=sb2eexXkaePTkOjZScatsgbEjOUnIQ9erSIOfnFWnj4=; b=jR1IOtDLeN+IJ4DROsagcb5ZYilFT4sqSYccQcSRkB3TtUISAYJmU1Sgg6nnZ4/vJbYv ML0aJorMLdVDmFLxPcBRceKcW6sJzmLHQupwXU93tJDELKvsoj46+zkQBtFjrzRC3uSCp pcGZ7N7zoRS3m1bViOLfYgMjBjsZ3DfNDmDjqQju1pCZjh47LCNF19Q3MSDFIn9OrZ4Iw ATtEWQipiUhb5i92rrIjmmH7O1HsUgSvBtXEXVSNc6S6hiyrJ223c5q3vQZDceNRz5AaF foCEXtfpWLP/6lSeFfZNf+OC6AcbC4Zj13Fvdzkw6qmJVnZfTeItso42drMnelzzRGw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=temperror header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256 header.s=z1-selector1 header.b=nX44UOb2; dmarc=pass header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; arc=fail 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 40230606A69D; Mon, 23 Nov 2026 18:18:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=temperror header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256 header.s=z1-selector1 header.b=nX44UOb2 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.37.255.70 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795457887; b=dUPhqbFGXBYPaJVUuTI4CvxhT5fkwkOILKDErd84V4sLdLOJxT/Sm+3XpTQVZ9fG16Nu FoDlVEW5K3MznvdiVDq5c3/+Wy5G/bXQDvwbLOYkPDPAeuMLUc2oj6r4tuDiZqYV47O6C HyA+nLQg0o0BcXd5JAVtSSIcKqLxg6Bg2Yb2MtPcBRhPaLkctlKW4CtSMbikafyXWVV/p kTTTd8hJPysYdNDjIyGz7e8UwvopnCMeG/VDlTt3Dv1RIKhpki75Z3VGOSSZZRn/iW7cr lsNVAWX00eECym/id0/NBLnsZIdhCUajSAI32cxtGJMaFiUVYaiTvTQEt4w/QIyQZTg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795457887; h=DMARC-Filter:Received:Received:DKIM-Signature:Received:Received: Received:MIME-Version:Content-Type:Content-Transfer-Encoding:Date: From:To:Cc:Subject:Organization:In-Reply-To:References:Message-ID: X-Sender:User-Agent:X-Spam-Status:X-Spam-Checker-Version:X-purgate-ID: X-purgate-type:X-purgate; bh=sb2eexXkaePTkOjZScatsgbEjOUnIQ9erSIOfnFWnj4=; b=2rE7Y7pueRGglVCIljlNctK5YLW0H1fCodajck7X9Xay9jt+PqWov3HgybSodo7zhG01 kkt1ZNdk+vL4QYZXbtn48vykl9OmLqEFMz9FNjxu2ZA2Af0cds10LvsWr3wwHHnMoZYjz UhMtRpKlEX8N1Idb6Sy2EUSgr2VUxge2JbIuxQfSpr1u08UDUFDJWOawmeb/elQbIh+uT jtT24o/tMNrpWQYRcF0IYGz2L/Y+6iIoWCeojlNOdUR1VXeIj8rT2zo8wkGLuC6QyMRNY HLXtWmsR4n3ejVdLr0xftm1miIKEUjvRdedOEZXVisdpEud8FJZIruBDxgJ7RBMHBDg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; dkim=temperror header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256 header.s=z1-selector1 header.b=nX44UOb2; arc=none smtp.remote-ip=194.37.255.70 X-Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA454606A6BC; Mon, 23 Nov 2026 18:18:06 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BA454606A6BC X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de X-Received: from [194.37.255.9] (helo=mxout.expurgate.net) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from <prvs=68018334f9=ms@dev.tdt.de>) id 1xVYbt-00AONN-9e; Mon, 23 Nov 2026 19:17:49 +0100 X-Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <ms@dev.tdt.de>) id 1xVYbs-00HHgh-3G; Mon, 23 Nov 2026 19:17:48 +0100 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de; s=z1-selector1; t=1795457867; bh=sb2eexXkaePTkOjZScatsgbEjOUnIQ9erSIOfnFWnj4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nX44UOb2cGgRFZnvs2cN2i7OqLCp9oqBHsDqkv4xfJwCHFb/qD1aMOxG+LiJ/NFLf V1WRfTTvFXGtyJ1wqvay4GtvlFYus8KGWcT/IhS6paQuxogwtss4cLqw6ufYgbwHK0 X8JjOshBdjKB3BThokAEh/9u+ovFoTUgCmiRaFa3P4mkIZP/GDd2nwzyHif7S0pcVf IZs+ycQnGHiI7mTYKxZSw4rSpdQ+OswVhARbx/xV6la46rBleP+rI6LjEjdEpzR1VL gx2jhGkw7/+iPMbreZKZb8mf9QN9jG0RQw7fS2VuDV20o+ohxU1g531mTELAwusKVi vFrR6QO394wcA== X-Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 54543240040; Mon, 23 Nov 2026 19:17:47 +0100 (CET) X-Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 4BF1C240036; Mon, 23 Nov 2026 19:17:47 +0100 (CET) X-Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id DD6C32AE6F; Mon, 23 Nov 2026 19:17:46 +0100 (CET) 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 X-Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-x25@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Organization: TDT AG X-In-Reply-To: <179018861262.2160803.7893822871484169869@kernel.org> X-Sender: ms@dev.tdt.de X-User-Agent: Roundcube Webmail/1.3.17 X-purgate-ID: 151534::1795457868-7855AB36-53AC6A50/0/0 X-purgate-type: clean X-purgate: clean