lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <74fb1e24-36c0-c642-5bab-3646ba7790df@loongson.cn>
Date:   Wed, 15 Feb 2023 16:25:54 +0800
From:   Youling Tang <tangyouling@...ngson.cn>
To:     Xi Ruoyao <xry111@...111.site>
Cc:     Jinyang He <hejinyang@...ngson.cn>, loongarch@...ts.linux.dev,
        Huacai Chen <chenhuacai@...nel.org>,
        WANG Xuerui <kernel@...0n.name>, linux-kernel@...r.kernel.org
Subject: Re: "kernel ade access" oops on LoongArch



On 02/15/2023 04:07 PM, Xi Ruoyao wrote:
> On Wed, 2023-02-15 at 15:51 +0800, Jinyang He wrote:
>
>>> There was a build error in make check, so only tst-mallocfork3-
>>> malloc-check was tested separately.
>>>
>>> # make test t=malloc/tst-mallocfork3-malloc-check
>>> make[2]: 离开目录“/home/loongson/glibc/malloc”
>>> PASS: malloc/tst-mallocfork3-malloc-check
>>> original exit status 0
>>> info: signals received during fork: 301
>>> info: signals received during free: 1693
>>> info: signals received during malloc: 119
>>> make[1]: 离开目录“/home/loongson/glibc”
>>>
>>> A total of five tests are PASS, and the serial port does not display
>>> CallTrace.
>>>
>>> Youling.
>>>
>> I had test it by using the cmd "while true..." Ruoyao gave on
>>
>> Loongson-3A5000, CLFS 7.1, 6.2-rc8 kernel with those patches and
>>
>> 6.2-rc7 kernel form loongson-next. No calltrace displayed, either.
>
> Hmm... I've read the code for a while and I couldn't see how it could
> end up accessing a bad address too.  Maybe my hardware or compiler is
> really faulty?

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))?

--- a/arch/loongarch/kernel/vmlinux.lds.S
+++ b/arch/loongarch/kernel/vmlinux.lds.S
@@ -4,7 +4,6 @@
  #include <asm/thread_info.h>

  #define PAGE_SIZE _PAGE_SIZE
-#define RO_EXCEPTION_TABLE_ALIGN       4

  /*
   * Put .bss..swapper_pg_dir as the first thing in .bss. This will
@@ -54,6 +53,8 @@ SECTIONS
         . = ALIGN(PECOFF_SEGMENT_ALIGN);
         _etext = .;

+       EXCEPTION_TABLE(16)
+

Youling.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