Commit Graph

228017 Commits

Author SHA1 Message Date
skrll
9590415a5a Use the right macro in dwc2_root_intr_start 2014-06-27 07:28:26 +00:00
matt
3958509594 Change ARM ELF_MAXPAGESIZE to 0x10000 and also change TEXT_START_ADDR for
nbsd to 0x10000.
2014-06-26 22:55:23 +00:00
christos
321c9aef65 don't depend on expandtc to open the database or not. 2014-06-26 20:14:32 +00:00
msaitoh
af7b229d67 Pass MIIF_DOPAUSE mask to mii_attach() in if_emac.c. emac(4) change a
register from IFM_FLOW flag, so this change is required to control the
setting via ifconfig. PR#48950. OK'd by matt@.
2014-06-26 07:50:29 +00:00
dholland
fedb6c32b4 put the sccsids back here too 2014-06-26 03:24:51 +00:00
christos
bf51dc6d97 restore sccsid[]'s per core@'s decision 2014-06-26 02:14:32 +00:00
christos
9ab46539af Don't initialize the fh pointer to NULL when the allocation functions fail
and allow NULL in the free functions. It just leads to writing sloppy code
for no good reason.
2014-06-26 01:46:03 +00:00
szptvlfn
20e418f0d1 s/stavfs/statvfs/ 2014-06-25 23:22:18 +00:00
skrll
dbc7cd8311 Remove a couple of items 2014-06-25 21:23:03 +00:00
alnsn
5706f5de50 Fix copyright years. 2014-06-25 19:32:37 +00:00
alnsn
c923aef9b6 Add new libbpfjit tests. 2014-06-25 19:20:46 +00:00
alnsn
a6c4b35211 Add t_extmem test. 2014-06-25 19:13:27 +00:00
alnsn
966c8b069a Add external memory tests. 2014-06-25 19:13:03 +00:00
alnsn
5b6fcae7f9 Fix copyright. These tests are based on tests created in 2013 on github.com.
https://github.com/alnsn/bpfjit , files test/test_cop{,x}.c.
2014-06-25 18:16:40 +00:00
alnsn
6c8422a022 Add t_cop test. 2014-06-25 18:04:44 +00:00
alnsn
5990d54c7c Add BPF_COP and BPF_COPX tests. 2014-06-25 18:04:05 +00:00
christos
32d87f41a7 Provide a compatibility define for binaries generated before NetBSD 1.5.
These binaries contain multiple notes per section and their NetBSD version
value is 199905. This is enabled via COMPAT_OLDNOTE (default off).
2014-06-25 17:10:39 +00:00
njoly
05d405dade Add support for more open flags that have a native equivalent
(O_NONBLOCK, O_DIRECT and O_NOFOLLOW).
Translate native EFTYPE error (missing on Linux) to expected ELOOP;
when opening symlinks with flag O_NOFOLLOW.
2014-06-25 16:38:53 +00:00
maxv
5b91db99c9 1) Make clear that we want the space allocated for the KMEM_SIZE header to be
aligned, by using kmem_roundup_size(). There's no functional difference with
   the current MAX().

2) If there isn't enough space in the page padding for the red zone, allocate
   one more page, not just 2 bytes. We only poison 1 or 2 bytes in this page,
   depending on the space left in the previous page. That way 'allocsz' is
   properly aligned. Again, there's no functional difference since the shift
   already handles it correctly.
