Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26210066rwd; Mon, 3 Jul 2023 06:54:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJlNB1F1L1HvKzqmN92gfYZEEobpU8v6+1AjLk3pIPgFeq7/i00LpMSQDAJnNOqRqgNcoJ X-Received: by 2002:a05:6359:6797:b0:134:e4fe:e162 with SMTP id sq23-20020a056359679700b00134e4fee162mr5505765rwb.13.1688392453650; Mon, 03 Jul 2023 06:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392453; cv=none; d=google.com; s=arc-20160816; b=m2OVVp5UVhGqnMOvFq+fyUyRAMyip/fO3mEQievhYKKvfMQ49GzBisDlTRbKb1q6oA hN2+4Do9OnfHv9Bc4koU3RfxFJI4mW6GoX9FWNuwB3jZ2uUubHWugXVsCbGPwk6a26He i1y32S2TlHy1KUlc7HsDLIpFzmMflUWjrQRTLMEie/9b4x6ZFZzMn4tkA+3AYsmmmsQM St8ckAni4ND/bHsR3f553X+t2u9vx30v/8IB8ksaG5cwrnqAGWVlmq3I7jP6gdtMk4wd QnYCKXi+O1FBl3OsusZXNPS8EBVKw18Z37yB2xeTchj8T8Psfmjflzzs4NzRdEbM/f4r gFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DlczwcsSSdpU+HJmUf0HTqxfrXMP9LViTibSMDRvnfE=; fh=2lvNyxv2cZhH2tCLapvDkK/vUBxHE6BRe5adenSKvQI=; b=AM2cQTZbhjt0uJRdB2aX2FV2sJYvfI5NjuAkl5P5sjd3HNm579VTj4OO6rD7MMjTo6 m4PIq1yybA8JP2bXXm3pzg8BMveGegsGR12RrtAj+SGJiIE/gGvEp1ZE0Lp6YKvM8/Aw /3p/3dWpAMkTuliSI53EdgwFDAfKFTWjQr0OhW31uMs1sACbOf0NAPVsHhXIa7nSDiQi z+kzX0ho6e38J36gDUM06a1Gxtue3F7jAqFQjJENZtXzcFKAQTmOK70BQra9QqfrYAqp 3hJRGGefr3ns/5wgoGB2MKi0HyqZW0Hf7U0fOrL8T811qDWq3Dyx1zPTjghtaM+nwwvX fo5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a632a0c000000b00557523b8fa1si19046138pgq.880.2023.07.03.06.54.00; Mon, 03 Jul 2023 06:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbjGCNCK (ORCPT + 99 others); Mon, 3 Jul 2023 09:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbjGCNCH (ORCPT ); Mon, 3 Jul 2023 09:02:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7AA80CA for ; Mon, 3 Jul 2023 06:02:06 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C57542F4; Mon, 3 Jul 2023 06:02:48 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.27.109]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 86B5D3F73F; Mon, 3 Jul 2023 06:02:04 -0700 (PDT) Date: Mon, 3 Jul 2023 14:01:41 +0100 From: Mark Rutland To: Arnd Bergmann Cc: Naresh Kamboju , open list , lkft-triage@lists.linaro.org, Frederic Weisbecker , "Paul E. McKenney" , Anders Roxell , Dan Carpenter , Kees Cook Subject: Re: qemu-arm64: Unexpected kernel BRK exception at EL1 - WARNING: CPU: 3 PID: 0 at kernel/context_tracking.c:128 ct_kernel_exit.constprop Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 03, 2023 at 12:03:38PM +0200, Arnd Bergmann wrote: > On Mon, Jul 3, 2023, at 11:51, Mark Rutland wrote: > > On Mon, Jul 03, 2023 at 12:02:22PM +0530, Naresh Kamboju wrote: > >> On Sun, 2 Jul 2023 at 13:56, Arnd Bergmann wrote: > >> > On Sat, Jul 1, 2023, at 10:42, Naresh Kamboju wrote: > >> > > >> > >> Here is the build artifacts location with kselftest merge configs. > >> https://storage.tuxsuite.com/public/linaro/lkft/builds/2Rum1V78RQJMftEanwtN28dApDO/ > > > > In your .config here, I note you have: > > > > | CONFIG_UBSAN_TRAP=y > > > > Can you try this with CONFIG_UBSAN_TRAP=n ? > > > >> [ 56.150153] Modules linked in: crct10dif_ce sm3_ce sm3 sha3_ce > >> sha512_ce sha512_arm64 cfg80211 bluetooth rfkill sch_fq_codel fuse drm > >> [ 56.151781] CPU: 0 PID: 438 Comm: seccomp_bpf Not tainted 6.4.0 #1 > >> [ 56.152043] Hardware name: linux,dummy-virt (DT) > >> [ 56.152396] pstate: 41400005 (nZcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) > >> [ 56.152667] pc : alloc_pid+0x3b4/0x3c8 > >> [ 56.154243] lr : alloc_pid+0x140/0x3c8 > > > > Looking at objdump, that's: > > > > | ffff8000800d73b0 : > > | ... > > | ffff8000800d7764: d4207d00 brk #0x3e8 > > > > ... and addr2line fingers this as: > > > > | [mark@lakrids:~/tmp-naresh-kamboju]% usekorg 10.3.0 > > aarch64-linux-addr2line -ife vmlinux ffff8000800d7764 > > > > | alloc_pid > > | /builds/linux/kernel/pid.c:244 > > > > ... which appears to be: > > > > | 244 pid->numbers[i].nr = nr; > > > > Full objdump of the function below; as above I suspect this is UBSAN triggering > > a __builtin_trap() on an out-of-range access. > > It looks like a fix has already made it into mainline now, so it > should be fixed on the latest linux-next: > > https://lore.kernel.org/lkml/20230630180418.gonna.286-kees@kernel.org/ Thanks for the pointer! Mark.