Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2415821pxb; Tue, 23 Feb 2021 06:38:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyC+OIez89+dOUWTvI+q/JIMmlCEEFpcQlDgB/imPaaoDYW3vKdfD5Qmj1KaFECiw6feyZ+ X-Received: by 2002:a17:907:d0b:: with SMTP id gn11mr26052631ejc.144.1614091112697; Tue, 23 Feb 2021 06:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614091112; cv=none; d=google.com; s=arc-20160816; b=nDm6obzxWX4T6lsJU7h6bLrptkNlZx6PETku+5UY49GR4Kj7TlobTrv/tpWRMX87Lo P57Mv2muoQXws8DkknhevUbIS6hlJq3tRWpFNliFa4bsrsVtWFjW6S88h/jDoZ5DVE6R q+TJqeSNwL4LulhrPek2uYZuCCJUuu4AWJ1isDT7BKBE0X2UdfmBcTx+7/MhIoYaNoCt 0LgMyJ74XfR3wBdgxh4+1+9+GFxdEb5Bktwj5vSSTkAZwMRdu6byl9x/CQO00mscbK57 ucYohcEoy4aQ2s6p4wkq8rrRMbz7A8bIqh/Nqu3RKnvyQBwmgagUg/bQPXr5aie5ViLo yV/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kwir4Wsil0jK4OKrvTzT1wqhvatcr2vaWyMIyN42ByU=; b=sLSdolgsFNe88qCCjaZ3jU6kFKPF91hChtWsbgc1xJo3ruG3DHRpySNU7QTR5kzPaI kyw7f30kMvzXQYIkAO+LIAB+ivN4qPan17j/b8ZRuhGO9mWGtogkBNFOSKf/i32ObyPS HoBgL+CIJZdeRVJ9kSWzwn68xBjaQh9p0G06zqeLpr9kboICnqasIblgQx1JKXVBcoTh fTwENHNGh0h+ZGc6MfwfIKQ72kelM+FZJQAfIyIZHuLbHUluhujVij4VPVMH9QSnz/VT XadqL0H4MingOqk+cv+MTohzK56vh+QxlKlGLD55vF+VpMrt4iSYAuGkjW5BWQYS0MXv 7e+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JSh90TEy; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si9043014edv.230.2021.02.23.06.38.08; Tue, 23 Feb 2021 06:38:32 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=JSh90TEy; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbhBWNzZ (ORCPT + 99 others); Tue, 23 Feb 2021 08:55:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:30307 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232651AbhBWNzV (ORCPT ); Tue, 23 Feb 2021 08:55:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614088435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kwir4Wsil0jK4OKrvTzT1wqhvatcr2vaWyMIyN42ByU=; b=JSh90TEyuqBtV2DIpGKGf1RZi7yhQVTjLMMLhiqu1lusQlPZkl98y5/piN/jnqt08rLbCc vB9mqJk17C2PU4uWpCeQPiwkm0sYUQJAGyr82L5X3/As4c0TEqwYG++Lbsy/ZBIcECvmJG NvONh07PGbCJ3c37Q2Wvl7pj0o1pim8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-181-iMIsjr5YNRG8OGk5kLQpRg-1; Tue, 23 Feb 2021 08:53:44 -0500 X-MC-Unique: iMIsjr5YNRG8OGk5kLQpRg-1 Received: by mail-wm1-f72.google.com with SMTP id o63so686421wme.5 for ; Tue, 23 Feb 2021 05:53:44 -0800 (PST) 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:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=kwir4Wsil0jK4OKrvTzT1wqhvatcr2vaWyMIyN42ByU=; b=jnveZbM0fiuiaZ13RWk5ucJPnN+urxtGxPg6CEtgo9zs67Jbvv0s8hnww+VHjXw1wg Ti4dyjUqNATtgH301+EEbi/iMi3eyO82h762IDCFlndJE/MvJF5nCBYoL4m3aNOrbp3W okVQVdf0C9A4G6q2opPmQgGc6XmcyLOkh8fa3O4RPfKTUSqeNh/CwWbC6mDS3s00FmgQ gSKNLU4JW78WMGvFkOGwyfU4mUgfUUZpYmJx9ZYW71TmAhYwe679mBafvaufO+HNTeWO N/D/CSsNIJmVfdG2ETN1jilW02tCBTftUYZZkT4GBxd7ZwlYrekhfRCIGqMvGdodx7wi t4RA== X-Gm-Message-State: AOAM532XuTQF8M9vZg8FGVu1DWk5Qt/0+cnVgztLeUUb3e+8RcHjG2Xo jsVoiO7N9561jQlBofJz8RGeCw2SrPQp4Y1UgWhxOm3ecuSAohqtv7gT2bATuR9QFIrdR1jub0h X5ou9S0CJ902oqdAm2YMJ+amJ X-Received: by 2002:a5d:6281:: with SMTP id k1mr234360wru.405.1614088423227; Tue, 23 Feb 2021 05:53:43 -0800 (PST) X-Received: by 2002:a5d:6281:: with SMTP id k1mr234355wru.405.1614088423062; Tue, 23 Feb 2021 05:53:43 -0800 (PST) Received: from localhost.localdomain ([151.29.106.174]) by smtp.gmail.com with ESMTPSA id w4sm2749376wmc.13.2021.02.23.05.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 05:53:42 -0800 (PST) Date: Tue, 23 Feb 2021 14:53:40 +0100 From: Juri Lelli To: Sebastian Andrzej Siewior Cc: linux-rt-users , LKML , "Ahmed S. Darwish" , Peter Zijlstra Subject: Re: [RT v5.11-rt7] WARNING at include/linux/seqlock.h:271 nft_counter_eval Message-ID: References: <20210223110015.ybl7feu43wvtjoqu@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210223110015.ybl7feu43wvtjoqu@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/02/21 12:00, Sebastian Andrzej Siewior wrote: > On 2021-02-23 11:49:07 [+0100], Juri Lelli wrote: > > Hi, > Hi, > > > I'm seeing the following splat right after boot (or during late boot > > phases) with v5.11-rt7 (LOCKDEP enabled). > … > > [ 85.273588] WARNING: CPU: 5 PID: 1416 at include/linux/seqlock.h:271 nft_counter_eval+0x95/0x130 [nft_counter] > … > > [ 85.273713] RIP: 0010:nft_counter_eval+0x95/0x130 [nft_counter] > > This is a per-CPU seqcount_t in net/netfilter/nft_counter.c which is > only protected by local_bh_disabled(). The warning expects preemption > to be disabled which is the case on !RT but not on RT. > > Not sure what to do about this. It is doing anything wrong as of now. It > is noisy. So, I'm a bit confused and I'm very likely missing details (still digesting the seqprop_ magic), but write_seqcount_being() has if (seqprop_preemptible(s)) preempt_disable(); which in this case (no lock associated) is defined to return false, while it should return true on RT (or in some occasions)? Or maybe this is what you are saying already. Also, the check for preemption been disabled happens before we can actually potentially disable it, no? Thanks for the quick reply! Best, Juri