Commit Graph

159785 Commits

Author SHA1 Message Date
dsl
5a8c98bcf8 Use x86_set_ldt1() instead of the stackgap. 2007-06-23 16:50:23 +00:00
hauke
3d7f38ec94 Fix a warning from gcc 4 about stripping the volatile qualifier by a cast
by doing the proper __UNVOLATILE() dance.
2007-06-23 15:32:56 +00:00
dsl
6d0a5fcf1a Simplify code to get/set 16bit group lists.
Cloned from ibcs2 copy (maybe I should have worked out somewhere to put this
as common code...)
2007-06-23 15:27:23 +00:00
dsl
a5b4569076 Read and write the ldt without using the stackgap. 2007-06-23 15:26:16 +00:00
dsl
e773713d08 Comment out support for FREEBSD_PT_READ_U and FREEBSD_PT_WRITE_U.
It all looks like a rather broken hack.
If nothing else it accesses userspace without copyin/out.
2007-06-23 15:24:26 +00:00
dsl
b4e499e58b Split x86_set/get_ldt() so they are callable with kernel buffers.
For linux emulation code.
2007-06-23 15:22:18 +00:00
hannken
bed04c995a If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.

Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.

Observed and tested by Edgar Fuß.

Welcome to 4.99.21 (struct dquot and therefore struct inode changed layout)
2007-06-23 14:56:09 +00:00
christos
1d3b6feacb PR/36527: Greg A. Woods: installboot(8) doesn't allow for the valid
consdev=auto setting
2007-06-23 14:46:00 +00:00
isaki
b9c5a4c699 Remove _ZLIB_PRIVATE that should have been removed 10 years ago. 2007-06-23 10:50:24 +00:00
dsl
23ec3e8012 Use the functions in kern_auth.c for setting/getting group lists.
All we have to do here is copy the 16bit to 32bit group numbers across.
2007-06-23 09:11:12 +00:00
dsl
049a22a9db These now need sys/prot.h 2007-06-23 09:09:56 +00:00
dsl
a72d93045f Make sys_getgroups() and sys_setgroups() use the newly added functions
in kern_prot.c in order to simplify the code paths.
NB: the grouplist is not longer sorted - I don't think anything relies
on this (any more) and nfs will use truncated lists where the order of the
entries is important.
Move the external defns for public functios in kern_prot.c into a new
header sys/prot.h (from sys/ucred.h which contains a compat defn that
is exposed to userspace).
2007-06-23 09:08:37 +00:00
dsl
a254a27e55 Simplify the interfaces needed for sys_setgroups() and sys_getgroups().
Exposed that the kauth code holds groups in an array, but removes some
of the knowledge of the maximum number of groups.
Allows the syscall code to copyin/out directly to/from the cred structure,
this save a lot of faffing about with malloc/free even when compat code
has to use 16bit groups.
2007-06-23 09:02:12 +00:00
scw
2346befecc If the underlying link's MTU is less than PP_MTU (e.g. PPPoE), set our
MRU to the link's MTU and initiate an MRU negotiation with the peer.

This is useful when the PPP session is bridged from Ethernet to ATM
by an ADSL modem (such as the Linksys AM200). Unless we negotiate the
lower MRU, the peer is unaware that 1500-byte packets will not make
it umolested across the link (the Linksys AM200 silently truncates them
to 1498 bytes, creating a nice PMTU blackhole).

