Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp798324pxu; Fri, 23 Oct 2020 13:34:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIhkG0oZvMi07mYmA9DATYk1Jz0090KipiVdNtmm+Xpb05+MOt7S39eM6CvNoT2k/AmKwi X-Received: by 2002:a17:906:aec1:: with SMTP id me1mr3946289ejb.225.1603485297995; Fri, 23 Oct 2020 13:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603485297; cv=none; d=google.com; s=arc-20160816; b=JjQq6JJ2oETVWL1qDEq4OEcacqnUMcKHpvDun/2iiKCgq/RiQBgXpKE+7SOOhUvWmF GxnduiUib5LJb7PhhdlQvMOnbDT3tPmZqVRsn0tAGTOS+QgaIWOBgsr8P02iqrumM6jb Ll4lIgiMz7x7ZC/sRQ1VviSZib+S8nw+n6BIaLjSS2gDJ+aZzGuPkvHgTKa8Aq3wv3U3 PpbRFSZVig0DH3zRmzNRG0W1/Fil4iJok55zWuVajeJNayLooq21TfC6UEHXmH6SwN7L zMwvwfV/NxsgB98xGMtxvmOp3LvT4xZpPSsYAXo6g02vs0a5MNMBa6ozptJFTxCqHKkJ V2VA== 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:in-reply-to :references:mime-version:dkim-signature; bh=So975owvkkTFfYXQ470Q4DlssmIVIFu2QdqnJrTF8xg=; b=n3xKgCExNfs2rR0VazkC08Un3QzFWzJTphUOWTIa2tJnZQiUqzvHD+e94RiL9XLyrQ OSiSuroemyjHZFybhabHKfAihSLq1SA2whNZPpNT8ZLTBBg3c6ZCCOF7wJ1nxwXy7bdV t7udToCSxh6a18B8LKcOEuRuaODFRd/+a16vLf3wyrDdEAwJL+9//raabZ6zpCKZQiCl uCdBhQNjU6egm20DjznjkmY359m2i2Zs4ZQBfdx6CGOKNH+u3x9d7a/OjuBfD2EePoOj P4HjwXuyWzSTWhUXww/hGdPPSAzFRV6ba4fKXL3X9MTvFo6ZB3hbsTwswQc+hTXNT2gN Byww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TzWUN3CT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k21si1649641eja.393.2020.10.23.13.34.36; Fri, 23 Oct 2020 13:34:57 -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=@linux-foundation.org header.s=google header.b=TzWUN3CT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S464134AbgJWPxL (ORCPT + 99 others); Fri, 23 Oct 2020 11:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S464128AbgJWPxK (ORCPT ); Fri, 23 Oct 2020 11:53:10 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A0B2C0613D2 for ; Fri, 23 Oct 2020 08:53:10 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id d24so2066838ljg.10 for ; Fri, 23 Oct 2020 08:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=So975owvkkTFfYXQ470Q4DlssmIVIFu2QdqnJrTF8xg=; b=TzWUN3CTm+h3r1g9oyCsI8lQvw43xzR9vIG57jNVIMScon9dkhOPSHSU0YuPTCTEbW xSUTXNkTa/xHcxjOZm+H+owVFWXNWx30+II0u/JJDBaUgnHNJQKAZRQgLvSR8UT7JBoq 5hUnMcwfEz4zN7MfPmgGe/s+oSgXWn8ttaA2A= 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=So975owvkkTFfYXQ470Q4DlssmIVIFu2QdqnJrTF8xg=; b=pgvKNAJdMP2zzyqJZqitmLcN6cZSMaZ9xeT8k4dcyZv7ORWgbVavrlh4H1FRizxvV1 XB0CSJa0UiTe00fvZ540mnCx5s2jBDRySSesfPUpIFPLG4/DPeBpuDBoer7UlIZVN9Bn aTlkMVUWuRsCv+4MRdoZ5T4FyJSgMThaw7wA9b2HUpELwjN8ebz3D/iajim6BxKBr6Qg n1GRCOJPiEoAN4PvUW5YVi4CMHR8JB90fs8YMmhfjCXr2JJpoFnZBhDaDxjxMaexS2ag jIG16wRx+n1dpZgVuSfRVu3xLmJSTIbzALjFetvKSQWaeGOblXLNytKfryp+d3CF/elK PVEQ== X-Gm-Message-State: AOAM531bnMTyZNPgePtXiXWfDupgU2MCJ1jmhVQF/RCni7ZD+9Z3XfCS 13iCQJ5khG3++6NA4pHTWVxpoATB54qCeA== X-Received: by 2002:a2e:7a15:: with SMTP id v21mr1218904ljc.424.1603468388467; Fri, 23 Oct 2020 08:53:08 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id c26sm171582lfh.107.2020.10.23.08.53.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Oct 2020 08:53:07 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id i2so2080281ljg.4 for ; Fri, 23 Oct 2020 08:53:06 -0700 (PDT) X-Received: by 2002:a2e:898c:: with SMTP id c12mr1248002lji.285.1603468386475; Fri, 23 Oct 2020 08:53:06 -0700 (PDT) MIME-Version: 1.0 References: <20201023050214.GG23681@linux.intel.com> In-Reply-To: <20201023050214.GG23681@linux.intel.com> From: Linus Torvalds Date: Fri, 23 Oct 2020 08:52:50 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [LTP] mmstress[1309]: segfault at 7f3d71a36ee8 ip 00007f3d77132bdf sp 00007f3d71a36ee8 error 4 in libc-2.27.so[7f3d77058000+1aa000] To: Sean Christopherson Cc: =?UTF-8?B?RGFuaWVsIETDrWF6?= , Naresh Kamboju , Stephen Rothwell , "Matthew Wilcox (Oracle)" , zenglg.jy@cn.fujitsu.com, "Peter Zijlstra (Intel)" , Viresh Kumar , X86 ML , open list , lkft-triage@lists.linaro.org, "Eric W. Biederman" , linux-mm , linux-m68k , Linux-Next Mailing List , Thomas Gleixner , kasan-dev , Dmitry Vyukov , Geert Uytterhoeven , Christian Brauner , Ingo Molnar , LTP List , Al Viro Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 10:02 PM Sean Christopherson wrote: > > I haven't reproduced the crash, but I did find a smoking gun that confirms the > "register shenanigans are evil shenanigans" theory. I ran into a similar thing > recently where a seemingly innocuous line of code after loading a value into a > register variable wreaked havoc because it clobbered the input register. Yup, that certainly looks like the smoking gun. Thanks for finding an example of this, clearly I'll have to either go back to the "conditionally use 'A' or 'a' depending on size" model, or perhaps try Rasmus' patch. Linus