Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3348508ybk; Tue, 19 May 2020 02:22:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5Ntp58i3/AsNFPta+hsxpQG3akLkcgphwgAzfbDZVx4y6RBI65rYZC1Rzx081eWmUg0Tw X-Received: by 2002:a50:bb07:: with SMTP id y7mr16757892ede.176.1589880121219; Tue, 19 May 2020 02:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589880121; cv=none; d=google.com; s=arc-20160816; b=Sw173gNVB4jnp14U3JjT44xqgbZ9dMzFpdkDX8Ldm0mxeJvrRas748NRkUttv3rFmU pPKYRftlJOp6Bv0llLnUXlHVcMrn3Ra7AFbz/wumACe8Ve8umVWSJ4FCS8MuTY2cIkGP MgPrFnMVOZEqdjVIH5jVMNuHY84rXj0debtxiOqMHdskwA8kionnI4+4trjO0ZmsZ4jI yHnJrvn9a72H3XCDD6ji7xXfBOgcgHJ4hYVD6D3LL2+zsjGrbau3kVqpP7IdWBLrfmWO AG2uypvUCIWA8Tw5TogeqHuKtu43ARtD76S43rHSnDT6ysHju8/Dr8kMaiISL9HzD5qE /lcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=bDnE4tDG/qf7dUtbNGKjXlnqoVjaz8kVr/tmBuaXxoQ=; b=VydNUg3BYnI00y9jySJy5oZDQQ++dQeFxZanQonVDTlBJxwJZR0iu+8tu04TXfUWhf nJOU6EN+AG2KNIgT1PjeK7mFYAjSAkcHV+iCuO+B1RoI2RrfMeftdJvFhImTrmqPHgXn QxvgW5AduZi58MLXMqPqfe+dEv5rgThiXM61fxJSVGwpBEYevDzfG4GmchA1gLIyLGSq E1ODOEpB9nvvPw934USqXrXckqudnH6pBMAcCngYpKCrWmiHtZwfPWANyF3yf6IW31jb q9YbWCn04Mezqycly3ZoxaancL3DeMHwZ7s8ECqjYbEk3LcDjuOfauyQMZ6NcYFu6N2D StNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si6422743edr.568.2020.05.19.02.21.38; Tue, 19 May 2020 02:22:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728573AbgESJUA (ORCPT + 99 others); Tue, 19 May 2020 05:20:00 -0400 Received: from kernel.crashing.org ([76.164.61.194]:36390 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbgESJT7 (ORCPT ); Tue, 19 May 2020 05:19:59 -0400 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 04J9JQKV002662 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 May 2020 04:19:30 -0500 Message-ID: <5a6de40ebbf0587f245fcff2636080977fda9d96.camel@kernel.crashing.org> Subject: Re: [PATCH] net: bmac: Fix stack corruption panic in bmac_probe() From: Benjamin Herrenschmidt To: Jeremy Kerr , userm57@yahoo.com, Finn Thain , "David S. Miller" Cc: Paul Mackerras , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 19 May 2020 19:19:25 +1000 In-Reply-To: References: <769e9041942802d0e9ff272c12ee359a04b84a90.1589761211.git.fthain@telegraphics.com.au> <43d5717e7157fd300fd5bf893e517bbdf65c36f4.camel@ozlabs.org> <05aa357d-4b9c-4038-c0f4-1bfea613c6e4@yahoo.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-05-19 at 08:59 +0800, Jeremy Kerr wrote: > Hi Stan, > > > The new kernel compiled and booted with no errors, with these > > STACKPROTECTOR options in .config (the last two revealed the bug): > > > > CONFIG_HAVE_STACKPROTECTOR=y > > CONFIG_CC_HAS_STACKPROTECTOR_NONE=y > > CONFIG_STACKPROTECTOR=y > > CONFIG_STACKPROTECTOR_STRONG=y > > Brilliant, thanks for testing. I'll send a standalone patch to > netdev. Nice catch :-) Lots of people used these machines for years without noticing :-) .... Granted most people used newer generation stuff with a gmac instead. Cheers, Ben.