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
| ||
|
Date: Fri, 16 Oct 2020 11:24:16 -0700 From: Atish Patra <atishp@...shpatra.org> To: Jim Wilson <jimw@...ive.com> Cc: Greentime Hu <greentime.hu@...ive.com>, Kito Cheng <kito.cheng@...il.com>, Palmer Dabbelt <palmer@...belt.com>, Atish Patra <atish.patra@....com>, Albert Ou <aou@...s.berkeley.edu>, Kees Cook <keescook@...omium.org>, Anup Patel <anup@...infault.org>, Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, linux-riscv <linux-riscv@...ts.infradead.org>, Guo Ren <guoren@...ux.alibaba.com>, Zong Li <zong.li@...ive.com>, Paul Walmsley <paul.walmsley@...ive.com>, Andrew Morton <akpm@...ux-foundation.org>, Borislav Petkov <bp@...e.de>, Michel Lespinasse <walken@...gle.com>, Ard Biesheuvel <ardb@...nel.org> Subject: Re: [PATCH 4/5] RISC-V: Protect .init.text & .init.data On Tue, Oct 13, 2020 at 10:24 PM Atish Patra <atishp@...shpatra.org> wrote: > > On Tue, Oct 13, 2020 at 6:21 PM Jim Wilson <jimw@...ive.com> wrote: > > > > On Tue, Oct 13, 2020 at 3:25 PM Atish Patra <atishp@...shpatra.org> wrote: > > > This happens only when copy_from_user is called from function that is > > > annotated with __init. > > > Adding Kito & Jim for their input > > > > > > @kito, @Jim: Please let me know if I should create a issue in > > > riscv-gnu-toolchain repo or somewhere else. > > > > I can't do anything useful without a testcase that I can use to > > reproduce the problem. The interactions here are complex, so pointing > > at lines of code or kernel config options doesn't give me any useful > > info. > > > > Relaxation can convert calls to a jal. I don't know of any open bugs > > in this area that can generate relocation errors. if it is a > > relaxation error then turning off relaxation should work around the > > problem as you suggested. > > > > A kernel build problem is serious. I think this is worth a bug > > report. FSF binutils or riscv-gnu-toolchain is fine. > > > > I have created an issue with detailed descriptions and reproduction steps. > Please let me know if you need anything else. > It may be a toolchain issue. Here is the ongoing discussion in case anybody else is interested. https://github.com/riscv/riscv-gnu-toolchain/issues/738 > > Jim > > > > -- > Regards, > Atish -- Regards, Atish
Powered by blists - more mailing lists