unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: Joseph Myers <joseph@codesourcery.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] arm: Simplify elf_machine_{load_address,dynamic}
Date: Mon, 30 Aug 2021 10:11:09 +0200	[thread overview]
Message-ID: <20210830101109.6a83e1dc@ktm> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2108181728390.281516@digraph.polyomino.org.uk>


[-- Attachment #1.1: Type: text/plain, Size: 891 bytes --]

Hi Fangrui ,Joseph,

> On Tue, 17 Aug 2021, Fangrui Song via Libc-alpha wrote:
> 
> > 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.  
> 
> OK.
> 

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

[-- Attachment #1.2: arm32_bit_bug.txt --]
[-- Type: text/plain, Size: 3628 bytes --]

[    3.972443] Run /sbin/init as init process                                                                                                                                                                                                  
[    4.047873] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b       
[    4.048465] CPU: 1 PID: 1 Comm: init Not tainted 5.1.21-y2038-4a9b1eb8bc3ba4ad8b3b1aa3317cf8d4a3aaad83 #1                                                                                                                                   
[    4.048860] Hardware name: ARM-Versatile Express                                                                                                                                                                                            
[    4.049900] [<80110598>] (unwind_backtrace) from [<8010c1e4>] (show_stack+0x10/0x14)                          
[    4.050165] [<8010c1e4>] (show_stack) from [<80712438>] (dump_stack+0x80/0x94)
[    4.050337] [<80712438>] (dump_stack) from [<80120598>] (panic+0x10c/0x2cc)       
[    4.050575] [<80120598>] (panic) from [<80124884>] (do_exit+0x9ec/0xa74)          
[    4.050734] [<80124884>] (do_exit) from [<8012572c>] (do_group_exit+0x3c/0xd0)
[    4.050903] [<8012572c>] (do_group_exit) from [<80131818>] (get_signal+0x168/0x89c)                                                                                                                                                        
[    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)                
[    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                                      
[    4.052850] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.1.21-y2038-4a9b1eb8bc3ba4ad8b3b1aa3317cf8d4a3aaad83 #1
[    4.053046] Hardware name: ARM-Versatile Express                                                          
[    4.053169] [<80110598>] (unwind_backtrace) from [<8010c1e4>] (show_stack+0x10/0x14)          
[    4.053337] [<8010c1e4>] (show_stack) from [<80712438>] (dump_stack+0x80/0x94)                      
[    4.053490] [<80712438>] (dump_stack) from [<8010f264>] (handle_IPI+0x334/0x368)                           
[    4.053656] [<8010f264>] (handle_IPI) from [<80448758>] (gic_handle_irq+0x8c/0x90)                                  
[    4.053817] [<80448758>] (gic_handle_irq) from [<80101a8c>] (__irq_svc+0x6c/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+0x38/0x3c)
[    4.054922] [<80108c24>] (arch_cpu_idle) from [<801500c0>] (do_idle+0x214/0x288)
[    4.055119] [<801500c0>] (do_idle) from [<801503dc>] (cpu_startup_entry+0x18/0x1c)
[    4.055343] [<801503dc>] (cpu_startup_entry) from [<80a00e64>] (start_kernel+0x454/0x48c)
[    4.055971] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2021-08-30  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18  5:55 [PATCH] arm: Simplify elf_machine_{load_address,dynamic} Fangrui Song via Libc-alpha
2021-08-18 17:32 ` Joseph Myers
2021-08-30  8:11   ` Lukasz Majewski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210830101109.6a83e1dc@ktm \
    --to=lukma@denx.de \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).