From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D98911F8C8 for ; Mon, 30 Aug 2021 08:11:50 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 684BE385841C for ; Mon, 30 Aug 2021 08:11:48 +0000 (GMT) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by sourceware.org (Postfix) with ESMTPS id B2CDD3858417 for ; Mon, 30 Aug 2021 08:11:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B2CDD3858417 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=denx.de Received: from ktm (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D7C4583359; Mon, 30 Aug 2021 10:11:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630311086; bh=ZEJ83SC15vkbL7WSKoJ9HYXuAOo9slhkfYHqURDoI9U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QVA6bSAFkQe2trQHG/GAv/cIP7p2ZOTYqqZdwJK7IcMCvY4Zn++IZtAFtOFRjH4Y0 4ZR4xLi6s5WQj/M8uDAcwRv5/cBHSAI/ao6kchw61pJQ2d0xvSHtUbPf4emY5INlzy bWtn4v3u0nC4QNqteKsM1cB/wzUskVe8DRZex1ePlpmLNzSAvM0OfaZ4ZMb4Igo3l+ QNUbmb6IkeMCJURIyJ+JVUdU66aoCeHGlwoIBrSd/Kh9+kzNsOlb8RlHl1+87P9jy6 jGAZJQOPpMbpK6ks6NTgoC0/0FEvlEDKaNlP4rjdmTteh8zODrN8r5a4Lqnv91DMDb SrYUicSDJhG2Q== Date: Mon, 30 Aug 2021 10:11:09 +0200 From: Lukasz Majewski To: Joseph Myers Subject: Re: [PATCH] arm: Simplify elf_machine_{load_address,dynamic} Message-ID: <20210830101109.6a83e1dc@ktm> In-Reply-To: References: <20210818055556.2119205-1-maskray@google.com> Organization: denx.de X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/J6EXSf4kXqXOy1iSdrSHUY/"; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" --Sig_/J6EXSf4kXqXOy1iSdrSHUY/ Content-Type: multipart/mixed; boundary="MP_/q7/rzPfbnpSANVf9DB3DQ53" --MP_/q7/rzPfbnpSANVf9DB3DQ53 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Fangrui ,Joseph, > On Tue, 17 Aug 2021, Fangrui Song via Libc-alpha wrote: >=20 > > and drop reliance on _GLOBAL_OFFSET_TABLE_[0] being the link-time > > address of _DYNAMIC. &__ehdr_start is a better way to get the load > > address. =20 >=20 > OK. >=20 This commit causes very early OOPs on QEMU running kernel for ARM32 bit. I've found this issue when developing and testing glibc ptests with the newest glibc -master. I'm going to debug this issue and share more info. Reverting this patch (SHA1: bca0f5cbc9257c13322b99e55235c4f21ba0bd82) causes the kernel to boot again. The exact error is attached. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --MP_/q7/rzPfbnpSANVf9DB3DQ53 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=arm32_bit_bug.txt [ 3.972443] Run /sbin/init as init process = = = =20 [ 4.047873] Kernel panic - not syncing: Attempted to kill init! exitcode= =3D0x0000000b =20 [ 4.048465] CPU: 1 PID: 1 Comm: init Not tainted 5.1.21-y2038-4a9b1eb8bc= 3ba4ad8b3b1aa3317cf8d4a3aaad83 #1 = = =20 [ 4.048860] Hardware name: ARM-Versatile Express = = = =20 [ 4.049900] [<80110598>] (unwind_backtrace) from [<8010c1e4>] (show_stac= k+0x10/0x14) =20 [ 4.050165] [<8010c1e4>] (show_stack) from [<80712438>] (dump_stack+0x80= /0x94) [ 4.050337] [<80712438>] (dump_stack) from [<80120598>] (panic+0x10c/0x2= cc) =20 [ 4.050575] [<80120598>] (panic) from [<80124884>] (do_exit+0x9ec/0xa74)= =20 [ 4.050734] [<80124884>] (do_exit) from [<8012572c>] (do_group_exit+0x3c= /0xd0) [ 4.050903] [<8012572c>] (do_group_exit) from [<80131818>] (get_signal+0= x168/0x89c) = = =20 [ 4.051074] [<80131818>] (get_signal) from [<8010b7fc>] (do_work_pending= +0x114/0x584) [ 4.051250] [<8010b7fc>] (do_work_pending) from [<8010106c>] (slow_work_= pending+0xc/0x20) [ 4.051498] Exception stack(0xbf0b3fb0 to 0xbf0b3ff8) =20 [ 4.051743] 3fa0: b7fd2964 b7fd296c = b7fd28ec b7fd28e4 [ 4.052025] 3fc0: b7fd295c 76fd2000 76ffef84 7eb36ec0 6ffffeff 6fffff41 = b7fd2994 00000000 [ 4.052283] 3fe0: b7fd2994 7eb36eb8 00000028 76fd3360 80000030 ffffffff [ 4.052758] CPU0: stopping =20 [ 4.052850] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.1.21-y2038-4a9b1= eb8bc3ba4ad8b3b1aa3317cf8d4a3aaad83 #1 [ 4.053046] Hardware name: ARM-Versatile Express = =20 [ 4.053169] [<80110598>] (unwind_backtrace) from [<8010c1e4>] (show_stac= k+0x10/0x14) =20 [ 4.053337] [<8010c1e4>] (show_stack) from [<80712438>] (dump_stack+0x80= /0x94) =20 [ 4.053490] [<80712438>] (dump_stack) from [<8010f264>] (handle_IPI+0x33= 4/0x368) =20 [ 4.053656] [<8010f264>] (handle_IPI) from [<80448758>] (gic_handle_irq+= 0x8c/0x90) =20 [ 4.053817] [<80448758>] (gic_handle_irq) from [<80101a8c>] (__irq_svc+0= x6c/0x90) [ 4.053970] Exception stack(0x80b01f10 to 0x80b01f58) [ 4.054132] 1f00: 00000000 00000000 = 000047f8 801190c0 [ 4.054384] 1f20: 00000000 80b00000 00000000 00000000 80b08c30 80b08c6c = 80a69950 80b01f68 [ 4.054594] 1f40: 00000000 80b01f60 80108c20 80108c24 60000013 ffffffff [ 4.054760] [<80101a8c>] (__irq_svc) from [<80108c24>] (arch_cpu_idle+0x= 38/0x3c) [ 4.054922] [<80108c24>] (arch_cpu_idle) from [<801500c0>] (do_idle+0x21= 4/0x288) [ 4.055119] [<801500c0>] (do_idle) from [<801503dc>] (cpu_startup_entry+= 0x18/0x1c) [ 4.055343] [<801503dc>] (cpu_startup_entry) from [<80a00e64>] (start_ke= rnel+0x454/0x48c) [ 4.055971] ---[ end Kernel panic - not syncing: Attempted to kill init!= exitcode=3D0x0000000b ]--- --MP_/q7/rzPfbnpSANVf9DB3DQ53-- --Sig_/J6EXSf4kXqXOy1iSdrSHUY/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmEskp0ACgkQAR8vZIA0 zr2x0Qf/anqZ5TdLcDMb7rL3bAhKST4WtpUQjrMlyA75UcUFS03Aorkwk8WcA7b9 0h+98Tl8sM4OIvrGgB9k83LeHTMW5YQOcLJ5y/aUcpM1XjV/smV2mHnLtkAUoVIS 44RWDfypJqbIu2cr7FXU42n5UqiBCgbHJBPrKx5OUEuIkeqSgVjyrvnF+2Z9dqN/ CUVSAIeFtYUBtehqJjDUFUF3QnjxnTo2Flrsg/wEDpBbaYmufgEGpXqrV972XrK0 VDX9uypopzhCalIpGmK3PHTXTwgqOalXw7PgievI2b/5+H+tyXNfs+DlH/80mO2u 20fMrGJG3A5hNlh6zDhV4Bo2ycNgug== =0MFD -----END PGP SIGNATURE----- --Sig_/J6EXSf4kXqXOy1iSdrSHUY/--