Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp259107ybi; Fri, 31 May 2019 00:43:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyF5doNgaNUHnvbJ43VsEID7JU0c3wVbcCa5NJO9wRW8wuxwTHroTwvxnx1DcfzjwrkoFsa X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr7347251pjp.51.1559288621437; Fri, 31 May 2019 00:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559288621; cv=none; d=google.com; s=arc-20160816; b=AKTCHZcuVhX04e5UxIkOei6Xd46l2dMasQSBYbEp7W0zIZoOFr1FbqrYr6xGOb2tzx 1cV6Xd4/hVQhgISGXnWVPKsBdLr5QxSmQQDkFvO0peQGCU0bsNuLyLpVe5OJ9JzOA8Hq QpxnZdEyhqkr7XGesW1xAgj1IBr9Y9NM1Ef7qW1xT7wofgJD8nJB9OBfp9QghiS8/glu alchjbxZvvJUulNBKJwJKw9g3DmSkWwIFq42K3+ME3IiO9RrMSZXAdb3VMO6jaFW7OLn O99v3C64odreSixgTNp9hwp0edusv+Hd6lMLUZLcpuhezY26kgrqAK/DlZWMSHRpGwmy js9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Ete4wJgWopQrc/+xx1vd57YoKjwzMS0/XHq9zevW+Q0=; b=jk71KNxzdkQQgK0OTKgaMWGZ9t8PPcLyFKOCBae9DGpHAMmLFlh+emRIuOOXl14iy7 hWPSMSU5vCUMuw6chM81ElXTVyTb5DlESX5JK2WC1pf8s6bSjcGjJRIpN4fcsYaYEn38 7jesdjl9/b47+svZBftFt69EWDN4uT6z5dWvzOUTUBDyJGTzdsMS9daqUQgSy4PdGTMN Dp/CUuZa+xkYIGYUSdd5QTi6s1Xipmx3VUZ88BvZNfoEvd1hFkEB/kpArdgh7dSntHzL sQdlhEAsoLvrgnQa7iNuwIMhIGEj70k0+QhqNJ7lDmeNZteedmuPkcUgr5vMdEyWjRx0 VlJA== 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 bg17si4813218pjb.75.2019.05.31.00.43.24; Fri, 31 May 2019 00:43:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbfEaHmL (ORCPT + 99 others); Fri, 31 May 2019 03:42:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:41352 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726933AbfEaHmJ (ORCPT ); Fri, 31 May 2019 03:42:09 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C67C4ACC4; Fri, 31 May 2019 07:42:08 +0000 (UTC) From: Petr Mladek To: Jiri Kosina , Josh Poimboeuf , Miroslav Benes Cc: Joe Lawrence , Kamalesh Babulal , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 2/3] livepatch: Remove duplicate warning about missing reliable stacktrace support Date: Fri, 31 May 2019 09:41:46 +0200 Message-Id: <20190531074147.27616-3-pmladek@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190531074147.27616-1-pmladek@suse.com> References: <20190531074147.27616-1-pmladek@suse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON_ONCE() could not be called safely under rq lock because of console deadlock issues. It can be simply removed. A better descriptive message is written in klp_enable_patch() when klp_have_reliable_stack() fails. The remaining debug message is good enough. Signed-off-by: Petr Mladek --- kernel/livepatch/transition.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c index abb2a4a2cbb2..1bf362df76e1 100644 --- a/kernel/livepatch/transition.c +++ b/kernel/livepatch/transition.c @@ -247,7 +247,6 @@ static int klp_check_stack(struct task_struct *task, char *err_buf) int ret, nr_entries; ret = stack_trace_save_tsk_reliable(task, entries, ARRAY_SIZE(entries)); - WARN_ON_ONCE(ret == -ENOSYS); if (ret < 0) { snprintf(err_buf, STACK_ERR_BUF_SIZE, "%s: %s:%d has an unreliable stack\n", -- 2.16.4