Bug 53195

Summary: Easily reproduceable mac_lomac panic
Product: Base System Reporter: Tim J. Robbins <tim>
Component: kernAssignee: Robert Watson <rwatson>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-RELEASE   
Hardware: Any   
OS: Any   

Description Tim J. Robbins 2003-06-11 10:50:19 UTC
panic: mac_lomac_dominate_element: a->mle_type invalid

Fix: 

Not known.
How-To-Repeat: 
1. Compile kernel with "options MAC".
2. From the bootloader, "load mac_lomac", "boot"
3. Log in as root, run "ifconfig lnc0 maclabel lomac/equal" (replace lnc0 with
   appropriate network interface name)
4. Trying to log in with SSH causes the panic mentioned above.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-10-11 09:12:53 UTC
Responsible Changed
From-To: freebsd-bugs->rwatson

Assign to trustebsd developer
Comment 2 Tim Robbins freebsd_committer freebsd_triage 2003-11-07 11:51:29 UTC
It doesn't seem to panic anymore, but the output of ifconfig doesn't
look quite right:

# ifconfig lnc0 maclabel lomac/equal
# ifconfig lnc0
lnc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255
        ether 00:0c:29:05:68:b3
        maclabel lomac/equal(low-high-

BTW, lomac is not listed in /etc/mac.conf by default.


Tim
Comment 3 Robert Watson freebsd_committer freebsd_triage 2003-11-08 17:48:31 UTC
On Fri, 7 Nov 2003, Tim Robbins wrote:

> It doesn't seem to panic anymore, but the output of ifconfig doesn't
> look quite right:
> 
> # ifconfig lnc0 maclabel lomac/equal
> # ifconfig lnc0
> lnc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255
>         ether 00:0c:29:05:68:b3
>         maclabel lomac/equal(low-high-
> 
> BTW, lomac is not listed in /etc/mac.conf by default.

I think the earlier fixes I merged may have handled this panic.  However,
I've merged a fix to the syntax above: it should read
"lomac/equal(low-high)" with a closing paren, not dash.  I've also merged
the Makefile to install the lomac label settings per your comments out of
band.  I'll add the lomac label type to the default mac.conf.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories
Comment 4 Robert Watson freebsd_committer freebsd_triage 2004-05-02 22:57:13 UTC
State Changed
From-To: open->closed


Problems appear to be resolved, with no further notes from submitter. 
Closing the PR, but can re-open it if needed.