NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/58366: KASLR broken



The following reply was made to PR port-amd64/58366; it has been noted by GNATS.

From: Harold Gutch <logix%foobar.franken.de@localhost>
To: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, port-amd64-maintainer%NetBSD.org@localhost,
        gnats-admin%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
Subject: Re: port-amd64/58366: KASLR broken
Date: Tue, 25 Jun 2024 18:07:44 +0200

 On Tue, Jun 25, 2024 at 01:36:07PM +0000, Taylor R Campbell wrote:
 > Can you please try the attached patch?
 
 Thanks, that gets past prekern but then panics:
 
 [   1.4884345] trap type 4 code 0 rip 0xffffffffacefd336 cs 0x8 rflags 0x246 cr2 0 ilevel 0x6 rsp 0xffffffffe9e85a80
 [   1.5005255] curlwp 0xffffffffa0be8480 pid 0.0 lowest kstack 0xffffffffe9e812c0
 kernel: protection fault trap, code=0
 Stopped in pid 0.0 (system) at  netbsd:aes_sse2_selftest+0xb9:  ???
 aes_sse2_selftest() at netbsd:aes_sse2_selftest+0xb9
 aes_sse2_probe() at netbsd:aes_sse2_probe+0x14
 aes_selftest() at netbsd:aes_selftest+0x26
 aes_modcmd() at netbsd:aes_modcmd+0xf7
 module_do_builtin() at netbsd:module_do_builtin+0x17d
 module_do_builtin() at netbsd:module_do_builtin+0x132
 module_init_class() at netbsd:module_init_class+0x1cf
 main() at netbsd:main+0x4fc
 start_prekern() at netbsd:start_prekern+0xf5
 ?() at 100641
 ds          0
 es          1
 fs          8
 gs          c20f
 rdi         0
 rsi         2
 rbp         ffffffffe9e85ac0
 rbx         ffffffffb62f6c14
 rdx         0
 rcx         0
 rax         0
 r8          0
 r9          ffffffffe9e85af0
 r10         0
 r11         0
 r12         ffffffff00000000
 r13         0
 r14         3c
 r15         0
 rip         ffffffffacefd336    aes_sse2_selftest+0xb9
 cs          8
 rflags      246
 rsp         ffffffffe9e85a80
 ss          10
 netbsd:aes_sse2_selftest+0xb9:  ???
 db{0}> 
 
 
 This is with a ~10 day old current tree, installed with sysinst where
 I picked the GENERIC_KASLR kernel.  A "standard" install with GENERIC
 succeeds.
 
 
   Harold
 


Home | Main Index | Thread Index | Old Index