summaryrefslogtreecommitdiffstats
path: root/sys/nfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fairly simple sizes for free(); ok teduderaadt2015-08-282-4/+4
|
* In kernel initialize struct sockaddr_in and sockaddr_in6 to zerobluhm2015-08-242-4/+6
| | | | | | | everywhere to avoid passing around pointers to uninitialized stack memory. While there, fix the call to in6_recoverscope() in fill_drlist(). OK deraadt@ mpi@
* Replace sockaddr casts with the proper satosin() or satosin6() calls.bluhm2015-08-141-2/+2
| | | | From David Hill; OK mpi@
* m_freem() can handle NULL, do not check for this condition beforehands.deraadt2015-07-155-31/+22
| | | | ok stsp mpi
* MFREE(9) is dead, long live m_freem(9)!mpi2015-07-081-2/+2
| | | | ok bluhm@, claudio@, dlg@
* Store a unique ID, an interface index, rather than a pointer to thempi2015-06-163-6/+6
| | | | | | | | | | | | | | | receiving interface in the packet header of every mbuf. The interface pointer should now be retrieved when necessary with if_get(). If a NULL pointer is returned by if_get(), the interface has probably been destroy/removed and the mbuf should be freed. Such mechanism will simplify garbage collection of mbufs and limit problems with dangling ifp pointers. Tested by jmatthew@ and krw@, discussed with many. ok mikeb@, bluhm@, dlg@
* Convert from hzto(9) to tvtohz(9); OK dlgmikeb2015-06-111-3/+3
|
* Avoid double-free in error path by cribbing the HASBUF flagblambert2015-06-111-8/+21
| | | | | | | | | | logic from the rest of the kernel that deals with filename lookups. In snaps for some time. Initially found by jsg@ Prodded by deraadt@
* Pass a thread pointer instead of its file descriptor table to getsock(9).mpi2015-05-061-2/+2
| | | | | | Diff from Vitaliy Makkoveev. Manpage tweak and ok millert@
* add missing bracesjsg2015-05-061-2/+3
| | | | ok guenther@ miod@
* Make sure we don't leak bytes from malloced memory in the padding of structguenther2015-05-031-3/+3
| | | | | | | dirent. (The memset in previous commit was both wrong and insufficient.) problem with memset noted by brad@ and jsg@ ok millert@
* Tweaks utimensat/futimens handling to always update ctime, even when bothguenther2015-04-173-18/+40
| | | | | | | atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and to correctly handle a timestamp of -1. ok millert@
* Remove some includes include-what-you-use claims don'tjsg2015-03-1410-20/+10
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* First step towards making uiomove() take a size_t size argument:miod2015-02-103-7/+7
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* use NGROUPS_MAXderaadt2015-01-173-8/+8
|
* Explicitely include <uvm/uvm_extern.h> in order to build on variable page sizemiod2014-12-292-2/+5
| | | | architectures.
* to be safe, revert locking change until further tested.tedu2014-12-231-9/+5
|
* optimize locking a wee bit by holding it for critical parts onlytedu2014-12-231-5/+9
|
* change req pool alloc to null. add prwaitok here and nfs_node_pool whichtedu2014-12-231-4/+4
| | | | is also sleeping in all callers, but already used null
* convert one hot looking bcopy to memcpytedu2014-12-181-2/+2
|
* delete a whole mess of unnecessary caddr_t caststedu2014-12-186-27/+26
|
* primary change: move uvm_vnode out of vnode, keeping only a pointer.tedu2014-12-164-4/+8
| | | | | | objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt
* Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.mpi2014-12-051-1/+2
| | | | ok mikeb@, krw@, bluhm@, tedu@
* stale header: this code hasn't used hash.h in a whiletedu2014-12-031-2/+1
|
* use siphash for key lookups in all the filesystem hashes.dlg2014-11-181-5/+13
| | | | ok deraadt@ tedu@
* move arc4random prototype to systm.h. more appropriate for most codetedu2014-11-183-7/+3
| | | | to include that than rdnvar.h. ok deraadt dlg
* Reduce scope of iovec variables, use mallocarray, and record size fortedu2014-11-181-17/+20
| | | | | free. Change rbuf malloc argument to fullsiz, which then makes clear it's the correct size to pass to free. ok millert
* Fix a mistake in a comment.doug2014-11-151-2/+2
| | | | | Revert NFS_DIRBLKSIZE back to data. This matches an identical comment in another part of this file.
* add sizes for free(ptr, sizeof(*ptr)). use sizeof(*ptr) for malloc sizes.tedu2014-11-154-15/+15
|
* simplest free(size)tedu2014-11-141-5/+5
|
* bzero -> memsettedu2014-11-147-22/+22
|
* include sys/unistd.h where needed instead of indirect reliance. ok jsgtedu2014-11-031-1/+3
|
* remove uneeded proc.h includesjsg2014-09-146-12/+8
| | | | ok mpi@ kspillner@
* remove uneeded route.h includesjsg2014-09-082-4/+2
| | | | ok miod@ mpi@
* Support NOTE_EOF for kqueue EVFILT_READ filters on NFS files.guenther2014-08-061-1/+5
| | | | committing for jsg@, ok reyk@ tedu@ guenther@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-128-29/+29
| | | | after discussions with beck deraadt kettenis.
* delete some boolean_t poisontedu2014-07-101-5/+5
|
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-085-15/+5
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* Fix a few format string bugs with -DDEBUGsf2014-06-151-2/+2
|
* Remove the last hacks concerning the global list of IPv4 addresses in thempi2014-05-071-4/+10
| | | | | | | | | | source address selection logic. These hacks were only relevant for the NFS diskless boot code in order to pick the local broadcast address of the only configured interface. So, be explicit and set this address directly. Tested by florian@, ok henning@, beck@, chrisz@
* Back out most of v1.47 changes which mess up the block size on thesebeck2014-04-211-27/+23
| | | | | reads. ok deraadt@ guenther@
* If somebody else is already processing the RPC requests on a stream socket,kettenis2014-04-181-2/+2
| | | | | | | don't panic, but just return. tested by nicm@ ok tedu@
* Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofmpi2014-03-281-2/+1
| | | | | | <uvm/uvm.h> if possible and remove double inclusions. ok beck@, mlarkin@, deraadt@
* Split the API: struct ucred remains the kernel internal structure whileguenther2014-03-241-2/+2
| | | | | | struct xucred becomes the structure for syscalls (mount(2) and nfssvc(2)). ok deraadt@ beck@
* Move p_sigacts from struct proc to struct process.guenther2014-03-221-3/+3
| | | | testing help mpi@
* Kill NFS_BOOT_GATEWAY, ok deraadt@mpi2014-03-201-45/+1
|
* Remove max_datalen. It is only used once an can be replaced easily withclaudio2014-01-191-2/+2
| | | | MHLEN - max_hdr in that place. OK mikeb@
* Use arc4random_buf() for fetching 64-bits of data because it is fasterderaadt2014-01-181-4/+6
| | | | | than calling arc4random() twice ok jsing
* either dvp == vp or dvp != vp: zap extra test.espie2013-12-261-5/+2
| | | | okay guenther@
* Change 'mountlist' from CIRCLEQ to TAILQ. Be paranoid andkrw2013-12-011-2/+2
| | | | | | | | | use TAILQ_*_SAFE more than might be needed. Bulk ports build by sthen@ showed nobody sticking their fingers so deep into the kernel. Feedback and suggestions from millert@. ok jsing@