From patchwork Thu Dec 10 18:58:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 58239 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp693796lbb; Thu, 10 Dec 2015 11:18:49 -0800 (PST) X-Received: by 10.98.89.136 with SMTP id k8mr9335499pfj.58.1449775129852; Thu, 10 Dec 2015 11:18:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q196si21969690pfq.192.2015.12.10.11.18.49; Thu, 10 Dec 2015 11:18:49 -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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbbLJTSs (ORCPT + 28 others); Thu, 10 Dec 2015 14:18:48 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:33008 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbbLJTSq (ORCPT ); Thu, 10 Dec 2015 14:18:46 -0500 Received: by pfnn128 with SMTP id n128so52509844pfn.0 for ; Thu, 10 Dec 2015 11:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=TYs/ZcVAhpWKg9wwwX1dvAMOMfD4KaJOF8fCa6hMpUo=; b=Y6iZhUf7Dobp68Bj2u1pj9Eqx6KMndGK1IaEDShrA8OwYhz5m7yEQIKGaRh2QjL/qd IuCd+5K+NyD/Iu1g5DkeyirTaHiy8rsnOCNbMi4/+2qem3ULjiC031ufUz9iIWw0hA/I hNtnF7E3zZCp4USseyWgmKHHKhx1YvTS4UBdGB9XRRBMJ1LHHCrO3TT4WP+JAKJmbvDK pe/Y9ssGh8IDkYG14GHuyTNXbfqOU36cJw2YwpVaTZlAbqxRVU/qUREOtW590z8dmzRw VijS3LhA9M5WXKnnXSl3qYjknsNKKu1ZmtQkaai4P2jioz8QM5QRpSlUwj4D/kOwjFdd FPgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TYs/ZcVAhpWKg9wwwX1dvAMOMfD4KaJOF8fCa6hMpUo=; b=axmyuiDNcrkBT4pGrK2K9HY185B7RKa45Q0yMBZD4NXhjowtzBu7B3dj9t6XT3J3Gh gdOAZ4f9S2bDUpE8Zzc7d0nroxwpNOG4WLWlLqA3PcwgpqetcgktxGkpiBn3K2aOWbwj ooPYm8bv9fG1z8RDIqY+zufaZoAVC+hBMaZ15Kl/5ohdXY+rlvb9ZC4EgNtb6PqpJRG3 dlWy8BOnk/it/ZGACXxYbW8kegORGXcnLve03RSRjFnNgQHYAkUVyfX3tWHVuPfj/abG wsbPHuOwypxgucV8g37jU/Il8fa56iZiXDP1UTu+O1Eg15pPR+0t/ff3p8GZyvdgl66R qKLQ== X-Gm-Message-State: ALoCoQm+1v+ii+dlTNJ+J21aC3ZZYMQJv/QqEfHpmfAkBTiL6f3kA64/J96J5tozZAEvkElZGkV+kwwL7lDMhyULe4Lu63GMGA== X-Received: by 10.98.79.202 with SMTP id f71mr9336524pfj.21.1449775125705; Thu, 10 Dec 2015 11:18:45 -0800 (PST) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id yn8sm20472879pac.32.2015.12.10.11.18.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Dec 2015 11:18:44 -0800 (PST) From: Yang Shi To: tglx@linutronix.de, bigeasy@linutronix.de, rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org Subject: [PATCH] rt: x86: extend signal send delay to 32 bit Date: Thu, 10 Dec 2015 10:58:51 -0800 Message-Id: <1449773931-7200-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When running some ptrace single step tests on x86-32 machine, the below problem is triggered: BUG: sleeping function called from invalid context at linux-rt/kernel/locking/rtmutex.c:917 in_atomic(): 1, irqs_disabled(): 0, pid: 1041, name: dummy2 INFO: lockdep is turned off. Preemption disabled at:[] do_debug+0x1f/0x1a0 CPU: 10 PID: 1041 Comm: dummy2 Tainted: G W 4.1.13-rt13 #1 Hardware name: Intel Corporation S5520HC/S5520HC, BIOS S5500.86B.01.10.0025.030220091519 03/02/2009 00000000 00000000 e1811e80 c1aa8306 00000000 e1811ea8 c1080517 c1d8b2e8 c100326f c100326f 00000411 e5b7d5b4 e1d521c4 00000005 e1811f74 e1811ec4 c1ab0eff e1d51cc0 e5b7d180 c1081403 e5b7d180 e5b7d180 e1811ee4 c1064b5a Call Trace: [] dump_stack+0x46/0x5c [] ___might_sleep+0x137/0x220 [] ? do_debug+0x1f/0x1a0 [] ? do_debug+0x1f/0x1a0 [] rt_spin_lock+0x1f/0x80 [] ? preempt_count_sub+0xb3/0x110 [] do_force_sig_info+0x2a/0xc0 [] force_sig_info+0xd/0x10 [] send_sigtrap+0x6f/0x80 [] do_debug+0x161/0x1a0 [] debug_stack_correct+0x2e/0x35 Signal send delay is just available for x86-64, x86-32 needs it too. Signed-off-by: Yang Shi --- arch/x86/include/asm/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.0.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/x86/include/asm/signal.h b/arch/x86/include/asm/signal.h index b1b08a2..0e7bfe9 100644 --- a/arch/x86/include/asm/signal.h +++ b/arch/x86/include/asm/signal.h @@ -32,7 +32,7 @@ typedef struct { * TIF_NOTIFY_RESUME and set up the signal to be sent on exit of the * trap. */ -#if defined(CONFIG_PREEMPT_RT_FULL) && defined(CONFIG_X86_64) +#if defined(CONFIG_PREEMPT_RT_FULL) #define ARCH_RT_DELAYS_SIGNAL_SEND #endif