Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp51362pxy; Fri, 30 Jul 2021 23:33:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ9rPGz9iLrHTqKqBmTkJGXXMCOCukj51O0pgIPYIQrL+/ASdBmDmeQeR2sDXldi9schlw X-Received: by 2002:a05:6402:4d1:: with SMTP id n17mr7493170edw.337.1627713238736; Fri, 30 Jul 2021 23:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627713238; cv=none; d=google.com; s=arc-20160816; b=x9wCH4TNRmQYBeqEDCtU3TwA8IEFyh96lj2POtrnaVkM898iUfK3T+cTYRQgPc8Bt1 Aq8jzAyFSY7Hr+uYT+V6/Pjo3vvciCBPGncmCHim5aBDnUVT9en//pIED8tyvy3U/g3e C5zR13tAXhMTr4EYVlU6jmDdnKIKNqGTd5zJGT/RxRyOHuUd4nHtNd0lFmXsD43jLpv7 K3ZgCqUVdSAFbLDDexJHCiGBHMVv2PVhV/sNr0pQTLahB4Xm0fHq6PYUfryuErPh73fD FbSLr40phNc5D2wm0DH6sKCgt1qsZmL5UCPHL1OACoaJE2lSNVLKk+c22WRezfsojH1N pAnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=KSUxTO+EOQGlkGcG4nqfPKO6I6SlgWbHF09kbFHtAVE=; b=M21M/PDIYw396nqxpOVi27N2HwMnMXeeYXBGJ9Fl8JCDij3kSziVG4h7uuyXoDyfQN eAp7RaTpAv7LTa5RnIqOn0lFe2kV0G/sEBS60PSVTNiPF7Zy5ccC6l47VVFbyPF+WTvc d7RMGiOnOjdU/Szi1wHmActCM2pwQh353jR61wCYDkh78of843njWw2HHvqIVYi3PB1V X6fTPWQ2wroxtecz0tiJjq1rvNCyXp24ZeSQyXbztwn32uegnYNp5FdwNJYRHDSI0fRv a590IrFOaqcsnEXmJSsHRBEGEI0gR2969yMxUvzfauPFFgoD31XyCqR93/pbtNXECQA3 0ISw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c6TV1iL+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si4188325ejf.364.2021.07.30.23.33.35; Fri, 30 Jul 2021 23:33:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c6TV1iL+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231992AbhGaGaU (ORCPT + 99 others); Sat, 31 Jul 2021 02:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbhGaGaU (ORCPT ); Sat, 31 Jul 2021 02:30:20 -0400 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F971C0613CF for ; Fri, 30 Jul 2021 23:30:14 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id v16so6640210vss.7 for ; Fri, 30 Jul 2021 23:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=KSUxTO+EOQGlkGcG4nqfPKO6I6SlgWbHF09kbFHtAVE=; b=c6TV1iL+G9a5WwTfCqHZF5os5GeQKwGIEV6xVODb8QGEfnd3AjvDgFg8iyjd7EyDYu 7w4zFvzzWyAeAIStawXiRTJ4hWmwHfPabteJVEqfRwqpGKJDChFilHfL40OF2tSCgcWN 6v10Wj79mhDKqid0Is7mZ70ROfajOq2ESBhLC3GddLJqgcTnzuUXRhRT37jRbKr0ps0F SvZIyKgTlHn6NMvCnkbfDzn0eyFAfUJH6MbEw7qVYWyrl8aPcZhJh4oksleX9vj2xCId N4Wt4G2SJmwtDfajyduh+oYc4mc6hyIdccoZuQN5jeP3Bj3Oe5RbLO5dvh4WuIDAZV9f B3Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=KSUxTO+EOQGlkGcG4nqfPKO6I6SlgWbHF09kbFHtAVE=; b=l27air1cjLJ+wWkY/hThDV5qxMHufkRnQYEuOiQwPkNbFVKQPIgxwtE5w9r8ayBG38 8ntkO8nJQpz4E5pzGKIc66iNF6OBSQd76cCjrAK1syf73pdT9z4Yae5N1uCBN7jDAW7Y d5adgbfzYo8S/VCKZOiX9LvY2Kca1EoUGGl3T5FaafC5BieTWLNPk9rESFgxrQSL4XJ8 Ilod/z1LHoBNeVpe92r1OqBsw0ZxJCPlUFQ9xHvZj8Z4OTMvfjzZhyjne3iWmWyJ9rYA sg2V2mZa0fCK5F98D6zpB9otrGEKhcPcU+sYt/yxYEl93cKnGfCusw2E6joB84C7OxMa i3MA== X-Gm-Message-State: AOAM5328PqDsvaLKyfR14SmupSE2+elepJ43l47QJup2AH+PV79cOeI3 u9SqwnRdOaK+uq2L2NBzuqT9eAEhpBPwBxfJPnyCgA== X-Received: by 2002:a05:6102:21dc:: with SMTP id r28mr392600vsg.50.1627713013454; Fri, 30 Jul 2021 23:30:13 -0700 (PDT) MIME-Version: 1.0 From: Jue Wang Date: Fri, 30 Jul 2021 23:30:02 -0700 Message-ID: Subject: RE: [PATCH 2/3] x86/mce: Avoid infinite loop for copy from user recovery To: "Luck, Tony" Cc: Borislav Petkov , dinghui@sangfor.com.cn, huangcun@sangfor.com.cn, Jue Wang , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Oscar Salvador , x86 , "Song, Youquan" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Been busy with some other work. After cherry picking patch 1 & 2, I saw the following with 2 UC errors injected into the user space buffer passed into write(2), as expected: [ 287.994754] Kernel panic - not syncing: Machine checks to different user pages The kernel tested with has its x86/mce and mm/memory-failure aligned with upstream till around 2020/11. Is there any other patch that I have missed to the write syscall etc? Thanks, -Jue