Commit Graph

199744 Commits

Author SHA1 Message Date
jruoho 9827f0b4f3 Formally verify the numerous bugs in humanize_number(3).
From PR lib/44097, by yamt@.
2011-04-06 10:04:53 +00:00
jruoho e254abd58b A test case for PR lib/44057. 2011-04-06 09:35:49 +00:00
roy 57772bc81d import dhcpcd-5.2.12 2011-04-06 09:11:08 +00:00
roy e21138bdbf Sync 2011-04-06 09:09:05 +00:00
roy a2af890d85 Import dhcpcd-5.1.12 with the following changes:
* 20-resolv.conf now uses the correct variable for $IF_METRIC
* Exclude interface values when dumping the lease
* Parse static value subnet_mask when it exists instead of deriving from
  ip address
* logger calls now resemble dhcpcd calls to syslog(3)
* Reject offered IP address if INADDR_BROADCAST or INADDR_ANY
* Change the route if source address has changed
* Note the address we are requesting in the broadcast log entry
* When operating on one interface, respect the timeout for in dhcpcd.conf
* Escape | and & characters before passing the value to the shell
  Ensure we set a valid hostname, DNS domain and NIS domain.
  Document the need for input validation in dhcpcd-run-hooks(8).
  Fixes CVE-2011-996
  Based on a patch to dhcpcd-3 by Marius Tomaschewski <mt@suse.de>
