Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4827679ybl; Wed, 22 Jan 2020 05:29:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxc/gOakU7TErG36kkxd5GjgaQdkQLv2BolmH3Xxt6eq1nrV98jfUsopGPKl6l872FCVlKA X-Received: by 2002:aca:4c07:: with SMTP id z7mr6843553oia.74.1579699787548; Wed, 22 Jan 2020 05:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699787; cv=none; d=google.com; s=arc-20160816; b=gTzEguot5JJqV+5McvOQgHC2aK3KmJ77xL5/VhNPcbp9TuT4KVO3vk8ndmShqInP7K bY5lOQ7c9p+vqDigjN6fo4w5FrPdrdYcrKFY8JCGXln2h50Gc9H9ePw7lp63ho5DMBM0 dOF13S7uG3v/8Elsb5StN7OoTvGqD6y9thjxmM3KtUPtQopGOdP94BYsfOebcMkUO9Ac sRSgc4Z6MUn+tosWrMrM6R2HWl8wSS1s/x8X/XPMO7JTJt/lZ6oI402s/YDAyrlVDZ4S 2ZFklxKDS/qpmgvqweqwaOwlRVenxAuD9yei6xQrBtoQ4eEZS5/kZUhSVrITgO2gEiFK hJYw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jdPbSlDF8ssPUTapC92d/tbidrQIQ2wlKt3EXj/Qa8g=; b=g6bLYCjHmFFBYwzt755qvE07O9EVELrzB5QpFX4LUvBcIhOoxA7yx9WF1YeNkndOrd 6zKbH5gfsO2vIhEo1g87YjuH0KKvZ9JAl43cnTbz8SXKhE3O9cVMctOoTpFZUqcX1hH/ EKLLbqedkYCjVO+Jh+SMV7PsJd6lTZSWxo5yeRsvxuPPIAza0SAsWycybCMdCsozZRf7 nHjWX2BynS9BL7na5TglkEJEMI0XNOdZbFgdDgIZhWIhzs1wrfibKTmaMkWa6Mf3uUli xxxVBNq4kMbB+3mueehzljA2HsL7rasLVGPEoFv2sI9k4431y4mjnSGSEEL7mM8obF69 Cu0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rPzjafmd; 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 z22si9939400otq.94.2020.01.22.05.29.35; Wed, 22 Jan 2020 05:29:47 -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; dkim=pass header.i=@kernel.org header.s=default header.b=rPzjafmd; 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 S1730228AbgAVN2o (ORCPT + 99 others); Wed, 22 Jan 2020 08:28:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:51084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731597AbgAVN2k (ORCPT ); Wed, 22 Jan 2020 08:28:40 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF65820678; Wed, 22 Jan 2020 13:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699719; bh=5FSKRFfW6wddOTy4Vlusz6443sxjlfwb3l7KRaDwDng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rPzjafmdp+fA/N0eVzY5xeLB14rlqc9bMGrINDkVAkXXWFehIX5xHzdgPmMjcIyJh 3yBH3SajcVkC5EOMRTVNrFJpUJ8luBKMuVT0Je3AHzGNZvlBl0ehwc7fcT0l3Zx0W5 F8bn+/l7a3uGBBGZREQnYrywi1jIZHw9LJdcmdBk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Richard Weinberger Subject: [PATCH 5.4 196/222] um: Dont trace irqflags during shutdown Date: Wed, 22 Jan 2020 10:29:42 +0100 Message-Id: <20200122092847.746688593@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit 5c1f33e2a03c0b8710b5d910a46f1e1fb0607679 upstream. In the main() code, we eventually enable signals just before exec() or exit(), in order to to not have signals pending and delivered *after* the exec(). I've observed SIGSEGV loops at this point, and the reason seems to be the irqflags tracing; this makes sense as the kernel is no longer really functional at this point. Since there's really no reason to use unblock_signals_trace() here (I had just done a global search & replace), use the plain unblock_signals() in this case to avoid going into the no longer functional kernel. Fixes: 0dafcbe128d2 ("um: Implement TRACE_IRQFLAGS_SUPPORT") Signed-off-by: Johannes Berg Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/um/os-Linux/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c @@ -170,7 +170,7 @@ int __init main(int argc, char **argv, c * that they won't be delivered after the exec, when * they are definitely not expected. */ - unblock_signals_trace(); + unblock_signals(); os_info("\n"); /* Reboot */