Commit Graph

258162 Commits

Author SHA1 Message Date
kamil
6827020217 Refactor fork-like ATG tests in t_ptrace_wait*
Add CPP syntax sugare to define each fork-like test within a single line
of code with less than 80 columns.

This is a preparation for new fork-like scenarios where we detach either
child and/or parent with PT_DETACH.

The code could be still reduced to smaller number of columns, instead of:

   FORK_TEST(fork1, DSCR(fork,0,0,0,0,0), fork, F, F, F, F, F)

we could perhaps need 50% of it, as the data is duplicated.

On the other hand the line is already short and taking only a single line.

No functional change intended.

Sponsored by <The NetBSD Foundation>
2018-04-15 00:19:23 +00:00
christos
d55a1f07c7 switch everyone to binutils.old 2018-04-14 23:14:12 +00:00
christos
fc4f42693f 2018-01-10 Nick Clifton <nickc@redhat.com>
* config-ml.in: Sync with gcc sources.
	* config.guess: Likewise.
	* config.sub: Likewise.
	* configure.ac: Likewise.
	* configure: Regenerate.

2017-12-14  Nick Clifton  <nickc@redhat.com>

	* COPYING.LIBGLOSS: Update address of FSF in copyright notice.

2017-12-12  Stafford Horne  <shorne@gmail.com>

	* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
	* configure: Regenerate.

2017-09-15  Nick Clifton  <nickc@redhat.com>

	* src-release.sh (LZIPPROG): New define.  Provides the name of the
	lzip program.
	(do_lz): New function.  Compresses a tarball using the lzip
	program.
	(do_compress): Add support for lzip compression.
	(usage): Mention -l option.
	(build_release): Support -l option to invoke lzip compression.

2017-09-15  Alan Modra  <amodra@gmail.com>

	* src-release.sh (do_proto_toplev): Revert last patch.  Enable or
	disable binutils, gas, gdb, gold, gprof, ld, libdecnumber, readline,
	and sim depending on $tool and $support_files.  Echo configure line.

2017-09-14  Matt Rice <ratmice@gmail.com>

	* src-release.sh (do_proto_toplev): Enable gold during release process.

2017-04-13  Andrew Jenner  <andrew@codesourcery.com>

	* config.sub: Sync with master version in config project.

2017-04-03  Andrew Jenner  <andrew@codesourcery.com>

	* config.sub: Handle ia16 in $basic_machine.

	bfd/
	* config.bfd: Handle ia16.

	gas/
	* configure.tgt: Handle ia16.

	ld/
	* configure.tgt: Handle ia16.

2017-03-22  Nick Clifton  <nickc@redhat.com>

	* config.sub: Sync with master version in config project.
	* config.guess: Likewise.

2017-01-23  Nick Clifton  <nickc@redhat.com>

	* configure.ac: Update year in copyright notice.
	Sync from FSF GCC mainline, bringing in the following patches.
	* Makefile.def: Likewise.
	* Makefile.tpl: Likewise.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

	2016-12-21  Jakub Jelinek  <jakub@redhat.com>

	* configure.ac: Don't bootstrap libmpx unless --with-build-config
	includes bootstrap-mpx.

	2016-12-01  Matthias Klose  <doko@ubuntu.com>

	* configure.ac: Don't use pkg-config to check for bdw-gc.

	2016-11-30  Matthias Klose  <doko@ubuntu.com>

	* Makefile.def: Remove reference to boehm-gc target module.
  	* configure.ac: Include pkg.m4, check for --with-target-bdw-gc
	options and for the bdw-gc pkg-config module.

	2016-11-15  Matthias Klose  <doko@ubuntu.com>

	* config-ml.in: Remove references to GCJ.
	* configure.ac: Likewise.

	2016-09-30  Jakub Jelinek  <jakub@redhat.com>

	* configure.ac: Add target-libffi to target_libraries.
	Readd libgcj target disablings, modified to only target-libffi.
	Readd target addition of go to unsupported languages.

	2016-09-30  Andrew Haley  <aph@redhat.com>

	* Makefile.def: Remove libjava.
	* Makefile.tpl: Likewise.
	* configure.ac: Likewise.

	2016-09-26  Anton Kolesov  <Anton.Kolesov@synopsys.com>

	* configure.ac: Disable "sim" directory for arc*-*-*.

	2016-09-12  Maciej W. Rozycki  <macro@imgtec.com>

	* configure.ac: Check for the minimum in-tree MPFR version
	handled.

2016-12-31  Alan Modra  <amodra@gmail.com>

	* config.sub: Import from upstream.

2016-12-08  Alan Modra  <amodra@gmail.com>

	* configure: Regenerate.

2016-12-02  Josh Conner  <joshconner@google.com>

	* configure.ac: Add fuchsia to targets that use ELF.
	* configure: Regenerated.

2016-11-07  Doug Evans  <dje@google.com>

	* config.sub: Sync with upstream version 2016-11-03.
	git://git.sv.gnu.org/config.git
	* config.guess: Sync with upstream version 2016-10-02.