2011-04-06 09:06:41 +00:00
jruoho e21f0b912e As there is PR lib/42587, mark tiny POSIX error as expected failure. 2011-04-06 08:47:55 +00:00
jruoho 6e3ec5b1a3 Fix PR # 41894. 2011-04-06 08:38:43 +00:00
jruoho e4898fb179 Include stdint(3) for user space. Fixes PR # 39744. 2011-04-06 08:15:44 +00:00
jruoho 2ae856efaa Verify the existence of PR lib/33262. 2011-04-06 07:25:34 +00:00
jruoho e519fcc23a Add heuristic evaluation of PR kern/30115. 2011-04-06 06:46:14 +00:00
jruoho 03fcec4259 Fix comment due explicit atf_tc_expect_fail(). 2011-04-06 05:56:05 +00:00
matt 8c807efebc minor cleanups. foo -> foo_p. add some whitespace. 2011-04-06 05:53:27 +00:00
jruoho 8cbe414029 Add few simple tests for getrusage(2), including heuristic for PR # 41734. 2011-04-06 05:53:16 +00:00
matt 50afc312ee A little constification.
Add MIPS 1004K entry.
2011-04-06 05:50:39 +00:00
matt 90086ecf83 Use the new COP0* stuff in cpuregs.h 2011-04-06 05:48:35 +00:00
matt 011b9dfc63 slight reordering. no functional change. 2011-04-06 05:47:54 +00:00
matt e59e9990e5 Add a tiny bit of whitespace. 2011-04-06 05:43:11 +00:00
matt ff7f1cb0e1 Fix some comments. 2011-04-06 05:42:45 +00:00
matt 7c88f4863a Fix LKM/MODULAR case. 2011-04-06 05:42:21 +00:00
jruoho 789c04236c Note also KASSERTMSG(). Small markup changes. 2011-04-06 05:40:18 +00:00
matt 72dfff31fe Load pc into ta0 instead of ra and then saving to ta0.
misc comments fixes.
2011-04-06 05:39:51 +00:00
matt 1790477f41 Sort LWP fields 2011-04-06 05:38:19 +00:00
matt 0c8ae5bb18 Don't bother saving T8 (MIPS_CURLWP).
Avoid branches when determining delay slot.
2011-04-06 05:37:59 +00:00
matt 0d18afd259 Fix a bug with pmap_remove_all and pmap_deactivate. Should prevent any
pmap_activate from allocating an ASID while doing pmap_remove_all XXX.
2011-04-06 05:35:37 +00:00
matt 4bb672436e Remove dead code.
KNF cleanup.
2011-04-06 05:33:07 +00:00
matt 86cc1c53e6 Change a KASSERT to KASSERTMSG 2011-04-06 05:23:59 +00:00
matt bd363a3179 Rename kernel_tlb_miss to kern_tlb_miss (everything else kern_xxx)
Don't load k1 in delay slot to MIPS_CURLWP before branching to
kern_gen_exception since that doesn't use the lwp pointer in k1
(since it can the lwp in MIPS_CURLWP instead).  Use nop instead.
Rework tlb_invalid_exception a bit so the result of the tlbp is
done before seeing if the tlb slot was even or odd.  Makes the
routine slightly smaller.
2011-04-06 05:13:36 +00:00
matt dc2f9d8cf0 Indent delay slots by a space. 2011-04-06 05:07:40 +00:00
jruoho 1640c99fcf Remove redundant memset(3) calls. 2011-04-06 03:47:14 +00:00
dyoung 9aa93a16e8 Fix target 'tags'. 2011-04-06 01:49:23 +00:00
dyoung 4867aaab9f Fix fallout from pci_attach_args constification. 2011-04-06 01:48:43 +00:00
dyoung b1084717a7 Fix pci_attach_args constification fallout. 2011-04-06 01:44:45 +00:00
dyoung 8080811d3e Fix target 'tags'. 2011-04-06 01:43:13 +00:00
dyoung 67ce16669f Fix fallout of pci_attach_args constification. This should be the last
one for algor.
2011-04-06 01:37:59 +00:00
dyoung 3a4f5f68fa Fix fallout from pci_attach_args constification. 2011-04-06 01:32:06 +00:00
dyoung 4934592d44 Fix target 'tags'. 2011-04-06 01:31:20 +00:00
dyoung 10db401f9d Fix fallout from pci_attach_args constification. 2011-04-06 01:25:18 +00:00
dyoung 92b62812ca Fix target 'tags'. 2011-04-06 01:24:43 +00:00
dyoung fd66c04152 Use PCI_MAPREG_START instead of the anonymous constant 0x10. 2011-04-05 23:37:46 +00:00
dyoung ff183015a1 Bitwise-OR PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE into
the PCI Command Register instead of PCI_FLAGS_IO_ENABLED |
PCI_FLAGS_MEM_ENABLED.  The latter amounts to the same value, but the
names are in the pa_flags namespace instead of the PCI Command Register
bits namespace.
2011-04-05 23:25:00 +00:00
dyoung bd9419d824 Lightly KNF. Changes to the generated assembly language appeared to
correspond to line numbers in KASSERT() statements.
2011-04-05 23:10:52 +00:00
macallan fdc4af2490 fix a typo 2011-04-05 23:05:06 +00:00
jruoho 6e7cc21a77 Fix small boolean oversight. 2011-04-05 19:06:09 +00:00
jruoho 28d491ccd9 Basic tests for setrlimit(2). 2011-04-05 19:02:22 +00:00
plunky c5f754b958 inc pointer, so we store the value in the correct place 2011-04-05 18:58:43 +00:00
plunky 63f86cb4b8 Don't add the passed in 'len' value while testing if the data
space is large enough, to handle the edge case where len is
large (up to SSIZE_MAX may be valid on some machines) causing
pointers to wrap around and the fail condition to be missed.
2011-04-05 18:19:04 +00:00
jmmv 19180a785c Pull up revision b94e200f2a6ce3d47103339db1f3c8936b7238d3:
Unset TERM when running GDB

GDB inserts some funny control characters in its output when TERM is set to
e.g. xterm.  Workaround this by simply unsetting TERM.

Reported by martin@ and diagnosed by pooka@/martin@.
2011-04-05 17:17:35 +00:00
jmmv 8f2e7abf72 Set LIBISCXX=yes; from joerg@. 2011-04-05 16:37:06 +00:00
dyoung 38c5ac17f7 Update manual page for constification of pci_attach_args. 2011-04-05 14:57:33 +00:00
jruoho 01072bafe8 Rename some tests. No functional change. 2011-04-05 14:04:42 +00:00