Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5662277ybi; Tue, 4 Jun 2019 10:02:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC2fxzCLBOAFjr5TQwbDecnlutm2kkDOCrIgTkdFKFxXqPHGu0MBL09Nbcm5yOU/QBej1V X-Received: by 2002:a63:b07:: with SMTP id 7mr31356646pgl.21.1559667721156; Tue, 04 Jun 2019 10:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559667721; cv=none; d=google.com; s=arc-20160816; b=BvbBFXgbkfg2W/8kdjAAhrugCzzfTONOiXBfqV/QxGjuKuDuaCqddy/RzQq1656nhZ Y3qzJmp+1LfsfUumtnrwGqXo2Uu1deyw4N5XP1MzdCFupFpscoM+K4XRSnkdouFd1agH FAo2PWACfF4eVlTuht/ZG8xAqOUPTnI5NDFcl50y/wvQh+D+QIxRnnZJYtARZYBtzYBt TsM9eEYNq+X9mis8nmV5G8ih8wz9dWUa/L2c1qPG2rIEct5MZUtZp07g2oqJgbIdEtoq HYMmTsE7bedgqyQOce5pXHw0nSz3DB4daLLc7tyTJ9WPf572h/WMNQF8EaFggz3FaXt8 wX9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=yd7wcKcENCY0bt3FOmF8k2NeUHXfKe2juQwTmFmatT8=; b=weT1riI8l9N6w8v8LQNiLf8AAHeq50/pqtZjp+JNQ4RA6fGOdCe6n/x+X+cYZN8uJC rBZHlhF2FWiZijM+LZhFuW05ndwZEw8MYbHoS8mNUAPiK0qUWM6t1Gk8W4h3G1klYglo IREk2KuyWZFc0d58El2ywipVYwRylstOYdXsSNxNoetAqDWWswTElY0i2fmOevqIbOZJ vTNCdtyNopqClYAcQXDADKkDUs/uGGVnCHdJFN1yH6Sl3qqem+QANpGH9UY6ItbA7IKI EvRbY7SAyJQwkymhOMx5YsAer18eDNMPJx9/d59A6npB2JgTQegGv5IaAVlX5i5WjyXZ f5fQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187si27108364pfe.116.2019.06.04.10.01.44; Tue, 04 Jun 2019 10:02:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbfFDRAE (ORCPT + 99 others); Tue, 4 Jun 2019 13:00:04 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:49732 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727715AbfFDRAE (ORCPT ); Tue, 4 Jun 2019 13:00:04 -0400 Received: (qmail 6565 invoked by uid 2102); 4 Jun 2019 13:00:03 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 4 Jun 2019 13:00:03 -0400 Date: Tue, 4 Jun 2019 13:00:03 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Linus Torvalds cc: "Paul E. McKenney" , Boqun Feng , Herbert Xu , Frederic Weisbecker , Fengguang Wu , LKP , LKML , Netdev , "David S. Miller" , Andrea Parri , Luc Maranget , Jade Alglave Subject: Re: rcu_read_lock lost its compiler barrier In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jun 2019, Linus Torvalds wrote: > So I don't technically disagree with anything you say, That's good to know! > I just wanted > to point out that as far as the kernel is concerned, we do have higher > quality expectations from the compiler than just "technically valid > according to the C standard". Which suggests asking whether these higher expectations should be reflected in the Linux Kernel Memory Model. So far we have largely avoided doing that sort of thing, although there are a few exceptions. (For example, we assume the compiler does not destroy address dependencies from volatile reads -- but we also warn that this assumption may fail if the programmer does not follow some rules described in one of Paul's documentation files.) Alan