[LTP] [PATCH v2] syscalls/getrandom05: add test variants
Jan Stancek
jstancek@redhat.com
Mon Dec 9 08:31:02 CET 2024
On Mon, Dec 9, 2024 at 8:10 AM Li Wang <liwan@redhat.com> wrote:
>
>
>
> On Fri, Dec 6, 2024 at 9:36 PM Jan Stancek <jstancek@redhat.com> wrote:
>>
>> And skip EFAULT for glibc as it can segfault in VDSO:
>> #0 __arch_chacha20_blocks_nostack () at arch/x86/entry/vdso/vgetrandom-chacha.S:146
>> 146 movups state0,0x00(output)
>>
>> (gdb) bt
>> #0 __arch_chacha20_blocks_nostack () at arch/x86/entry/vdso/vgetrandom-chacha.S:146
>> #1 0x00007fcd3ce6417a in __cvdso_getrandom_data (rng_info=0x7fcd3ce5f280, buffer=0xffffffffffffffff, len=64, flags=1, opaque_state=0x7fcd3ce5df00,
>> opaque_len=<optimized out>) at arch/x86/entry/vdso/../../../../lib/vdso/getrandom.c:237
>> #2 __cvdso_getrandom (buffer=<optimized out>, len=64, flags=1, opaque_state=0x7fcd3ce5df00, opaque_len=<optimized out>)
>> at arch/x86/entry/vdso/../../../../lib/vdso/getrandom.c:259
>> #3 __vdso_getrandom (buffer=0xffffffffffffffff, len=64, flags=1, opaque_state=0x7fcd3ce5df00, opaque_len=<optimized out>)
>> at arch/x86/entry/vdso/vgetrandom.c:11
>> #4 0x00007fcd3cc7faf3 in getrandom_vdso (buffer=0xffffffffffffffff, length=64, flags=0, cancel=<optimized out>)
>> at ../sysdeps/unix/sysv/linux/getrandom.c:204
>> #5 0x0000000000401ff7 in verify_getrandom (i=0) at getrandom05.c:40
>>
>> Signed-off-by: Jan Stancek <jstancek@redhat.com>
>
>
> This one looks better.
>
> Reviewed-by: Li Wang <liwang@redhat.com>
Pushed.
More information about the ltp
mailing list