Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2467241imw; Wed, 6 Jul 2022 06:30:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgJ9nuCFd/VO/nBd91RBLR6kPHSG3WiyuKhCpZfiWO0D4aAdpwBX0dft+bkdLKSzolEEHb X-Received: by 2002:a63:2486:0:b0:412:9de2:eb49 with SMTP id k128-20020a632486000000b004129de2eb49mr2140059pgk.224.1657114237715; Wed, 06 Jul 2022 06:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657114237; cv=none; d=google.com; s=arc-20160816; b=Bk3XOhELMstYYcXyQstktTY0/FS0pUkzN4DQ3gpd0fc74QQkZg/BoUQJ3KlrdUxqHF LLK2MWE2uM9j3FSuOtHzB+thcLP161rnXXKjD/sQKUozSAOMNacD01SiMHgi13bUzAEk LC0xbCnPu7lpZJCm2eJ2KwNZ/Zju7XWE6QgNupD9w3NizE4oFUBiJi0aKhiNiQfwGQWM IOSkNUUKmz64hxrkgY+apsEo3uehb9+wGEPg4RYqrp/Vh0c43gHdw9yOFL1DE5k9Ow4+ HNCIv3Fl5G4yE+2b8nfozub8u8GDu5TP7q7+h0EL+0sT/cZ28vrakHKCMuz5EXIPaQ8I uOTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=iPaKI6tC1uiswlaCN8VMWvO9ERoABsDHvx+eCgQxnoE=; b=LCVPZq7dx2hgopjkBovEMyzwR8NJWApemGgISNqLicHmenWODjJ/Oawvo/vzIz+U8N LAtULucEyn4vIJWrdUIOJGQ1OILvRDaAL0ytkW577qXy5r0F6kFNIAQODo86E6nef/PT VRlDUF6oPpFYSI+KNM87plEvLZ10uEL7IyGAwCT2cni0UYYWWIhNn7/rBzmAVl7OnThj Ratg9z+vPFcoGPTFHdmfPvNXnboZ3UIkkNKzqIEBP5Dvb+K2EwQ1kNHwouvwSOl+t8CL z070K5dUqN3WeN5jZKwwqPsyNSeu51T1MgRw4T6VtYH0byQZGetTEzrKlVEXE+AKhQ0M kdjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u23-20020a634557000000b004128c87df72si4862247pgk.145.2022.07.06.06.30.24; Wed, 06 Jul 2022 06:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232214AbiGFMkT (ORCPT + 99 others); Wed, 6 Jul 2022 08:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbiGFMkS (ORCPT ); Wed, 6 Jul 2022 08:40:18 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C28252AA; Wed, 6 Jul 2022 05:40:17 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1o94K7-0004EF-24; Wed, 06 Jul 2022 14:40:07 +0200 Date: Wed, 6 Jul 2022 14:40:07 +0200 From: Florian Westphal To: Will Deacon Cc: Florian Westphal , Kajetan Puchalski , Pablo Neira Ayuso , Jozsef Kadlecsik , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mel Gorman , lukasz.luba@arm.com, dietmar.eggemann@arm.com, mark.rutland@arm.com, broonie@kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, stable@vger.kernel.org, regressions@lists.linux.dev, linux-kernel@vger.kernel.org, peterz@infradead.org Subject: Re: [Regression] stress-ng udp-flood causes kernel panic on Ampere Altra Message-ID: <20220706124007.GB7996@breakpoint.cc> References: <20220702205651.GB15144@breakpoint.cc> <20220705105749.GA711@willie-the-truck> <20220705110724.GB711@willie-the-truck> <20220705112449.GA931@willie-the-truck> <20220706120201.GA7996@breakpoint.cc> <20220706122246.GI2403@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220706122246.GI2403@willie-the-truck> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Will Deacon wrote: > On Wed, Jul 06, 2022 at 02:02:01PM +0200, Florian Westphal wrote: > > + /* ->status and ->timeout loads must happen after refcount increase */ > > + smp_rmb(); > > Sorry I didn't suggest this earlier, but if all of these smp_rmb()s are > for upgrading the ordering from refcount_inc_not_zero() then you should > use smp_acquire__after_ctrl_dep() instead. It's the same under the hood, > but it illustrates what's going on a bit better. Ok, I can replace it and send a v2, no problem.