Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp200614ybg; Thu, 11 Jun 2020 22:09:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXkAr0YjHEarnG2/5csL38bjGFzXvlgBV0XKZruOuxWIQxzxu9g1KgQ2h5ekzfIDtz2H59 X-Received: by 2002:aa7:c2c4:: with SMTP id m4mr9773707edp.299.1591938560998; Thu, 11 Jun 2020 22:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591938560; cv=none; d=google.com; s=arc-20160816; b=cubbFhky7UR6nBoBEN49x9x7rOnUWGL/nZSLh0MDWCBr/hXRRGbO8dsoLckCjPKokO /kV+EXRZeYy7QBqlf+/1ve0MQhE9L/OMIiN+ZSHG2ryeNuBv1p402b0sY0r1cn+X9OKs Oq5LrkTv5kiT+KNDl89KyH8Tv1lSJ6H2RPmC+jbTPqGk4oHWvGdW5XNsWe7nByxvfCkG TKu/RysN72y5iP1m0EppUtH+G5K0Fx2s0r310lpN5BoJvlXdsXa7qcD7L8C9NMmbZGrL CbVYlI9jwJqjb+CLRpH/rtbPXKbrACUHMNC/j/Kt9fEOOkLY+KAVh+kcva/sPvZypU2G 0OOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=E/c/tVNZnZXtqPcvM/cRJXYwg6T3yZDLqtUKUDRTdt4=; b=x/GUh0bfzuny9ONUZC6DG3Gf06qWAGY422gYR6wgdaM5otbz78jF/l6678FEtXdy4v iGvZ6OKNWc3r/l2CkD3YnYPaFoKnfRpCBvPa1eFo9jcqvEeW3+HVvrD8riqzQF5Vg8TT LfUoYsXYKuduP8HRI+FFkPS6cbj+VIWEWX8PNReX+ozE+/9pf8Be0SkXsyewwPrQP4Pu ZITbDW6wm+/cSBvLq36DO9tGaBUTfRHiFXU4sppE+6gnJ9IY+f2555ZkFJ+XT03QfKno HdZNkCjDxqBov/QTPBqkQYd3F27h7Y3Yl3ws/ozuwaIDZqi+SMAtAVgufWRhwAQTibPR jEDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O6iMlj7M; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx27si2887706edb.32.2020.06.11.22.08.58; Thu, 11 Jun 2020 22:09:20 -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; dkim=pass header.i=@chromium.org header.s=google header.b=O6iMlj7M; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbgFLFHJ (ORCPT + 99 others); Fri, 12 Jun 2020 01:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbgFLFHJ (ORCPT ); Fri, 12 Jun 2020 01:07:09 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA2AC08C5C2 for ; Thu, 11 Jun 2020 22:07:07 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id b5so2634169pgm.8 for ; Thu, 11 Jun 2020 22:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=E/c/tVNZnZXtqPcvM/cRJXYwg6T3yZDLqtUKUDRTdt4=; b=O6iMlj7M7cPlzLPmVV55ccyxdmoDkLHEjx9YGi+rTx/SuEeA8L0Kjs9Ne+dGwMTwbq rc2ZpA3N/oYNyMbp1V99/7JChJws0nqKJfN0shrkRwbPVuIUABRpkiMLhLyjJLxaGdmP ovUHtZjYkmhLf2+ypJUlrY0Jy3jRXFdlAQ+h0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=E/c/tVNZnZXtqPcvM/cRJXYwg6T3yZDLqtUKUDRTdt4=; b=QTT/EG1y4GZA39xTonp89uqYPxawe2CVB9bsJleqeUjt11Dzc0XrrocfrTbj24k4/P sk88Le5BPXopI8uEx8lPsKOB2o2Wpg7kXJGnLZMTxsIc6Q0x1PB135PTx+J4z5qGTqlx 4gk3Z+GVnZJT9NLeRLg5Xe/MGsGjPWd0CcRHZLZOnDwOGNg4ERnScBIfvPKret9vK7bZ XUU8wO2vwg+Fztx3Czlc4cz4HZnWsZR4uivIkZpZjHJc1cF0iStGfGW67aaXrpeY7Mun 3IQ0dc7dYgZypvvZn2hs3AplJj6gokvQTbkFCCPKPdAJaZQWpQ59KzMESkyBEN+C1Kgc ypuA== X-Gm-Message-State: AOAM5333Ge4FC0xAyWXPQhREU57i1kUg7N1MtOpiK5gW28SQhC6hjDK3 yX50CW8AOPPtl2jkU2DiIT2NmA== X-Received: by 2002:a65:6883:: with SMTP id e3mr9569317pgt.5.1591938427251; Thu, 11 Jun 2020 22:07:07 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id x126sm4664416pfc.36.2020.06.11.22.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 22:07:06 -0700 (PDT) Date: Thu, 11 Jun 2020 22:07:05 -0700 From: Kees Cook To: Michael Cree , Matt Turner , Linux-Arch , LKML , linux-alpha , Richard Henderson , Ivan Kokshaysky Subject: Re: Regression bisected to f2f84b05e02b (bug: consolidate warn_slowpath_fmt() usage) Message-ID: <202006112201.3B20AB28DC@keescook> References: <20200602024804.GA3776630@p50-ethernet.mattst88.com> <202006021052.E52618F@keescook> <20200612044757.GA10703@tower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200612044757.GA10703@tower> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 12, 2020 at 04:47:57PM +1200, Michael Cree wrote: > On Thu, Jun 11, 2020 at 09:23:52PM -0700, Matt Turner wrote: > > Since I noticed earlier that using maxcpus=1 on a 2-CPU system > > prevented the system from hanging, I tried disabling CONFIG_SMP on my > > 1-CPU system as well. In doing so, I discovered that the RCU torture > > module (RCU_TORTURE_TEST) triggers some null pointer dereferences on > > Alpha when CONFIG_SMP is set, but works successfully when CONFIG_SMP > > is unset. > > > > That seems likely to be a symptom of the same underlying problem that > > started this thread, don't you think? If so, I'll focus my attention > > on that. > > I wonder if that is related to user space segfaults we are now seeing > on SMP systems but not UP systems while building Alpha debian-ports. > It's happening in the test-suites of builds of certain software > (such as autogen and guile) but they always build successfully with > the test suite passing on a UP system. > > When investigating I seem to recall it was a NULL (or near NULL) > pointer dereference but couldn't make any sense of how it might > have got into such an obviously wrong state. By some miracle, I have avoided any experience with RCU bugs. ;) If the RCU_TORTURE_TEST Oopses or the segfaults are repeatable and don't go away with the WARN patch reverted, then perhaps it might be used to bisect to something closer to the root cause? Given the similarity to the SMP vs UP stuff and the RCU tests, I'd agree that does seem like the best path to investigate. -- Kees Cook