[Bug 277923] jail(8) segfaults on syntax error in configuration file

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 24 Mar 2024 16:41:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277923

            Bug ID: 277923
           Summary: jail(8) segfaults on syntax error in configuration
                    file
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: nsonack@outlook.com

The following jail.conf will segfault the jail(8) utility on at least
14.0-RELEASE:

        foo {
                ip4.addr = "lo0|foo/24"
                host.hostname = "bar";
        }


$ jail -c -f foo.conf foo
jail: foo.conf line 3: host.hostname: syntax error
Segmentation fault (core dumped)
$ 

I expect jail(8) not to segfault on bad syntax. I also saw SIGBUS being thrown
when having incorrect syntax.

-- 
You are receiving this mail because:
You are the assignee for the bug.