Note that the PPP RFC says peers MUST accept 1500 byte packets,
regardless of the negotiated MRU, so most ISPs which use PPPoA will
probably still send 1500-byte packets. However, I persuaded my ISP
(Andrews and Arnold) to modify their software to generate an ICMP error
"fragment needed" for packets with IP.DF set which are larger than the
negotiated MRU. They will still forward non-IP.DF packets, with the
associated truncation, but at least my PMTU troubles have gone.
2007-06-23 08:45:25 +00:00
yamt
616f645161 add newgrp.debug. 2007-06-23 05:25:29 +00:00
yamt
0d554b9baa sort. 2007-06-23 05:21:24 +00:00
dsl
a87d1d52f9 Correct the disassembly of instructions that move immediate values into
64bit targets. Only the 0xb8-0xbf instructions (move immediate to register)
have a 64bit immediate constant.
Correct the disassembly of movq %eax to/from an immediate address - 64bit addr.
Add cmovxx instructions.
Now stands a chance of not getting all misaligned on normal C code.
Add a few others, but there are a lot missing, but probably mainly SIMD ones.
2007-06-22 20:54:59 +00:00
mhitch
cd777bd880 Get rid of pcb usages, not needed for idlelwp. 2007-06-22 20:24:09 +00:00
jklos
f43233e198 These files (cxgb*) are for the Chelsio T3 10 gigabit ethernet card from
the FreeBSD driver by Kip Macy (kmacy@FreeBSD.org).
2007-06-22 18:18:54 +00:00
itohy
7edfc5dbe5 PROLIFIC2 -> NETINDEX 2007-06-22 16:39:27 +00:00
itohy
7d053c92ba Regen from usbdevs rev 1.473. 2007-06-22 16:37:46 +00:00
itohy
c343e9c214 Sort.
Remove duplicate.
2007-06-22 16:32:38 +00:00
itohy
2053de92a0 Vendor ID 0x11f6 is used by at least two products from NetIndex Inc.
("DD" (0x11f6/0x2001) and firmware loader of "nico." (0x11f6/0x3001)),
and 0x11f6 is probably the vendor ID of NetIndex.
2007-06-22 16:06:30 +00:00
yamt
670c065b9a ubc_alloc: break loans on UBC_FAULTBUSY.
it's necessary after recent file overwrite changes.
(http://mail-index.NetBSD.org/source-changes/2007/06/05/0014.html)
it should fix the problem reported by Sarton O'Brien on
current-users@/port-xen@.
(http://mail-index.NetBSD.org/current-users/2007/06/22/0001.html)
2007-06-22 15:15:48 +00:00
rumble
60f2903e7a struct dirent is padded to an 8 byte boundary according to sys/dirent.h. 2007-06-22 15:03:40 +00:00
yamt
f0baa9219b - nfsrv_slpderef: fix a locking botch.
(should fix "slp->ns_sref == 0" assertion failures in nfsrv_init)
- add some related assertions.
2007-06-22 14:39:59 +00:00
simonb
015eeb4e7f Fix a tyop in a comment. 2007-06-22 04:50:47 +00:00
simonb
d1187d4dcb Use "default" for the getty type for the console and the serial
ports, like other evb* ports.
2007-06-22 03:47:42 +00:00
simonb
9a8238c82f Remove a "CFLAGS+=-g" that seems to have snuck in with no good reason. 2007-06-22 03:24:16 +00:00
jklos
f757e0cee8 Added cxgb entry for Chelsio T3 10 gigabit card. 2007-06-21 23:13:18 +00:00
scw
26603f78b6 Apply the patch, with some minor modifications, provided in:
http://mail-index.netbsd.org/port-arm/2007/06/04/0000.html

Addresses:
 - an array index overflow in ixpqmgr_intr().
 - ixpqmgr_sc must be initialised before calling ixp425_intr_establish().
2007-06-21 22:18:06 +00:00
agc
a08d769680 Initial import of icfs, a case-insensitive/retentive file system.
This file system is based on librefuse and puffs.

	The icfs(8) utility can be used to mount an existing directory on a
	new mount point.  icfs makes use of the virtdir(3) virtual directory
	routines.  Underneath those virtual directories, the individual
	directory entries will be displayed as an exact mirror of the original
	directory, except that any capital letters in the original entry's
	name will be substituted with an entry name consisting entirely of
	lower-case letters.

This is an unusual example of a refuse-based file system which provides
lesser functionality than the file system it sits on.
2007-06-21 22:05:28 +00:00
agc
5599c23a3d Record the root directory at initialisation time.
Add a function to "normalise" a path to condense multiple repeated '/'
characters into one.
2007-06-21 21:59:32 +00:00
scw
dba01be393 Apply the patch, with some minor tweaks, supplied in PR/36513.
This prevents a possible prefetch past the end of the source buffer.

Note that the semantics of the pld instruction mean that it is unlikely
that this would have caused any problems except in very specific
circumstances in some types of device drivers.
2007-06-21 21:37:04 +00:00
mrg
94acf6b525 note GCC 4.1.3-20070620 2007-06-21 17:02:08 +00:00
mrg
7c79844261 re-run mknative with GCC 4.1.3 2007-06-21 16:58:44 +00:00
ginsbach
32bd9379c0 Mention addition of newgrp(1). 2007-06-21 16:06:21 +00:00
ginsbach
8d82f5f607 Add newgrp(1) cross-reference. 2007-06-21 15:12:59 +00:00
pooka
e601546393 Refactor the pnode2vnode translation slightly so that VFS_ROOT
can use it directly.
2007-06-21 14:54:49 +00:00
ginsbach
8921ea3a85 Add the newgrp(1) utility, which changes effective group ID. This is a
POSIX (IEEE Std 1003.1, 2004 / Open Group Base Specifications Issue 6)
User Portability Utility.
2007-06-21 14:54:45 +00:00
pooka
41df8e0fed Reorganize how the root vnode is fetched so that it doesn't always
go through VFS_ROOT() and allow to fetch it without locking it.
This allows us to call the cache flush operations also for the root
vnode and most notably fixes e.g. a "No such file or directory"
for a psshfs root directory ls -l when a file was locally deleted
and remotely re-created.

Also fix some sloppy programming in root node fetch (mostly cosmetic).
2007-06-21 14:11:34 +00:00
ginsbach
c82c323deb Add the newgrp(1) utility, which changes effective group ID. This
is a POSIX (IEEE Std 1003.1, 2004 / Open Group Base Specifications
Issue 6) User Portability Utility.
2007-06-21 14:09:23 +00:00
pooka
23c0297785 print warning if directory cache invalidation fails 2007-06-21 13:53:00 +00:00
skrll
39d5b9520a Remove gdb 5.3 as nothing uses it now. 2007-06-21 12:51:06 +00:00
xtraeme
5386acb4ac Xref prop_dictionary_util(3) and prop_send_ioctl(3). 2007-06-21 12:02:31 +00:00
fvdl
fc625d2eff * Add bus_dmamap_sync calls for cmd structure.
* During initialization, use the right port index when setting up the
  physical pointers for a port. Fixes issue with non-contigous ports.

Reviewed by Manuel.
2007-06-21 11:32:54 +00:00
jnemeth
3a15d3861a Make this match how the C version of the interrupt handler does
pseudo DMA.  Thanks to uwe@ for assistance with sparc assembly
language and tnn@ for testing.
2007-06-21 09:45:54 +00:00
wiz
7d2b5d5273 ntp-4.2.4p2 out. 2007-06-21 06:02:10 +00:00
kiyohara
15e10848b3 Fix rqp->len is a number of read registers. 2007-06-21 04:04:29 +00:00
mrg
70d2e95cee merge GCC 4.1-20070620. 2007-06-21 04:01:59 +00:00