Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2291481imm; Mon, 16 Jul 2018 05:43:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcgo3nBU8j2tYBjHg89NdNl1sBcXzC6+ugtRvmHvaujkAz3/t3dQ+hBl0k5afDFdlItpMLc X-Received: by 2002:a17:902:d218:: with SMTP id t24-v6mr16653802ply.63.1531744998683; Mon, 16 Jul 2018 05:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531744998; cv=none; d=google.com; s=arc-20160816; b=m7cZ4PfUrfkOkVrBqLHtCRM+EF/nQNtJdC//HaO1ggZUW8qNsxecPm5mAU4ewhtD5n jR0nHnOYSs59I7NF55IuaLJbCck/vpX14LA+kVGAgQ91+VnBVNjPCWJ2ODWKdE4qc+IQ RR8r/F8XnrD1EUqIozHMstDq5XFCBgn9sFjJfcXn7VA2IiXsBWYEDol7BRQCW77YjH1L 2CB+igWBjTMAltFmsGdKfAHK0UvXJIwj+QvcAegE5qmJuMg9+6+f011cZZ4oRjeZiC8R Ozzk/MStHrocslWe144AxGfhSePj8Dm1uwJrwO4K4xDZormiM7SC+aNydmLfgYWp+Y3S e/Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fjYBIOSDuOLS0PmG2s/adjpdQJEuWskgVNhXAd5Wr3M=; b=Fefe6SM/tXzoXHzCRe+ITNsj7JkVT2zKXtIuZCG+5BF3bJTC112y84jlCEkCJC4qbF HcczYpttdKX+hxGEfesYHWkk+gGKKb9nqNEGP0TrUtS/yWMV8+QKLY9BNPSshKk7ajpZ ZYxjxCAYBiGnyjbMpOdQje1bJNUcJ4A9BxGNxV3zqEyJy9vKgvCLFj665HhANjQodUN7 yfOpFOiiYqxcTPyHsMPhn88bVTt+2NPC+wumL4cSIARIeDzl3UAPGonG03N4FjYlhEqo sfbGxVllyMPpni+eHtiVBqqRLiPewzPApaovgERFSZ5b8I94nCmFcxwCUyj1F5QAlrnv 3qZA== 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 l5-v6si1636132pgh.451.2018.07.16.05.43.03; Mon, 16 Jul 2018 05:43:18 -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; 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 S1730890AbeGPNI5 (ORCPT + 99 others); Mon, 16 Jul 2018 09:08:57 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51854 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728524AbeGPNI5 (ORCPT ); Mon, 16 Jul 2018 09:08:57 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42B4877885; Mon, 16 Jul 2018 12:41:40 +0000 (UTC) Received: from treble (ovpn-122-49.rdu2.redhat.com [10.10.122.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F0F6F7C4D; Mon, 16 Jul 2018 12:41:39 +0000 (UTC) Date: Mon, 16 Jul 2018 07:41:38 -0500 From: Josh Poimboeuf To: Kamalesh Babulal Cc: Miroslav Benes , Jiri Kosina , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] livepatch: Remove reliable stacktrace check in klp_try_switch_task() Message-ID: <20180716124138.pyqbiviqoxcbs44g@treble> References: <1531382706-9732-1-git-send-email-kamalesh@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1531382706-9732-1-git-send-email-kamalesh@linux.vnet.ibm.com> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 16 Jul 2018 12:41:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 16 Jul 2018 12:41:40 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 01:35:06PM +0530, Kamalesh Babulal wrote: > Support for immediate flag was removed by commit d0807da78e11 > ("livepatch: Remove immediate feature"). We bail out during > patch registration for architectures, those don't support > reliable stack trace. Remove the check in klp_try_switch_task(), > as its not required. > > Signed-off-by: Kamalesh Babulal Acked-by: Josh Poimboeuf > --- > kernel/livepatch/transition.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c > index 7c6631e693bc..5bc349805e03 100644 > --- a/kernel/livepatch/transition.c > +++ b/kernel/livepatch/transition.c > @@ -310,13 +310,6 @@ static bool klp_try_switch_task(struct task_struct *task) > return true; > > /* > - * For arches which don't have reliable stack traces, we have to rely > - * on other methods (e.g., switching tasks at kernel exit). > - */ > - if (!klp_have_reliable_stack()) > - return false; > - > - /* > * Now try to check the stack for any to-be-patched or to-be-unpatched > * functions. If all goes well, switch the task to the target patch > * state. > -- > 2.7.4 > -- Josh