2016-09-27  Simon Marchi  <simon.marchi@polymtl.ca>

	* .gitignore: Add archives and make stamps.

2016-07-20  Yan-Ting Lin  <currygt52@gmail.com>

	* configure.ac (nds32*-*-*): Remove entry to enable gdb.
	* configure: Regenerated.
2018-04-14 22:17:01 +00:00
scole
b9cf3b0cdd List some obvious remaining items to-do 2018-04-14 20:21:09 +00:00
scole
a3ab855a52 Add XXX note regarding incomplete forking 2018-04-14 19:58:20 +00:00
maxv
a92ff1d5a0 Fix 'icmp6len', it shouldn't be ip6_plen, because we may not be at the
beginning of the packet (off+ip6_plen is beyond the end of the mbuf). By
luck, the IP6_EXTHDR_GET that follows will fail and prevent buffer
overflows in non-jumbogram packets.

For jumbograms we will probably be in trouble here; but it doesn't seem
possible to craft reliably a jumbogram for a non-jumbogram-enabled device.

So I don't think it's a huge problem.
2018-04-14 17:55:47 +00:00
christos
16dce51364 readd files. 2018-04-14 17:52:51 +00:00
christos
75fd0b742a add missing files 2018-04-14 15:49:37 +00:00
christos
3c709de22b no conflicts 2018-04-14 15:40:17 +00:00
christos
e058c83478 import current binutils. 2018-04-14 15:36:06 +00:00
maxv
46b97fe58c Cosmetic, and remove one XXX (no problem). 2018-04-14 14:59:58 +00:00
kamil
5468455fe7 Don't set errno ESRCH for empty result of KINFO_PROC[2]
Restore the previous behavior as it's prefered.

This new behavior was introduced in 1.210.

Code should check for length of the result.

Requested by <mlelstv>
2018-04-14 14:26:20 +00:00
maxv
0b372a9fee cosmetic 2018-04-14 08:13:58 +00:00
mrg
875f3f406e apply the changes from GCC 6 / powerpc and netbsd-stdint.h
to make <stdatomic.h> work.
2018-04-14 08:09:46 +00:00
maxv
de8e0d4775 Remove the RH0 code from ICMPv6. RH0 is deprecated by RFC5095 (2007) for
security reasons. We already removed it in Route6.

In addition there was an mbuf bug here: calling IP6_EXTHDR_GET twice with
the same offset, but still using the pointer from the first call, which
could have been made invalid. By luck, m_pulldown leaves zero-sized mbufs
in place, instead of freeing them.

And in general, using a 'finaldst' pointer on the mbuf, and then modifying
that mbuf with IP6_EXTHDR_GET with a smaller offset, was really error-
prone.
2018-04-14 08:03:33 +00:00
maxv
36efc394ca Remove dead code. It is the same as the non-obsolete one, since
ICMP6_DST_UNREACH_NOTNEIGHBOR == ICMP6_DST_UNREACH_BEYONDSCOPE,
and the code leads to the same errno value (EHOSTUNREACH).
2018-04-14 06:45:17 +00:00
mrg
358318a481 redo the previous -- compat/sys/siginfo.h is already included
later, as is another header.  move them up near the top.
2018-04-14 04:04:39 +00:00
kre
acac57976b Change the default precision of timestamps from 9 digits (nanosecs)
to 7 (100's of nanosecs).   This should perhaps depend upon the
port (what resolution is rational) the CPU speed, and the clock
update frequency (no point printing nanoseconds if the value being
brinted is only updated every few microseconds).

Eventually it should be able to be controlled by a sysctl, but
the default still matters, as that's what the autoconf (boot time,
before init starts) messages will use.
2018-04-14 01:53:38 +00:00
kre
ceb09b4461 Allow the precision of the sub-second field of timestamps to
be controlled - for now that is done by editing this file and
recompiling (or using gdb or equiv to patch /netbsd or /dev/kmem)
but adding a sysctl to allow dynamic userland control should be easy.

Also reduce the initial seconds field width of timestamp from 5 to 4
(it grows wider as needed.)

Avoid printing timestamps if we cannot be sure there will be
a message to accompany them.   (Observed happening...)
2018-04-14 01:45:37 +00:00
kre
329132e2a8 Make timestamp reading code adapt to whatever precision (up to
nanoseconds, 9 digits) the kernel happens to send in the timestamps
in log messages.

Output (numeric) timestamps (when produced) are unchanged and always
in microseconds (for now).
2018-04-14 01:37:34 +00:00
kre
2b71f00cba Minor wording change (no date bump needed.) 2018-04-14 01:34:47 +00:00
macallan
2f10f31107 track bus-range for every bus and restrict config space accesses to that
range. Now pcictl pci* list no longer crashes the kernel.
2018-04-13 22:13:09 +00:00
nakayama
e207fad00d Re-enable wchar_t support. mandoc(1) can now fall back to ascii
output if the locale is non-UTF-8 locale with the following change.

https://marc.info/?l=openbsd-cvs&m=152364416720474

