From patchwork Tue Oct 9 10:11:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunhui Li X-Patchwork-Id: 10632189 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5843D13AD for ; Tue, 9 Oct 2018 10:12:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37D6428B67 for ; Tue, 9 Oct 2018 10:12:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B88228C26; Tue, 9 Oct 2018 10:12:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E745D28C0A for ; Tue, 9 Oct 2018 10:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pWEYaysawao26bcZ2ts5g3IjrTEVowWI3YFt+KBChmA=; b=qtclVuy6L/nS2v 4ijG2CUX/v6zgiygEFHe8BsueotLQE7oHPnaY1SBF73aZJNL7XNM6J6msjr918CZufDFl4kRsXKxQ n6uraSaTpvS93qYHsf+MMlg9nugzhZFluSy0s0tO3TCfIJ2pI5shODGWtopEQZ3FWXpDhIfyzhskS Blq110jrPlTQYDQZsl0Ct+fFcKBPieJZHnuKNT0zmjlMb9PdD25LY4KVuJVZb9R3e6niv9GRkXMCf lrwdpeKbWjWLIosUW0hc60L+NlsZA+XnozLzHUj7AfAEduwCnMYLJI6T6YJYtdZJOF0GLZDnHUOFx +pT73W9/eo+6EQlwFBBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9ozh-0006uW-G5; Tue, 09 Oct 2018 10:12:01 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9ozc-0006gl-1R; Tue, 09 Oct 2018 10:11:57 +0000 X-UUID: 8c9b0da4c0474e18ad50e5d8a2ba710d-20181009 X-UUID: 8c9b0da4c0474e18ad50e5d8a2ba710d-20181009 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 760712076; Tue, 09 Oct 2018 18:11:07 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Oct 2018 18:11:06 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 9 Oct 2018 18:11:06 +0800 From: Chunhui Li To: Catalin Marinas , Will Deacon , Matthias Brugger Subject: [PATCH] kasan: avoid out-of-bounds in unwind_frame Date: Tue, 9 Oct 2018 18:11:03 +0800 Message-ID: <1539079863-19645-1-git-send-email-chunhui.li@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_031156_206952_45D260B3 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , wsd_upstream@mediatek.com, Ard Biesheuvel , Marc Zyngier , linux-kernel@vger.kernel.org, Masahiro Yamada , James Morse , "chunhui.li" , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: "chunhui.li" kasan detect unwind_frame out-of-bounds error when one task dump another, log as below BUG: KASAN: out-of-bounds in unwind_frame+0x140/0x20c Read of size 8 at addr ffffffea1e2378e0 by task AnrMonitorThrea/1111 avoid kasan out-of-bounds error by disable kasan for stacktrace.c Signed-off-by: chunhui.li --- arch/arm64/kernel/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile index 95ac737..606d0e2 100644 --- a/arch/arm64/kernel/Makefile +++ b/arch/arm64/kernel/Makefile @@ -57,6 +57,8 @@ arm64-obj-$(CONFIG_CRASH_DUMP) += crash_dump.o arm64-obj-$(CONFIG_ARM_SDE_INTERFACE) += sdei.o arm64-obj-$(CONFIG_ARM64_SSBD) += ssbd.o +KASAN_SANITIZE_stacktrace.o := n + obj-y += $(arm64-obj-y) vdso/ probes/ obj-m += $(arm64-obj-m) head-y := head.o