blob: c4411afe2121b7bf897bcb0d2b1415da195450de [file] [log] [blame]
// INFO: trying to register non-static key in bond_3ad_update_lacp_rate
// https://syzkaller.appspot.com/bug?id=b6dd846af9caad0747416436c726772967907640
// status:fixed
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
uint64_t r[1] = {0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
intptr_t res = 0;
res = syscall(__NR_socket, 0x10, 3, 0);
if (res != -1)
r[0] = res;
*(uint64_t*)0x20000100 = 0;
*(uint32_t*)0x20000108 = 0x3d1;
*(uint64_t*)0x20000110 = 0x20000000;
*(uint64_t*)0x20000000 = 0x20000040;
*(uint32_t*)0x20000040 = 0x44;
*(uint16_t*)0x20000044 = 0x10;
*(uint16_t*)0x20000046 = 0x501;
*(uint32_t*)0x20000048 = 0;
*(uint32_t*)0x2000004c = 0;
*(uint8_t*)0x20000050 = 0;
*(uint8_t*)0x20000051 = 0;
*(uint16_t*)0x20000052 = 0;
*(uint32_t*)0x20000054 = 0;
*(uint32_t*)0x20000058 = 0;
*(uint32_t*)0x2000005c = 0;
*(uint16_t*)0x20000060 = 0x24;
*(uint16_t*)0x20000062 = 0x12;
*(uint16_t*)0x20000064 = 0xc;
*(uint16_t*)0x20000066 = 1;
memcpy((void*)0x20000068, "bond\000", 5);
*(uint16_t*)0x20000070 = 0x14;
*(uint16_t*)0x20000072 = 2;
*(uint16_t*)0x20000074 = 8;
*(uint16_t*)0x20000076 = 0x15;
*(uint8_t*)0x20000078 = 0;
*(uint16_t*)0x2000007c = 8;
*(uint16_t*)0x2000007e = 1;
*(uint8_t*)0x20000080 = 4;
*(uint64_t*)0x20000008 = 0x44;
*(uint64_t*)0x20000118 = 1;
*(uint64_t*)0x20000120 = 0;
*(uint64_t*)0x20000128 = 0;
*(uint32_t*)0x20000130 = 0;
syscall(__NR_sendmsg, r[0], 0x20000100, 0);
return 0;
}