kern/116392: Interrupt level not restored correctly in
ip_ipsec_input
Arnaud Degroote
degroote at NetBSD.org
Sun Sep 16 02:50:02 PDT 2007
>Number: 116392
>Category: kern
>Synopsis: Interrupt level not restored correctly in ip_ipsec_input
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 16 09:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Arnaud Degroote
>Release: HEAD
>Organization:
>Environment:
No freebsd box. Code inspection
>Description:
In ip_ipsec_input and ip6_ipsec_input, in case where sp == NULL, we go out of the function with a return 1 without restoring the right interrupt level.
>How-To-Repeat:
N/A
>Fix:
For ip6_ipsec.c you can use that. The same patch is necessary on ip_ipsec.c
--- ip6_ipsec.orig.c 2007-09-16 11:42:15.000000000 +0200
+++ ip6_ipsec.c 2007-09-16 11:42:35.000000000 +0200
@@ -181,7 +181,6 @@
/* XXX error stat??? */
error = EINVAL;
DPRINTF(("ip_input: no SP, packet discarded\n"));/*XXX*/
- return 1;
}
splx(s);
if (error)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list