misc/157903: automated kldload for USB class devices

2011-06-15 Thread Robert Millan

>Number: 157903
>Category:   misc
>Synopsis:   automated kldload for USB class devices
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 15 15:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Robert Millan
>Release:Debian GNU/kFreeBSD "sid"
>Organization:
>Environment:
>Description:
This simple file enables support in devd for automated kldload of the following 
drivers when an USB class device is inserted:

snd_uaudio
ulpt
umass

Please consider including it with /etc/devd/

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

nomatch 10 {
match "bus" "uhub[0-9]+";
match "intclass" "0x01";
action "kldload snd_uaudio";
};

nomatch 10 {
match "bus" "uhub[0-9]+";
match "intclass" "0x07";
action "kldload ulpt";
};

nomatch 10 {
match "bus" "uhub[0-9]+";
match "intclass" "0x08";
action "kldload umass";
};


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/154504: commit references a PR

2011-06-15 Thread dfilter service
The following reply was made to PR kern/154504; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/154504: commit references a PR
Date: Wed, 15 Jun 2011 20:34:51 + (UTC)

 Author: trociny
 Date: Wed Jun 15 20:34:40 2011
 New Revision: 223119
 URL: http://svn.freebsd.org/changeset/base/223119
 
 Log:
   MFC r222454:
   
   In soreceive_generic(), if MSG_WAITALL is set but the request is
   larger than the receive buffer, we have to receive in sections.
   When notifying the protocol that some data has been drained the
   lock is released for a moment. Returning we block waiting for the
   rest of data. There is a race, when data could arrive while the
   lock was released and then the connection stalls in sbwait.
   
   Fix this by checking for data before blocking and skip blocking
   if there are some.
   
   PR:  kern/154504
   Reported by: Andrey Simonenko 
   Tested by:   Andrey Simonenko 
   Reviewed by: rwatson
   
   Approved by: pjd (mentor)
 
 Modified:
   stable/8/sys/kern/uipc_socket.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/kern/uipc_socket.c
 ==
 --- stable/8/sys/kern/uipc_socket.cWed Jun 15 19:53:08 2011
(r223118)
 +++ stable/8/sys/kern/uipc_socket.cWed Jun 15 20:34:40 2011
(r223119)
 @@ -1836,10 +1836,16 @@ dontblock:
}
SBLASTRECORDCHK(&so->so_rcv);
SBLASTMBUFCHK(&so->so_rcv);
 -  error = sbwait(&so->so_rcv);
 -  if (error) {
 -  SOCKBUF_UNLOCK(&so->so_rcv);
 -  goto release;
 +  /*
 +   * We could receive some data while was notifying
 +   * the protocol. Skip blocking in this case.
 +   */
 +  if (so->so_rcv.sb_mb == NULL) {
 +  error = sbwait(&so->so_rcv);
 +  if (error) {
 +  SOCKBUF_UNLOCK(&so->so_rcv);
 +  goto release;
 +  }
}
m = so->so_rcv.sb_mb;
if (m != NULL)
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/154504: [libc] [patch] recv(2): PF_LOCAL stream connection is stuck in sbwait when recv(MSG_WAITALL) is used

2011-06-15 Thread trociny
Synopsis: [libc] [patch] recv(2): PF_LOCAL stream connection is stuck in sbwait 
when recv(MSG_WAITALL) is used

State-Changed-From-To: open->closed
State-Changed-By: trociny
State-Changed-When: Thu Jun 16 05:55:47 UTC 2011
State-Changed-Why: 
Fixed.

http://www.freebsd.org/cgi/query-pr.cgi?pr=154504
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"