All of lore.kernel.org
 help / color / mirror / Atom feed
* riscv+KASAN does not boot
@ 2020-12-25 14:55 ` Dmitry Vyukov
  0 siblings, 0 replies; 55+ messages in thread
From: Dmitry Vyukov @ 2020-12-25 14:55 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv, LKML, nylon7
  Cc: Björn Töpel, Tobias Klauser, syzkaller, Palmer Dabbelt

Hello,

I am considering setting up a syzbot instance for riscv arch (using
qemu emulation) and testing kernel config/image/etc. I can boot
defconfig+kvmconfig riscv kernel, but so far I can't get a booting
CONFIG_KASAN+CONFIG+KCOV kernel.

But first of all I would like to ask if the riscv port is stable
enough at this point and if there is interest in continuous fuzzing
and receiving bugs? If there is no interest, then the rest is not
worth spending time on.
Second, what git tree/branch should be used for testing (to find bugs
sooner and get fixes faster)?
Currently it seems that riscv/fixes is the most up-to-date branch with
most fixes, is it the right one?

Re non-booting kernel problem. If I do:
defconfig+kvm_guest.config+ scripts/config -e KASAN -e KASAN_INLINE
I only see OpenSBI banner and then nothing happens (qemu consumes 100% CPU).
I've tried on v5.10, current upstream head (71c5f03154ac) and
riscv/fixes (20620d72c31e). The result is the same.

I see this recent patch from Nylon:
https://lore.kernel.org/linux-riscv/1606727599-8598-1-git-send-email-nylon7@andestech.com/
which suggests that KASAN is working for Nylon.

I am using qemu 5.1.0 as:

qemu-system-riscv64 \
-machine virt -bios default -smp 1 -m 2G \
-device virtio-blk-device,drive=hd0 \
-drive file=buildroot-riscv64.ext4,if=none,format=raw,id=hd0 \
-kernel arch/riscv/boot/Image \
-nographic \
-device virtio-rng-device,rng=rng0 -object
rng-random,filename=/dev/urandom,id=rng0 \
-netdev user,id=net0,host=10.0.2.10,hostfwd=tcp::10022-:22 -device
virtio-net-device,netdev=net0 \
-append "root=/dev/vda earlyprintk=serial console=ttyS0 oops=panic
panic_on_warn=1 panic=86400"


I've also tried this config (slightly larger than defconfig, but does
NOT include KASAN nor KCOV):
https://gist.githubusercontent.com/dvyukov/b2b62beccf80493781ab03b41430e616/raw/62e673cff08a8a41656d2871b8a37f74b00f509f/gistfile1.txt
and this is the ultimate large config that I would like to use:
https://gist.githubusercontent.com/dvyukov/2b4e621d5252dbc5a2f28802b8d71d95/raw/3ef2b8d8eda60d3acfc4bf7916ffb9e77671ed76/gistfile1.txt

Both of them hang after the OpenSBI banner in the same way.

Is it a known issue? Am I doing something wrong?

TIA

^ permalink raw reply	[flat|nested] 55+ messages in thread

end of thread, other threads:[~2021-03-10 17:26 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-25 14:55 riscv+KASAN does not boot Dmitry Vyukov
2020-12-25 14:55 ` Dmitry Vyukov
2020-12-25 16:58 ` Andreas Schwab
2020-12-25 16:58   ` Andreas Schwab
2020-12-25 17:13   ` Dmitry Vyukov
2020-12-25 17:13     ` Dmitry Vyukov
2021-01-14  4:57     ` Palmer Dabbelt
2021-01-14  4:57       ` Palmer Dabbelt
2021-01-14  9:23       ` Dmitry Vyukov
2021-01-14  9:23         ` Dmitry Vyukov
2021-01-14 10:24         ` Dmitry Vyukov
2021-01-14 10:24           ` Dmitry Vyukov
2021-01-14 11:24           ` Dmitry Vyukov
2021-01-14 11:24             ` Dmitry Vyukov
2021-01-18 14:53           ` Tobias Klauser
2021-01-18 14:53             ` Tobias Klauser
2021-01-18 15:05             ` Dmitry Vyukov
2021-01-18 15:05               ` Dmitry Vyukov
2021-01-18 15:43               ` Dmitry Vyukov
2021-01-18 15:43                 ` Dmitry Vyukov
2021-01-29  7:45                 ` Alex Ghiti
2021-01-29  7:45                   ` Alex Ghiti
2021-01-29  8:11                   ` Dmitry Vyukov
2021-02-16 11:17                     ` Dmitry Vyukov
2021-02-16 11:17                       ` Dmitry Vyukov
2021-02-16 11:25                       ` Dmitry Vyukov
2021-02-16 11:25                         ` Dmitry Vyukov
2021-02-16 13:45                         ` Dmitry Vyukov
2021-02-16 13:45                           ` Dmitry Vyukov
2021-02-16 20:42                         ` Alex Ghiti
2021-02-16 20:42                           ` Alex Ghiti
2021-02-17  4:42                           ` Dmitry Vyukov
2021-02-17  4:42                             ` Dmitry Vyukov
2021-02-17 16:36                             ` Alex Ghiti
2021-02-17 16:36                               ` Alex Ghiti
2021-02-17 17:34                               ` Dmitry Vyukov
2021-02-17 17:34                                 ` Dmitry Vyukov
2021-02-18  7:54                                 ` Alex Ghiti
2021-02-18  7:54                                   ` Alex Ghiti
2021-02-18 11:36                                   ` Dmitry Vyukov
2021-02-18 11:36                                     ` Dmitry Vyukov
2021-02-19 17:01                                     ` Alex Ghiti
2021-02-19 17:01                                       ` Alex Ghiti
2021-02-19 18:53                                       ` Dmitry Vyukov
2021-02-19 18:53                                         ` Dmitry Vyukov
2021-02-19 22:26                                         ` Palmer Dabbelt
2021-02-19 22:26                                           ` Palmer Dabbelt
2021-03-09 17:11                                           ` Dmitry Vyukov
2021-03-09 17:11                                             ` Dmitry Vyukov
2021-03-09 19:49                                             ` Alex Ghiti
2021-03-09 19:49                                               ` Alex Ghiti
2021-03-10 17:25                                               ` Dmitry Vyukov
2021-03-10 17:25                                                 ` Dmitry Vyukov
2021-02-16 17:35                       ` Tobias Klauser
2021-02-16 17:35                         ` Tobias Klauser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.