Re: [PATCH v7 16/25] arm: Add support for generic vDSO (causing crash)

From: Guenter Roeck
Date: Wed Dec 04 2019 - 11:16:48 EST


On Wed, Dec 04, 2019 at 01:58:25PM +0000, Vincenzo Frascino wrote:
> Hi Guenter,
>
> On 12/4/19 1:51 PM, Guenter Roeck wrote:
> > On Fri, Jun 21, 2019 at 10:52:43AM +0100, Vincenzo Frascino wrote:
> >> The arm vDSO library requires some adaptations to use to take advantage
> >> of the newly introduced generic vDSO library.
> >>
> >> Introduce the following changes:
> >> - Modification vdso.c to be compliant with the common vdso datapage
> >> - Use of lib/vdso for gettimeofday
> >> - Implementation of elf note
> >>
> >> Cc: Russell King <linux@xxxxxxxxxxxxxxx>
> >> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
> >
> > This patch causes a crash with qemu's mcimx6ul-evk emulation while running
> > imx_v6_v7_defconfig.
> >
>
> Thank you for reporting this. Could you please provide some details on how I can
> reproduce the scenario you are describing?
>
- Build imx_v6_v7_defconfig
- Get root file system or initrd, for example from
https://github.com/groeck/linux-build-test/tree/master/rootfs/arm
- Run image. Example, with initrd:
qemu-system-arm -M mcimx6ul-evk -kernel arch/arm/boot/zImage \
-no-reboot -initrd rootfs-armv7a.cpio \
-m 256 -display none -serial null \
--append 'rdinit=/sbin/init earlycon=ec_imx6q,mmio,0x21e8000,115200n8 console=ttymxc1,115200'
-dtb arch/arm/boot/dts/imx6ul-14x14-evk.dtb \
-nographic -monitor null -serial stdio

qemu has to be v3.1 or later to support the machine.

Hope this helps,
Guenter