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>] [day] [month] [year] [list]
Date:   Wed, 31 Aug 2022 19:09:47 +0800
From:   Xi Ruoyao <xry111@...111.site>
To:     李宇鹏 <liyupeng@...los.com>
Cc:     chenhuacai <chenhuacai@...nel.org>, kernel <kernel@...0n.name>,
        "jiaxun.yang" <jiaxun.yang@...goat.com>,
        loongarch <loongarch@...ts.linux.dev>,
        linux-kernel <linux-kernel@...r.kernel.org>,
        caizp2008 <caizp2008@....com>
Subject: Re: [PATCH 1/1] LoongArch: Fixed loongarch kernel csr_xxx implicit
 declaration.

On Wed, 2022-08-31 at 15:54 +0800, 李宇鹏 wrote:
> 
> thank you for your reply。
> I used the latest gcc tool on the official website of loongson,gcc-
> 8.3.0.
> http://www.loongnix.cn/zh/toolchain/GNU/

Vanilla kernel cannot work with Loongnix:

1. In Loongnix, GRUB loads pass the essential information to the kernel
following "Loongson Firmware-Kernel Interface Specification".  Vanilla
kernel does not support it and will never support it.
2. In Loongnix, the syscall numbers are different and the layout of some
data structures used in kernel UAPI is different.  Any Loongnix
application invoking a syscall will likely blow up immediately on a
vanilla kernel.

These two problems are very difficult.  There is some plan to insert
compatibility layers to work around them, but not even one line of code
has been written AFAIK.

So if you want to build a kernel for Loongnix, don't use the vanilla
kernel.  If you just want to build a vanilla kernel with a pre-built
cross toolchain, use the toolchain from
https://kernel.org/pub/tools/crosstool/.
-- 
Xi Ruoyao <xry111@...111.site>
School of Aerospace Science and Technology, Xidian University

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