From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sabrina Dubroca Subject: Re: [PATCH iproute2] macsec: fix off-by-one when parsing attributes Date: Tue, 16 Oct 2018 00:02:01 +0200 Message-ID: <20181015220201.GA973@bistromath.localdomain> References: <9149b45616600eaa71f1dbbb101f7fe169c13efe.1539357364.git.sd@queasysnail.net> <20181015093658.7c590e29@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: netdev@vger.kernel.org, David Ahern To: Stephen Hemminger Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44580 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbeJPFsr (ORCPT ); Tue, 16 Oct 2018 01:48:47 -0400 Content-Disposition: inline In-Reply-To: <20181015093658.7c590e29@xeon-e3> Sender: netdev-owner@vger.kernel.org List-ID: 2018-10-15, 09:36:58 -0700, Stephen Hemminger wrote: > On Fri, 12 Oct 2018 17:34:12 +0200 > Sabrina Dubroca wrote: > > > I seem to have had a massive brainfart with uses of > > parse_rtattr_nested(). The rtattr* array must have MAX+1 elements, and > > the call to parse_rtattr_nested must have MAX as its bound. Let's fix > > those. > > > > Fixes: b26fc590ce62 ("ip: add MACsec support") > > Signed-off-by: Sabrina Dubroca > > Applied, > How did it ever work?? I'm guessing it wrote over some other stack variables before their first use. It worked without issue until the JSON patch. Thanks, -- Sabrina