Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbbGOQgq (ORCPT ); Wed, 15 Jul 2015 12:36:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54285 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbbGOQgp (ORCPT ); Wed, 15 Jul 2015 12:36:45 -0400 From: Levente Kurusa To: Russell King Cc: ARM PORT , LKML , Levente Kurusa Subject: [PATCH] arm: fault.c: fix unhandled page fault message Date: Wed, 15 Jul 2015 17:30:50 +0200 Message-Id: <1436974250-4999-1-git-send-email-lkurusa@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1197 Lines: 33 Even if the signal was handled using signal(2) the message would be printed. Fix that by checking whether the signal is handled. Signed-off-by: Levente Kurusa --- arch/arm/mm/fault.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index 0d629b8..bbf5d73 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -164,8 +164,9 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr, struct siginfo si; #ifdef CONFIG_DEBUG_USER - if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || - ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { + if ((((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || + ((user_debug & UDBG_BUS) && (sig == SIGBUS))) && + unhandled_signal(tsk, sig)) { printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n", tsk->comm, sig, addr, fsr); show_pte(tsk->mm, addr); -- 2.4.3 -- 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/