kern/175449: unionfs and devfs misbehaviour

2013-01-20 Thread David Naylor

>Number: 175449
>Category:   kern
>Synopsis:   unionfs and devfs misbehaviour
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 14:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: David Naylor
>Release:
>Organization:
Private
>Environment:
FreeBSD ultra.dg 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Wed Oct 10 21:08:01 
SAST 2012 r...@dragon.dg:/tmp/home/freebsd9/src/sys/MODULAR  amd64
>Description:
When creating a uniofs based chroot I discovered some strange behaviour with 
dev/.  
>How-To-Repeat:
# mkdir bottom-p bottom/dev top
# mount -t unionfs -o below bottom top
# mount -t tmpfs tmdevfs devfs top/dev
# ls -l top/dev/null
ls: top/dev/null: No such file or directory
# touch top/dev/null
# ls -l top/dev/null
-rw-r--r--  1 root  wheel  0 Jan 20 16:35 top/dev/null
# touch top/dev
# ls -l top/dev/null
crw-rw-rw-  1 root  wheel0,  18 Jan 20 16:34 top/dev/null

>Fix:
Workaround:

# mkdir bottom-p bottom/dev top
# mount -t unionfs -o below bottom top
# mount -t tmpfs tmdevfs devfs top/dev
# touch top/dev

>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: misc/175425: kbdcontrol(1) printout about kbdmux isn't informative

2013-01-20 Thread Yuri
The following reply was made to PR misc/175425; it has been noted by GNATS.

From: Yuri 
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: misc/175425: kbdcontrol(1) printout about kbdmux isn't informative
Date: Sun, 20 Jan 2013 22:01:14 -0800

 This is a multi-part message in MIME format.
 --070002040502000102020100
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Patches:
 * patch-ioctl-var-size.txt : implements variable size ioctl(2) data 
 parameter. This is used by the ioctl in the second patch. Userland 
 truss(1) is updated accordingly.
 * patch-kbd-mux-contents.txt : implements new ioctl KBLSTKBD listing 
 contents of the kbd mux. Userland kbdcontrol is updated with the new 
 option -I using KBLSTKBD.
 
 
 
 --070002040502000102020100
 Content-Type: text/plain; charset=UTF-8;
  name="patch-ioctl-var-size.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="patch-ioctl-var-size.txt"
 
 Index: sys/kern/sys_generic.c
 ===
 --- sys/kern/sys_generic.c (revision 245654)
 +++ sys/kern/sys_generic.c (working copy)
 @@ -640,6 +640,7 @@
int arg, error;
u_int size;
caddr_t data;
 +  int vsize;
  
if (uap->com > 0x) {
printf(
 @@ -654,18 +655,30 @@
 * copied to/from the user's address space.
 */
size = IOCPARM_LEN(com);
 +  /* Both IOC_VOID and IOC_INOUT mean that data has variable size */
 +  if (com & IOC_VOID && com & IOC_INOUT) {
 +  if (size != 0)
 +  return (EINVAL);
 +  /* first integer has the length of the memory */
 +  error = copyin(uap->data, (caddr_t)&vsize, sizeof(vsize));
 +  if (error)
 +  return (error);
 +  size = (u_int)vsize;
 +  if (size > IOCPARM_MAX)
 +  return (EINVAL);
 +  }
if ((size > IOCPARM_MAX) ||
 -  ((com & (IOC_VOID  | IOC_IN | IOC_OUT)) == 0) ||
 +  ((com & IOC_DIRMASK) == 0) ||
  #if defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD4) || defined(COMPAT_43)
((com & IOC_OUT) && size == 0) ||
  #else
((com & (IOC_IN | IOC_OUT)) && size == 0) ||
  #endif
 -  ((com & IOC_VOID) && size > 0 && size != sizeof(int)))
 +  (((com & IOC_DIRMASK) == IOC_VOID) && size > 0 && size != 
sizeof(int)))
return (ENOTTY);
  
if (size > 0) {
 -  if (com & IOC_VOID) {
 +  if ((com & IOC_DIRMASK) == IOC_VOID) {
/* Integer argument. */
arg = (intptr_t)uap->data;
data = (void *)&arg;
 Index: sys/netgraph/ng_eiface.c
 ===
 --- sys/netgraph/ng_eiface.c   (revision 245654)
 +++ sys/netgraph/ng_eiface.c   (working copy)
 @@ -325,6 +325,15 @@
case IOC_INOUT:
str = "IORW";
break;
 +  case IOC_OUT_EXT:
 +  str = "IORE";
 +  break;
 +  case IOC_IN_EXT:
 +  str = "IOWE";
 +  break;
 +  case IOC_INOUT_EXT:
 +  str = "IORWE";
 +  break;
default:
str = "IO??";
}
 Index: sys/netgraph/ng_fec.c
 ===
 --- sys/netgraph/ng_fec.c  (revision 245654)
 +++ sys/netgraph/ng_fec.c  (working copy)
 @@ -1167,6 +1167,15 @@
case IOC_INOUT:
str = "IORW";
break;
 +  case IOC_OUT_EXT:
 +  str = "IORE";
 +  break;
 +  case IOC_IN_EXT:
 +  str = "IOWE";
 +  break;
 +  case IOC_INOUT_EXT:
 +  str = "IORWE";
 +  break;
default:
str = "IO??";
}
 Index: sys/netgraph/ng_iface.c
 ===
 --- sys/netgraph/ng_iface.c(revision 245654)
 +++ sys/netgraph/ng_iface.c(working copy)
 @@ -505,6 +505,15 @@
case IOC_INOUT:
str = "IORW";
break;
 +  case IOC_OUT_EXT:
 +  str = "IORE";
 +  break;
 +  case IOC_IN_EXT:
 +  str = "IOWE";
 +  break;
 +  case IOC_INOUT_EXT:
 +  str = "IORWE";
 +  break;
default:
str = "IO??";
}
 Index: sys/sys/ioccom.h
 ===
 --- sys/sys/ioccom.h   (revision 245654)
 +++ sys/sys/ioccom.h   (working copy)
 @@ -48,8 +48,11 @@
  #define   IOC_VOID0x2000  /* no parameters */
  #define   IOC_OUT 0x4000  /* copy out parameters */
  #define   IOC_IN  0x8000  /* copy in parameters

Re: amd64/175282: Freebsd 9.1 release amd64, mb Intel D525MW, not worked onboard ethernet.

2013-01-20 Thread linimon
Synopsis: Freebsd 9.1 release amd64, mb Intel D525MW, not worked onboard 
ethernet.

Responsible-Changed-From-To: freebsd-bugs->freebsd-amd64
Responsible-Changed-By: linimon
Responsible-Changed-When: Mon Jan 21 06:45:53 UTC 2013
Responsible-Changed-Why: 
reclassify.

http://www.freebsd.org/cgi/query-pr.cgi?pr=175282
___
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: ports/174900: devel/gvfs: process gvfs* take 100% of CPU

2013-01-20 Thread linimon
Old Synopsis: GVFS: process gvfs* take 100% of CPU
New Synopsis: devel/gvfs: process gvfs* take 100% of CPU

Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs
Responsible-Changed-By: linimon
Responsible-Changed-When: Mon Jan 21 06:46:26 UTC 2013
Responsible-Changed-Why: 
ports PR.

http://www.freebsd.org/cgi/query-pr.cgi?pr=174900
___
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"