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
skrll
8c543ccc77
If [eo]hci_init fail then bail out and don't try and attach devices.
2014-06-24 05:07:31 +00:00
macallan
ad4c0132fb
use STIP/BLIT on 8bit tcx and RSTIP/RBLIT on S24
2014-06-24 05:04:14 +00:00
joerg
504e8e687f
Add aliases for the builtins used to implement C11/C++11 atomics.
2014-06-23 21:53:45 +00:00
christos
38de16d38f
regen some more arm variants
2014-06-23 19:19:55 +00:00
christos
9d17f2f59b
Allow always setting MKCOMPAT (and not failing in weird ways like
...
creating a c++config.h that only contains #endif), by selecting
only machine_archs that contain *64* in their name.
2014-06-23 18:37:45 +00:00
maxv
5fa25b57b4
Use KASSERT() instead of #ifdef(DIAGNOSTIC). Clearer.
2014-06-23 18:06:32 +00:00
msaitoh
b72e30b6f7
Print APE firmware correctly.
2014-06-23 17:44:31 +00:00
maxv
f7c9f4d7c3
Enable KMEM_SIZE on DIAGNOSTIC. It will catch memory corruption bugs due to a
...
different size given to kmem_alloc() and kmem_free(), with no performance
impact.
2014-06-23 17:43:42 +00:00
msaitoh
ce5b0434fc
Regen.
2014-06-23 17:32:05 +00:00
msaitoh
9e21581c74
Add some HP iLO devices.
...
Add Matrox MGA G200eH.
2014-06-23 17:31:40 +00:00
rtr
c5cb349386
where appropriate rename xxx_ioctl() struct mbuf * parameters from
...
`control' to `ifp' after split from xxx_usrreq().
sys_socket.c
fix wrapping of arguments to be consistent with other function calls
in the file after replacing pr_usrreq() call with pr_ioctl() which
required one less argument.
link_proto.c
fix indentation of parameters in link_ioctl() prototype to be
consistent with the rest of the file.
discussed with rmind@
2014-06-23 17:18:45 +00:00
matt
866279dbba
Teach configfsf.guess about coldfire and earm
2014-06-23 17:18:43 +00:00
christos
3a6f0f67e4
remove gdbint.info; it is no more.
2014-06-23 15:22:07 +00:00
christos
527bf5b2ba
No more gdbint.texinfo; has been removed upstream
2014-06-23 15:05:30 +00:00