Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp162img; Wed, 27 Feb 2019 15:21:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYW/YViEptbiGko3zaSiJUY2LV6qolfkdzMxPTo97DPUCpx6/IoouGrnxGRJ09u2myUp0DY X-Received: by 2002:aa7:90c1:: with SMTP id k1mr4226837pfk.202.1551309695007; Wed, 27 Feb 2019 15:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551309694; cv=none; d=google.com; s=arc-20160816; b=mgBTYo7QnCH8uAKVOq7iG60DuhDBzhICsE90rF0U7w9smoaaT4XzeYRXTYiwtuKbBO xQ0FllrPsQGEpXNANWBkbWpcjXj38EOrTFNx+N9c+YlvuG+Kmo+uBLJby8MjsVNJ572i ahALxVOt2qDpa1TEuJ9S8LD76sRhfCLoHJunXnAVI+RdICARvNFZCWQ2p8+rZR98Kx+5 vdVE0l5jORJtZTcdqSqQAk4Krg3AgRfAOEimXHQVy46lqMi3ZqBUmBDhL0uhDiUZMVL3 BLiMstbB6zO4AGOcdfUTLsjryWowMUPbtRqQBUy/cQKLCovzj///e3BxYZ3V9L2IrpKA jwPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=tgTm+VkIpPKCi8TlBXJyoPz8eRJuMqPUbXgn5MuZcw4=; b=WpNDydZLZj3R+OGZe+x7I67Z27ZAVVo+LpyPV8KSEZC3qZpfK3mBwuLeGjGXPJlcd9 McUUDk6dzSvdKv6K/bJwy4csv68nbaMLfCC2Z8FVwvW6L9BlmCP17WQxYTGvNpNzjz0J iStY9BonTHB175RS9RPVcRLCBXPkMI4iKnx25hczYIhhF3K/cXSI+xCIkn07Uk3ZJdVT FMYGTJBZ2cnqHZB1FbUDkqyFRj4lA++touXwiS1nVKGQEymlhhABSgwTKUev5u1He8U9 Wetn2T2XqLIVCyrRebrxrtDDdV4H+7iSpBoFWpN764Fxmcy+0/x6XSEOSD4uhk3xiD2r GfPg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si16179697plr.419.2019.02.27.15.21.17; Wed, 27 Feb 2019 15:21:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730341AbfB0XUR (ORCPT + 99 others); Wed, 27 Feb 2019 18:20:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36064 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0XUQ (ORCPT ); Wed, 27 Feb 2019 18:20:16 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 75E4D30BADAC; Wed, 27 Feb 2019 23:20:16 +0000 (UTC) Received: from [10.10.121.150] (ovpn-121-150.rdu2.redhat.com [10.10.121.150]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AD8C4610A3; Wed, 27 Feb 2019 23:20:15 +0000 (UTC) Subject: Re: [PATCH] x86/stacktrace: export save_stack_trace_tsk_reliable From: Joe Lawrence To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, x86@kernel.org, Jiri Slaby , Josh Poimboeuf References: <20190227211748.9545-1-joe.lawrence@redhat.com> <07491738-dfdb-deb4-7e25-f1c173dda773@redhat.com> Message-ID: <873cd5ca-1f88-499e-e8ed-9a93f42d8239@redhat.com> Date: Wed, 27 Feb 2019 18:20:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <07491738-dfdb-deb4-7e25-f1c173dda773@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 27 Feb 2019 23:20:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/27/19 5:25 PM, Joe Lawrence wrote: > On 2/27/19 4:31 PM, Thomas Gleixner wrote: >> On Wed, 27 Feb 2019, Joe Lawrence wrote: >> >>> The ppc64le implementation of save_stack_trace_tsk_reliable() is >>> exported, so do the same with x86. >> >> And what's the in tree module user of this? I can't find one and just >> because PPC has an export with no user is not a convincing argument to add >> another one. The proper solution is to remove the unused PPC export. >> > > Good point. > > For that matter, I do see in-tree modules making use of > save_stack_trace, but who is calling save_stack_trace_tsk (exported by > most arches) and save_stack_trace_regs (exported by openrisc, powerpc, > s390)? Well, at least for save_stack_trace_tsk there is the out-of-tree kpatch core module[1]. (Kpatch drops that call if the kernel provides livepatch functionality.) [1] https://github.com/dynup/kpatch/blob/master/kmod/core/core.c#L275 -- Joe