Skip to content

Instantly share code, notes, and snippets.

Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #1 r331615: Tue Mar 27 15:26:04 UTC 2018
root@aries:/usr/obj/usr/src/amd64.amd64/sys/ARIES amd64
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
VT(vga): resolution 640x480
CPU: AMD EPYC 7401P 24-Core Processor (1996.30-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x800f12 Family=0x17 Model=0x1 Stepping=2
# openssl speed -evp aes-128-cbc
Doing aes-128-cbc for 3s on 16 size blocks: 178302449 aes-128-cbc's in 3.04s
Doing aes-128-cbc for 3s on 64 size blocks: 51093006 aes-128-cbc's in 3.07s
Doing aes-128-cbc for 3s on 256 size blocks: 12963072 aes-128-cbc's in 3.02s
Doing aes-128-cbc for 3s on 1024 size blocks: 3318526 aes-128-cbc's in 3.06s
Doing aes-128-cbc for 3s on 8192 size blocks: 420455 aes-128-cbc's in 3.09s
OpenSSL 1.0.2n-freebsd 7 Dec 2017
built on: date not available
options:bn(64,64) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
compiler: clang
--------------------------------------------------------------
>>> World build completed on Tue Mar 27 15:03:02 UTC 2018
--------------------------------------------------------------
21m25.38s real 11h34m33.06s user 44m50.79s sys
1083444 maximum resident set size
43299 average shared memory size
2529 average unshared data size
222 average unshared stack size
230173498 page reclaims
150574 page faults
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 r331615: Tue Mar 27 14:33:05 UTC 2018
root@aries:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
VT(vga): resolution 640x480
CPU: AMD EPYC 7401P 24-Core Processor (1996.30-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x800f12 Family=0x17 Model=0x1 Stepping=2
Index: lib/libvmmapi/vmmapi.c
===================================================================
--- lib/libvmmapi/vmmapi.c (revision 328157)
+++ lib/libvmmapi/vmmapi.c (working copy)
@@ -1429,7 +1429,7 @@
const cap_ioctl_t *
vm_get_ioctls(size_t *len)
{
- cap_ioctl_t *cmds;
+

Keybase proof

I hereby claim:

  • I am pbiernacki on github.
  • I am kaktus (https://keybase.io/kaktus) on keybase.
  • I have a public key ASDAXM8_sjYYRzcMRcZ59z-F0MZO_To61G0Pe5FJP8KCawo

To claim this, I am signing this object:

diff --git a/usr.sbin/jail/command.c b/usr.sbin/jail/command.c
index f95344cfe4e..7e8fc974a91 100644
--- a/usr.sbin/jail/command.c
+++ b/usr.sbin/jail/command.c
@@ -30,6 +30,7 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/event.h>
#include <sys/mount.h>
+#include <sys/rtprio.h>
#include <sys/stat.h>
# fetch http://avalon.dragonflybsd.org/snapshots/x86_64/DragonFly-x86_64-LATEST-ISO.iso.bz2
# bzip2 -d DragonFly-x86_64-LATEST-ISO.iso.bz2
# zfs create -V 100G root/vms/data/dfly
# bhyve -A -H -l com1,/dev/nmdm3A -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 2G -s 0,hostbridge -s 3:0,ahci-cd,/vms/iso/DragonFly-x86_64-LATEST-ISO.iso -s 5:0,virtio-net,tap4 -s 3:1,ahci-hd,/dev/zvol/zroot/vms/data/dfly -s 29,fbuf,tcp=0.0.0.0:5903,w=1024,h=768,wait -s 30,xhci,tablet -s 31,lpc -w -u dfly
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 r309815: Sat Dec 10 20:13:02 UTC 2016
root@rpi3:/usr/obj/usr/src/sys/GENERIC-NODEBUG arm64
FreeBSD clang version 3.9.0 (tags/RELEASE_390/final 280324) (based on LLVM 3.9.0)
VT: init without driver.
ext_if="vtnet0"
jail_net="172.22.0.0/16"
nat pass on $ext_if from $jail_net to !$jail_net -> $ext_if
rdr on $ext_if proto tcp to port 8080 -> 172.22.0.22 port 8080
rdr on lo0 proto tcp from $jail_net to ($ext_if) port 8080 -> 172.22.0.22 port 8080
pass all