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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1FAFC636CC for ; Wed, 15 Feb 2023 11:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233804AbjBOLwY (ORCPT ); Wed, 15 Feb 2023 06:52:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233838AbjBOLwV (ORCPT ); Wed, 15 Feb 2023 06:52:21 -0500 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF52C23659 for ; Wed, 15 Feb 2023 03:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1676461935; bh=Sk/Bg/0AfjKLFwi3dSCYsVcH9mEMa2atHropqO8Z7ps=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=JQYVPOTSZGv/vrzXksNZLuN69G27GDcBZyyP56ZCfBUN4ki0xhprUoWUPk9dJwUPZ +LowQDcEgrtOOri7IEWndC57kAjkyPBkc5ixrD2EzisgwkFNPaVERUyA5Iih7WpLAs 4Or2SEc4n5j6ChE5RQ9dgnoLIWEWmQZSKFcf8jIw= Received: from [IPv6:240e:358:111b:f00:dc73:854d:832e:3] (unknown [IPv6:240e:358:111b:f00:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 20BFA6681E; Wed, 15 Feb 2023 06:52:10 -0500 (EST) Message-ID: Subject: Re: "kernel ade access" oops on LoongArch From: Xi Ruoyao To: Youling Tang Cc: Jinyang He , loongarch@lists.linux.dev, Huacai Chen , WANG Xuerui , linux-kernel@vger.kernel.org Date: Wed, 15 Feb 2023 19:52:04 +0800 In-Reply-To: <21b0e60dac8bedf9e389645ec103aa4241b35f8d.camel@xry111.site> References: <1e6f4d35946e4e2e7c7f5dcc7b69d5e609de8184.camel@xry111.site> <2e902dfa-cb84-7ef0-6b50-02b16354a139@loongson.cn> <511d385675ea7a846ff791974c6ae7feeeec2589.camel@xry111.site> <9a70e89c-0f3b-0660-501e-3292e410cfd8@loongson.cn> <5403e5eb-5792-7d6f-df74-ca3fab82ecd5@loongson.cn> <818419c03037bda833a5b281588a4b331c34ae8c.camel@xry111.site> <74fb1e24-36c0-c642-5bab-3646ba7790df@loongson.cn> <21b0e60dac8bedf9e389645ec103aa4241b35f8d.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2023-02-15 at 16:35 +0800, Xi Ruoyao wrote: > On Wed, 2023-02-15 at 16:25 +0800, Youling Tang wrote: > > Can you modify the kernel as follows and test it, so as to avoid > > possible relationship with the exception table data link position and > > alignment rules (or use EXCEPTION_TABLE(12))? > >=20 > > --- a/arch/loongarch/kernel/vmlinux.lds.S > > +++ b/arch/loongarch/kernel/vmlinux.lds.S > > @@ -4,7 +4,6 @@ > > =C2=A0 #include > >=20 > > =C2=A0 #define PAGE_SIZE _PAGE_SIZE > > -#define RO_EXCEPTION_TABLE_ALIGN=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4 > >=20 > > =C2=A0 /* > > =C2=A0=C2=A0 * Put .bss..swapper_pg_dir as the first thing in .bss. Thi= s will > > @@ -54,6 +53,8 @@ SECTIONS > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . =3D ALIGN(PECOFF_SEG= MENT_ALIGN); > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 _etext =3D .; > >=20 > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 EXCEPTION_TABLE(16) > > + >=20 > It seems the kernel refuses to boot after the change, but I'm not > completely sure: I'm 5 km away from the board and operating it via ssh > so maybe it's a reboot failure or network failure.=C2=A0 I'll report agai= n in > the evening. It was a reboot failure. Now it has booted successfully, but the stack trace still shows (during the 25th run of the make test t=3D... command). --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University