Commit Graph

9004 Commits

Author SHA1 Message Date
christos
04b614a265 regen 2015-03-07 20:40:00 +00:00
christos
b41c7e2da2 Use modern initializers, so we can skip the 0 ones. 2015-03-07 20:39:11 +00:00
christos
d1ef60ebe3 regen 2015-03-07 16:38:49 +00:00
christos
7678e81703 Adjust for systrace based on the FreeBSD code:
- create new file systrace_args.c that use used to convert the syscall
  arguments to an array, and functions that print the types of the
  entry and return arguments.
- call the systrace probe from the trace_enter and trace_exit functions
2015-03-07 16:38:07 +00:00
christos
811682d624 syscallnames are needed by dtrace 2015-03-07 16:35:37 +00:00
mrg
d64a5577d7 wait for config_mountroot threads to complete before we tell init it
can start up.  this solves the problem where a console device needs
mountroot to complete attaching, and must create wsdisplay0 before
init tries to open /dev/console.  fixes PR#49709.

XXX: pullup-7
2015-03-06 09:28:15 +00:00
rtr
9f8f228daa Return EINVAL if namelen isn't large enough to encompass the expected
members of sockaddr structures. i.e. sa_len and sa_family.

Discussed with and patch by christos@
2015-03-06 03:35:00 +00:00
christos
598d99601c put the exit code of the process in data, like FreeBSD does. 2015-03-02 19:24:53 +00:00
christos
e0e35c7751 PR/39918: ITOH Yasufumi: Replace KASSERT with continue, since the file
descriptor can be closed since closef() does not pay attention to FDEFER.
XXX: Pullup-7
2015-03-01 01:14:41 +00:00
jmcneill
3ee2227103 if the root file-system is not yet mounted, hide "vfs load failed" spam with options DEBUG 2015-02-28 23:04:34 +00:00
rtr
c395e5a2ab Place opening brace to function at column 0, like in the rest of the file. 2015-02-28 21:42:01 +00:00
christos
5a70401cf6 PR/49684: Pierre Pronchery: readlinkat(2) return type is wrong. 2015-02-22 00:50:30 +00:00
martin
906a6a13d7 A syscall like posix_fallocate() that is not supposed to set errno in
userland needs to always return 0 and store the error code *retval.
2015-02-15 10:48:21 +00:00
maxv
dbe8850b34 ... and I forgot to actually remove kern_verifiedexec.c.
As I said in the first revision of kern_veriexec.c: rename
kern_verifiedexec.c to kern_veriexec.c. The old history is now in Attic/,
and no change between kern_verifiedexec.c and kern_veriexec.c.

okayed by christos@ and blymn@ some months ago.
2015-02-13 17:55:24 +00:00
maxv
471961cbf1 Rename kern_verifiedexec.c to kern_veriexec.c. "Veriexec" is the name of
the subsystem, not "Verifiedexec".

The revisions of kern_verifiedexec.c are now in Attic/.

No change between kern_verifiedexec.c and kern_veriexec.c.

Also, update the man page accordingly.

Okayed by christos@ and blymn@ some months ago.
2015-02-13 17:50:48 +00:00
maxv
25ff354bf4 Remove this MALLOC_DEFINE (M_PMF unused). 2015-02-13 13:26:50 +00:00
christos
d83ca2bff1 regen 2015-02-10 17:43:44 +00:00
martin
06ea2d9d35 Mark posix_fallocate as NOERR 2015-02-10 15:07:39 +00:00
christos
79fa3fde9b don't compare user and kernel addresses 2015-02-09 20:46:55 +00:00
christos
7d5216c057 make the ddb code crash(8) friendly. 2015-02-08 19:41:00 +00:00
mlelstv
c75410f9e1 Correct m_len calculation for m_dup() with mbuf clusters.
Fixes kern/49650.
2015-02-08 14:46:30 +00:00
maxv
ff56bf4809 Don't include <uvm/uvm_extern.h> 2015-02-06 18:21:29 +00:00
maxv
20fc3c6998 Kill kmeminit(). 2015-02-06 18:19:22 +00:00
msaitoh
2e202f47c6 Remove useless semicolon reported by Henning Petersen in PR#49635. 2015-02-04 07:10:47 +00:00
msaitoh
00365a1504 Remove useless semicolon reported by Henning Petersen in PR#49634. 2015-02-04 07:09:37 +00:00
christos
d4fc69a7c7 Handle LOCAL_PEERID for socketpair() connected sockets which connect through
connect2().
1. move the code that sets the peerid structure into connect1(). This
   handles so2.  The datagram code calls connect2 twice with flipped
   so arguments so both sockets get set.
