Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2028819lqg; Mon, 4 Mar 2024 10:33:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU22v9vD3JksuhImO6/Uzqndg0TSJmebQ9OUtcMLGQXwF3yBHdnG7Y5hQfMgizIsrnjO98hWqS33YsjTRD06xsGP8eVCUL4vT9MVsGR6g== X-Google-Smtp-Source: AGHT+IE8GqR3k6qUi63z/K5lFE7yGAe9DSJ7TBbjZTy6OKwj56F7vxR+GbZra8B7a/V6pV2taupn X-Received: by 2002:a17:906:f9cd:b0:a45:3759:ffb8 with SMTP id lj13-20020a170906f9cd00b00a453759ffb8mr2434662ejb.61.1709577194683; Mon, 04 Mar 2024 10:33:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709577194; cv=pass; d=google.com; s=arc-20160816; b=o6qN08mTwMfF2ago3Yx/UbgCqEBpdWH+lwiNzAhGFg+1thuWUZ8pKMjJiT3K0LEIbU YupGrmT7d95m8WNR/Tm0rtGI4lurbC0S7HmufLv3GSKjAnHJi/i1BqLAzMnSNTyLNBgu e2dPIk1tXNk1QTpAojkxQBYT7ncX6hPmC2gWefVJcTrbG6HBI+MKJxKVruKHWc13h2l6 HF+6voBdKVNseZw8R+dfkWYcgn4LgMyFNszmA38U02btP+uf48EW3T7TkSu6hPnBTmiF AwKN1WQsNDOYJy2phA700xgcqchkavjFlqW1ZftwjBIxvp0NeuwAhOzA2A1ejTTMoTDR cBLg== ARC-Message-Signature: i=2; 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=LczxhZqLEWu5Pcwo59Oo1yTNgbAQRYyUzuwaCxJZY78=; fh=fxk8VaKxKzhi2zdLcdXKlGW4oP0C7/PuOM2EOAFxF1A=; b=cIqxqSPvluTKLRk186HCb1NGnD5NcvoHUCX9iMlA49paDwkrSJe1Ct3erTW6paetst LvTP/VKr8dS2jKvQjrC9I0iKnZ1JW+zfJ2H+a/Qdthz4VnJrTWKbGdOTGlYv6rsDlMaj k2egFYN6zvBwISARP5epCP/qrB/Mn7Ag6tQnX1pEU4msrnYiU4kDVw38ChGm3t4PVBOd 4XyEqxHYXLwdJWrcdnd57oGM7dXBwPN5Q+38wcLPb/43mEgQ/OywnGPBwxBLPnwsoB12 CyQSS9z7Yavvq1FXobpsUAECW+mszNreN8OIGUWPG1QQwZS9zhA74zJc5Qf09EYilRU+ mxpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HFcAOfEt; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-91103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91103-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v14-20020a17090606ce00b00a4519304f8csi1546061ejb.98.2024.03.04.10.33.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 10:33:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HFcAOfEt; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-91103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91103-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 612F11F21393 for ; Mon, 4 Mar 2024 18:33:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 058F578B4C; Mon, 4 Mar 2024 18:32:47 +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="HFcAOfEt" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 1443C1E4AA for ; Mon, 4 Mar 2024 18:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709577166; cv=none; b=Y3PtQXO2PjmeHEVpqL9K+iQkxZtniW4w+eHO/Ya1+c3guuw7L0XcHLFhsv4iTkOM6+D8hIIsBSuy4Ga0xi0y/UCnJ1GyISg6BpmH09xNJx9YTlNBZlvB6TmZft6rjuZGTnkewar2ZasCr6O6SgkLXm8OrxwIx9nyN9kHS3UQ/18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709577166; c=relaxed/simple; bh=KtfWqAbL60dmDmNJlm82ls0DTRmdSK6fujqZ9REQ7jk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=T/JfVU8w3z9EGWCmKbuQDeJJQvQf8S2psB8zc8swWS24TO5KmkiGGeKNk+2U6iKN42dECP92OfAWS3hTwVG1K9GxWM+59K57j77Km4WiMRhQsRuH2lYmTztjCKI4wPm+DAjFTvv04cLcfWX8UvWx8g57o+6AYF4/tgxSfrtj1ZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=HFcAOfEt; arc=none smtp.client-ip=209.85.208.54 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-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-56682b85220so7755046a12.1 for ; Mon, 04 Mar 2024 10:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1709577162; x=1710181962; 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=LczxhZqLEWu5Pcwo59Oo1yTNgbAQRYyUzuwaCxJZY78=; b=HFcAOfEt9/FvsD6j1u4pv0r8VsphGwkpmz/ti4TcDLPwbiXdGjlexLVnYI916Ijcvo 3dDvKGZPcIVlYskuXO+IQGx+lImvNF0RaprjSgxB1zFElh1O62jlx6e+f1S9q0LqfXcn 7R5MckTa8gpdXygeCXDYGK2Q1k+eUy8USQTd8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709577162; x=1710181962; 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=LczxhZqLEWu5Pcwo59Oo1yTNgbAQRYyUzuwaCxJZY78=; b=YuirDY4ij3bK5FH9OGw9tSzOk+Xi97zgOlGPL+tuzfRimkMe9aX8fkJjaj5RG5FXp8 WEGn5noppbOvydoeIDRZUviD9GFXwI0Jl+YfreqBcAFPOwKe3KiC4OlQp0VqUmulkcsm EscK+r/ULrYZOEbSSD/sqitu/Bw9Ecgav81ddg1pdAJ/S20YZAJK2ZSDvGZbORqj7jRz 8rkuw62pv2kXzWI2ZjPaEEYKB8KKxZJMyN8ZE4Sd7Gq5qF3RQCbVlPjHQEbHFVPFnT74 J9sEIfQyNDWrypPlfxz2HBVJVmBLUKlhZlENcZuNUmpVWTsOZtQLtvLKhSuoEAD+2Rxq fmfQ== X-Forwarded-Encrypted: i=1; AJvYcCUqaqWNUazezGqWVS+gMte2JIt4ukjL2sywFonFUXWrIWqZRsJoE+3UZPwwnx7XvYTG6UhY0lH8IdAFyRVa1siS4OqXYoa+FKXuxPkN X-Gm-Message-State: AOJu0YxI0qvl4C1K1mH2lugdTLqaBJCeuCIxka2i2axQJiZvHKxQj02R 81ydXEWHynzAkp9ryriVLr1hZZcf+aJxiURPBfNlaT27bAZQieOFM2zgfe1VXq6ISfgfdP/HfMv gHao= X-Received: by 2002:a05:6402:1249:b0:567:4441:89ad with SMTP id l9-20020a056402124900b00567444189admr2840583edw.15.1709577162482; Mon, 04 Mar 2024 10:32:42 -0800 (PST) Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id u17-20020a056402111100b0056729e902f7sm2176942edv.56.2024.03.04.10.32.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 10:32:42 -0800 (PST) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a4467d570cdso487013566b.3 for ; Mon, 04 Mar 2024 10:32:42 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUMGxhIPQvG1HMOQjL+MBshEMtdIadH3tVA03vIUvxJCvAkxxCh7GYrE7bG1jKFTPkkuHiBidRCpzBTouCFgXBkayl5ksDUHwWkc2ko X-Received: by 2002:a17:906:8da:b0:a3f:ab4d:f7e3 with SMTP id o26-20020a17090608da00b00a3fab4df7e3mr7570338eje.0.1709577161818; Mon, 04 Mar 2024 10:32:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230925120309.1731676-1-dhowells@redhat.com> <20230925120309.1731676-8-dhowells@redhat.com> <4e80924d-9c85-f13a-722a-6a5d2b1c225a@huawei.com> <769021.1709553367@warthog.procyon.org.uk> In-Reply-To: <769021.1709553367@warthog.procyon.org.uk> From: Linus Torvalds Date: Mon, 4 Mar 2024 10:32:25 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [bug report] dead loop in generic_perform_write() //Re: [PATCH v7 07/12] iov_iter: Convert iterate*() to inline funcs To: David Howells Cc: Tong Tiangen , Al Viro , Jens Axboe , Christoph Hellwig , Christian Brauner , David Laight , Matthew Wilcox , Jeff Layton , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kefeng Wang Content-Type: text/plain; charset="UTF-8" On Mon, 4 Mar 2024 at 03:56, David Howells wrote: > > That said, I wonder if: > > #ifdef copy_mc_to_kernel > > should be: > > #ifdef CONFIG_ARCH_HAS_COPY_MC Hmm. Maybe. We do have that #ifdef copy_mc_to_kernel pattern already in , so clearly we've done it both ways. I personally like the "just test for the thing you are using" model, which is then why I did it that way, but I don't have hugely strong opinions on it. > and whether it's possible to find out dynamically if MCEs can occur at all. I really wanted to do something like that, and look at the source page to decide "is this a pmem page that can cause machine checks", but I didn't find any obvious way to do that. Improvement suggestions more than welcome. Linus