kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Wed Mar 27 00:22:07 PDT 2019 OpenBSD/amd64 (ci-openbsd-setuid-4.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.108' (ECDSA) to the list of known hosts. 2019/03/27 00:22:46 fuzzer started 2019/03/27 00:22:51 dialing manager at 10.128.15.235:45190 2019/03/27 00:22:51 syscalls: 1 2019/03/27 00:22:51 code coverage: enabled 2019/03/27 00:22:51 comparison tracing: enabled 2019/03/27 00:22:51 extra coverage: support is not implemented in syzkaller 2019/03/27 00:22:51 setuid sandbox: enabled 2019/03/27 00:22:51 namespace sandbox: support is not implemented in syzkaller 2019/03/27 00:22:51 Android sandbox: support is not implemented in syzkaller 2019/03/27 00:22:51 fault injection: support is not implemented in syzkaller 2019/03/27 00:22:51 leak checking: support is not implemented in syzkaller 2019/03/27 00:22:51 net packet injection: enabled 2019/03/27 00:22:51 net device setup: support is not implemented in syzkaller 00:22:55 executing program 0: syz_emit_ethernet(0x1, &(0x7f00000000c0)=ANY=[@ANYBLOB="175b4b359e98762d27a0b1de86dd60bb561500442f00fe8000000000000000000000000000bbfe80000000080000aa042065580000000000000800000086dd86dd88be00000000100000000100000000000000080022eb00000000200000000200000000000000000000000800655800000000"]) 00:22:55 executing program 1: 00:22:55 executing program 1: 00:22:55 executing program 0: syz_emit_ethernet(0x3e, &(0x7f00000000c0)) 00:22:55 executing program 1: 00:22:55 executing program 0: 00:22:55 executing program 1: syz_emit_ethernet(0x1, &(0x7f0000000100)=ANY=[@ANYBLOB="50110000f0718000"]) 00:22:55 executing program 0: mknod(&(0x7f0000000200)='./file0\x00', 0x1020, 0x0) 00:22:55 executing program 1: r0 = socket(0x800000018, 0x2, 0x0) ioctl$TIOCSETAF(0xffffffffffffffff, 0x802c7416, &(0x7f0000000080)={0x0, 0x0, 0x9ff, 0x0, "d730c1e7e400000001000000000000000000009e"}) bind$unix(r0, &(0x7f0000000080)=@abs={0x1f95d27d48731892}, 0x1c) ioctl$TIOCSETA(0xffffffffffffffff, 0x802c7414, &(0x7f00000000c0)={0x0, 0x0, 0x0, 0x4f17, "b04d00f3ff0a631a00"}) r1 = socket(0x18, 0x1, 0x0) preadv(r1, &(0x7f0000000340)=[{&(0x7f0000000040)=""/41, 0x29}, {&(0x7f0000000180)=""/204, 0xcc}, {&(0x7f0000000280)=""/51, 0x33}, {&(0x7f00000002c0)=""/88, 0x58}], 0x4, 0x0) r2 = openat(0xffffffffffffffff, &(0x7f0000000000)='./file0\x00', 0x200, 0x40) ioctl$WSDISPLAYIO_LDFONT(r2, 0x8058574d, &(0x7f0000000100)={'./file0\x00', 0x81, 0xc172, 0x40, 0x1, 0x1, 0x13e, 0x4, 0x0, 0x1, 0x9, 0x1}) r3 = dup2(r0, r1) connect$unix(r1, &(0x7f00000000c0)=@abs={0x682eb13985c518e6, 0x7}, 0x1c) writev(r2, &(0x7f00000003c0)=[{&(0x7f0000000380)="6407353442376ddf02ac50b20dfe0dc95b12de04b20b2d40c60a0dccda", 0x1d}], 0x1) sendmsg(r3, &(0x7f0000002600)={0x0, 0x0, 0x0, 0x0, &(0x7f0000002500)=[{0x10}], 0x10}, 0x0) 00:22:55 executing program 0: ioctl$TIOCSETA(0xffffffffffffffff, 0x802c7414, &(0x7f00000000c0)={0x0, 0x0, 0xffffffffffffffff, 0x0, "002000d30628010000f8000d00"}) connect$unix(0xffffffffffffffff, &(0x7f00000000c0)=@abs={0x0, 0x7}, 0x1c) r0 = kqueue() kevent(r0, &(0x7f0000000000), 0x32, 0x0, 0xc68, 0x0) 00:22:55 executing program 1: nanosleep(&(0x7f0000001c40)={0xf0, 0x7fffffff}, 0x0) kqueue() 00:22:55 executing program 0: r0 = socket(0x2, 0x400000000002, 0x0) setsockopt(r0, 0x0, 0x6, &(0x7f0000000000)="f6000000", 0x4) ioctl$TIOCSTSTAMP(r0, 0x8008745a, &(0x7f0000000040)={0x0, 0x29}) 00:22:55 executing program 1: r0 = openat$zero(0xffffffffffffff9c, &(0x7f0000000080)='/dev/zero\x00', 0x40, 0x0) ioctl$TIOCSETAF(r0, 0x802c7416, &(0x7f0000000040)={0x0, 0x0, 0x0, 0x1, "d730c1e7bb6fc6e23c5b00000000000000e74de4"}) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) r1 = socket(0x18, 0x1, 0x0) ioctl$TIOCSTART(0xffffffffffffffff, 0x2000746e) setsockopt(r1, 0x1000000029, 0x2e, &(0x7f0000000040)="ebffcbff13b9fd812eaa4e713048e69931929648", 0x14) mprotect(&(0x7f0000093000/0x4000)=nil, 0x4000, 0x7) 00:22:55 executing program 1: r0 = socket(0x1000001e, 0x2, 0x2) setsockopt(r0, 0x29, 0x32, 0x0, 0x0) setsockopt(r0, 0x29, 0x20000003d, &(0x7f0000000080)='\x00\x00\x00\x00', 0x4) 00:22:55 executing program 0: ioctl$TIOCSETA(0xffffffffffffffff, 0x802c7414, &(0x7f00000000c0)={0x0, 0x0, 0x2000000, 0x0, "00200000000000fe3b5320000001000000000d00"}) connect$unix(0xffffffffffffffff, &(0x7f00000000c0)=@abs={0x682eb13985c518e6, 0x7}, 0x1c) setitimer(0x0, &(0x7f0000000000)={{}, {0x2}}, 0x0) r0 = socket(0x18, 0x1, 0x0) close(r0) r1 = socket(0x18, 0x400000002, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) setsockopt(r1, 0x1000000029, 0x2e, &(0x7f0000000000)="ebffcbff13b9fd812eaa4e713048e69931929648", 0x14) connect$unix(r0, &(0x7f00000000c0)=@abs={0x0, 0x7}, 0x1c) getsockopt$sock_linger(r0, 0xffff, 0x80, &(0x7f0000000040), &(0x7f0000000080)=0x8) 00:22:55 executing program 1: r0 = socket(0x18, 0x2, 0x0) getsockname(r0, &(0x7f0000000080)=@un=@abs, &(0x7f00000000c0)=0x8) socketpair(0x1e, 0x4007, 0x9, &(0x7f0000000000)) setsockopt(r0, 0x29, 0x20000003b, &(0x7f0000000040)="f5ff1200", 0x4) 00:22:55 executing program 0: r0 = socket$unix(0x1, 0x5, 0x0) r1 = fcntl$dupfd(r0, 0x0, r0) getsockopt$inet_opts(r1, 0x0, 0x1, &(0x7f0000000100)=""/231, &(0x7f0000000000)=0xe7) ioctl$TIOCFLUSH(r1, 0xc0206981, &(0x7f00000000c0)) 00:22:55 executing program 1: clock_getres(0x3, 0x0) pipe2(&(0x7f0000000000)={0xffffffffffffffff}, 0x10004) ioctl$TIOCSBRK(r0, 0x2000747b) 00:22:55 executing program 0: r0 = socket(0x2, 0x2, 0x0) getsockopt$sock_timeval(r0, 0xffff, 0x1007, &(0x7f0000000000), &(0x7f0000001100)=0x10) socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000140)={0xffffffffffffffff, 0xffffffffffffffff}) getsockopt(r1, 0x7fff, 0xdc, &(0x7f0000000040)=""/146, &(0x7f0000000100)=0x92) sendto$unix(r2, &(0x7f0000000240)="d1201d9c07b00a16a86b937d24a7f2947be77f1cbe061ab59b4c483ac24bff05792c3b2d50e2f61fdd92120f14405cf540aea663e53940647fdbf6390c9d521a8ef176e290e1cfbead46e28d2cdfad33172d9d3cc0db9ce22cae4738532a1dc775f78b6d6052e279e6fb2f65bcbf4bf29cdbec91f52747de7323b7ac7626d427d51b6cbbbf298a0f33e9a2ef5ccd435c8b", 0x91, 0x40c, 0x0, 0x0) readv(r1, &(0x7f0000001600)=[{&(0x7f0000000180)=""/170, 0xaa}], 0x220) 00:22:55 executing program 1: preadv(0xffffffffffffffff, &(0x7f0000000440)=[{&(0x7f0000000080)=""/120, 0x78}, {&(0x7f0000000640)=""/4096, 0x1000}], 0x2, 0x0) r0 = open(&(0x7f0000000040)='./file0\x00', 0x615, 0x0) pwritev(r0, &(0x7f00000003c0), 0x273, 0x0) mmap(&(0x7f0000000000/0x3000)=nil, 0x3000, 0x2, 0x11, r0, 0x0, 0x0) sendmsg$unix(0xffffffffffffffff, 0x0, 0x1) renameat(r0, &(0x7f0000000000)='./file0/file0\x00', r0, &(0x7f0000000100)='./file0\x00') getgroups(0x40000012, &(0x7f0000001640)=[0x0]) r1 = semget(0x0, 0x0, 0x131) ioctl$WSMOUSEIO_SETPARAMS(r0, 0x80105728, &(0x7f0000000200)={&(0x7f0000000180)=[{0x8b, 0x3}, {0x183, 0x9}, {0x45, 0x7fffffff}, {0x0, 0x6}, {0x49}, {0x0, 0x1000}, {0x21, 0x400}, {0x83, 0x1}, {0x45, 0x5}], 0x9}) semctl$SETALL(r1, 0x0, 0x9, &(0x7f0000000140)=[0x7, 0x3, 0x466, 0x3, 0xffffffffffffbf6b, 0x40, 0x6, 0xd75e]) munmap(&(0x7f0000000000/0x4000)=nil, 0x4000) 00:22:55 executing program 0: socketpair(0x6, 0x4, 0x20, &(0x7f0000000080)) pipe(&(0x7f00000000c0)={0xffffffffffffffff, 0xffffffffffffffff}) openat$null(0xffffffffffffff9c, &(0x7f0000000100)='/dev/null\x00', 0x8000, 0x0) r1 = openat$zero(0xffffffffffffff9c, &(0x7f0000000140)='/dev/zero\x00', 0x80, 0x0) ioctl$WSDISPLAYIO_SETSCREEN(r0, 0x80045756, &(0x7f00000001c0)=0x6) setsockopt$sock_int(r1, 0xffff, 0x1003, &(0x7f0000000180)=0x2, 0x4) getsockopt$inet_opts(r1, 0x0, 0x1, 0x0, 0x0) r2 = socket(0x6, 0x1, 0x100000000) getsockname$inet(r2, &(0x7f0000000000), &(0x7f0000000040)=0xc) 00:22:55 executing program 0: r0 = syz_open_pts() ioctl$TIOCFLUSH(r0, 0x80047460, &(0x7f0000000100)=0x3) ioctl$TIOCGTSTAMP(r0, 0x4010745b, &(0x7f0000000040)) lstat(&(0x7f0000000080)='./file0\x00', &(0x7f0000000140)) ioctl$TIOCSTSTAMP(r0, 0x8008745a, &(0x7f0000000000)={0x3ff, 0x6}) 00:22:55 executing program 1: r0 = syz_open_pts() r1 = kqueue() r2 = syz_open_pts() kevent(r1, &(0x7f0000000040)=[{{r2}, 0xffffffffffffffff, 0x1}], 0x8001, 0x0, 0x0, 0x0) r3 = syz_open_pts() kevent(r1, &(0x7f0000000080)=[{{r2}, 0xffffffffffffffff, 0x1}, {{r0}, 0xfffffffffffffffc, 0x11}], 0xcddc, &(0x7f0000000140)=[{{r3}, 0xfffffffffffffffe}], 0xfffffffffffff001, 0x0) getgroups(0xa, &(0x7f0000000000)=[0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0, 0xffffffffffffffff]) setegid(r4) 00:22:55 executing program 0: pipe2(&(0x7f0000000000)={0xffffffffffffffff, 0xffffffffffffffff}, 0x10004) ioctl$TIOCCDTR(r0, 0x20007478) poll(&(0x7f0000000040)=[{r0, 0x44}], 0x1, 0xfff) r2 = syz_open_pts() getdents(r0, &(0x7f0000000080)=""/179, 0xb3) r3 = msgget$private(0x0, 0x34c) msgrcv(r3, &(0x7f0000000a00)=ANY=[@ANYBLOB="0000000000000000000000000077d24503da8b5607259d57000000000000000000000000000000000000000000000000000000000000d1709fae751d8b3b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003de51019b9dbaa56c6a224799189d24dba4bc5bfecbdab83275c7e98559970d8a5de00b8c016e82e3d3fb627cf3b6113da2da2a2"], 0xcb, 0x3, 0x0) ioctl$TIOCSETD(r0, 0x8004741b, &(0x7f0000000240)=0x3) ioctl$TIOCSETAF(r1, 0x802c7416, &(0x7f0000000280)={0x7, 0x9, 0x4, 0x0, "0fbeaafbeab499ac7c9303475513df5453ebccd0", 0x100, 0xfffffffffffff6f9}) r4 = geteuid() r5 = getegid() getsockopt$sock_cred(r1, 0xffff, 0x1022, &(0x7f00000002c0)={0x0, 0x0}, &(0x7f0000000300)=0xc) getgroups(0x3, &(0x7f0000000340)=[0x0, 0xffffffffffffffff, 0x0]) getsockopt$SO_PEERCRED(r1, 0xffff, 0x1022, &(0x7f0000000380)={0x0}, 0xc) getsockopt$sock_cred(r0, 0xffff, 0x1022, &(0x7f00000003c0)={0x0}, &(0x7f0000000400)=0xc) msgctl$IPC_SET(r3, 0x1, &(0x7f0000000440)={{0x4, r4, r5, r6, r7, 0x10, 0xca}, 0x20, 0x100000001, r8, r9, 0x9, 0x8, 0x8, 0x7f}) ioctl$WSMOUSEIO_GETPARAMS(r1, 0x80105727, &(0x7f0000000500)={&(0x7f00000004c0)=[{0x88, 0x1000}, {0x27}, {0x82, 0x1a}, {0x27, 0xfffffffffffffff7}, {0x43, 0xfffffffffffffff8}, {0x87}, {0x86, 0x7}, {0x62, 0x7}], 0x8}) socket$inet6(0x18, 0x4, 0x5) readv(r2, &(0x7f0000000700)=[{&(0x7f0000000540)=""/98, 0x62}, {&(0x7f00000005c0)=""/172, 0xac}, {&(0x7f0000000680)=""/94, 0x5e}], 0x3) flock(r0, 0x2) setsockopt$inet6_MRT6_DEL_MFC(r1, 0x29, 0x69, &(0x7f0000000140)={{0x18, 0x0, 0x1b, 0xffffffff905a2385}, {0x18, 0x0, 0x3, 0x7fffffff}, 0x800, [0x5979f4cc, 0x9, 0x7, 0xffff, 0x9, 0x8, 0x5, 0xea2afe1]}, 0x3c) ioctl$WSDISPLAYIO_DELSCREEN(r1, 0x80085754, &(0x7f0000000740)={0x9, 0x2}) syz_open_pts() ioctl$WSDISPLAYIO_ADDSCREEN(r1, 0x80245753, &(0x7f0000000780)={0x1, './file0\x00', './file0\x00'}) readv(r0, &(0x7f0000000f80)=[{&(0x7f00000001c0)=""/3}, {&(0x7f0000000c40)=""/161}, {&(0x7f0000000d00)=""/65}, {&(0x7f0000000d80)=""/207}, {&(0x7f0000000e80)=""/201}], 0x4) geteuid() 00:22:55 executing program 1: r0 = socket(0x18, 0x2, 0x0) chflags(&(0x7f0000000000)='.\x00', 0x2) connect$unix(r0, &(0x7f00000000c0)=@abs={0x682eb13985c518e6, 0x7}, 0x1c) 00:22:56 executing program 1: r0 = dup(0xffffffffffffffff) r1 = kqueue() socketpair(0x20, 0x8000, 0x5, &(0x7f0000000080)={0xffffffffffffffff}) r3 = accept(0xffffffffffffffff, &(0x7f0000000100)=@in, &(0x7f0000000140)=0xc) r4 = socket$inet(0x2, 0x0, 0x2) kevent(r0, &(0x7f0000000180)=[{{r1}, 0xfffffffffffffff8, 0x40, 0x3, 0x1000, 0x10000}, {{r2}, 0xffffffffffffffff, 0x2, 0x40, 0x6}, {{r3}, 0xfffffffffffffffe, 0x42, 0x0, 0x100000000, 0x7}], 0x2e, &(0x7f0000000200)=[{{r4}, 0xfffffffffffffff8, 0x1, 0x10, 0xc638, 0x8a}], 0x4, &(0x7f0000000240)={0x1ff, 0x9}) r5 = kqueue() r6 = openat$null(0xffffffffffffff9c, &(0x7f0000000340)='/dev/null\x00', 0x0, 0x0) kevent(r5, &(0x7f0000000000)=[{{r6}, 0xffffffffffffffff, 0x1}], 0xf3, 0x0, 0x0, 0x0) kevent(r5, &(0x7f00000000c0)=[{{r6}, 0xffffffffffffffff, 0x2}], 0x34, 0x0, 0xc6, 0x0) openat$null(0xffffffffffffff9c, &(0x7f0000000040)='/dev/null\x00', 0x10000, 0x0) 00:22:56 executing program 0: r0 = open(&(0x7f0000000040)='./file0\x00', 0x60e, 0x0) pwritev(r0, &(0x7f0000000140)=[{&(0x7f00000000c0)="440251", 0x3}], 0x1, 0x0) unlink(&(0x7f0000000080)='./file0\x00') mmap(&(0x7f0000000000/0x13000)=nil, 0x13000, 0x5, 0x10, r0, 0x0, 0x0) r1 = socket(0x2, 0x2, 0x0) connect$unix(r1, &(0x7f0000000000)=@file={0x0, './file0\x00'}, 0x10) dup2(r0, r1) 00:22:56 executing program 0: minherit(&(0x7f0000003000/0x9000)=nil, 0x9000, 0x3) mprotect(&(0x7f0000004000/0x2000)=nil, 0x2000, 0x10001) 00:22:56 executing program 0: r0 = socket(0x18, 0x8003, 0x2f7) socketpair$unix(0x1, 0x3, 0x0, &(0x7f0000000000)) setsockopt$sock_int(r0, 0xffff, 0x1007, &(0x7f00000001c0), 0x4) setsockopt$inet_opts(r0, 0x0, 0x1, &(0x7f0000000200)="679d8e1ab1cf1aefebecbacce1c071edb7282a8c287b6988a95d1dcf0e4ed79dcc6fccc318d15c0175a3f95cf000b9cffc145ab4032e8ed2e853541c4b88b754617e7ac8f59a48c52f672f38b78734ca1c80a4979c0ae234060c43", 0x5b) socketpair$unix(0x1, 0x3, 0x0, &(0x7f00000002c0)={0xffffffffffffffff, 0xffffffffffffffff}) chdir(&(0x7f0000000100)='./file0\x00') setsockopt$sock_linger(0xffffffffffffffff, 0xffff, 0x80, &(0x7f0000000040)={0x1}, 0x8) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) getsockopt$SO_PEERCRED(r1, 0xffff, 0x1022, &(0x7f0000000140)={0x0}, 0xc) fcntl$lock(r1, 0x9, &(0x7f0000000180)={0x2, 0x3, 0x80000000, 0x7, r3}) getsockopt$sock_cred(r2, 0xffff, 0x1022, &(0x7f0000000040), &(0x7f0000000080)=0xc) bind$unix(r1, &(0x7f00000000c0)=@abs={0x1, 0x0, 0x0}, 0x8) getpgid(r3) 00:22:57 executing program 1: ioctl$TIOCSETA(0xffffffffffffffff, 0x802c7414, &(0x7f00000000c0)={0x0, 0x0, 0x0, 0x0, "000000000000bb00"}) r0 = socket(0x18, 0x2, 0x0) connect$unix(r0, &(0x7f00000000c0)=@abs={0x682eb13985c518e6, 0x7}, 0x1c) pipe(&(0x7f0000000000)={0xffffffffffffffff}) ioctl$TIOCSETAF(r1, 0x802c7416, &(0x7f0000000040)={0x30000, 0x1000, 0x4, 0x2, "033ccf73c26e2fc5589b4b74a1adbac8093d7575", 0x4, 0x10000}) 00:22:57 executing program 0: chown(&(0x7f0000000040)='./file1\x00', 0x0, 0x0) writev(0xffffffffffffffff, &(0x7f0000000000)=[{&(0x7f0000000080)}], 0x0) chown(&(0x7f0000000100)='./file0\x00', 0x0, 0x0) unveil(&(0x7f0000000140)='./file2\x00', &(0x7f0000000180)='c\x00') mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) r0 = openat$null(0xffffffffffffff9c, &(0x7f0000000080)='/dev/null\x00', 0x28a90, 0x0) ioctl$WSDISPLAYIO_GETSCREEN(r0, 0xc0245755, &(0x7f00000000c0)={0x5, './file1\x00', './file1\x00'}) mkdir(&(0x7f0000000000)='./file0\x00', 0x0) unveil(&(0x7f0000000000)='./file0\x00', &(0x7f0000001580)='c\x00') login: panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 310745 33380 32767 0x10 0 1 syz-executor.0 *129668 33380 32767 0x10 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 panic() at panic+0x174 __assert(ffffffff81f7c61c,ffffffff81f2d7dd,36f,ffffffff81f8730a) at __assert+0x2e unveil_check_final(ffff800020b74720,ffff800020c3ce88) at unveil_check_final+0x81d namei(ffff800020c3ce88) at namei+0x88b domkdirat(ffff800020b74720,ffffff9c,20000000,0) at domkdirat+0x81 syscall(ffff800020c3d140) at syscall+0x5b8 Xsyscall(6,0,ffffffffffffff94,0,2,c496870b0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xc4c28651be0, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 879 ddb{0}> trace db_enter() at db_enter+0x18 panic() at panic+0x174 __assert(ffffffff81f7c61c,ffffffff81f2d7dd,36f,ffffffff81f8730a) at __assert+0x2e unveil_check_final(ffff800020b74720,ffff800020c3ce88) at unveil_check_final+0x81d namei(ffff800020c3ce88) at namei+0x88b domkdirat(ffff800020b74720,ffffff9c,20000000,0) at domkdirat+0x81 syscall(ffff800020c3d140) at syscall+0x5b8 Xsyscall(6,0,ffffffffffffff94,0,2,c496870b0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xc4c28651be0, count: -8 ddb{0}> show registers rdi 0xffffffff81266357 db_enter+0x17 rsi 0x4b68 __ALIGN_SIZE+0x3b68 rbp 0xffff800020c3cc30 rbx 0xffff800020c3cce0 rdx 0x4b69 __ALIGN_SIZE+0x3b69 rcx 0xffff800000b4a000 rax 0xffff800000b4a000 r8 0xffffffff813481d3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x767a09c2656535ad r12 0x3000000008 r13 0xffff800020c3cc40 r14 0x100 r15 0x1 rip 0xffffffff81266358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c3cc20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=129668 stat=onproc flags process=10 proc=4000000 pri=62, usrpri=62, nice=20 forw=0xffffffffffffffff, list=0xffff800020b74e28,0xffffffff8235ec20 process=0xffff800020b3b078 user=0xffff800020c38000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33380 310745 61736 32767 7 0x10 syz-executor.0 33380 99942 61736 32767 2 0x4000010 syz-executor.0 *33380 129668 61736 32767 7 0x4000010 syz-executor.0 13020 65726 59023 32767 2 0x10 syz-executor.1 59023 42801 42876 0 3 0x82 wait syz-executor.1 61736 462523 36686 32767 2 0x490 syz-executor.0 36686 475591 42876 0 3 0x82 wait syz-executor.0 42876 470706 52270 0 3 0x82 thrsleep syz-fuzzer 42876 416701 52270 0 2 0x4000482 syz-fuzzer 42876 140261 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 73153 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 226061 52270 0 2 0x4000482 syz-fuzzer 42876 256367 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 396497 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 2671 52270 0 3 0x4000082 kqread syz-fuzzer 42876 308095 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 207430 52270 0 3 0x4000082 thrsleep syz-fuzzer 52270 301011 9554 0 3 0x10008a pause ksh 9554 256521 25471 0 3 0x92 select sshd 28531 240945 1 0 3 0x100083 ttyin getty 25471 319537 1 0 3 0x80 select sshd 22537 483142 58062 73 3 0x100090 kqread syslogd 58062 190411 1 0 3 0x100082 netio syslogd 68725 425764 1 77 3 0x100090 poll dhclient 57893 195400 1 0 3 0x80 poll dhclient 82709 344934 0 0 3 0x14200 pgzero zerothread 77044 198387 0 0 3 0x14200 aiodoned aiodoned 54621 4571 0 0 3 0x14200 syncer update 77611 338028 0 0 3 0x14200 cleaner cleaner 35260 83772 0 0 3 0x14200 reaper reaper 6963 308823 0 0 3 0x14200 pgdaemon pagedaemon 8831 2266 0 0 3 0x14200 bored crynlk 87059 325165 0 0 3 0x14200 bored crypto 44145 202769 0 0 3 0x40014200 acpi0 acpi0 14087 225036 0 0 3 0x40014200 idle1 65143 392960 0 0 3 0x14200 bored softnet 41459 82249 0 0 3 0x14200 bored systqmp 99844 154217 0 0 3 0x14200 bored systq 68910 314861 0 0 3 0x40014200 bored softclock 76644 226054 0 0 3 0x40014200 idle0 72606 164926 0 0 3 0x14200 bored smr 1 37069 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33380 (syz-executor.0) thread 0xffff800020b74720 (129668) exclusive rrwlock inode r = 0 (0xfffffd807e412700) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 #1 _rw_enter+0x45d #2 _rrw_enter+0x60 #3 VOP_LOCK+0x57 #4 vn_lock+0x6e #5 vfs_lookup+0xf5 #6 namei+0x4b2 #7 domkdirat+0x81 #8 syscall+0x5b8 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82397440) locked @ /syzkaller/managers/setuid/kernel/sys/sys/syscall_mi.h:90 #0 witness_lock+0x594 #1 syscall+0x48b #2 Xsyscall+0x128 Process 13020 (syz-executor.1) thread 0xffff800020b74270 (65726) exclusive rrwlock inode r = 0 (0xfffffd807e4124e0) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_ihash.c:140 #0 witness_lock+0x594 #1 _rw_enter+0x45d #2 _rrw_enter+0x60 #3 ufs_ihashins+0x6d #4 ffs_vget+0x143 #5 ffs_inode_alloc+0x1cf #6 ufs_mkdir+0x10f #7 VOP_MKDIR+0x76 #8 domkdirat+0x12d #9 syscall+0x5b8 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807e4122c0) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 #1 _rw_enter+0x45d #2 _rrw_enter+0x60 #3 VOP_LOCK+0x57 #4 vn_lock+0x6e #5 vfs_lookup+0xf5 #6 namei+0x4b2 #7 domkdirat+0x81 #8 syscall+0x5b8 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9456 6320K 6320K 78643K 10548 0 0 pcb 23 9K 9K 78643K 57 0 0 rtable 97 3K 3K 78643K 199 0 0 ifaddr 34 9K 9K 78643K 40 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 16 0 0 iov 0 0K 12K 78643K 3 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1225 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 7 21K 33K 78643K 59 0 0 proc 46 50K 58K 78643K 276 0 0 subproc 68 69634K 69634K 78643K 102 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 44 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 170 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 77 20K 20K 78643K 887 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 5 0 0 NDP 7 0K 0K 78643K 12 0 0 temp 82 2364K 2430K 78643K 3029 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 5 0 1 1 0 1 1 0 8 0 inpcbpl 280 50 0 43 1 0 1 1 0 8 0 plimitpl 152 18 0 9 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 50 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpcb 544 16 0 12 1 0 1 1 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 226 0 41 12 0 12 12 0 8 0 art_table 32 227 0 41 2 0 2 2 0 8 0 art_node 16 49 0 15 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1467 0 55 46 0 46 46 0 8 0 ffsino 272 1467 0 55 95 0 95 95 0 8 0 nchpl 144 1736 0 109 61 0 61 61 0 8 0 uvmvnodes 72 1527 0 0 28 0 28 28 0 8 0 vnodes 200 1527 0 0 81 0 81 81 0 8 0 namei 1024 4186 0 4184 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4247 0 4247 8 7 1 6 0 8 1 sigapl 432 226 0 211 3 0 3 3 0 8 1 futexpl 56 256 0 256 1 0 1 1 0 8 1 knotepl 112 73 0 54 1 0 1 1 0 8 0 kqueuepl 104 12 0 10 1 0 1 1 0 8 0 pipepl 112 150 0 131 3 2 1 1 0 8 0 fdescpl 488 227 0 211 3 0 3 3 0 8 0 filepl 152 1092 0 996 6 1 5 5 0 8 1 lockfpl 104 8 0 8 2 1 1 1 0 8 1 lockfspl 32 4 0 4 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 85 0 76 1 0 1 1 0 8 0 zombiepl 144 211 0 211 3 2 1 1 0 8 1 processpl 840 242 0 211 4 0 4 4 0 8 0 procpl 600 300 0 258 4 0 4 4 0 8 0 srpgc 64 6 0 6 1 0 1 1 0 8 1 sockpl 384 96 0 79 3 0 3 3 0 8 1 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 114 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 150 0 0 9 0 9 9 0 8 0 bufpl 256 5582 0 1122 279 0 279 279 0 8 0 anonpl 16 28137 0 22215 29 1 28 28 0 125 1 amapchunkpl 152 896 0 809 5 0 5 5 0 158 1 amappl16 192 488 0 178 17 0 17 17 0 8 1 amappl15 184 50 0 45 1 0 1 1 0 8 0 amappl14 176 55 0 49 3 2 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 35 0 29 2 1 1 1 0 8 0 amappl11 152 22 0 11 1 0 1 1 0 8 0 amappl10 144 61 0 58 3 2 1 1 0 8 0 amappl9 136 546 0 543 1 0 1 1 0 8 0 amappl8 128 124 0 108 1 0 1 1 0 8 0 amappl7 120 30 0 24 1 0 1 1 0 8 0 amappl6 112 52 0 45 1 0 1 1 0 8 0 amappl5 104 130 0 118 1 0 1 1 0 8 0 amappl4 96 401 0 375 2 0 2 2 0 8 1 amappl3 88 141 0 134 1 0 1 1 0 8 0 amappl2 80 901 0 849 2 0 2 2 0 8 0 amappl1 72 13167 0 12718 23 5 18 19 0 8 8 amappl 72 513 0 478 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 227 0 211 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 227 0 211 1 0 1 1 0 8 0 vmmpekpl 168 5742 0 5721 2 0 2 2 0 8 0 vmmpepl 168 30877 0 29522 95 23 72 72 0 357 13 vmsppl 360 226 0 211 2 0 2 2 0 8 0 pdppl 4096 462 0 422 6 0 6 6 0 8 0 pvpl 32 113001 0 103891 112 10 102 102 0 265 24 pmappl 224 226 0 211 2 0 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 426 0 4 13 0 13 13 0 8 0