Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3680317rdb; Wed, 27 Dec 2023 16:36:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGitX9j6o0k9pE2ONwUr+JbNbcyTDwSZHH9nKnvnj+0PDzqDAyrd4lIKCbnASC7NFy84kIF X-Received: by 2002:a50:f69a:0:b0:554:f635:bdad with SMTP id d26-20020a50f69a000000b00554f635bdadmr1612049edn.102.1703723808390; Wed, 27 Dec 2023 16:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703723808; cv=none; d=google.com; s=arc-20160816; b=PL7bgURlIYLPIjQnmN4ZJ0uQoz4PqhqFwx4HmugThk/rsL6OfQtN1fnllrOkqxAvLk Lhld2aZlfJYtpWbeiXSFIGBZrm2IO/cpmWxmPEQxDR6lPv5bKck5Oj/XluZxWIx25NCL BVk9bNohIJayfprzdZYi7cc1Vn9thGa1LkJ0EsRnIjiPulaUwxfZZU27A4GORhWR/3PK YQell5m4cG9+KoK/i9gcOmUkQcfa6aTKGmXZWAu9ehRoOj4IGgJyezipZRPIOPQTORLU 5bbSHFB6KRf2L3lWKmdA6aBOa8602j0nZ8GxxOstiq8C3YcM8OPZAke4/Jh1YjO1j+PY kI5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ZuhB8VHwVQmrv2O2PykI3H6Y0tt0rKki08G/rfRh77c=; fh=j1R+rmYgNrOBERaal3DUdnZ+KdyB5XdDdd6s2S6hLzw=; b=VKaJQxOyJGzyxUrVEU4cvoSbCsnqZcLhwVKzh7DakqtT1bz0EVbwG+F9evVrUQxt3c dFgBUQXtyHqk7fX9nRN+RMVGeDw9npTD3fBowhQ9WeZ7pRYp5+OQ9KEsYn3/BMPVEMX9 VmEeOK7jh6tk5BTI5l0CLAgCgmA4hTXcqvN/I36UFW3HaSn9QAa/6Rf+/+2FqPiuv2YT ILUer3MwyLILcvR9z/IipyncH8l158VkfMD+F8koF3mGE0IQ5e1qdoEoYWG6sf/EfDSO qBufVeZj8r7U9Keh95bCfzbrvByJGXoCr9I3ju8AmuPWWlEIKcULok8X/DqlGB1WpQMg Ml2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=b6Lq5WwA; spf=pass (google.com: domain of linux-kernel+bounces-12327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12327-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b100-20020a509f6d000000b00555050b2a82si2300378edf.335.2023.12.27.16.36.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 16:36:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12327-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=@linux-foundation.org header.s=google header.b=b6Lq5WwA; spf=pass (google.com: domain of linux-kernel+bounces-12327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12327-linux.lists.archive=gmail.com@vger.kernel.org" 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 EB4221F22F14 for ; Thu, 28 Dec 2023 00:36:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D324694; Thu, 28 Dec 2023 00:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="b6Lq5WwA" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 DC82F4401 for ; Thu, 28 Dec 2023 00:36:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-50e7c76897dso2312086e87.2 for ; Wed, 27 Dec 2023 16:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1703723794; x=1704328594; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZuhB8VHwVQmrv2O2PykI3H6Y0tt0rKki08G/rfRh77c=; b=b6Lq5WwA+t7+gTf2ZEADvQomVCMQo6RYH1ySmv8oFEWqjNzswmkL+TaXW8WPiNRR9x cLoMuw14xRAV3Q8f8Ygb42G4Gp3ZCxhoKTqRzV4/wbaKMK+p24TPDx/tAPfaSEU1NI+S bEue72O/7hWlO+TYwP5HpSpnFx+NXvVssdBp8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703723794; x=1704328594; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZuhB8VHwVQmrv2O2PykI3H6Y0tt0rKki08G/rfRh77c=; b=EUi7202+d4bWwHkeg734L5ZX2eV2joZm3kXrAUOM7Ack4JYiI/o4ZpX4PAWYVLkL7M mi1+6aoPO3JLve5e9+FfP47v8YgcegbsT0JfK302MpgfAEUTD0ql5Yy3tVOo1/GH6Yph lY1piqFwLFBKwLlLHYEbWOn2b06luy0PPVK0Cztguvg2/FlDQiME22nsoT/BB75DFlPS wZ7lS5fLwHj48mwPcHxtrCrlNGJ6HJyc7ljTOCmg5AAKwh3UV4b7+nKj3ZRZfGlFOQKc Ir+SAioDjTV/UR7fAGUtCJzlPA0I5U1Xbdc2l3iNepSAhMp8/vH4cdu5h5nqN1FQz60d 19mA== X-Gm-Message-State: AOJu0YxdupZYg8d8mcAl84Q3rDFAgCWfZJLCtoxE6TQmULkx60PPMWRq GP7JVt9Ywv9014nXq6agdqbZohJp35bv6oysv8zsaIHJDxCFGA== X-Received: by 2002:a05:6512:419:b0:50e:2e88:1157 with SMTP id u25-20020a056512041900b0050e2e881157mr1653176lfk.107.1703723794568; Wed, 27 Dec 2023 16:36:34 -0800 (PST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id w14-20020aa7d28e000000b0055306f10c28sm9124387edq.28.2023.12.27.16.36.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Dec 2023 16:36:33 -0800 (PST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a26db4e9676so393788966b.3 for ; Wed, 27 Dec 2023 16:36:33 -0800 (PST) X-Received: by 2002:a17:906:254e:b0:a27:2f11:2928 with SMTP id j14-20020a170906254e00b00a272f112928mr781979ejb.271.1703723793333; Wed, 27 Dec 2023 16:36:33 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231227150354.9437b5c792000b8eb22758e9@linux-foundation.org> In-Reply-To: <20231227150354.9437b5c792000b8eb22758e9@linux-foundation.org> From: Linus Torvalds Date: Wed, 27 Dec 2023 16:36:16 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] hotfixes for 6.7 To: Andrew Morton Cc: mm-commits@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 27 Dec 2023 at 15:03, Andrew Morton wrote: > > Baokun Li (1): > mm/filemap: avoid buffered read/write race to read inconsistent data Hmm. I wonder if we should have made the i_size_read/write helpers be smp_load_acquire/store_release()? The existing smp_wmb() are almost accidental, and aren't primarily about the inode size, but about the page/folio uptodate bit. I guess they work, but it's all a bit messy. Which might *also* be better off with acquire/release, but we don't have those bitops, I guess. Oh well. Linus