Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1424188imu; Wed, 16 Jan 2019 19:37:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zZ2HY6TrOuNltsq/LYa6FndE5tG/UGxBY6DgfY+E8azSu4xNV4QJQmFDw6r1Z8ri2bicF X-Received: by 2002:a62:6f88:: with SMTP id k130mr13206727pfc.234.1547696273125; Wed, 16 Jan 2019 19:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547696273; cv=none; d=google.com; s=arc-20160816; b=itjvpYcQ2nJMv+Y5ANE/Uz3DPegYsPFMl5/J7QGZHCiOLHJ7J7GCog+vq5ybU/VY6y 3jhYzGaMOLpvzPCgEUjmSnHHWBejcYQ06oY2z5P7L3Gn993jeD89n3aEe+kUFDolLPgd BgXGfj8UR5QX9vwjMWdGw5OvOk1/larkmF+qtLKVkzyhZk8s5f1zQMFSIk4Mc99oye9Z taxjquviKMkUkk3TAles3dA609pVTjvxcJ/ln0T+WbnP2+ITGWst4NY2bVFPs7j/Cfn3 lSRCwu9mijnW8owF/b6xx3z33vwrDZi3ql4t+Z0OUrHHrCxnP8ldzolfoYgRNT019Eo5 jCTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=ICvYrRMOmTinwmH5cE6V2dNjpOUR1gB0fUECCz6shPk=; b=lKyeLl+b5RGKbnYfzzLJH82uSA+Quzbe2XJ79MloCRcWcwTHHfvzE+kzShJSWgFMoA 08J+wuJLSIEHtKQO+doAXXVNqrFmD85CM88wqZuOBEmI2tOADBWHaq8ziWCQsbhXsVDf gmzBvmcSZcVXslffucBmOgQv+w4/wUGHpP/0i64gjK/Z79MtZW/viSGNsDTWM7zCQshx c5GVumI7YtLxc462nQgm9rtKUPoOQME7se0If5tmQl/eLIVKffrVg49ZIoSVmCfOxClP WVB36TI6Vb4LGXZyV/u9QbXoNnHB7VAAzPNtA5LkuTX8X1rTF7J7cqCv2PIxY8uAt/pl lYew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si407015plr.186.2019.01.16.19.37.35; Wed, 16 Jan 2019 19:37:53 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388769AbfAPL6t (ORCPT + 99 others); Wed, 16 Jan 2019 06:58:49 -0500 Received: from terminus.zytor.com ([198.137.202.136]:52395 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732007AbfAPL6s (ORCPT ); Wed, 16 Jan 2019 06:58:48 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x0GBwZ3t252939 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 16 Jan 2019 03:58:35 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x0GBwZtH252936; Wed, 16 Jan 2019 03:58:35 -0800 Date: Wed, 16 Jan 2019 03:58:35 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Borislav Petkov Message-ID: Cc: hpa@zytor.com, mingo@kernel.org, bp@suse.de, x86@kernel.org, thomas.lendacky@amd.com, peterz@infradead.org, tglx@linutronix.de, luto@amacapital.net, linux-kernel@vger.kernel.org, jpoimboe@redhat.com Reply-To: linux-kernel@vger.kernel.org, luto@amacapital.net, jpoimboe@redhat.com, thomas.lendacky@amd.com, x86@kernel.org, bp@suse.de, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com In-Reply-To: <20181211222326.14581-3-bp@alien8.de> References: <20181211222326.14581-3-bp@alien8.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/alternatives] x86/alternatives: Print containing function Git-Commit-ID: c1d4e4192aa4e7408a81c32a77e7c867a07f8aa2 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_12_24 autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c1d4e4192aa4e7408a81c32a77e7c867a07f8aa2 Gitweb: https://git.kernel.org/tip/c1d4e4192aa4e7408a81c32a77e7c867a07f8aa2 Author: Borislav Petkov AuthorDate: Mon, 10 Dec 2018 12:30:30 +0100 Committer: Borislav Petkov CommitDate: Wed, 16 Jan 2019 12:41:57 +0100 x86/alternatives: Print containing function ... in the "debug-alternative" output so that one can find her way easier when staring at the vmlinux disassembly. For example: apply_alternatives: feat: 3*32+18, old: (read_tsc+0x0/0x10 (ffffffff8101d1c0) len: 5), repl: (ffffffff824e6d33, len: 5) ^^^^^^^^^^^^^^^^^ ffffffff8101d1c0: old_insn: 0f 31 90 90 90 ffffffff824e6d33: rpl_insn: 0f ae e8 0f 31 ffffffff8101d1c0: final_insn: 0f ae e8 0f 31 No functional changes. Signed-off-by: Borislav Petkov Cc: Andy Lutomirski Cc: "H. Peter Anvin" Cc: Josh Poimboeuf Cc: Peter Zijlstra Cc: Tom Lendacky Cc: X86 ML Link: https://lkml.kernel.org/r/20181211222326.14581-3-bp@alien8.de --- arch/x86/kernel/alternative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index ebeac487a20c..d458c7973c56 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -393,10 +393,10 @@ void __init_or_module noinline apply_alternatives(struct alt_instr *start, continue; } - DPRINTK("feat: %d*32+%d, old: (%px len: %d), repl: (%px, len: %d), pad: %d", + DPRINTK("feat: %d*32+%d, old: (%pS (%px) len: %d), repl: (%px, len: %d), pad: %d", a->cpuid >> 5, a->cpuid & 0x1f, - instr, a->instrlen, + instr, instr, a->instrlen, replacement, a->replacementlen, a->padlen); DUMP_BYTES(instr, a->instrlen, "%px: old_insn: ", instr);