Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A8A1C61DA4 for ; Mon, 13 Mar 2023 23:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbjCMXZn (ORCPT ); Mon, 13 Mar 2023 19:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjCMXZl (ORCPT ); Mon, 13 Mar 2023 19:25:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7127E637C6 for ; Mon, 13 Mar 2023 16:25:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E6BF9B815E0 for ; Mon, 13 Mar 2023 23:25:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 189B7C433EF; Mon, 13 Mar 2023 23:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678749937; bh=WbrDrJpuTnnSk2w8RT6EI2i+T6ZvKGJ5P2Ykj7gxCug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sE/RBzw1R7lgXqBjPYW7/1uSGPN+8TNZyaXrjgKgk/qAo7gW8j4teZ3UxIEWgKjIN gjxFD9Zi74eXzS10I7r626NuI4JjX52x/7yfrJ4fedyOf1+QeBw865+ubx8JxrTRCa lCZ9RRWHVpHGvl2SfM9UwdD4hyjT26Fspcyr+aiXmLWztdIJxfvO9g7zU3DcpESU9q YRpZxxho3UhQebaY7ZBEYXmlUaCANRZ3fOqQgiThxF5c/V8x6HCaqgBCoOdFc7UFCL 7nG7qIy/N9oq0tG15z7FYSY8R7xJrtRnyOgQBYMNhV82dvM1XHNjzBn19t18kUh6o6 qkG7FOQIEKiLQ== Date: Tue, 14 Mar 2023 00:25:33 +0100 From: Frederic Weisbecker To: Linus Torvalds Cc: Guenter Roeck , "Paul E. McKenney" , Peter Zijlstra , Linux Kernel Mailing List Subject: Re: Linux 6.3-rc2 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Mon, Mar 13, 2023 at 04:17:06PM -0700, Linus Torvalds a écrit : > On Mon, Mar 13, 2023 at 4:11 PM Frederic Weisbecker wrote: > > > > So the hardirq interrupted some code that has softirqs disabled (or > > servicing) from the preempt mask POV but not from lockdep POV. > > .. but those are two different counters, so isn't that *always* racy? > IOW, one counter being updated before the other... > > IOW, isn't this *why* that check isn't supposed to ever trigger at all > from hard-irq context? Right but these two values are always modified within the same IRQs disabled section.