Commit Graph

226620 Commits

Author SHA1 Message Date
christos
687432e7a3 Handle the rest of gcc __attribute__ s. 2014-04-18 00:23:46 +00:00
christos
59bbfbb11d only fill memory with junk if BLKDEBUG 2014-04-18 00:21:14 +00:00
christos
a46cc2f317 handle LDOUBLE 2014-04-18 00:20:37 +00:00
pgoyette
282ceca326 Reference the correct test file name...
Hello again, xtos!
2014-04-17 23:15:27 +00:00
christos
20ba703761 make outname print where it came from in case of error 2014-04-17 18:52:03 +00:00
christos
a20e9a10c9 add new lint tests 2014-04-17 18:37:07 +00:00
christos
fc07744d1d add more tests 2014-04-17 18:34:44 +00:00
christos
10e73b5c30 - add a function to dump a node
- better diagnostics on abort
- allow converting a constant
- initialize right node now that we trash memory this makes a difference.
  before it was NULL.
2014-04-17 18:23:18 +00:00
christos
d0342ea7b6 put back missing arg 2014-04-17 18:17:09 +00:00
pgoyette
c59a3ffd71 s/null/NULL/ to fix build break
Hello, xtos!
2014-04-17 18:15:49 +00:00
martin
7d50c1ed2d Add missing uark and umcs attachments, bump date 2014-04-17 17:50:21 +00:00
christos
e34b25460d typeof and extension don't need parens 2014-04-17 17:29:24 +00:00
christos
f87049800a Trash freed memory so we catch bad uses. 2014-04-17 16:30:05 +00:00
christos
8a20351779 Don't free memory; it is used later. 2014-04-17 16:29:26 +00:00
christos
bb7f870e6d CID/1008347, CID/1008348, CID/1008349: overflow before widen
CID/1203198, CID/1203199:  Uninitialized scalar variable
2014-04-17 16:22:48 +00:00
christos
fa910fdab6 CID/1203196: Don't confuse coverity with out of bounds access 2014-04-17 16:14:22 +00:00
christos
b48e8c69e7 CID/1203197: NULL deref 2014-04-17 16:08:42 +00:00
christos
cf59c3a2a1 CID/1203194, CID/1203195: Out of bounds read 2014-04-17 16:05:45 +00:00
christos
eb84199eb9 CID/1203192, CID/1203193: Out of bounds read 2014-04-17 16:04:47 +00:00
christos
41b25bacda CID/1203191: Out of bounds read 2014-04-17 16:01:24 +00:00
christos
98bac80e02 CID/1203190: Fix NULL deref 2014-04-17 15:57:41 +00:00
christos
5a9da49e82 CID 1203189: Null deref. 2014-04-17 15:55:53 +00:00
christos
2a395ebf82 add LRO 2014-04-17 15:45:39 +00:00
christos
c14f88984c CIT 744275: Increase max_retry so we retry once. 2014-04-17 15:35:49 +00:00
christos
f4348d8ad9 CID 140077: Add missing break and FALLTHROUGH 2014-04-17 15:34:05 +00:00
christos
136c8cf0cd CID 141398: Fix incorrect test 2014-04-17 15:33:40 +00:00
skrll
e726eb3c65 Fix count vs ret confusion. ret is only set on error when count == 0 -
make sure this is the case.
2014-04-17 13:48:02 +00:00
tsutsui
5546b37c59 Check the service switch on 425e to select apci serial console.
Taken from OpenBSD/hp300.  See the following comment for details:
>> * Check the service switch. On the 425e, this is a physical
>> * switch, unlike other frodo-based machines, so we can use it
>> * as a serial vs internal video selector, since the PROM can not
>> * be configured for serial console.
2014-04-17 12:35:24 +00:00
matt
ad575cd374 Do softints after restoring interrupts 2014-04-16 22:44:42 +00:00
matt
96ebdccaee Add ctcom 2014-04-16 22:40:24 +00:00
matt
de53240564 Allow l2cc base to gotten from device properties. 2014-04-16 22:40:00 +00:00
pooka
ad5b64f98f Reparent children of a dying lwproc. Fixes wpa_supplicant -B (and
most likely a bunch of other things).
2014-04-16 22:34:02 +00:00
matt
44e315af63 Pendantic structure member initialization. (setting a field to 0 which is 0). 2014-04-16 22:33:07 +00:00
reinoud
dcce87eb7d Teach sscom attachment, also the console, to use the busspace handle of the
main register space.

While here, map in the correct amount of memory or bus_space_map() won't
return an error but will wedge the system.
2014-04-16 21:28:51 +00:00
joerg
e3dae42754 Undef possible macro versions of memcpy and friends for kernel builds
too. libkern sometimes defines them to the builtins.
2014-04-16 20:39:55 +00:00
maxv
cf89d4e5af Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
2014-04-16 19:25:28 +00:00
maxv
23f76b6d00 An (un)privileged user can easily make the kernel dereference a NULL
pointer.

The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).

ok christos@
2014-04-16 18:55:17 +00:00
tsutsui
267c148161 Put back "-Wa,-march=m68000 -Wa,-mcpu=m68000" for AFLAGS for X68000 models.
See my post in source-changes-d@ for details.
http://mail-index.netbsd.org/source-changes-d/2014/04/15/msg006723.html

Also use "-m68000" for CFLAGS for consistency.
(the previous -m68020-60 was harmless because vers.c has
 only const strings and there is no instruction)
2014-04-16 14:33:43 +00:00
tsutsui
7fad7fe91f Use booted device unit if no unit number is specified on boot command.
Bump version to denote a visible change.
2014-04-16 13:43:02 +00:00
tsutsui
d0f9358c7b Check a status code and return proper errno in sdstrategy().
Suggested by gcc 4.8 -Wunused-but-set-variable warning to use the variable.
2014-04-16 12:01:53 +00:00
tsutsui
718c0089c0 Appease gcc 4.8 -Wunused-but-set-variable warnings. 2014-04-16 11:18:00 +00:00
matt
b0bab4c12e Make to flush the secondary cache when syncing PTEs when the Sheeva L2 cache
is used.
2014-04-16 07:29:52 +00:00
uebayasi
c3b49b4f57 execve_runproc: Isolate vmcmd execution code into a function. 2014-04-16 02:22:38 +00:00
christos
035ceafe9d It is not nice to fake things we don't have; instead check explicitly
that we can get CS.
2014-04-16 02:14:44 +00:00
uebayasi
acaa1e700b execve_runproc: Isolate path / commandname (proc:p_comm) related code into a function. 2014-04-16 01:30:33 +00:00
htodd
c33d0dd3ae Add getaddrinfo.debug to lists. 2014-04-16 00:41:07 +00:00
christos
07009f7010 take constant expressions out of the loop. 2014-04-16 00:34:10 +00:00
christos
b8c0fcebe9 supply a fake cs that has has not have SEL_UPL set, so that our trapframe
sniffer works.
2014-04-16 00:32:33 +00:00
ginsbach
42bc9b7b73 Hook getaddrinfo(1) into the build. Hi riastradh! 2014-04-15 22:09:27 +00:00
reinoud
30e306bd55 Make the PoP detection both EXYNOS4 defined and when running on a generic
kernel, check if we're on a EXYNOS4 architecture to prevent mishaps.
2014-04-15 20:36:07 +00:00