From phk@critter.freebsd.dk  Tue Aug  8 08:18:03 2006
Return-Path: <phk@critter.freebsd.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 66FB016A4DD
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Aug 2006 08:18:03 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5B9A243D78
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Aug 2006 08:17:55 +0000 (GMT)
	(envelope-from phk@critter.freebsd.dk)
Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.48.2])
	by phk.freebsd.dk (Postfix) with ESMTP id CE630170C5
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Aug 2006 08:17:53 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.13.7/8.13.7) with ESMTP id k788GA8Q053470
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Aug 2006 08:16:11 GMT
	(envelope-from phk@critter.freebsd.dk)
Received: (from phk@localhost)
	by critter.freebsd.dk (8.13.7/8.13.7/Submit) id k788GAJ7053469;
	Tue, 8 Aug 2006 08:16:10 GMT
	(envelope-from phk)
Message-Id: <200608080816.k788GAJ7053469@critter.freebsd.dk>
Date: Tue, 8 Aug 2006 08:16:10 GMT
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Reply-To: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: kdump misinterprets setsockopt arg 3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         101642
>Category:       bin
>Synopsis:       kdump(1) misinterprets setsockopt arg 3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 08 08:20:22 GMT 2006
>Closed-Date:    Sun Oct 08 06:53:11 GMT 2006
>Last-Modified:  Sun Oct 08 06:53:11 GMT 2006
>Originator:     Poul-Henning Kamp
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD critter.freebsd.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Wed Jul 5 22:14:32 UTC 2006 root@critter.freebsd.dk:/critter/obj/critter/src/sys/TP41P i386


	
>Description:

	kdump interprets the 3 argument of setsockopt as a bitmap,
	that is wrong, it's an enumerated lists.  The appearance of
	a bitmap is caused by the assigned values for a subset of
	the enums being suitable for the kernel using them in a bitmap.

>How-To-Repeat:

	ktrace a program which sets SO_SNDTIMEO
>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Mon Sep 18 13:55:52 UTC 2006 
State-Changed-Why:  
HEAD should be OK now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101642 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/101642: commit references a PR
Date: Mon, 18 Sep 2006 13:50:44 +0000 (UTC)

 maxim       2006-09-18 13:49:57 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.bin/kdump        mksubr 
   Log:
   o optname, the third {set,get}sockopt(2) argument, is an enum, not a bitmap.
   Treat it accordingly.
   
   PR:             bin/101642
   MFC after:      3 weeks
   
   Revision  Changes    Path
   1.4       +1 -1      src/usr.bin/kdump/mksubr
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: maxim 
State-Changed-When: Sun Oct 8 06:52:32 UTC 2006 
State-Changed-Why:  
RELENG_6 has a different code and does not vulnerable to this bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101642 
>Unformatted:
