blob: 3672d5d20b370dcfc382a1cbc824d3f4212b65b1 [file] [log] [blame]
// general protection fault in smc_ioctl
// https://syzkaller.appspot.com/bug?id=675043826ccef68f42159a20414bd877f98b66e5
// status:fixed
// autogenerated by syzkaller (http://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>
uint64_t r[1] = {0xffffffffffffffff};
void loop()
{
long res = 0;
res = syscall(__NR_socket, 0x2b, 1, 0);
if (res != -1)
r[0] = res;
syscall(__NR_ioctl, r[0], 0x5411, 0x20000080);
}
int main()
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
loop();
return 0;
}