Commit Graph

228312 Commits

Author SHA1 Message Date
christos
698f62dfb8 Well, if you set FSFIXFAT, better do it... Try running fsck on:
$ newfs_msdos -C 1M ./poc.fs
    $ dd if=/dev/zero of=poc.fs conv=notrunc bs=1 count=1 seek=512

multiple times and see that it does not get fixed.
2014-07-10 21:06:20 +00:00
christos
ffdedd8608 Bring in a regression for the previous fix from OpenBSD 2014-07-10 21:00:52 +00:00
maxv
d319c4685e Simplify a bit 2014-07-10 19:21:46 +00:00
maxv
2d6d292117 Fix a user-controlled memory allocation. kmem_alloc(0) will panic the system.
ok christos@
2014-07-10 19:12:07 +00:00
christos
0e34796007 initialize args the same way we do in filter. 2014-07-10 15:32:09 +00:00
christos
99a89ff913 add missing fallthrough 2014-07-10 15:26:30 +00:00
christos
0a57ec5aa3 CID 975226: hande error from UFS_WAPBL_BEGIN 2014-07-10 15:15:54 +00:00
christos
3280bf9706 table can't be NULL here. 2014-07-10 15:00:28 +00:00
rmind
131e3b3b7d tcp_accept: simplify a little. 2014-07-10 14:05:19 +00:00
justin
10b89fe038 Reinstate include of netdb.h, needed on some cross builds 2014-07-10 08:17:43 +00:00
dholland
42bd51ac43 Fix unchecked UFS_WAPBL_BEGIN. Coverity 975226.
Unfortunately it looks like all we can do on error here is printf.
2014-07-10 06:27:15 +00:00
jdc
faaa24402e Increase maximum MSGBUFSIZE to 248k.
While here, remove 2 sparc(32)-only entries (from mrg@).
2014-07-10 06:24:02 +00:00
dholland
e1f8b7119c Use an explicit compare to 0 for an immediate error result, not !.
Using ! is perfectly clear on variables like "error" or "result",
but directly on a function call it tends to look like a mistake.
2014-07-10 06:02:40 +00:00
justin
4ce85d0b6f Split out file and memory access in librumpuser
This allows alternate implementations to reuse these parts, and the file
parts will at the next hypercall revision be moved to their own driver.

Discussed with pooka@
2014-07-09 23:41:40 +00:00
riastradh
f31abfff58 Update reachover makefiles for MesaLib 7.11.2.
With the new GL shader compiler, glsl-compile is no longer needed as
a tool, but the shader compiler is now duplicated in several
libraries, so (XXX) external/mit/xorg/tools/glsl should be turned
into a proper library that libGL and libmesa can link against.
2014-07-09 20:22:55 +00:00
msaitoh
3b57daad13 Call bnx_print_adapter_info() before mii_attach() to not to
split bnx's dmesg into two parts by brgphy's dmesg.
2014-07-09 16:30:11 +00:00
christos
4d3bc7269f mention sig == 0 2014-07-09 16:06:47 +00:00
alnsn
674ca560ce Fix copy/paste error: s/rump_unschedule/rump_schedule/. 2014-07-09 15:56:12 +00:00
rtr
4a86612dc5 fix name clash i introduced when adding sockin_accept() pru by renaming
the rump sockin_accept(struct socket *) to sockin_waccept(struct socket *)

not a very creative name the 'w' indicates worker and was chosen to
prefix the word accept to make it not pattern match with _accept. if
someone prefers a different name then please feel free to change it.
2014-07-09 15:37:55 +00:00
rtr
d27b133d27 * split PRU_ACCEPT function out of pr_generic() usrreq switches and put
into a separate function xxx_accept(struct socket *, struct mbuf *)

note: future cleanup will take place to remove struct mbuf parameter
type and replace it with a more appropriate type.

patch reviewed by rmind
2014-07-09 14:41:42 +00:00
alnsn
467461f7c4 Add t_cop and t_extmem kernel bpfjit tests to the build. 2014-07-09 13:50:48 +00:00
alnsn
f80c8c7700 Add t_cop and t_extmem kernel bpfjit tests. 2014-07-09 13:49:49 +00:00
pooka
6af5cda4c9 Make the file system utility list consistent between fsck, mount and newfs.
For now, include ext2, ffs and msdosfs (and as a "special case", mount_tmpfs).
2014-07-09 12:20:32 +00:00
pooka
11d88b3d02 split "sys" further into "sys" and "posix", per comments from justin 2014-07-09 12:14:47 +00:00
martin
20aec96d38 Add libirs_g.a to more compat lib directories 2014-07-09 11:45:45 +00:00
maxv
56ce0b03bc Minor changes:
- malloc()+memset() -> malloc(|M_ZERO)
 - rename 'vers' to 'FSVers'
 - declare 'ExtFlags' instead of calling getushort() two times
2014-07-09 09:00:18 +00:00
maxv
8fce630b04 Remove ROOTNAME (unused). 2014-07-09 08:43:54 +00:00
maxv
ca657fc91e What a terrible use-after-free 2014-07-09 06:04:16 +00:00
maxv
310a1a5a66 - limit the number of sections with ELF_MAXSHNUM
- fix the (symstrindex > hdr->e_shnum) check: it should be >=, otherwise there's an
   off-by-one
 - fix the (symstrindex < 0) check: the value is unsigned, so it can't be <0. However,
   we should ensure that symstrindex!=0 (done with SHN_UNDEF)
 - set 'error' as appropriate
 - ensure that e_shstrndx < hdr->e_shnum, to prevent out-of-bound reads

Fixes several crashes that could occur when loading a kernel module.

