Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2009 09:39:35 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r198975 - stable/8/sys/kern
Message-ID:  <200911060939.nA69dZeV010231@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri Nov  6 09:39:35 2009
New Revision: 198975
URL: http://svn.freebsd.org/changeset/base/198975

Log:
  MFC r197789:
  
  Fix ACL support on sparc64.  Turns out that fuword(9) fetches 64 bits
  instead of sizeof(int), and on sparc64 that resulted in fetching wrong
  value for acl_maxcnt, which in turn caused __acl_get_link(2) to fail
  with EINVAL.
  
  PR:		sparc64/139304
  Submitted by:	Dmitry Afanasiev <KOT at MATPOCKuH.Ru>

Modified:
  stable/8/sys/kern/vfs_acl.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)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/kern/vfs_acl.c
==============================================================================
--- stable/8/sys/kern/vfs_acl.c	Fri Nov  6 08:08:47 2009	(r198974)
+++ stable/8/sys/kern/vfs_acl.c	Fri Nov  6 09:39:35 2009	(r198975)
@@ -161,7 +161,7 @@ acl_copyout(struct acl *kernel_acl, void
 		break;
 
 	default:
-		if (fuword((char *)user_acl +
+		if (fuword32((char *)user_acl +
 		    offsetof(struct acl, acl_maxcnt)) != ACL_MAX_ENTRIES)
 			return (EINVAL);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911060939.nA69dZeV010231>