Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1249600ybz; Thu, 16 Apr 2020 05:54:06 -0700 (PDT) X-Google-Smtp-Source: APiQypIUeEU2Bhk6QFn/eHbeAiw1MnmvwLoFXmvmZurm5BNPYmWbbuFiYb6DfanQxIG/8RNF/Yvx X-Received: by 2002:aa7:c597:: with SMTP id g23mr11029209edq.109.1587041646671; Thu, 16 Apr 2020 05:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587041646; cv=none; d=google.com; s=arc-20160816; b=0/l8oVVOlxjlHFEmWbW+z93Cnjvv5l7Ncpf0IFYKqkhVLFgZ33Z97EdUbgdzzlFfEh fSAbwcD6vXreF/fCjXSB3SOHLjiMJqK3FWjecyV62sJV/Z795VuFfOxCbixUw6kfSs2H O44q2LuF+BPDhxkFEG6rcvOpTh9ynbg3ohYBR0sy6Ant2ehbjZKlqzsSpr40fBKrw1B3 DmsLFAI7vUTHRYgW7K4k7R4MhjPo2gbLvt0QUzErusFvSctwRiV8QLmV/BFLBURIJIt/ lKA9AzdWxoopxEK0jYy8P+7ZRVHuo7fAoKq37AH8PKvWlcQR2W/sv34tM/Tk56fwdPzL hqGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mdXCTrYiJjahxLgpM8nnWIlMWSmA9+/i6JCONm7s9k4=; b=S5LKxxtOLnIBWMbXlbe035FKu4aZNHxa8IfL+uMpuojDEIbUnVzwE2O+vNeHgx5YJU q/9xMlDoMrVezJGA0zqGcv7ejzCNx7uY+X2CkG55p+xuIM65fjbrN+WncViJ2tROcgtE Pd+pO1TJU/gFOCLUd41p0dkIU1LXGMJ4gqU3WFMFhTGB2TwthuGYhdXDXxRJ2LjMMzYj BPYbassCLRI3PjROdDuTkoXIj6Z3P4g6F/1Wndy2oM4z7G46/X1+dF2Vpf4WyMh+KYmb s31bURVIyiJGmcYJoSwaK4mTkYo7/pS15Pwcull01naTLw9f3XocD26RgbhebkQ5HXAq F6tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iDAIbZNB; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si12641995edz.287.2020.04.16.05.53.43; Thu, 16 Apr 2020 05:54:06 -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=iDAIbZNB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894533AbgDPMtX (ORCPT + 99 others); Thu, 16 Apr 2020 08:49:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:50890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2894515AbgDPMtF (ORCPT ); Thu, 16 Apr 2020 08:49:05 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 92028208E4; Thu, 16 Apr 2020 12:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587041344; bh=rQFw7uHZtK1V/T4CiIC4tQ899MpaJHNAwzqsJ4CngmU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iDAIbZNBoZRv8qIU0jr4LVPMGxXIUHcViCvUwImIZjGHDArrKPy94zfX45DK0nWdh N06rHaUtvoz1GIAWL2P6q90fLJ4kZEngITab5TR04rgHw1KSMnYQt6rh9xr3eW9N9d iefMEwn/6Q18J3k9Um553PKsohEHW4/nn/pEU1jo= Date: Thu, 16 Apr 2020 13:48:59 +0100 From: Will Deacon To: Christian Borntraeger Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@android.com, Michael Ellerman , Peter Zijlstra , Linus Torvalds , Segher Boessenkool , Luc Van Oostenryck , Arnd Bergmann , Peter Oberparleiter , Masahiro Yamada , Nick Desaulniers Subject: Re: [PATCH v3 00/12] Rework READ_ONCE() to improve codegen Message-ID: <20200416124858.GA32685@willie-the-truck> References: <20200415165218.20251-1-will@kernel.org> <809e006e-6641-c252-53a1-cc4479d2ca89@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <809e006e-6641-c252-53a1-cc4479d2ca89@de.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 02:30:36PM +0200, Christian Borntraeger wrote: > > On 15.04.20 18:52, Will Deacon wrote: > > Hi everyone, > > > > This is version three of the patches I previously posted for improving > > the code generation of READ_ONCE() and moving the minimum GCC version > > to 4.8: > > > > RFC: https://lore.kernel.org/lkml/20200110165636.28035-1-will@kernel.org > > v2: https://lore.kernel.org/lkml/20200123153341.19947-1-will@kernel.org > > > > Although v2 was queued up by Peter in -tip, it was found to break the > > build for m68k and sparc32. We fixed m68k during the merge window and > > I've since posted patches to fix sparc32 here: > > > > https://lore.kernel.org/lkml/20200414214011.2699-1-will@kernel.org > > > > This series is a refresh on top of 5.7-rc1, the main changes being: > > > > * Fix another issue where 'const' is assigned to non-const via > > WRITE_ONCE(), this time in the tls code > > > > * Fix READ_ONCE_NOCHECK() abuse in arm64 checksum code > > > > * Added Reviewed-bys and Acks from v2 > > > > Hopefully this can be considered for 5.8, along with the sparc32 changes. > > > > Cheers, > > > > Will > > > > Cc: Michael Ellerman > > Cc: Peter Zijlstra > > Cc: Linus Torvalds > > Cc: Segher Boessenkool > > Cc: Christian Borntraeger > > Cc: Luc Van Oostenryck > > Cc: Arnd Bergmann > > Cc: Peter Oberparleiter > > Cc: Masahiro Yamada > > Cc: Nick Desaulniers > > > > I gave this series a try and s390 seems to compile fine and it also seems to > properly compile the the ipte_unlock_siif function in arch/s390/kvm/gaccess.c > This function was miscompiled with gcc4.6 and the trigger for replacing > ACCESS_ONCE with READ_ONCE That's good to hear, thanks Christian! Will