blob: c314f0d0f417dc640ecdac42c90178a103ec4c44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* Check decoding of fault injected exit_group syscall.
*
* Copyright (c) 2016-2018 Dmitry V. Levin <ldv@strace.io>
* Copyright (c) 2016-2021 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "tests.h"
#include <unistd.h>
#include "scno.h"
int
main(void)
{
static const kernel_ulong_t answer =
(kernel_ulong_t) 0xbadc0ded0000002aULL;
syscall(__NR_exit_group, answer);
syscall(__NR_exit, answer);
return 1;
}
|