Created attachment 212755 [details]
Jail configuration that manifests the error.
Using the following jail.conf on a jail in the freebsd cluster, jail(8) fails to parse the ipv6 addr and refuses to start the jail. This is a correct configuration and doesn't appear to fail anywhere else. I'm unsure if this is some strange ARCH specific bug or jail(8) itself.
error in question:
email@example.com:/home/sbruno # /usr/sbin/jail -i -f /var/run/jail.ref13-aarch64.conf -c ref13-aarch64
jail: ref13-aarch64: ip6.addr: not an IPv6 address: 2610:1c1:1:16:96
Created attachment 212756 [details]
Remove comments and command line faff.
Andy created a patch that fixes this issue. I have tested and verified it on thunderx2 in the freebsd cluster.
It was also tested/verifed on several other ARM devices in #bsdmips.
A commit references this bug:
Date: Wed Apr 1 09:51:30 UTC 2020
New revision: 359505
Use memmove to copy within a buffer
jail(8) would try to use strcpy to remove the interface from the start of
an IP address. This is undefined, and on arm64 will result in unexpected
Fix this by using memmove top move the string.
Reported by: sbruno
MFC after: 2 weeks
Sponsored by: Innovate UK