syzbot


panic: Can't clear local locks with F_UNLCKSYS

Status: fixed on 2019/03/26 04:23
Reported-by: syzbot+9c457a6ae014a3281eb8@syzkaller.appspotmail.com
Fix commit: fd76e780a7c0 Reject F_SETLK_REMOTE commands when sysid == 0.
First crash: 1423d, last: 1413d

Sample crash report:
login: panic: Can't clear local locks with F_UNLCKSYS
cpuid = 1
time = 1552712050
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x47/frame 0xfffffe001fa04520
vpanic() at vpanic+0x1e0/frame 0xfffffe001fa04580
panic() at panic+0x43/frame 0xfffffe001fa045e0
lf_advlockasync() at lf_advlockasync+0x14dd/frame 0xfffffe001fa046a0
lf_advlock() at lf_advlock+0x5e/frame 0xfffffe001fa04710
vop_stdadvlock() at vop_stdadvlock+0xf2/frame 0xfffffe001fa04810
VOP_ADVLOCK_APV() at VOP_ADVLOCK_APV+0xc5/frame 0xfffffe001fa04840
kern_fcntl() at kern_fcntl+0xfd1/frame 0xfffffe001fa048f0
kern_fcntl_freebsd() at kern_fcntl_freebsd+0x14f/frame 0xfffffe001fa04980
amd64_syscall() at amd64_syscall+0x436/frame 0xfffffe001fa04ab0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe001fa04ab0
--- syscall (0, FreeBSD ELF64, nosys), rip = 0x41c31a, rsp = 0x7fffffffeae8, rbp = 0x7fffffffeb40 ---
KDB: enter: panic
[ thread pid 759 tid 100094 ]
Stopped at      kdb_enter+0x6a: movq    $0,kdb_why

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-freebsd-main 2019/03/16 04:57 freebsd 4d504c5762fd bab43553 console log report syz C
ci-freebsd-main 2019/03/25 12:11 freebsd 69cab2e45856 2c86e0a5 console log report
ci-freebsd-main 2019/03/25 12:09 freebsd 69cab2e45856 2c86e0a5 console log report
ci-freebsd-main 2019/03/25 04:50 freebsd 59d01ed5c01d 2c86e0a5 console log report
ci-freebsd-main 2019/03/24 09:25 freebsd 46b48062555a acbc5b7d console log report
ci-freebsd-main 2019/03/24 07:19 freebsd 46b48062555a a2cef203 console log report
ci-freebsd-main 2019/03/18 08:06 freebsd 8b17fbc25c73 f8757044 console log report
ci-freebsd-main 2019/03/18 04:30 freebsd 8b17fbc25c73 f8757044 console log report
ci-freebsd-main 2019/03/16 04:42 freebsd 4d504c5762fd bab43553 console log report
* Struck through repros no longer work on HEAD.