Commit Graph

204460 Commits

Author SHA1 Message Date
John Baldwin
f44fc79d0b Group the decoded system calls by ABI and sort the calls within each ABI.
Reviewed by:	bdrewery
Glanced at by:	kib
Differential Revision:	https://reviews.freebsd.org/D3823
2015-10-06 19:31:07 +00:00
John Baldwin
189ac973de Fix various edge cases related to system call tracing.
- Always set td_dbg_sc_* when P_TRACED is set on system call entry
  even if the debugger is not tracing system call entries.  This
  ensures the fields are valid when reporting other stops that
  occur at system call boundaries such as for PT_FOLLOW_FORKS or
  when only tracing system call exits.
- Set TDB_SCX when reporting the stop for a new child process in
  fork_return().  This causes the event to be reported as a system
  call exit.
- Report a system call exit event in fork_return() for new threads in
  a traced process.
- Copy td_dbg_sc_* to new threads instead of zeroing.  This ensures
  that td_dbg_sc_code in particular will report the system call that
  created the new thread or process when it reports a system call
  exit event in fork_return().
- Add new ptrace tests to verify that new child processes and threads
  report system call exit events with a valid pl_syscall_code via
  PT_LWPINFO.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D3822
2015-10-06 19:29:05 +00:00
Glen Barber
bdd1ac9040 Update the last check revision marker.
Sponsored by:	The FreeBSD Foundation
2015-10-06 19:07:10 +00:00
Glen Barber
c472a3f482 Document r288943, clang, llvm, etc. updated to upstream 3.7.0.
Sponsored by:	The FreeBSD Foundation
2015-10-06 19:06:34 +00:00
Conrad Meyer
e6b95927f3 Fix core corruption caused by race in note_procstat_vmmap
This fix is spiritually similar to r287442 and was discovered thanks to
the KASSERT added in that revision.

NT_PROCSTAT_VMMAP output length, when packing kinfo structs, is tied to
the length of filenames corresponding to vnodes in the process' vm map
via vn_fullpath.  As vnodes may move during coredump, this is racy.

We do not remove the race, only prevent it from causing coredump
corruption.

- Add a sysctl, kern.coredump_pack_vmmapinfo, to allow users to disable
  kinfo packing for PROCSTAT_VMMAP notes.  This avoids VMMAP corruption
  and truncation, even if names change, at the cost of up to PATH_MAX
  bytes per mapped object.  The new sysctl is documented in core.5.

- Fix note_procstat_vmmap to self-limit in the second pass.  This
  addresses corruption, at the cost of sometimes producing a truncated
  result.

- Fix PROCSTAT_VMMAP consumers libutil (and libprocstat, via copy-paste)
  to grok the new zero padding.

Reported by:	pho (https://people.freebsd.org/~pho/stress/log/datamove4-2.txt)
Relnotes:	yes
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D3824
2015-10-06 18:07:00 +00:00
Dimitry Andric
4f4bbad316 Upgrade our copies of clang, llvm, lldb, compiler-rt and libc++ to 3.7.0
release.

Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.

Release notes for llvm and clang can be found here:
<http://llvm.org/releases/3.7.0/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.7.0/tools/clang/docs/ReleaseNotes.html>

Thanks to Ed Maste, Andrew Turner and Antoine Brodin for their help.

Exp-run:	antoine
Relnotes:	yes
2015-10-06 17:53:29 +00:00
Glen Barber
c844a7d10f Document r288669, stack protector "strong" level.
Help from:	pfg
Sponsored by:	The FreeBSD Foundation
2015-10-06 17:42:31 +00:00
Glen Barber
025ef85609 Document r288654, lagg(4) fec removal.
Sponsored by:	The FreeBSD Foundation
2015-10-06 17:42:30 +00:00
Enji Cooper
b1c0dae171 Add directory for test encoder missed by accident in r288929
Sponsored by: EMC / Isilon Storage Division
2015-10-06 17:22:54 +00:00
Enji Cooper
f09af4b5c9 Remove a comment from an earlier iteration of trying to figure out how the
test encoder testcases worked
2015-10-06 17:18:15 +00:00
Enji Cooper
4436b51dff Integrate the tests from libxo into the FreeBSD test suite
The functional_test.sh harness for each test subdir was inspired
by the version in bin/sh/tests/functional_test.sh

Some gymnastics were required to deal with implicit rules for
.c / .o -> .out as the suffix transformation rules were
incorrectly trying to create the test outputs from some of the
source files

Sponsored by: EMC / Isilon Storage Division
2015-10-06 16:58:47 +00:00
Dimitry Andric
d31de54826 Update dates in UPDATING and ObsoleteFiles.inc. 2015-10-06 16:26:07 +00:00
Dimitry Andric
88750be440 Merge ^/head r288836 through r288925. 2015-10-06 16:25:13 +00:00
Roger Pau Monné
1a52c10530 Update Xen headers from 4.2 to 4.6
Pull the latest headers for Xen which allow us to add support for ARM and
use new features in FreeBSD.

This is a verbatim copy of the xen/include/public so every headers which
don't exits anymore in the Xen repositories have been dropped.

Note the interface version hasn't been bumped, it will be done in a
follow-up. Although, it requires fix in the code to get it compiled:

 - sys/xen/xen_intr.h: evtchn_port_t is already defined in the headers so
   drop it.

 - {amd64,i386}/include/intr_machdep.h: NR_EVENT_CHANNELS now depends on
   xen/interface/event_channel.h, so include it.

 - {amd64,i386}/{amd64,i386}/support.S: It's not neccessary to include
   machine/intr_machdep.h. This is also fixing build compilation with the
   new headers.

 - dev/xen/blkfront/blkfront.c: The typedef for blkif_request_segmenthas
   been dropped. So directly use struct blkif_request_segment

Finally, modify xen/interface/xen-compat.h to throw a preprocessing error if
__XEN_INTERFACE_VERSION__ is not set. This is allow us to catch any file
where xen/xen-os.h is not correctly included.

Submitted by:		Julien Grall <julien.grall@citrix.com>
Reviewed by:		royger
Differential Revision:	https://reviews.freebsd.org/D3805
Sponsored by:		Citrix Systems R&D
2015-10-06 11:29:44 +00:00
Gleb Smirnoff
640082d498 Remove debugging variable from r143761. 2015-10-06 09:43:49 +00:00
Hiroki Sato
c1d0909a53 Reallocate a maxlen-long buffer only when the current maxlen is
shorter than the required length.  Note that it rarely happens
because maxlen is almost always 128 which covers struct sockaddr_storage.
2015-10-06 08:43:48 +00:00
Hiren Panchasara
62d4443f00 Add a comment specifying how we implement rfc3042.
Differential Revision:	D3746
MFC after:	    1 week
Sponsored by:	    Limelight Networks
2015-10-06 07:46:19 +00:00
Enji Cooper
7fd25aff6b Use LIBXOSRC instead of LIBXO when defining the path to contrib/libxo
The latter is already defined in bsd.libnames.mk, so avoid the conflict
in case someone copy-pastes make variables

While here, switch path to the top of the source tree with SRCTOP
2015-10-06 07:28:54 +00:00
Alan Cox
27e9ed8a5a Exploit r288122 to address a cosmetic issue. Pages belonging to either
the kernel or kmem object can't be paged out.  Since they can't be paged
out, they are never enqueued in a paging queue.  Nonetheless, passing
PQ_INACTIVE to vm_page_unwire() in kmem_unback() creates the appearance
that these pages are being enqueued in the inactive queue.  As of r288122,
we can avoid giving this false impression by passing PQ_NONE.

Submitted by:	kmacy
Differential Revision:	https://reviews.freebsd.org/D1674
2015-10-06 05:49:00 +00:00
Warner Losh
b946bedd09 Previous versions of bsd.own.mk included bsd.compiler.mk
only when _WITHOUT_SRCCONF wasn't defined. Restore this
behavior because bsd.ports.mk depends on this in subtle
ways. The compat include of bsd.compiler.mk should
be removed in 12 anyway.

PR:	203540
2015-10-06 04:18:48 +00:00
Cy Schubert
d029a42ab4 On some interfaces, ipfilter drops UDP packets with zero checkum.
This commit fixes that.

PR:		166372
Submitted by:	mk@neon1.net
Reviewed by:	Darren Reed <darrenr@reed.wattle.id.au>
MFC after:	1 week
2015-10-06 03:41:11 +00:00
Justin Hibbits
db0d64f24a Save the link register in savectx().
Pointed out by:	jhb
2015-10-06 01:24:46 +00:00
Glen Barber
777f366fb6 Use UBOOT_FILES in the dd(1) input file, as intended.
Sponsored by:	The FreeBSD Foundation
2015-10-06 01:05:07 +00:00
Enji Cooper
20dbf8ef41 Call sync consistently using atf_check
Remove superfluous sync's
2015-10-06 01:00:12 +00:00
Enji Cooper
910be139a2 Explicitly set BLOCKSIZE to 512 in the environment 2015-10-06 00:55:31 +00:00
Enji Cooper
f46d1be662 Add some more syncs to quiesce the filesystem after creating the
files to see if this fixes deterministic Jenkin failures
2015-10-06 00:23:50 +00:00
Warner Losh
3a845236df Start using the fact that SUBDIR.yes is added to SUBDIR
and move from the pattern of:

.if ${MK_FOO} != "no"
SUBDIR+= bar
.endif

to

SUBDIR.${MK_FOO}+= bar

since we know that MK_FOO is always either yes or no and the latter
form is easier to follow and much shorter. Various exception to this
pattern dealt with on an ah-hoc basis.

Discussed on arch@ a while ago.
2015-10-05 21:41:55 +00:00
Bryan Drewery
94746562ff Fix crash if a process sends itself a SIGTRAP. Just forward it as expected.
MFC after:	2 weeks [needs rewrite]
Relnotes:	yes
2015-10-05 21:39:07 +00:00
John Baldwin
3edd0ffffe Include additional info in ptrace(2) KTR traces:
- The new PC value and signal passed to PT_CONTINUE, PT_DETACH, PT_SYSCALL,
  and PT_TO_SC[EX].
- The system call code returned via PT_LWPINFO.

MFC after:	1 week
2015-10-05 21:36:53 +00:00
Warner Losh
d635a37ffa Mark swap_pager_putpages static at its definition. It was already
static at its declaration. Remove needless swapdev_strategy forward
declaration.

MFC After: 3 days
2015-10-05 21:29:17 +00:00
Glen Barber
4840d2a682 Wrap a long line to make igor(1) happy.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:14:25 +00:00
Glen Barber
58ff4e97a0 Document r288310, ctl(4) updated to support CD-ROMs and other
removable devices.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:14:22 +00:00
Glen Barber
998e355466 Document r288303, nc(1) updated to OpenBSD 5.8 version.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:51 +00:00
Glen Barber
2101abf6ba Document r288176, kernel symbols now installed to /usr/lib/debug/.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:49 +00:00
Glen Barber
dac09c912d Document r287917, unbound 1.5.4.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:47 +00:00
Glen Barber
6a7207a4cb Document r287886, fix kqueue write events for files > 2GB
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:44 +00:00
Glen Barber
68ce7e47f5 Document r287842, ifconfig(8) exit on error if ioctl(2) fails.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:42 +00:00
Glen Barber
8ddc90772e Document r287798, IPv6 On-Link redirect handling fix.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:39 +00:00
Glen Barber
aace21ac80 Document r287621, CTL HA reimplementation.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:37 +00:00
Glen Barber
1fd305ef85 Document r287576, service(8) updated to respect /etc/rc.conf.d/.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:35 +00:00
Glen Barber
1c22a5320f Document r287522, pciconf(8) prefer pciids from ports database,
if present.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:32 +00:00
Glen Barber
c4af256e48 Document r287473, sesutil(8) addition.
Add Gandi.net to sponsor.ent.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:30 +00:00
Glen Barber
c5afd77651 Document r287469, em(4) update to support I219 chipset.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:27 +00:00
Glen Barber
ec348a9a3b Document r288143, file(1) updated to 5.25.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:25 +00:00
Glen Barber
cac4630d51 Document r287371, support for HiSilicon HI6220 SoC.
Add ABT Systems, Ltd. to sponsor.ent.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:22 +00:00
Glen Barber
88f3c1d00c Document r287306, CUBIEBOARD2 kernel configuration renamed to A20.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:20 +00:00
Glen Barber
72e6e61b92 Document r287225, 1-Wire implementation.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:17 +00:00
Glen Barber
b416cb6a4c Document r287222, pf(4) support for 'scrub fragment crop|drop-ovl'
removed.

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:15 +00:00
Glen Barber
10cc826965 Document r287117, ioat(4) driver addition.
Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:12 +00:00
Glen Barber
cea21d4e00 Document r287099, account for ashift when gathering buffers to
be written to l2arc device

Sponsored by:	The FreeBSD Foundation
2015-10-05 20:13:10 +00:00