2014-06-25 16:35:12 +00:00
njoly
bf8fee7bf6 Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values. 2014-06-25 16:30:42 +00:00
abs
1dd8a23cb1 Enable ie0 in DISKLESS for sun3/110 2014-06-25 16:14:43 +00:00
maxv
26b0b0e266 Rephrase some comments and remove whitespaces. No functional change. 2014-06-25 16:05:22 +00:00
riastradh
ba2bea2344 No, that should be unsigned. 2014-06-25 15:04:53 +00:00
alnsn
c9a2e5bb28 Default initialize external memwords.
This change doesn't affect performance of valid bpf kernel programs
because bpf_filter_ext() checks that all memwords are initialized
explicitly.
2014-06-25 13:53:40 +00:00
riastradh
3b3e9badb3 Fix integer type mismatch in debug printf. 2014-06-25 13:10:27 +00:00
alnsn
6ba0a195e1 New jitcode takes two arguments. 2014-06-25 11:58:15 +00:00
alnsn
e8d0d0ec8c Use SLJIT_MOV_P to copy extmem pointer. 2014-06-25 11:13:28 +00:00
alnsn
09ba0bba16 Check "preinited" argument of bpf_set_extmem(). 2014-06-25 09:51:34 +00:00
uwe
7fbcdeb13a Command file argument to -f is not optional. 2014-06-25 02:05:58 +00:00
rmind
296dce2c93 bpfjit_generate_code: emit the instruction correctly. 2014-06-25 01:21:36 +00:00
rmind
c3d5721647 npftest: add an example in the README, fix the total in npf_test_conc(). 2014-06-25 00:21:42 +00:00
rmind
263d30c43e Adjust NPF to the recent BPF / BPF JIT changes and make it work again.
All regression tests are happy now (hi alnsn!).
2014-06-25 00:20:06 +00:00
msaitoh
f7e5164657 No functional change:
- Tabify.
- Remove trailing white spaces.
- Fix typo in comment.
2014-06-24 23:25:33 +00:00
rmind
f32e244083 - bpf_validate_ext: fix memword validation in BPF_ST/BPF_STX case.
- bpf_set_extmem: check the number of words against BPF_MAX_MEMWORDS.
2014-06-24 22:27:40 +00:00
spz
dd745abb62 Fix our iconv version for the issues that apply to us from CVE-2014-3951
(which are the:
- Consistently pass around context information using a simple pointer.
  This fixes some dereferencing bugs in Chinese character set conversions.
- Fix Simplified Chinese character set conversions by switching around the
  fields of an internal struct so it corresponds with the way variables of
  this type are initialised.
part)
Patch taken from FreeBSD and mutilated to fit.
FreeBSD credits: Manuel Mausz (reporter), Tijl Coosemans (report handler)
2014-06-24 22:24:18 +00:00
rmind
dd10cc70db - Improve the comments in bpf.h and KNF a little.
- Rename bpf_ctx_t member noinit to preinited (reflects the meaning better).
2014-06-24 22:19:36 +00:00
drochner
1970d452ef add a public domain notice 2014-06-24 16:39:39 +00:00
maxv
eb92b9efbc Do not hardcode the value. Use KQ_NEVENTS. 2014-06-24 14:42:43 +00:00
maxv
dc0681e4c5 Allocate directly KQ_NEVENTS bytes. Otherwise a user can panic the system.
ok christos@
2014-06-24 14:33:57 +00:00
kiyohara
6354014157 Revert previous commit. Requested by matt@. 2014-06-24 12:54:56 +00:00
maxv
a125a5eac2 Remove unused headers. 2014-06-24 12:17:40 +00:00
joerg
8e870b303d Bump SYMTAB_SPACE to allow clang to build this kernel. 2014-06-24 12:17:33 +00:00
maxv
b042e45033 Remove dead code. The kernel already checks for PT_INTERP sections, and puts
their content into "itp". There's no need for re-reading the whole binary and
trying to find this section again. Just use "itp".

DEBUG_FREEBSD_ELF is now unused, so remove its references in amd64/conf/ALL
and i386/conf/ALL.
2014-06-24 11:59:10 +00:00
alnsn
65b8637bc0 Zap trailing spaces. 2014-06-24 11:32:36 +00:00
alnsn
f9dc8d88ce Fix signatures of copfuncs. 2014-06-24 11:31:49 +00:00
alnsn
19fed70d36 Implement copfuncs and external memory in bpfjit. 2014-06-24 10:53:30 +00:00
maxv
b61ced9fc0 'miliseconds' -> 'milliseconds'. 2014-06-24 10:08:45 +00:00
skrll
79e4d54844 PR/48944: cron ignores '?' (question mark) time field
Fix the obvious merge botch.
2014-06-24 09:17:54 +00:00
maxv
fb1a1f54c3 KMEM_REDZONE+KMEM_POISON is supposed to detect buffer overflows. But it only
poisons memory after kmem_roundup_size(), which means that if an overflow
occurs in the page padding, it won't be detected.

Fix this by making KMEM_REDZONE independent from KMEM_POISON and making it
put a 2-byte pattern at the end of each requested buffer, and check it when
freeing memory to ensure the caller hasn't written outside the requested area.

Not enabled on DIAGNOSTIC for the moment.
2014-06-24 07:28:23 +00:00
shm
55b8853aa5 PR/48810 use cgi handler for index files
OK mrg@ martin@
2014-06-24 07:23:59 +00:00