dholland
f86ebf3938
Don't print junk errnos. Avoids:
...
% ps -tfoo
ps: /dev/ttyfoo: Undefined error: 0
Exit 1
2014-06-28 17:32:27 +00:00
maxv
87145c7a28
This KASSERT can trigger a panic too easily, if SCARG(uap, cmd)=SWAP_OFF and
...
SCARG(uap, arg)=NULL. The same KASSERT is already in the SWAP_ON switch case,
so just delete it here.
2014-06-28 15:52:45 +00:00
maxv
973b0f16a2
Sync getfh() with the native implementation. It also fixes:
...
a) a return value
b) a vnode lock
c) a user-controlled memory allocation
ok christos@, on tech-kern
2014-06-28 11:39:15 +00:00
maxv
2ccd0cb073
Empy comment
2014-06-28 11:06:31 +00:00
skrll
cc7dc561ab
Remove unused variables
2014-06-28 10:25:32 +00:00
skrll
70a57c80dc
#ifdef a variable like its usage.
2014-06-28 10:25:16 +00:00
rtr
e9c95bf579
patch posted to tech-kern@ 2014/06/25 for review with minor changes
...
resulting from feedback.
move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).
previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.
exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@
tested on amd64 & sparc64 but not zaurus.
2014-06-28 09:16:18 +00:00
darrenr
17a9965ed4
#537 NAT rules with sticky have incorrect hostmap IP address
2014-06-28 08:02:09 +00:00
darrenr
b816f84312
#534 destination list hashing not endian neutral
2014-06-28 07:59:26 +00:00
skrll
4622c29b51
Use DWC2_XFER2DPIPE
2014-06-28 07:01:51 +00:00
riastradh
eb10c7f5cb
Collect `#ifdef AGP_DEBUG printf(...)' into local DPRINTF macro.
2014-06-27 22:27:16 +00:00
riastradh
44f3d26119
Work around bug on one-pipe 845 devices until we update drm again.
2014-06-27 19:55:20 +00:00
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