2. in connect2 copy the peerid structure from so2 to so, so that that
   both stream sockets get set.
2015-02-02 02:28:26 +00:00
rmind
2472877a60 Implement ipi_trigger_multi(9); requested by cherry@. 2015-01-18 23:16:35 +00:00
dennis
938f7fdfb0 Add a membar_datadep_consumer() before dereferencing the pointer
to a cache entry in cache_lookup_entry().  The entries are being
added to the list it is looking at without mutually-exclusive locking,
so this is necessary to keep some Alphas from seeing stale data
when the pointer is newly-updated.

XXX this is doing lockless adds to a list maintained with LIST_* macros.
2015-01-16 20:10:25 +00:00
jmcneill
a54a8c291b defflag TODR_DEBUG 2015-01-11 14:22:53 +00:00
riastradh
c33b09698b Use membar_datadep_consumer where code inspection reveals it necessary. 2015-01-08 23:39:57 +00:00
christos
4886208506 PR/49104: Jarle Greipsland: Don't use cpu_counter32() unconditionally.
XXX: pullup-7
2015-01-08 16:13:07 +00:00
hannken
b0d9b99b55 vfs_vnode_iterator_destroy: set v_usecount of marker to zero to prevent
an assertion from vnfree().
2015-01-08 12:06:50 +00:00
ozaki-r
3cde4cbc35 Pass a correct firmware size (instead of 0) to firmware_free
firmware_free now uses kmem_free(9) instead of free(9),
so we need to pass a correct size to it.
2015-01-07 07:05:48 +00:00
pooka
af7e1d8f75 initialize sysctl node from init() instead of via linkset 2015-01-04 19:31:00 +00:00
christos
ed5aa85bd1 - Use NODEV instead of 0
- Return EBUSY if there was no label
2015-01-02 01:14:22 +00:00
mlelstv
2fbc202964 Retire disk_blocksize(). 2014-12-31 20:13:41 +00:00
christos
281c044fc6 Mention which ioctls need to move to dk_ioctl, and don't allow wedges on
wedges.
2014-12-31 19:58:59 +00:00
christos
c60db2e923 make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.
2014-12-31 19:52:04 +00:00
christos
577177e86e get the wedge info first if it exists, because this will support larger sizes. 2014-12-31 19:50:14 +00:00
christos
3be6bb2414 Centralize wedge ioctls in disk_ioctl. 2014-12-31 17:06:48 +00:00
mlelstv
bdddf44518 disk_blocksize and disk_set_info relay the same information
to the disk subsystem.

Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.

Keep disk_blocksize for ABI compatibility, make it also set dg_secsize.
2014-12-31 08:24:50 +00:00
mlelstv
c4ffe4b64c clear error for new ioctls. 2014-12-29 18:54:19 +00:00
mlelstv
78d420c356 Implement DIOCGMEDIASIZE and DIOCGSECTORSIZE from FreeBSD. 2014-12-29 18:41:20 +00:00
dennis
7ad3371ebc Update stats-keeping in sys/kern/vfs_cache.c to remove (most)
races while allowing consistent lockless sampling of the per-cpu
statistics without atomic operations.  Update comment describing
the locking protocol to include this.

These files were fumble-fingered out of the last commit.
2014-12-24 20:01:21 +00:00
christos
f95c68cfed Don't hard code crap we have perfectly good constants for. 2014-12-15 13:50:10 +00:00
chs
669ef94683 remove ep_name, change the last reference to use ep_kname instead. 2014-12-14 23:49:28 +00:00
chs
6d40f9ff57 add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects for
mappings of file objects.  move vnode-specific details of mmap()ing a vnode
from uvm_mmap() to the new vnode-specific vn_mmap().  add new uvm_mmap_dev()
and uvm_mmap_anon() convenience functions for mapping character devices
and anonymous memory, and replace all other calls to uvm_mmap() with those.
use the new fileop in drm2 so that libdrm can use mmap() to map things
like on other platforms (instead of the ioctl that we have used so far).
2014-12-14 23:48:58 +00:00
christos
a24ecb0e5b PR/49287: Masao Uebayashi: Handle exec_script argument vector from the 32 ->
64 bit case. When execing a 64 bit shell from a 32 bit binary the argument
vector was still incorrect.

XXX: Pullup 7
2014-12-14 21:35:24 +00:00
martin
6a293bc9b1 Change a KASSERT to KASSERTMSG and print enough details about the callout
so it can be identified even if ddb should not be helpfull (or not enabled).
2014-12-10 17:09:49 +00:00
christos
161dbb7f01 - use the unused section in the array to put a NetBSD note in it
- cleanup the hard-coded constants in the stringtab
2014-12-09 02:30:09 +00:00