Quick glance from martin@
2014-07-09 05:50:51 +00:00
rtr
d575eb5454 * split PRU_PEERADDR and PRU_SOCKADDR function out of pr_generic()
usrreq switches and put into separate functions
  xxx_{peer,sock}addr(struct socket *, struct mbuf *).

    - KASSERT(solocked(so)) always in new functions even if request
      is not implemented

    - KASSERT(pcb != NULL) and KASSERT(nam) if the request is
      implemented and not for tcp.

* for tcp roll #ifdef KPROF and #ifdef DEBUG code from tcp_usrreq() into
  easier to cut & paste functions tcp_debug_capture() and
tcp_debug_trace()

    - functions provided by rmind
    - remaining use of PRU_{PEER,SOCK}ADDR #define to be removed in a
      future commit.

* rename netbt functions to permit consistency of pru function names
  (as has been done with other requests already split out).

    - l2cap_{peer,sock}addr()  -> l2cap_{peer,sock}_addr_pcb()
    - rfcomm_{peer,sock}addr() -> rfcomm_{peer,sock}_addr_pcb()
    - sco_{peer,sock}addr()    -> sco_{peer,sock}_addr_pcb()

* split/refactor do_sys_getsockname(lwp, fd, which, nam) into
  two functions do_sys_get{peer,sock}name(fd, nam).

    - move PRU_PEERADDR handling into do_sys_getpeername() from
      do_sys_getsockname()
    - have svr4_stream directly call do_sys_get{sock,peer}name()
      respectively instead of providing `which' & fix a DPRINTF string
      that incorrectly wrote "getpeername" when it meant "getsockname"
    - fix sys_getpeername() and sys_getsockname() to call
      do_sys_get{sock,peer}name() without `which' and `lwp' & adjust
      comments
    - bump kernel version for removal of lwp & which parameters from
      do_sys_getsockname()

note: future cleanup to remove struct mbuf * abuse in
xxx_{peer,sock}name()
still to come, not done in this commit since it is easier to do post
split.

patch reviewed by rmind

welcome to 6.99.47
2014-07-09 04:54:03 +00:00
dholland
37c9f9432e Mention /usr/share/doc/changes. 2014-07-09 04:53:35 +00:00
riastradh
be676b3d46 Note mesa-demos in 3RDPARTY. 2014-07-08 22:39:38 +00:00
riastradh
8e2e60345a Update glxinfo/glxgears reachover makefiles for mesa-demos update. 2014-07-08 22:29:12 +00:00
riastradh
ec14ebad0b Add missing i386/libirs_g.a. 2014-07-08 22:06:06 +00:00
alnsn
0240ba3c8b Add t_mbuf tests to the build. 2014-07-08 21:47:21 +00:00
alnsn
f2b7757e98 Move bpfjit mbuf tests to t_mbuf.c. 2014-07-08 21:45:55 +00:00
alnsn
e1f7888b18 Clone libbpfjit tests to check kernel implementation of bpfjit.
Old content of t_bpfjit.c will be moved to t_mbuf.c shortly.
Change packet buffers to unsigned char[] type.
2014-07-08 21:44:26 +00:00
alnsn
f58748437d Rename bpfjit tests to libbpfjit. 2014-07-08 21:13:01 +00:00
alnsn
658efa8662 Rename bpfjit tests to libbpfjit, don't test zero buflen and a couple of
cosmetic changes.
2014-07-08 21:07:52 +00:00
msaitoh
49de7f7eab Add Vortex86EX. 2014-07-08 19:35:36 +00:00
maxv
1273c3cb8c - Perform sanity checks not just for GEMDOSFS, but for all FAT devices. This
also fixes a division-by-zero bug that could crash the system.
- Define GEMDOSFS_BSIZE instead of a hard-coded 512 value, and remove 'bsize'.
- Rename 'tmp' to 'BlkPerSec'.

From me, FreeBSD, OpenBSD and the FAT specification.

ok christos@
2014-07-08 19:34:47 +00:00
martin
7744c1c346 Add missing -lisccfg (hopefully fixing static builds) 2014-07-08 19:08:43 +00:00
msaitoh
ff0489cbb5 Add support for RDC R1012 IDE controller.
Tested on EduCake(Vortex86EX) with sdcard:

      |   read  | write |
------+---------+-------+
pciide|   999519| 244574|
rdcide| 16011238| 939895|
------+---------+-------+
(bytes/sec)
rd: dd if=/dev/rwd0a of=/dev/null bs=1m count=100
wr: dd if=/dev/zero of=/var/tmp/hoge bs=1m count=100
2014-07-08 18:01:26 +00:00
msaitoh
16b13abe5a Regen. 2014-07-08 17:45:44 +00:00
msaitoh
45ac92e938 Add some RDC devices. 2014-07-08 17:45:12 +00:00
maxv
8754c3d9cf Define ELF_MAXNOTESIZE, ELF_MAXSHNUM and ELF_MAXPHNUM in <sys/exec_elf.h>, so
that it can be used externally.
2014-07-08 17:16:25 +00:00
htodd
6cd04772ac Fix debug sets for bind. 2014-07-08 17:15:14 +00:00
pooka
b82b9c8f7f In addition to kernel/tools sources, include another selection of sources
useful for running application stacks on rump kernels.
2014-07-08 14:30:21 +00:00
chs
73ecc8c84d fix a device/softc error.
remove some related glue that is no longer needed.
2014-07-08 14:18:54 +00:00
mrg
8c06d93b7b call this bozohttpd 20140708, and add/fix a couple of CHANGES entries. 2014-07-08 14:06:17 +00:00