From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C336CFB44F for ; Mon, 7 Oct 2024 17:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e0zWvVAwuNjFVyvqZcLjrFil652es6+3ZXlaMDiTv9Y=; b=GhbwPwuKq/kA4dXbzA4v9dNhYW RYjBez78LPutVa9k3nXp/jpnhF3ffLgMdz0l9RMN56fGBSC1+1nWmicSyIDolnQ/JNPK6U2LbvIj5 5CRWpjGLILCieqP3nR3a4AFEb8PgiDIz9/Vt0w3skftsfZiWgOTad4yuKqY0WluwQt+euysRHPJX5 sGJOquefu4g2Kc7VcJ4fzwQl1v9drqCqHKhZusF0D6Xs3MLB9o1rn7eBtzTfQwYKUnUb0J+y+L2fa wRh4g87wDdpTXLlbpQWH56cTVB7vhRnsPVkTt9e9m+8k8wXDTtGlEz/guGRXJxjAKvn8QpI5TPl/m epqsdZfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxrhy-00000003MGR-2Fx8; Mon, 07 Oct 2024 17:39:46 +0000 Received: from m16.mail.163.com ([220.197.31.4]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxrgg-00000003M5Y-0osb for linux-arm-kernel@lists.infradead.org; Mon, 07 Oct 2024 17:38:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version: Content-Type; bh=e0zWvVAwuNjFVyvqZcLjrFil652es6+3ZXlaMDiTv9Y=; b=j7tcN/R24zRx6XS8AZidhSws4nde4t98wWW9XX4xKYyEaudIM1hwKRYPXyT5FD PH4Pv/uWHD+fYPfls6lIAkcT2c42BbHgD9TnWLlwfim6nfKd9wNUbUtXlpZEuZTY UiT3DKskIEAJ75HvGvdtUmjoCc55EB6SAFT1pWtc39R9A= Received: from localhost (unknown [223.104.83.8]) by gzsmtp4 (Coremail) with SMTP id sygvCgCXrl5mHARnIWhxAw--.4001S3; Tue, 08 Oct 2024 01:37:42 +0800 (CST) Date: Tue, 8 Oct 2024 01:37:42 +0800 From: Melon Liu To: Linus Walleij Cc: linux@armlinux.org.uk, lecopzer.chen@mediatek.com, linux-arm-kernel@lists.infradead.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] ARM/mm: Fix stack recursion caused by KASAN Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-CM-TRANSID: sygvCgCXrl5mHARnIWhxAw--.4001S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrtry5ArW3Cw43WFyftF47Jwb_yoWkWrc_ua 9Y9F17C345J3W7GwsYkFs3Zr4q9rn5K345GayDt39agFn7t39rCFs5AFZayws5WF45ur95 ZFs2qa4xtw1qgjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjuOJ7UUUUU== X-Originating-IP: [223.104.83.8] X-CM-SenderInfo: ppho00irttkqqrwthudrp/1tbiNgJxIWcEDJjSDgAAsP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241007_103826_607325_A8BC8A73 X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 07, 2024 at 12:25:38PM +0200, Linus Walleij wrote: > On Mon, Oct 7, 2024 at 7:25 AM Melon Liu wrote: > > > When accessing the KASAN shadow area corresponding to the task stack > > which is in vmalloc space, the stack recursion would occur if the area`s > > page tables are unpopulated. > > > > Calltrace: > > ... > > __dabt_svc+0x4c/0x80 > > __asan_load4+0x30/0x88 > > do_translation_fault+0x2c/0x110 > > do_DataAbort+0x4c/0xec > > __dabt_svc+0x4c/0x80 > > __asan_load4+0x30/0x88 > > do_translation_fault+0x2c/0x110 > > do_DataAbort+0x4c/0xec > > __dabt_svc+0x4c/0x80 > > sched_setscheduler_nocheck+0x60/0x158 > > kthread+0xec/0x198 > > ret_from_fork+0x14/0x28 > > > > Fixes: 565cbaad83d ("ARM: 9202/1: kasan: support CONFIG_KASAN_VMALLOC") > > Cc: > > Signed-off-by: Melon Liu > > Patch looks correct to me: > Reviewed-by: Linus Walleij > > Can you put the patch into Russell's patch tracker after some > time for review, if no issues are found, please? Ok. Thanks! > > Yours, > Linus Walleij