Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4151189pxa; Mon, 10 Aug 2020 02:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFf8/iw6tDeB15BBLjaHDILTAGS2eu82X8BMlnRzY+AYUg62DtgvG7EZq5TicSzSn/jqi1 X-Received: by 2002:a17:906:1414:: with SMTP id p20mr20149630ejc.247.1597050047464; Mon, 10 Aug 2020 02:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597050047; cv=none; d=google.com; s=arc-20160816; b=KhvFi++Ux9IEU14PaC/PNHYKAtKjbUbil0U11MOsA97eo3FUH5fq/Ilp6+LrTYYubJ ihG+wWnZ3wPhVmVhFDKFdJAWMHCi3IuSA/y98l8sZl6MF8hj3aHL7dVKz88VyRC/HQqZ XSmF0mCWadrriGo5dfz0GiZWgcgfvMAi2jIVWG20KlH7M4bwPuaNvcrlKwtXNZwjp6K9 XwjRbZni92I7rLxC48VDy5GW+DpYqDlzcYfoybGcgBjRKa4uOTOdavGFPNPSaAvv7Zae 05lAVtMhO0B8EqMeZgodNm1AAV/ZQCbJ7SLk5elgJLsKOQqjVIvpSX++93xuDDnqInfn h5qw== 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:date :dkim-signature; bh=LZ5Yo2k8ScVb7Xxhe9pal7b22b1fjYpmuc+kSka+C2c=; b=nz8IP6kapegb3j14HVRU0P8depU/wG8u0k1LFvpqPwTAj3pPQKzniwDJOvTwB2GHlZ vI88PrySId3kk4qD5Iku1w9zcjsGf3S0luTtdMIXZAxFlwbf8Z7MyXmlnYZOGeGzvEqN vJpHlfXFSR20PDcxLSaMnmOJn9T1sQUTqChWLuUOWyVowBT7z1EGa5YdL9pC4Act/en0 sjIdzs6bpyZ/tSVGZ7VecYSUbRmS44vXsD0auXu1DKSlUEOE9A/LAtBEx2Wn6vWyuHX8 lIZ5Na4ZO7WOOVEgY9BAUl6P0Eotmb1OaWCPsK3rnMJA9EdUCCg+W5oSPLfXDgwgu3o6 kdFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WwpDo6U3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx19si10164760ejb.691.2020.08.10.02.00.24; Mon, 10 Aug 2020 02:00:47 -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=@kernel.org header.s=default header.b=WwpDo6U3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726430AbgHJI7o (ORCPT + 99 others); Mon, 10 Aug 2020 04:59:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbgHJI7n (ORCPT ); Mon, 10 Aug 2020 04:59:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 642C52070B; Mon, 10 Aug 2020 08:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597049983; bh=+h0jVAw0Ac+kzUhkllfCSb8arpMRjvaU4CdD1FZmMuA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WwpDo6U3D7lCpRP/91k5IAXWSj8UkojpuoxzsA5uoq91JjzIa4ZUiFz7PAF+monFu O11YG+ZmJLp90zKRiLfmBH851UR8jurtARX8NMQgSfN2Fn6d1Ei61TvTvO+qEt7DaC Fk/z0BVV2IWvJ62dVodercapAvjBPQ97p4puEdeY= Date: Mon, 10 Aug 2020 10:59:54 +0200 From: Greg KH To: "Ahmed S. Darwish" Cc: Guenter Roeck , Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , "Paul E. McKenney" , "Sebastian A. Siewior" , Steven Rostedt , LKML Subject: Re: [PATCH v4 08/24] seqlock: lockdep assert non-preemptibility on seqcount_t write Message-ID: <20200810085954.GA1591892@kroah.com> References: <20200519214547.352050-1-a.darwish@linutronix.de> <20200720155530.1173732-1-a.darwish@linutronix.de> <20200720155530.1173732-9-a.darwish@linutronix.de> <20200808232122.GA176509@roeck-us.net> <20200809184251.GA94072@lx-t490> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200809184251.GA94072@lx-t490> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 09, 2020 at 08:42:51PM +0200, Ahmed S. Darwish wrote: > On Sat, Aug 08, 2020 at 04:21:22PM -0700, Guenter Roeck wrote: > > On Mon, Jul 20, 2020 at 05:55:14PM +0200, Ahmed S. Darwish wrote: > > > Preemption must be disabled before entering a sequence count write side > > > critical section. Failing to do so, the seqcount read side can preempt > > > the write side section and spin for the entire scheduler tick. If that > > > reader belongs to a real-time scheduling class, it can spin forever and > > > the kernel will livelock. > > > > > > Assert through lockdep that preemption is disabled for seqcount writers. > > > > > > > This patch is causing compile failures for various images (eg arm:allmodconfig, > > arm:imx_v6_v7_defconfig, mips:allmodconfig). > > > > In file included from arch/arm/include/asm/bug.h:60, > > from include/linux/bug.h:5, > > from include/linux/thread_info.h:12, > > from include/asm-generic/current.h:5, > > from ./arch/arm/include/generated/asm/current.h:1, > > from include/linux/sched.h:12, > > from arch/arm/kernel/asm-offsets.c:11: > > include/linux/seqlock.h: In function 'write_seqcount_begin_nested': > > include/asm-generic/percpu.h:31:40: error: implicit declaration of function 'raw_smp_processor_id' > > > > Reverting it fixes the problem. Is this being addressed ? > > > > @Peter, I think let's revert this one for now? Please do, it's blowing up my local builds as well :( thanks, greg k-h