From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35552C4320E for ; Sat, 28 Aug 2021 22:21:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18F2960C41 for ; Sat, 28 Aug 2021 22:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232932AbhH1WWB (ORCPT ); Sat, 28 Aug 2021 18:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbhH1WV7 (ORCPT ); Sat, 28 Aug 2021 18:21:59 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03579C061756; Sat, 28 Aug 2021 15:21:09 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id ot2-20020a17090b3b4200b0019127f8ed87so9974085pjb.1; Sat, 28 Aug 2021 15:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r6Li8Xzq3GZpRD4yRN9H4niugZXTcIcOHoay7QTmmqc=; b=i199VmbLftiUhfm5w9TMwG+4Zf15RGuEdy9vUNnpXVkRH8IKECoWxujWMKUM6b84Xj vJIt4AyP193AT6JMaZqM2108oM703qbcQXepEStj+SyN34yY5kAbjEpMOLGRfvEnhLwD Yw/zR35PCA1ul7az8DVV6WxmaAmrVxAjUhxlMJYrp5LwHhJhncGjh+kEO6C+xUOwIYIK HGZRfwPHEz91HYwm0f0LbEqHi8eFfah3zdtLG65KiyNGXMieukAjYa8GmhDCRYzKMtkJ a/N3lSlUJEK/v4Iu5eztYUtd5dIYRDNtlqGhxh5lAkVeMe1c5VFf3McWOZ9uFYYtGopY f0iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r6Li8Xzq3GZpRD4yRN9H4niugZXTcIcOHoay7QTmmqc=; b=e4hUbu3fbwQM2zstgIZvxxBCSsQe2x77fe060r4oGQon99KQn2VU21iWWDOlt6MVIx M5RvzYFHw9vzwS0SBdZFAcetMMaz8tkbekpxu/eAoVTAOP9L1JVrxDeNuu3ODFdVeWOh F419tbrWRnxiY68Rr16N+HCFtuL9ile0QLN1uUKziZENHful4ZMzxJR3Q2khRwG54rET XLLtJzeFAqGZFOWBsZJ0sDTdc8reafTzUQ45tCC+NnnHEVrYkgMngq3yFL5lSkmoqZtU gu1jLqFrUqSkDBt7MSr1L2aLUQfJBiwaTPrmiaRbhIE1gQQw/ZJmPlLT6tPkAQvsbWjA tFDg== X-Gm-Message-State: AOAM530jCRaylwgaPPnMG/7QPh3xWPzMr1z4LH1CukAYDHpsszy87mmM 5oJniNSedg5l4oQlE2WYLXUVASTcoh8FZd5G6LY= X-Google-Smtp-Source: ABdhPJz5Ffz08GjVQcWFqoF1crFop4nyJwqZjDMwOjo601G/TSenqG6Qmt+G6ELqJMjIOGz8touEqFLJCNdEjf1f3Wg= X-Received: by 2002:a17:90a:eb0d:: with SMTP id j13mr18377241pjz.163.1630189268569; Sat, 28 Aug 2021 15:21:08 -0700 (PDT) MIME-Version: 1.0 References: <20210827232246.GA1668365@agluck-desk2.amr.corp.intel.com> <87r1edgs2w.ffs@tglx> In-Reply-To: From: Tony Luck Date: Sat, 28 Aug 2021 15:20:58 -0700 Message-ID: Subject: Re: [PATCH v7 05/19] iov_iter: Introduce fault_in_iov_iter_writeable To: Al Viro Cc: Thomas Gleixner , Linus Torvalds , Andreas Gruenbacher , Christoph Hellwig , "Darrick J. Wong" , Jan Kara , Matthew Wilcox , cluster-devel , linux-fsdevel , Linux Kernel Mailing List , ocfs2-devel@oss.oracle.com, Borislav Petkov , X86-ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 28, 2021 at 3:12 PM Al Viro wrote: > BTW, is #MC triggered on stored to a poisoned cacheline? Existence of CLZERO > would seem to argue against that... No #MC on stores. Just on loads. Note that you can't clear poison state with a series of small writes to the cache line. But a single 64-byte store might do it (architects didn't want to guarantee that it would work when I asked about avx512 stores to clear poison many years ago). -Tony From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30C91C433EF for ; Mon, 13 Sep 2021 14:32:09 +0000 (UTC) Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F090060E08 for ; Mon, 13 Sep 2021 14:32:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F090060E08 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=oss.oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18DESv09024793; Mon, 13 Sep 2021 14:32:08 GMT Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3b1ka92r6d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Sep 2021 14:32:07 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 18DEV5YH007982; Mon, 13 Sep 2021 14:31:59 GMT Received: from oss.oracle.com (oss-old-reserved.oracle.com [137.254.22.2]) by userp3030.oracle.com with ESMTP id 3b0hjtk1kd-1; Mon, 13 Sep 2021 14:31:58 +0000 Received: from localhost ([127.0.0.1] helo=lb-oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1mPmwy-0004dW-NQ; Mon, 13 Sep 2021 07:28:48 -0700 Received: from aserp3020.oracle.com ([141.146.126.70]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1mK6hL-0003oE-CB for ocfs2-devel@oss.oracle.com; Sat, 28 Aug 2021 15:21:11 -0700 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17SMFSZS138389 for ; Sat, 28 Aug 2021 22:21:11 GMT Received: from mx0a-00069f01.pphosted.com (mx0a-00069f01.pphosted.com [205.220.165.26]) by aserp3020.oracle.com with ESMTP id 3aqcy0qs83-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 28 Aug 2021 22:21:10 +0000 Received: from pps.filterd (m0246572.ppops.net [127.0.0.1]) by mx0b-00069f01.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17SGqKNF019556 for ; Sat, 28 Aug 2021 22:21:09 GMT Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx0b-00069f01.pphosted.com with ESMTP id 3aqs1d1q38-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Sat, 28 Aug 2021 22:21:09 +0000 Received: by mail-pj1-f54.google.com with SMTP id 28-20020a17090a031cb0290178dcd8a4d1so10006773pje.0 for ; Sat, 28 Aug 2021 15:21:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r6Li8Xzq3GZpRD4yRN9H4niugZXTcIcOHoay7QTmmqc=; b=t6mre1b/hSbkIkIPlEPu8CsCYWfi248YUXtR9TT++waHz8FrVpcNhZ9IaKyemTNOTy k9wZQC+dFIIg96e2WuyTF0Bt1kE6RriYaB7Dlq0/0E3hJymvh1WAK76hV1+2SYcGzbaD kv1p1+Q+ZLjTXCUNcwp/QWDEy5ronmmzV7vjyjBah/gwKfGT/xCmJw4NGQGjvmJoZYYc qbguT7+/SK3WxZRBh9TGyMuE4K+oWxDV6jjN/jNdFKlVNGFWUZTLh9kVNWrYFVcFWee3 6vDrir4n3W93pMVhn9OSVWOkBoX6+3TkjgqiHLA9vJRS2MmX6YF7TdYr82eDK544k6/y yK3w== X-Gm-Message-State: AOAM533SuObh8YdMA31/6LafVY2pFwZB4x0/Rqdtj5JVBYzwi6po2+zD fPsCe87QzKrwuhpgTijxuyLYp7ol8ZsAFVHiZ+M= X-Google-Smtp-Source: ABdhPJz5Ffz08GjVQcWFqoF1crFop4nyJwqZjDMwOjo601G/TSenqG6Qmt+G6ELqJMjIOGz8touEqFLJCNdEjf1f3Wg= X-Received: by 2002:a17:90a:eb0d:: with SMTP id j13mr18377241pjz.163.1630189268569; Sat, 28 Aug 2021 15:21:08 -0700 (PDT) MIME-Version: 1.0 References: <20210827232246.GA1668365@agluck-desk2.amr.corp.intel.com> <87r1edgs2w.ffs@tglx> In-Reply-To: From: Tony Luck Date: Sat, 28 Aug 2021 15:20:58 -0700 Message-ID: To: Al Viro X-Source-IP: 209.85.216.54 X-ServerName: mail-pj1-f54.google.com X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 redirect=_spf.google.com X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10090 signatures=668682 X-Proofpoint-Spam-Details: rule=tap_notspam policy=tap score=0 impostorscore=0 spamscore=0 adultscore=0 clxscore=324 lowpriorityscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=115 mlxscore=0 suspectscore=0 mlxlogscore=973 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108280157 domainage_hfrom=12940 X-Spam: Clean X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10090 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108280156 X-Mailman-Approved-At: Mon, 13 Sep 2021 07:28:45 -0700 Cc: cluster-devel , Jan Kara , Andreas Gruenbacher , X86-ML , Linux Kernel Mailing List , Christoph Hellwig , Borislav Petkov , linux-fsdevel , Thomas Gleixner , Linus Torvalds , ocfs2-devel@oss.oracle.com Subject: Re: [Ocfs2-devel] [PATCH v7 05/19] iov_iter: Introduce fault_in_iov_iter_writeable X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10105 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 spamscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109130096 X-Proofpoint-GUID: ypdfPKljQ0dcNyQP1OnCL7aTv7j6geU- X-Proofpoint-ORIG-GUID: ypdfPKljQ0dcNyQP1OnCL7aTv7j6geU- On Sat, Aug 28, 2021 at 3:12 PM Al Viro wrote: > BTW, is #MC triggered on stored to a poisoned cacheline? Existence of CLZERO > would seem to argue against that... No #MC on stores. Just on loads. Note that you can't clear poison state with a series of small writes to the cache line. But a single 64-byte store might do it (architects didn't want to guarantee that it would work when I asked about avx512 stores to clear poison many years ago). -Tony _______________________________________________ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com https://oss.oracle.com/mailman/listinfo/ocfs2-devel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Luck Date: Sat, 28 Aug 2021 15:20:58 -0700 Subject: [Cluster-devel] [PATCH v7 05/19] iov_iter: Introduce fault_in_iov_iter_writeable In-Reply-To: References: <20210827232246.GA1668365@agluck-desk2.amr.corp.intel.com> <87r1edgs2w.ffs@tglx> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sat, Aug 28, 2021 at 3:12 PM Al Viro wrote: > BTW, is #MC triggered on stored to a poisoned cacheline? Existence of CLZERO > would seem to argue against that... No #MC on stores. Just on loads. Note that you can't clear poison state with a series of small writes to the cache line. But a single 64-byte store might do it (architects didn't want to guarantee that it would work when I asked about avx512 stores to clear poison many years ago). -Tony