Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp268271pxa; Wed, 19 Aug 2020 00:12:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6Zze4pate+gBCRcBrbRLMR1NcPceGiZ/1agowVpGaRuXKlk9HPs/36w8EYRheqs8xw8GP X-Received: by 2002:a17:906:cb8c:: with SMTP id mf12mr23808815ejb.3.1597821129135; Wed, 19 Aug 2020 00:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597821129; cv=none; d=google.com; s=arc-20160816; b=uvqrn+xosYgTPiDExzJsmPqBIkCoAd0SXrAK0ZWW5O3dLPihkP2g+2jdMnEIyMiqoG KhkIO6bR106zKLv0oViumusmenGs2vxC38PKnAswLFdvI5EG24ypE9lZE2pUlktYY9Yo K1QCmQKjR/omPMHbt3WNSTStoU1DJZLlhhDz1pd7bqDKtw4A+6fS7mdBnp4x444/jXrx vBbHJo0NfMfa1ls93Fx9ouDQynkEXTg84LDYz9JBHLe8v11jEMjbUuvTgcrBJ8wIN/OP Ov4+oS1pHFgJH1oUNHLbH4YehPMFxfYJwn6yWGNIfJE0RvjXLMBBpuPqCMs6H/eveA9v GbHg== 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:cc:to:from :dkim-signature:dkim-signature:date; bh=B1zUwx2pLAnRGU5u67tZdctm2NefQ1yx0G/oZpzGA/8=; b=FnDTyynt6lc/8E0Ulbd4Cb60jBR7vPZBbbkoDTZS++7Y7PurW+0kL7Rgqh1t/+rC+P BcXU9NG/jVLYqD/tg4CuZlrKftOkhnqcqAT0XmEg5DYmUtXKwLY3Ry3bMxTEB9fkFGzi JEFDM+zR+tFIlzioSdNWe8BU2M2MTCPu9WGMHbe0XTTQZJZW0CrDt0Lrms4wqm+RBAAQ 2x+2LE0yGdEgOWO5JotjSnt0O3AqAXv/QuiMMh1/iQdCl9+qxVKU7wO4TRuIATtq9smv UQtwhKgwaMrezt06MdIvWs8ZZ2qIm7YG83utOePv/fzx9qmQSSja8S8A72P3SKkbRAn/ uP8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=sQPs0i7L; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs4si14410788edb.568.2020.08.19.00.11.45; Wed, 19 Aug 2020 00:12:09 -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=@linutronix.de header.s=2020 header.b=sQPs0i7L; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727972AbgHSHLP (ORCPT + 99 others); Wed, 19 Aug 2020 03:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbgHSHK6 (ORCPT ); Wed, 19 Aug 2020 03:10:58 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5987C061389 for ; Wed, 19 Aug 2020 00:00:25 -0700 (PDT) Date: Wed, 19 Aug 2020 09:00:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597820424; 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: in-reply-to:in-reply-to:references:references; bh=B1zUwx2pLAnRGU5u67tZdctm2NefQ1yx0G/oZpzGA/8=; b=sQPs0i7LK+fy6qwgYxr3ZQshmtbaJogx7ElIj7A1Ei90S93UsHrRpEHYERLfd9Kt/LZzZZ 3J1gssXj4KuwzRoZqd7IrVywsvod2RR8CvCvRuyJEyh2ZcZRvEDp9dCn5Sh3jkIfYz3BEw /zt+Ymn4y+ehCPu5WgK1uA2x532THoryxNkKtl1bEbZ/K1dvym/6rpVl4lvmAo7QkvS/1Z AWo1EZHT3f4+Rt6xVC1lx76LUTWKZYMLtDWf46VJXWeoLfAaC597TrbmHHbM91nNkInjA8 DNF+i2t4AKaJgHVi2sgP7fCib/Ommw2atrJFmZToN87Mpp33i9nh6KeMBNtGMA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597820424; 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: in-reply-to:in-reply-to:references:references; bh=B1zUwx2pLAnRGU5u67tZdctm2NefQ1yx0G/oZpzGA/8=; b=C5Ml3HGENuPGyezU4zCjbew0sp8tOT83GfPlQLcX2Za42WXLxCVskhiVhiP5GuCT6FFkun uju+b4jflL7Z27Cw== From: Sebastian Andrzej Siewior To: Guenter Roeck Cc: Valdis =?utf-8?Q?Kl=C4=93tnieks?= , Mark Starovoytov , Igor Russkikh , "David S. Miller" , Greg KH , "Ahmed S. Darwish" , linux-kernel@vger.kernel.org, mingo@redhat.com, paulmck@kernel.org, peterz@infradead.org, rostedt@goodmis.org, tglx@linutronix.de, will@kernel.org Subject: Re: [PATCH] Revert "seqlock: lockdep assert non-preemptibility on seqcount_t write" Message-ID: <20200819070022.semyxepadnvtmtcr@linutronix.de> References: <20200810085954.GA1591892@kroah.com> <20200810095428.2602276-1-a.darwish@linutronix.de> <20200810100502.GA2406768@kroah.com> <169454.1597791078@turing-police> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-18 17:56:49 [-0700], Guenter Roeck wrote: > Nice catch. FWIW, there is no obvious reason why this would need to be atomic. > The calling code does not set a lock, meaning there can be two (or more) > callers entering this code. Weird, especially since the code looks like it > would actually need a mutex to work correctly. It might be interesting to > see what happens if there are, say, half a dozen scripts/processes trying > to read the hwmon attribute introduced by this patch at the same time. => https://lkml.kernel.org/r/20200818161439.3dkf6jzp3vuwmvvh@linutronix.de > Guenter Sebastian