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 5F761C4332F for ; Fri, 10 Nov 2023 05:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:References: In-Reply-To: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=LA5A/3qE3QvMSmgVP5IFm/du/ssV5f3a1/ZYkU8zDyg=; b=rPlFjjJovu7GRw 8Rr5o/LzXxJQtzODLacyG/GbdQ8mQue9jRl2ERp9xMjT2AMMztY27pfrv0WsRfjle2oGFURwaL12m uDjfWkg1Sf/1v7pghn6iab2bmytP1W8AXLG4fRKkwEW6AoE+wHWvanpBWSvLSjGlW/UH+WKgD8Qkh lLTVQnS+Prvfao9ZWuQtXQsbFIrovXKB/XDfaYE8aLrScQ3FUg/usZZvVWhrJ6GJqYFT2LekmB0CT 045ZuyNA2zwUshIQRojfe9aBAbP7kwWWbRETC/M0WhjbV2Gm/Jg/rbpnwqUq6uSmF5xm9A792itIl bDhf0dHZHsX4H/oGgaFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1KKl-007ugy-02; Fri, 10 Nov 2023 05:45:35 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1KKh-007ufR-0d for linux-arm-kernel@lists.infradead.org; Fri, 10 Nov 2023 05:45:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 85F75CE1174; Fri, 10 Nov 2023 05:45:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91FFDC43397; Fri, 10 Nov 2023 05:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699595127; bh=nmolrdb//VGv32Rb9iWEJYtfWLsDlsHjutrwFtjka8g=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=eGvrQjY5SgxrkK1i6OXYJKzEXwHz8aaZMSoLbQu68zA3I5BB8rJzdHlOFEy4hRwwL KsGB+ETlTS0184mwDS+yoZ4wvMG2UlzZmCWWVf0k5f2k2+mqsiUpVFp2BiPaKpFuxd RBdI+SZ4Z6+q/LPAROtMeGzNqgPkSZvJ7PASrwpl4Kgjx7PcrdBjulZMQYkfBrQLzD Z1koPdlaz/0mwa3Y3DgCrf41/vZzlPguqmHU/8X4tNTl4w3VEMKRw50NVlmyTa87ZS vQXzkHlJMb1ZOXWQU+bH+WfUuWwymKOp6fp/XqOWNoVeiooWrGms4S+LazTSk3/hsv Tuo/DnINTtjAw== Date: Thu, 09 Nov 2023 21:45:26 -0800 From: Kees Cook To: Mark Brown , Naresh Kamboju , "Liam R. Howlett" CC: linux-mm , "open list:KERNEL SELFTEST FRAMEWORK" , Linux ARM , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Andrew Morton , Will Deacon , Catalin Marinas , Dan Carpenter , Eric Biederman , Kees Cook Subject: =?US-ASCII?Q?Re=3A_WARNING=3A_CPU=3A_6_PID=3A_474_at_in?= =?US-ASCII?Q?clude/linux/maple=5Ftree=2Eh=3A712_mmap=5F?= =?US-ASCII?Q?region_=28include/linux/maple=5Ftree=2Eh?= =?US-ASCII?Q?=3A556_include/linux/maple=5Ftree=2Eh=3A731?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231109_214531_572248_B5A509B1 X-CRM114-Status: GOOD ( 10.76 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On November 9, 2023 6:03:02 AM PST, Mark Brown wrote: >On Thu, Nov 09, 2023 at 06:57:08PM +0530, Naresh Kamboju wrote: >> Following kernel panic noticed while running selftests: exec: load_address >> on Fastmodels (FVP) running Linux next-20231109. >> > >Copying in Kees and Eric who maintain the exec API. I'm traveling tomorrow so I won't be able to investigate this for a couple days. A quick look makes it seem like this is only happening in -next? (This warning was recently added to __mas_set_range?) https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/include/linux/maple_tree.h?id=02eccbc51164b43c5dadc3e5b40922c757075e08 Adding Liam... -Kees > >> Reported-by: Linux Kernel Functional Testing >> >> log: >> --- >> >> # timeout set to 45 >> # selftests: exec: load_address_16777216 >> [ 238.405168] ------------[ cut here ]------------ >> [ 238.405244] WARNING: CPU: 6 PID: 474 at >> include/linux/maple_tree.h:712 mmap_region >> (include/linux/maple_tree.h:556 include/linux/maple_tree.h:731 >> include/linux/maple_tree.h:747 include/linux/mm.h:1033 mm/mmap.c:2828) >> [ 238.405432] Modules linked in: arm_spe_pmu crct10dif_ce >> panel_simple pl111_drm drm_dma_helper drm_kms_helper fuse drm >> backlight dm_mod ip_tables x_tables >> [ 238.405932] CPU: 6 PID: 474 Comm: load_address_16 Not tainted >> 6.6.0-next-20231109 #1 >> [ 238.406070] Hardware name: FVP Base RevC (DT) >> [ 238.406151] pstate: 123402009 (nzCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) >> [ 238.406294] pc : mmap_region (include/linux/maple_tree.h:556 >> include/linux/maple_tree.h:731 include/linux/maple_tree.h:747 >> include/linux/mm.h:1033 mm/mmap.c:2828) >> [ 238.406424] lr : mmap_region (mm/mmap.c:2836) >> [ 238.406554] sp : ffff8000819639b0 >> [ 238.406629] x29: ffff8000819639c0 x28: ffff000806f79000 x27: 0000000002002000 >> [ 238.406829] x26: ffff000806f798f0 x25: ffff000806f790b0 x24: 0000000000000006 >> [ 238.407029] x23: 0000000000000ffc x22: ffff000805d6e100 x21: ffff0008016adf00 >> [ 238.407229] x20: 0000000000100073 x19: 0000000001ffc000 x18: ffffffffffffffff >> [ 238.407425] x17: 0000000000000000 x16: ffffd7c64ceb7c10 x15: ffffffffffffffff >> [ 238.407627] x14: 0000000000000000 x13: 1fffe001002bc9a1 x12: ffff0008015e4d0c >> [ 238.407825] x11: ffff800081963a48 x10: ffff0008015e4d00 x9 : ffffd7c64b49c9f0 >> [ 238.408028] x8 : ffff800081963778 x7 : 0000000000000000 x6 : 0000000000000000 >> [ 238.408223] x5 : ffffd7c64e35f000 x4 : ffffd7c64e35f278 x3 : 0000000000000000 >> [ 238.408420] x2 : ffffd7c64e92fd78 x1 : 0000000002001fff x0 : 0000000000479fff >> [ 238.408618] Call trace: >> [ 238.408681] mmap_region (include/linux/maple_tree.h:556 >> include/linux/maple_tree.h:731 include/linux/maple_tree.h:747 >> include/linux/mm.h:1033 mm/mmap.c:2828) >> [ 238.408812] do_mmap (arch/arm64/include/asm/mman.h:18 >> include/linux/mman.h:147 mm/mmap.c:1274) >> [ 238.408940] vm_mmap_pgoff (mm/util.c:546) >> [ 238.409088] vm_mmap (mm/util.c:559) >> [ 238.409229] elf_load (fs/binfmt_elf.c:385 fs/binfmt_elf.c:408) >> [ 238.409337] load_elf_binary (fs/binfmt_elf.c:1134 (discriminator 1)) >> [ 238.409454] bprm_execve (fs/exec.c:1940) >> [ 238.409598] do_execveat_common.isra.0 (fs/exec.c:1938) >> [ 238.409757] __arm64_sys_execve (fs/exec.c:2106) >> [ 238.409910] invoke_syscall (arch/arm64/kernel/syscall.c:46 >> (discriminator 19)) >> [ 238.410058] el0_svc_common.constprop.0 (arch/arm64/kernel/syscall.c:136) >> [ 238.410218] do_el0_svc (arch/arm64/kernel/syscall.c:155) >> [ 238.410363] el0_svc (arch/arm64/include/asm/daifflags.h:75 >> arch/arm64/kernel/entry-common.c:677) >> [ 238.410508] el0t_64_sync_handler (arch/arm64/kernel/entry-common.c:697) >> [ 238.410623] el0t_64_sync (arch/arm64/kernel/entry.S:595) >> [ 238.410735] ---[ end trace 0000000000000000 ]--- >> >> >> Links: >> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231109/testrun/21009598/suite/log-parser-test/test/check-kernel-exception/log >> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231109/testrun/21009598/suite/log-parser-test/tests/ >> - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2Xv9wca3SPRN4lh73fIuUxVRNHI >> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2Xv9vEpjybxlDA4IvgDBm4bjzVT/ >> >> -- >> Linaro LKFT >> https://lkft.linaro.org -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel