Commit Graph

245907 Commits

Author SHA1 Message Date
christos
5651a1bdca update bind 2016-11-02 00:40:27 +00:00
pgoyette
d2c5fd3368 Protect against buffer overflow. 2016-11-02 00:39:56 +00:00
pgoyette
d365923e93 Forgot these two generated files... 2016-11-02 00:32:59 +00:00
pgoyette
032607b8f0 Regenerate files for modularization of ptrace(2) 2016-11-02 00:14:11 +00:00
pgoyette
a396e9b233 Update sets lists for new ptrace{,_common} modules 2016-11-02 00:12:41 +00:00
pgoyette
a60b99094c * Split sys/kern/sys_process.c into three parts:
1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.
2016-11-02 00:11:59 +00:00
pgoyette
1adbabf156 Update dependencies for COMPAT_LINUX32 to include COMPAT_NETBSD32
Without this, an attempt to build a kernel with COMPAT_LINUX32 but without
COMPAT_NETBSD32 will fail during the execution of genassym, and the error
messages are not very helpful.

With this change, config(1) will automatically (and silently) select/add
COMPAT_NETBSD32 to the configuration.  It might be better if config(1)
were to issue an appropriate diagnostic, but that is a change for some
future day.
2016-11-01 22:54:33 +00:00
christos
a53893bf63 rebuild if the version file changes, so binaries report the right version. 2016-11-01 21:56:11 +00:00
christos
dfa9f336ab merge conflicts 2016-11-01 21:55:51 +00:00
christos
c4bb1d45a2 bind-9.10.4-P4
4489.  [security]      It was possible to trigger assertions when processing
                       a response. (CVE-2016-8864) [RT #43465]
2016-11-01 20:45:40 +00:00
christos
1b213f3d03 fix libiberty_g.a 2016-11-01 19:21:17 +00:00
jdolecek
7d01329449 note wapbl truncate fix 2016-11-01 18:57:56 +00:00
jdolecek
8ed63d94b4 remove dup line 2016-11-01 16:15:51 +00:00
christos
3d63ec494e need an = 2016-11-01 15:58:41 +00:00
wiz
f899b3dcea Bump date for previous. 2016-11-01 15:30:47 +00:00
jdolecek
3a357b71a7 reduce admin queue size to save memory; it's only ever used during
attach/detach and for nvmectl(8), so there is actually no point having it big
2016-11-01 14:46:31 +00:00
skrll
0d033f4194 Obsolete gcc files 2016-11-01 14:45:25 +00:00
jdolecek
a2a95605bd pass maxphys from device rather then assuming MAXPHYS; it's clipped in ld(4)
if bigger then MAXPHYS

multiply the queue size by number of queues for ld(4) sc_maxqueuecnt, so
that ld_diskstart() would try to use full capacity, instead of throttling
to one queue worth of commands
2016-11-01 14:39:38 +00:00
jdolecek
b5e5261cdf tighter queue control - according to spec actual cap on number of commands
in flight is actually one less then queue size, head == tail means empty
queue
2016-11-01 14:24:35 +00:00
skrll
00c98aaf30 enable xorg-server 1.18 for evbarm 2016-11-01 14:21:30 +00:00
christos
84f3f387af bump binutils libraries 2016-11-01 14:04:48 +00:00
christos
24c043b8d9 bump both (belatedly) 2016-11-01 14:02:15 +00:00
christos
ed77187f53 Add NODEBUGLIB, perhaps LIBISPRIVATE is better here? 2016-11-01 14:02:01 +00:00
christos
3dbb75efa9 add NODEBUGLIB 2016-11-01 14:01:25 +00:00
kamil
0144090d24 Document PT_SET_EVENT_MASK, PT_GET_EVENT_MASK and PT_GET_PROCESS_STATE
These descriptions are imported from OpenBSD.

Approved by <christos>

Sponsored by <The NetBSD Foundation>
2016-11-01 13:51:13 +00:00
maxv
6afccfe796 Map the PTE space as non-executable on PAE. The same is already done on
amd64.
2016-11-01 12:16:10 +00:00
maxv
36b3504040 Map the remaining pages as non-executable. Only text should have X. 2016-11-01 12:00:21 +00:00
ozaki-r
d5dc0960bb Reduce the number of return points
No functional change.
2016-11-01 10:32:57 +00:00
christos
6e03f6000c Don't spin if we already own the mutex, otherwise we will get stuck spinning
forever, fixes timemutex{1,2} tests.
2016-10-31 23:53:12 +00:00
christos
b6bcbcb52f more tests from kamil 2016-10-31 23:51:20 +00:00
skrll
e0370c2ad8 Fix linker script entries for arch64 mips 2016-10-31 20:22:35 +00:00
skrll
424aa5458d Mark linker scripts with binutils 2016-10-31 20:16:48 +00:00
skrll
1a24f78652 sort (sort of) 2016-10-31 20:14:08 +00:00
kamil
3b2abf0b2a Add CHECK_NOT_THREADED() in __libc_mutexattr_settype_stub()
This makes this function consistent with __libc_mutex_catchall_stub()
and others in the same group.

Approved by <christos>.
2016-10-31 18:10:11 +00:00
abhinav
0551ffcf66 Fix file name auto completion in one specific case.
For example if you do
$mkdir -p /tmp/dir1/dir2

Then:
$ls /tmp/di <TAB> auto completes to
$ls /tmp/dir1/

Hitting <TAB> again auto completes to
$ls /tmp/dir1/dir2

Whereas it should auto complete to
$ls /tmp/dir1/dir2/


Essentially, in cases like above where you have to hit <TAB> twice to get
to the match and there is only one match (because only one file/sub-directory) then
auto complete doesn't work correctly. It doesn't append a trailing slash (in case
of directory) or a space (in case of a file) to the match name.

I have tested file name completion in sh(1) and symbol completion in gdb after
this change.
2016-10-31 17:46:32 +00:00
christos
73f2b871c9 fix typos 2016-10-31 16:23:03 +00:00
christos
179c7d3b31 Merge and fix the timed mutex tests to use absolute time.
NB: the new tests are broken?
2016-10-31 16:21:23 +00:00
maxv
e18421c86e The mbuf is freed by the protocol even on error, so always NULL the pointer
instead of double-freeing it. Indirectly pointed out by Mootja.
2016-10-31 15:27:24 +00:00
maxv
a8d918182b Memory leak, found by Mootja. By the way, we probably shouldn't be
returning -1 here.
2016-10-31 15:08:45 +00:00
maxv
bee122aa97 Memory leak, found by Mootja. It is easily triggerable from userland. 2016-10-31 15:05:05 +00:00
christos
e3992d8536 restore previous logic. 2016-10-31 14:34:32 +00:00
skrll
94b84ddb19 Pre-allocate some kcpuset_ts so that we don't try and allocate in the
wrong context.
2016-10-31 12:49:04 +00:00
skrll
7a18db2183 Fixup IPI interrupt delivery and splsched mask so that
sys/uvm/pmap/pmap_tlb.c

    541 	KASSERTMSG(ci->ci_cpl >= IPL_SCHED,
    542 	    "%s: cpl (%d) < IPL_SCHED (%d)",
    543 	    __func__, ci->ci_cpl, IPL_SCHED);

doesn't fire.
2016-10-31 12:27:22 +00:00
christos
683d8d5aa6 PR/51574: You can't always get what you want, but if you try sometime..
Remove unreachable code.
2016-10-31 12:18:10 +00:00
ozaki-r
cd4a5f447b Add tests for ping6 options
- -S <sourceaddr>
- -I <interface>
- -g <gateway>
2016-10-31 10:38:25 +00:00
martin
4b719b6d22 Stopgap fix for in-kernel compilation (differences between humanize_number(3)
and humanize_number(9)), ok: msaitoh
2016-10-31 09:13:20 +00:00
pgoyette
c16bd04c08 Fix markup .Dv --> .Dq
(Thanks, wiz!)
2016-10-31 07:37:10 +00:00
msaitoh
457bdd14ee Decode Resizable BAR. 2016-10-31 05:10:45 +00:00
dholland
5358d0befc Add another case related to the ones from PR 49278: [A-\\]. 2016-10-31 05:08:53 +00:00
ozaki-r
c5224ffd07 Pull best address selection code out of in6_selectsrc
No functional change.
2016-10-31 04:57:10 +00:00