| Modified files:
| 	usr.bin/mandoc : term_ascii.c
|
| Log message:
| Make sure that mandoc only goes into UTF-8 mode if the user really
| selected UTF-8, not some other multibyte locale.  This obviously
| makes no difference on OpenBSD but improves portability.
| Issue reported by <Nakayama at NetBSD> via wiz@.
2018-04-13 21:52:48 +00:00
kamil
bfd0ff91ec Add a new example kernel module
executor - basic implementation of callout and RUN_ONCE

While there, perform a small cleanup in README.

Patch by <Siddharth Muralee>
Polishing by myself.
2018-04-13 20:30:09 +00:00
maxv
82288565a0 Document "debug" in usage(). 2018-04-13 17:43:37 +00:00
eadler
6bf38be19f [bsd-family-tree] announce OpenBSD 6.3 & DragonFly 5.2.0
ok pgoyette@ maya@
2018-04-13 14:31:35 +00:00
maxv
30cb1ea3c6 Localify global variables, style, and add two XXXs. 2018-04-13 11:32:44 +00:00
nonaka
9bbe99f64c x86: Increase BOOTINFO_MAXSIZE to 8Kib.
Proposed on port-i386 and port-amd64 with no objections:
http://mail-index.netbsd.org/port-i386/2018/04/11/msg003692.html
http://mail-index.netbsd.org/port-amd64/2018/04/11/msg002697.html
2018-04-13 11:24:34 +00:00
maxv
be3197e9a4 Add XXX, using a pool would be better than kmem. 2018-04-13 11:19:09 +00:00
maxv
075952503a Release the lock a little earlier. 2018-04-13 11:18:08 +00:00
maxv
cbf2d50865 style 2018-04-13 11:01:14 +00:00
msaitoh
52047f5b86 I354 uses an external PHY, so don't use wm_set_eee_i350(). 2018-04-13 09:35:10 +00:00
maxv
10581564f8 Remove duplicate, to better show that this place doesn't make a lot of
sense. The code should probably be removed, it's a leftover from when we
had #ifdef __FreeBSD__.
2018-04-13 09:34:20 +00:00
maxv
0daefb60f1 Improve the check, we want to have len >= udphdr all the time, and not
just when the packet size doesn't match the mbuf size.

Normally that's not a huge problem, since IP6_EXTHDR_GET gets called
earlier, so we can't have

	(ip_len == iphlen + len) && (len < sizeof(struct udphdr))
2018-04-13 09:29:04 +00:00
christos
ad48bc87a0 make this narrower by popular request. 2018-04-13 09:21:16 +00:00
maxv
c592a19e59 Remove useless comment and style. 2018-04-13 09:00:29 +00:00
maxv
10415a4a7c Add XXX. In fact, it would be better, if all the fragments were offloaded,
to quickly recompute the checksum on the fly, and keep it in the mbuf
header.
2018-04-13 08:55:50 +00:00
maxv
b5d40d5d71 Reduce the diff between similar blocks. 2018-04-13 08:47:46 +00:00
maxv
1608160608 Add a KASSERT, we want M_PKTHDR. 2018-04-13 08:44:41 +00:00
maxv
6d38166bdc Reorder a few instructions to clarify. Replace two bcopy by memcpy. 2018-04-13 08:12:51 +00:00
msaitoh
c22629023a - ichsmb(4), puc(4): add new devices.
- Add missing comma.
2018-04-13 08:01:23 +00:00
msaitoh
2b1c7ab9e3 Add 300 series chipset support. 2018-04-13 07:57:04 +00:00
maxv
c0a82de41e No, fix previous. 2018-04-13 07:36:11 +00:00
maxv
1eccc1fa34 Improve comment. 2018-04-13 07:30:46 +00:00
snj
6e9004b7ce GCC build exceeds the macOS clang default bracket nesting level of 256.
Work around with -fbracket-depth=512.

From potr in PR toolchain/53178.
2018-04-13 06:15:26 +00:00
msaitoh
7cdf643c4a Enable I219 by default. 2018-04-13 06:07:20 +00:00
msaitoh
ece422c3fe Enable I219. 2018-04-13 06:04:12 +00:00
khorben
50acbf0399 Correct discrepancy with the Multiboot specification
The VBE mode was missing, and the types of the subsequent VBE members
were also wrong. Nothing in NetBSD's base seems to be using this, and
therefore nothing is expected to break as a result of this fix, or any
binary to change for that matter.
The latest specification (as of today) can be found at:
https://www.gnu.org/software/grub/manual/multiboot/multiboot.html

This was already reported in misc/52366, and addresses part of it.

Patch sent to port-i386@. Build-tested on NetBSD/amd64.
2018-04-13 01:49:47 +00:00
kamil
e5c3c7a7c4 Add new example kernel module: sysctl
sysctl - demonstrates adding a sysctl handle dynamically.

Patch by <Siddharth Muralee>
Polishing by myself.
2018-04-13 01:20:27 +00:00
mrg
18eacdc36b fix some more missing depends issues. remove various wrong/old depends.
fixes issues i was able to trigger manually by building specific files.

more for PR#53137.
2018-04-13 01:14:19 +00:00