Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp849605lqc; Fri, 8 Mar 2024 13:38:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVpEut6ua3PQwmaCJwqWJ+vTSVuqT9ya0tXRr+PAMhQXJ0T9/qU9gE2ULNUUItFi3WqPpLXnxCcNVHDNgu6dZfEzwHbiaz1GS68ExHpeA== X-Google-Smtp-Source: AGHT+IEusgMxlaFerwqAKmf8+EyVAhzu4/8XUaCAsPQY3IvLWHldzFGCqGEJTqzvEJ/UetYSoHwV X-Received: by 2002:a05:6402:5c7:b0:566:7250:9ea2 with SMTP id n7-20020a05640205c700b0056672509ea2mr263739edx.34.1709933902174; Fri, 08 Mar 2024 13:38:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709933902; cv=pass; d=google.com; s=arc-20160816; b=PegdhUyAUCKNz7cCZ0sBsOV0BuC5ymP8V2bzY0rfVaJHhWl/omjyytPJB3imgSwpA0 Fzfr3wb4QSvq3542c/0WrZyPZsSB5Fv0cSG9NNxsZ9tx1mGAmQX9em7mo+YM+WIUTk1P lSZ4R9oPlwSPxnCVO9RR2vnNllFvYOQaZNKKDelaNlRfGcHJ30Jc8CQtKzGoDOaPqegQ /SrR4FeNc0Wqd+rIpQCtLOpKhF9xLCXxfXnMxqTy7PqkMVUqcXOcQV9vxoe16BZ2m+6p lTZQys16RhPuvwvfBLmU+1yQ4c6CDUk4U08Dq+dw3OoRgz3Zk2PVWRmFgP+wnn1C+9oM sMjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C5vHRjCeO4bwXd9VgTdyqvaIa5JQzoplykKkt0qJuAw=; fh=qS6c1v4W2ZAF74VZt8HBABEP9yEPa5CTQnuVByQawDY=; b=nePXMKZbQimH9l0zg7oAbF2pVCN9t7WYSCdnWPii9VPe/TMSWF13QC85CmXuU4N4Or S0bgDwiAvY+fgqlhzb+Chz2GMNp6K1xILpzkeJYYHcroZ4sDcE6jVOJJUis2qzc8f37Y 3s2hyDaQBIN3Ye1G/omxmfnSPuua3RlIy9J0RNSLtVgHTLQJuXI4bA0EVoWDVX115E80 p2v5uE68B+oibK2PBGCKyh9Xiko3obGcWznItr7jckttZD2o0foHWadcQIHYrJdaQ2K8 BGwOPS/T3ce3VfrIok2Cabn1LSt2Xq8PmEabMg53IHjZu6rsrEzzkT/13ukj6CDfwzw/ K9bA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FpS2LeFy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n6-20020aa7c446000000b00564881ab962si149864edr.205.2024.03.08.13.38.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 13:38:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FpS2LeFy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DFFE41F220C5 for ; Fri, 8 Mar 2024 21:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35DA25FB87; Fri, 8 Mar 2024 21:38:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FpS2LeFy" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0858367 for ; Fri, 8 Mar 2024 21:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709933895; cv=none; b=WyMXKeqzdsiHgrNLAaOzvGSyXLCpwLfGVf2UOQoUCXthMQE1fWd+74prD6vGA+fro5SSbBghrzpEspldYi/F9GmQZHuW1y/tl74cdZD5whTKz7+p51O2lCDqoKAQOQk8mSMUR1gPw+glZd+OCSWYbHDPY0BkKdTLslhdra9iyL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709933895; c=relaxed/simple; bh=WwpLATMHSHcGIYdzotaP25I/LYMac7JZ2C3/OiMToDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jEJjmH5r/MBBa5GB255kLGCjMN0xTKU7EDjWrYczycoOFebahuHPGU/ytpZs3W+f2xXm36Dn3BCWicDz89dyhlZx9kvJjQgR4pweyI2bpAv14ic5nrPJwMR/R8xGlM7pXyLe8fVMnWhq122H5+FFSiR2PLsvVUOCltUfQMb04X0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FpS2LeFy; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-564fd9eea75so3518606a12.3 for ; Fri, 08 Mar 2024 13:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709933892; x=1710538692; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=C5vHRjCeO4bwXd9VgTdyqvaIa5JQzoplykKkt0qJuAw=; b=FpS2LeFyGCvALf9AO/LYkDiSwq3u5Klh4VGrNl9IMyksJXiwn1IAI2Ez7+EdxLXRh8 /oePCFzXT/jVPRThpR4f8M3JKvMBXzUoKeBxsaBaJ6zTwpyTurjBzAyVfYkgYSUUKsCk 9mprnhJsvz+VP9YO5yY5J4ziurbMSvMhbqXC9oSZwEhi6EdFMuLxI7LifSOgMsu6r57q fpSjDagIZixAPDiKdJmmcoOLU4PmsY8ryiRzjdZWlhZy0LYLpU8nWfLTZPP5TNgoNXgZ cVBEvY5DNooFX+MDym+v4hvLuBMlJDSc41cnrWn+fA9FC4xYr1uCHJi7SdtK2md63DCg Jzjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709933892; x=1710538692; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C5vHRjCeO4bwXd9VgTdyqvaIa5JQzoplykKkt0qJuAw=; b=L4WfHZcRZG5J5PsemVkfbII4lam90NEl52b67LY0csRrlQoDtkqgfRD3U43n1zCChR Vwj6Qs4OnQMWkkJuKrf+cSlRhD94EaArT/i8KQVeIwwTPFdWowbS2PPASbUBuZPb8BS8 E8JeL21OSNkQbzwbjuGeMgCsZDUFJhaPkthgNdfKlYvkcNkD2bKRk6TeOemtRuxHnKq5 TKTIXP4nJ0D6Eee4yvYYz7eWKRDoqgB4KQzEnAq1qm+4fzu63aX7/rXm3mGIAHFxK5zS Id5VJqiixgi9ZCxzVcm0sC4v2hMhsyueCDytl+POXTCpi4H2lSTjs+7Y9LqBv6PQ7L+b RiWg== X-Forwarded-Encrypted: i=1; AJvYcCVyqVANDVBT4Lxwuend7rDF80D3AA63cUgbj0cF8ljlzHbOW380Q5v8VVTJow8j6sbYJ/PH0Jaq7tpCc0tRFYLNoXyFAav7xa3iLyV0 X-Gm-Message-State: AOJu0YzdVjMl6lymglpquL3hY0poKeMgbU8UXueXSXEAlutZiSxN6Y47 N8uTyeT3tJtmgtireJmH1aY8H0lO1NfcQPTGDRaSzhisGF8DPIGTUm0cBHBB X-Received: by 2002:a50:d541:0:b0:566:f5d6:4b4 with SMTP id f1-20020a50d541000000b00566f5d604b4mr266667edj.12.1709933891881; Fri, 08 Mar 2024 13:38:11 -0800 (PST) Received: from andrea ([31.189.122.3]) by smtp.gmail.com with ESMTPSA id fg3-20020a056402548300b005656bbb5b3fsm158817edb.63.2024.03.08.13.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 13:38:11 -0800 (PST) Date: Fri, 8 Mar 2024 22:38:09 +0100 From: Andrea Parri To: Kenneth-Lee-2012@foxmail.com Cc: Alan Stern , linux-kernel@vger.kernel.org, paulmck@kernel.org Subject: Re: Question about PB rule of LKMM Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > In the "THE HAPPENS-BEFORE RELATION: hb" section of explanation.txt, > it uses the following example to explain the prop relation: > > P0() > { > int r1; > > WRITE_ONCE(x, 1); > r1 = READ_ONCE(x); > } > > P1() > { > WRITE_ONCE(x, 8); > } > > if r1 = 8, we can deduce P0:Wx1 ->coe P1:Wx8 ->rfe P0:Rx, this can be > explained with the operational model. But according to the definition of > prop, > > let prop = [Marked] ; (overwrite & ext)? ; cumul-fence* ; [Marked] ; rfe? ; [Marked] > > The link should contain a cumul-fence, which doesn't exist in the > example. Remark that, in the CAT language, the identity relation ({(e, e) : each event e}) is a subset of R* (the _reflexive_-transitive closure of R) for any relation R. The link at stake, (P0:Wx1, P0:Rx), is the result of the following composition: [Marked] ; (overwrite & ext)? ; cumul-fence* ; [Marked] ; rfe? ; [Marked] (P0:Wx1, P0:Wx1) (P0:Wx1, P1:Wx8) (P1:Wx8, P1:Wx8) (P1:Wx8, P1:Wx8)) (P1:Wx8, P0:Rx) (P0:Rx, P0:Rx) Andrea