Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2790044ybi; Thu, 18 Jul 2019 14:30:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhejrSMyro0O388TmAYv0n0Uk5YqfOdWyCVeLOk2lk6cV8zTdL1kzKkwNI15w+jWgjgYsW X-Received: by 2002:a63:1305:: with SMTP id i5mr50420594pgl.211.1563485451099; Thu, 18 Jul 2019 14:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563485451; cv=none; d=google.com; s=arc-20160816; b=LWEBa0230glH/q3Y4XmCZrkAkwI7mF3m9b8cCqxpxDiOhnIbObQkpSkoUHlfK51Mzz 7gdIx6y13JZ5yMzeftCOOLnQNVjpi1/uSOYrDTxa99a8iDKIuS1rIoAZAK65T/n34NDK U/4ct7wvmj3wdLNhXn88QSv+ht1FwN7i0w66hj5wBEQhehGFsIyjaIywy3sz0RkKG/4i W0tMoJMJMsPiw39Y/bZEJKEVNECRny5lDmlFpVtL9z1r54vDmKl1lr6hpDp00It+8eeg fSNSJsdrUHi72HnAHoBSR3KvQFY7JY2UWGoAwS5ONszS7sdBnpxyHHLuA5Nl7K2vhOH2 bH1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8Kg4e7WJhopl3gfQ88VPQnEvXn0fCE4TNc6Qi8excrA=; b=HMXvJaNRjEWmWU//9L7pyg/DuC2SlWLkts8Ulr3IrEftnPUzWxmU/HUUXHKQiMzPzy pHmEn/04VbN0Sts2W1TVv2JX3+phAPE9tVPudt8SkKfMddb5yrU1hRmVsmDzvGa5eejM yjQnzB99Ygi6kINpGDtNMhPEU4B4EL2xIaHw256M+cexGnyRs3nueSZ+2gkBxTKJM8V9 OwEZp7X16sC6r6kBDCVp9x3DtvDikIb+fu3SBEf1Fj2pHAWJYbsR8VVZXi13c+IsBwdx ycedf4HxHIr3Ki2CkPGDgBvG2iJwRTWik0p/5d0DZXuQXrwprAqqos8GOoZIAuJB3tpV qAjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XGlyw6Q8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q26si3228049pgm.188.2019.07.18.14.30.35; Thu, 18 Jul 2019 14:30:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XGlyw6Q8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2391589AbfGRVaM (ORCPT + 99 others); Thu, 18 Jul 2019 17:30:12 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35078 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391556AbfGRVaK (ORCPT ); Thu, 18 Jul 2019 17:30:10 -0400 Received: by mail-pf1-f193.google.com with SMTP id u14so13206073pfn.2 for ; Thu, 18 Jul 2019 14:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Kg4e7WJhopl3gfQ88VPQnEvXn0fCE4TNc6Qi8excrA=; b=XGlyw6Q8ysBBtTHOOum9BHjDmPSc1sI8WLNMUrICUYMGmrsPez8FFPxmSwfvUqUFVT fKCDRQp2fLC+FniwHviGGwD6ys/rDQhiy9Q6Vzl0TSVZnuWgtg9rB/BN3RAjo0IvUG15 uJnWwS0ATKe3d+RGYew8jbtLXtwjIO78vyz+YbvaCuVeMqmCrUZ9EI6G6VSChiBxYwUH 9jc5Cy9BDQMr4BOqXkp4rmsB4U+ImgqOf9zpYVygOEqUhOtup4FuvV1k27/1VjBGxJaS V9wCPaRfptfw7vKmU9KJk9eXz6Q/YFDXIXDdDVEq/C80XPvnPc8uw1jXZEVRG8Z/KkjP /rMg== 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=8Kg4e7WJhopl3gfQ88VPQnEvXn0fCE4TNc6Qi8excrA=; b=oX1AlUSCKA9hKTsVSINWQDU/lNuFPBGB6WS8qKEEjPlNNzCB68u3JQrmOjoIWZ2XFS 82Kl1tHqSc4bQMr2wtBuYUxn7YoVu411W5Pbx6R5dJuT3sAi3dP7QRgt+wqtl8AAWRUO 41iUJd3QBQTNi5VNBtTUpr3E6qfXBgIn9isvqaO1Xk1vYeYaQhpuft6222qe3V2/FDEf kAClQxfMtG1D1RmZ7E5bg2xSwzYPLcbw0xPixSaxdRowQcK1l9zDjt4jrx/yUuh8eLqc H+VByR41JzIcF1EiZg29j5R7by3E6WkCg8eRrMlmowOyolAx3ol5iJ+nhYScQoC5flIC lsVQ== X-Gm-Message-State: APjAAAUlF1h8dNwXB1ce72nvKpYIx0qu3SeJF8nV/nlkKYgF8gbb1tEU 0aww5nWnC7Kgpzbqvbh3HFlk/271Whh47iNW/Zdljg== X-Received: by 2002:a63:60a:: with SMTP id 10mr19112038pgg.381.1563485409250; Thu, 18 Jul 2019 14:30:09 -0700 (PDT) MIME-Version: 1.0 References: <20190718000206.121392-1-vaibhavrustagi@google.com> In-Reply-To: <20190718000206.121392-1-vaibhavrustagi@google.com> From: Nick Desaulniers Date: Thu, 18 Jul 2019 14:29:58 -0700 Message-ID: Subject: Re: [PATCH 0/2] Support kexec/kdump for clang built kernel To: Vaibhav Rustagi Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Vivek Goyal , "# 3.4.x" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 17, 2019 at 5:02 PM Vaibhav Rustagi wrote: > > This patch series includes the following: > > 1. Adding compiler options to not use XMM registers in the purgatory code. > 2. Reuse the implementation of memcpy and memset instead of relying on > __builtin_memcpy and __builtin_memset as it causes infinite recursion > in clang. Thanks for the series, and debugging and finding the issue. These would explain why I couldn't get kexec to work with Clang built kernels. Comments/reviews inbound on the individual patches. > > Nick Desaulniers (1): > x86/purgatory: do not use __builtin_memcpy and __builtin_memset. > > Vaibhav Rustagi (1): > x86/purgatory: add -mno-sse, -mno-mmx, -mno-sse2 to Makefile > > arch/x86/purgatory/Makefile | 4 ++++ > arch/x86/purgatory/purgatory.c | 6 ++++++ > arch/x86/purgatory/string.c | 23 ----------------------- > 3 files changed, 10 insertions(+), 23 deletions(-) > delete mode 100644 arch/x86/purgatory/string.c > > -- > 2.22.0.510.g264f2c817a-goog > -- Thanks, ~Nick Desaulniers