1*8a272653SPeter Holm#!/bin/sh 2*8a272653SPeter Holm 3*8a272653SPeter Holm# panic: mutex process lock not owned at ../../../kern/kern_time.c:261 4*8a272653SPeter Holm# cpuid = 17 5*8a272653SPeter Holm# time = 1580844484 6*8a272653SPeter Holm# KDB: stack backtrace: 7*8a272653SPeter Holm# db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01387b7920 8*8a272653SPeter Holm# vpanic() at vpanic+0x185/frame 0xfffffe01387b7980 9*8a272653SPeter Holm# panic() at panic+0x43/frame 0xfffffe01387b79e0 10*8a272653SPeter Holm# __mtx_assert() at __mtx_assert+0xb0/frame 0xfffffe01387b79f0 11*8a272653SPeter Holm# kern_thread_cputime() at kern_thread_cputime+0x99/frame 0xfffffe01387b7a30 12*8a272653SPeter Holm# kern_clock_gettime() at kern_clock_gettime+0x2a6/frame 0xfffffe01387b7a90 13*8a272653SPeter Holm# sys_clock_gettime() at sys_clock_gettime+0x17/frame 0xfffffe01387b7ac0 14*8a272653SPeter Holm# amd64_syscall() at amd64_syscall+0x2f1/frame 0xfffffe01387b7bf0 15*8a272653SPeter Holm# fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe01387b7bf0 16*8a272653SPeter Holm# --- syscall (0, FreeBSD ELF64, nosys), rip = 0x80041b8ca, rsp = 0x7fffffffe9f8, rbp = 0x7fffffffea10 --- 17*8a272653SPeter Holm 18*8a272653SPeter Holm. ../default.cfg 19*8a272653SPeter Holmcat > /tmp/syzkaller3.c <<EOF 20*8a272653SPeter Holm// https://syzkaller.appspot.com/bug?id=6245c550ba855e94618dbc1dec0a21e9e89a2ddd 21*8a272653SPeter Holm// autogenerated by syzkaller (https://github.com/google/syzkaller) 22*8a272653SPeter Holm 23*8a272653SPeter Holm#define _GNU_SOURCE 24*8a272653SPeter Holm 25*8a272653SPeter Holm#include <pwd.h> 26*8a272653SPeter Holm#include <stdarg.h> 27*8a272653SPeter Holm#include <stdbool.h> 28*8a272653SPeter Holm#include <stdint.h> 29*8a272653SPeter Holm#include <stdio.h> 30*8a272653SPeter Holm#include <stdlib.h> 31*8a272653SPeter Holm#include <string.h> 32*8a272653SPeter Holm#include <sys/endian.h> 33*8a272653SPeter Holm#include <sys/syscall.h> 34*8a272653SPeter Holm#include <unistd.h> 35*8a272653SPeter Holm 36*8a272653SPeter Holmint main(void) 37*8a272653SPeter Holm{ 38*8a272653SPeter Holm syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul); 39*8a272653SPeter Holm syscall(SYS_clock_gettime, 0xeul, 0ul); 40*8a272653SPeter Holm return 0; 41*8a272653SPeter Holm} 42*8a272653SPeter HolmEOF 43*8a272653SPeter Holmmycc -o /tmp/syzkaller3 -Wall -Wextra -O2 /tmp/syzkaller3.c || 44*8a272653SPeter Holm exit 1 45*8a272653SPeter Holm 46*8a272653SPeter Holm(cd /tmp; ./syzkaller3) 47*8a272653SPeter Holm 48*8a272653SPeter Holmrm /tmp/syzkaller3 /tmp/syzkaller3.c 49*8a272653SPeter Holmexit 0 50