Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-11-22 | Enforce that ifioctl() is called at IPL_SOFTNET. | Martin Pieuchot | |
This will allow us to keep locking simple as soon as we trade splsoftnet() for a rwlock. ok bluhm@ | |||
2016-11-15 | Switch nfs_timer() to timeout_set_proc(9) as it might end up doing a | Martin Pieuchot | |
PRU_SEND. | |||
2016-09-27 | replace the use of RB macros with the RBT functions. | David Gwynne | |
2016-09-21 | Fix nfsrv_symlink() indentation. No binary change. | Jonathan Gray | |
ok mpi@ deraadt@ | |||
2016-09-15 | all pools have their ipl set via pool_setipl, so fold it into pool_init. | David Gwynne | |
the ioff argument to pool_init() is unused and has been for many years, so this replaces it with an ipl argument. because the ipl will be set on init we no longer need pool_setipl. most of these changes have been done with coccinelle using the spatch below. cocci sucks at formatting code though, so i fixed that by hand. the manpage and subr_pool.c bits i did myself. ok tedu@ jmatthew@ @ipl@ expression pp; expression ipl; expression s, a, o, f, m, p; @@ -pool_init(pp, s, a, o, f, m, p); -pool_setipl(pp, ipl); +pool_init(pp, s, a, ipl, f, m, p); | |||
2016-08-30 | pool_setipl for nfs pools | David Gwynne | |
ok natano@ | |||
2016-08-13 | Eliminate pointless casts to qaddr_t of a value being assigned to a void* | Philip Guenther | |
ok kettenis@ krw@ natano@ dlg@ espie@ | |||
2016-07-04 | Add missing vput() in error path to prevent a vnode getting stuck with a | Martin Natano | |
stale reference and lock, while it shouldn't hold either. "makes sense to me" beck@ | |||
2016-06-13 | make sure attrflag is initialized. from clang via david hill | Ted Unangst | |
2016-04-29 | Fix some gibbering horrors due to uninitialized struct nameidata's | Bob Beck | |
1) turn NDINITAT into a function and make the macros point to it with the later goal of getting rid of them. 2) Sweep the kernel for places where people make a struct nameidata manually on the stack and fill in what they hope are the required fields and count on prayer and clean living to always get them right. Instead use NDINIT everywhere. NFS was especially bad for this and there have likely been things lurking there for a while. 3) Add a couple of strategic KASSERT's to catch future offenders. ok krw@ sthen@ deraadt@ | |||
2016-04-26 | Populate all necessary statfs members in .vfs_statfs. cd9660, udf, | Martin Natano | |
msdosfs and nfsv2 don't set f_namemax. ntfs and ext2fs don't set f_namemeax and f_favail. fusefs doesn't set f_mntfromspec, f_favail and f_iosize. Also, make all filesystems use copy_statfs_info(), so that all statfs information is filled in correctly for the (sb != &mp->mnt-stat) case. ok stefan | |||
2016-03-19 | Remove the unused flags argument from VOP_UNLOCK(). | natano | |
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt | |||
2016-03-17 | Set mnt_data to NULL after freeing the file system specific mount point. | Alexander Bluhm | |
OK krw@ natano@ as part of a larger diff | |||
2016-02-13 | Convert to uiomove. From Martin Natano. | Stefan Kempf | |
2016-02-09 | sync a function's comment with its signature | mmcc | |
ok tedu@, with a slight tweak | |||
2015-12-22 | commited -> committed | mmcc | |
2015-12-07 | NFS can pass a buffer cache buffer straight to VOP_STRATEGY here, so dma_flip is | Bob Beck | |
needed. Found by henning@ - thanks! ok deraadt@ | |||
2015-09-04 | The nfsrv_descript_pl pool never gets used in interrupt context. | Mark Kettenis | |
ok deraadt@ | |||
2015-09-01 | Replace sockaddr casts with the proper satosin(), ... calls. | Alexander Bluhm | |
From David Hill; OK mpi@; tested kspillner@; tweaks bluhm@ | |||
2015-08-30 | Keep track of a length for free() in error paths. Be careful, | Theo de Raadt | |
because the nfsm_strsiz() macro sneakily modifies a parameter! ok beck | |||
2015-08-29 | fix ugly indents; no harmful macros harmed | Theo de Raadt | |
2015-08-28 | fairly simple sizes for free(); ok tedu | Theo de Raadt | |
2015-08-24 | In kernel initialize struct sockaddr_in and sockaddr_in6 to zero | Alexander Bluhm | |
everywhere to avoid passing around pointers to uninitialized stack memory. While there, fix the call to in6_recoverscope() in fill_drlist(). OK deraadt@ mpi@ | |||
2015-08-14 | Replace sockaddr casts with the proper satosin() or satosin6() calls. | Alexander Bluhm | |
From David Hill; OK mpi@ | |||
2015-07-15 | m_freem() can handle NULL, do not check for this condition beforehands. | Theo de Raadt | |
ok stsp mpi | |||
2015-07-08 | MFREE(9) is dead, long live m_freem(9)! | Martin Pieuchot | |
ok bluhm@, claudio@, dlg@ | |||
2015-06-16 | Store a unique ID, an interface index, rather than a pointer to the | Martin Pieuchot | |
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@ | |||
2015-06-11 | Convert from hzto(9) to tvtohz(9); OK dlg | Mike Belopuhov | |
2015-06-11 | Avoid double-free in error path by cribbing the HASBUF flag | Bret Lambert | |
logic from the rest of the kernel that deals with filename lookups. In snaps for some time. Initially found by jsg@ Prodded by deraadt@ | |||
2015-05-06 | Pass a thread pointer instead of its file descriptor table to getsock(9). | Martin Pieuchot | |
Diff from Vitaliy Makkoveev. Manpage tweak and ok millert@ | |||
2015-05-06 | add missing braces | Jonathan Gray | |
ok guenther@ miod@ | |||
2015-05-03 | Make sure we don't leak bytes from malloced memory in the padding of struct | Philip Guenther | |
dirent. (The memset in previous commit was both wrong and insufficient.) problem with memset noted by brad@ and jsg@ ok millert@ | |||
2015-04-17 | Tweaks utimensat/futimens handling to always update ctime, even when both | Philip Guenther | |
atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and to correctly handle a timestamp of -1. ok millert@ | |||
2015-03-14 | Remove some includes include-what-you-use claims don't | Jonathan Gray | |
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | |||
2015-02-10 | First step towards making uiomove() take a size_t size argument: | Miod Vallat | |
- 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@ | |||
2015-01-17 | use NGROUPS_MAX | Theo de Raadt | |
2014-12-29 | Explicitely include <uvm/uvm_extern.h> in order to build on variable page size | Miod Vallat | |
architectures. | |||
2014-12-23 | to be safe, revert locking change until further tested. | Ted Unangst | |
2014-12-23 | optimize locking a wee bit by holding it for critical parts only | Ted Unangst | |
2014-12-23 | change req pool alloc to null. add prwaitok here and nfs_node_pool which | Ted Unangst | |
is also sleeping in all callers, but already used null | |||
2014-12-18 | convert one hot looking bcopy to memcpy | Ted Unangst | |
2014-12-18 | delete a whole mess of unnecessary caddr_t casts | Ted Unangst | |
2014-12-16 | primary change: move uvm_vnode out of vnode, keeping only a pointer. | Ted Unangst | |
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 | |||
2014-12-05 | Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>. | Martin Pieuchot | |
ok mikeb@, krw@, bluhm@, tedu@ | |||
2014-12-03 | stale header: this code hasn't used hash.h in a while | Ted Unangst | |
2014-11-18 | use siphash for key lookups in all the filesystem hashes. | David Gwynne | |
ok deraadt@ tedu@ | |||
2014-11-18 | move arc4random prototype to systm.h. more appropriate for most code | Ted Unangst | |
to include that than rdnvar.h. ok deraadt dlg | |||
2014-11-18 | Reduce scope of iovec variables, use mallocarray, and record size for | Ted Unangst | |
free. Change rbuf malloc argument to fullsiz, which then makes clear it's the correct size to pass to free. ok millert | |||
2014-11-15 | Fix a mistake in a comment. | Doug Hogan | |
Revert NFS_DIRBLKSIZE back to data. This matches an identical comment in another part of this file. | |||
2014-11-15 | add sizes for free(ptr, sizeof(*ptr)). use sizeof(*ptr) for malloc sizes. | Ted Unangst | |