267466 Commits

Author SHA1 Message Date
christos
ea8d659759 Everyone has libexpat so enable it. 2019-05-05 20:48:46 +00:00
christos
600ed393e7 Remove the slop code. Suggested by mrg@ 2019-05-05 20:45:08 +00:00
christos
1371fc4088 sync with reality 2019-05-05 20:10:57 +00:00
jmcneill
d39ee07fbf RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.
2019-05-05 19:10:05 +00:00
mgorny
f07d526de7 Introduce tests for reading r8..r15 registers. 2019-05-05 18:16:39 +00:00
mgorny
e6dd84e00f Reintroduce i386 tests for general-purpose registers, without MMX req
Reintroduce the test for reading i386 general-purpose register values
from the debugged program.  This time it's split into one test for the six
registers not normally used by the compiler (eax..edx, esi, edi), and another
for ebp, esp.  This leaves enough free registers for the latter to work
without MMX.
2019-05-05 18:15:40 +00:00
christos
a26f1b437b PR/54133: Sevan Janiyan: Binaries fail to execute
Prefer MAX_PAGE_SHIFT over PAGE_SHIFT
2019-05-05 18:14:19 +00:00
christos
59ec77df0c PR/54133: Sevan Janiyan: Binaries fail to execute
Define M{IN,AX}_PAGE_SHIFT to cover all page possibilities
2019-05-05 18:13:16 +00:00
mlelstv
26894afa16 Now the real number for ipmi 2019-05-05 17:24:00 +00:00
mlelstv
a8f0d58e5b reservation for IPMI driver 2019-05-05 17:22:31 +00:00
scole
f9fc993566 a little bit of clean up, sort ski items, and some notes about libunwind 2019-05-05 16:45:34 +00:00
christos
4612a321f5 Add more comments to explain what we are doing. 2019-05-05 15:07:12 +00:00
mgorny
b3185a33be Revert i386_regs_gp_read as it fails on non-MMX systems. 2019-05-05 15:05:22 +00:00
christos
dfb7cec746 Add a -z flag to zero out the up to 4 bytes of padding in directory entry
names (including the terminating NUL), as well as directory entries with
extra free space (d->d_reclen > UFS_DIRSIZ(d)).

Inspired from FreeBSD:
    https://svnweb.freebsd.org/base?view=revision&revision=347066

While the kernel has been fixed to deal with the padding bytes (new
kernels will correctly zero out all the padding after the name), it
appears that there is still an issue with directory entries with extra
free space, since a newly created and populated filesystem gets modified
with "fsck_ffs -z".
2019-05-05 14:59:06 +00:00
christos
b131cb44b1 simplify the endian byte-swapping code. 2019-05-05 13:24:19 +00:00
mgorny
15af42397a Add tests for reading pre-set general purpose register values via PT_GETREGS.
Add new tests verifying that PT_GETREGS provides correct register values
from the underlying program.  The test uses inline assembly in the child program
to set registers to well-known constants, then compares the results obtained
via PT_GETREGS against them.

Reviewed by kamil.
2019-05-05 10:04:11 +00:00
mrg
3b24a1344e remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
christos
0b85e693fb Zero out all the dirent padding not just one byte, to avoid kernel memory
disclosure (from https://svnweb.freebsd.org/base?view=revision&revision=347066)
2019-05-05 01:48:53 +00:00
pgoyette
dbebe8e150 Add a couple of xrefs, since they exist and the Synopsis mentions them. 2019-05-05 00:12:34 +00:00
mrg
25a9004c71 don't pass two different softcs that just happen to overlap, but
shim the umodem functions directly and call them with the sub-softc.
2019-05-04 23:52:18 +00:00
mrg
c8f6a26a5b finish previous and convert two &sc->sc_ubsa refs to sc. 2019-05-04 23:36:14 +00:00
mrg
ec0037da51 uhmodem(4) uses ubsa(4)'s softc in its own softc as the only member,
and the code relies upon it being the first member (some functions
called with the callback arg are in uhmodem and some in ubsa.)

make it less implicit that this is really supposed to be identical
to ubsa usage, and operate on ubsa_softc directly.

clean up some Static.
2019-05-04 23:07:07 +00:00
scole
5b44457805 add stop (;;) to elimate WAW dependency compiler warning 2019-05-04 22:55:32 +00:00
maxv
ac3f1dc495 Rewrite kasan_mark() to fix a still existing race in pool_cache_get_paddr()
that could cause false positives. Now a buffer initially valid remains
valid, with no invalid->valid dance.
2019-05-04 17:19:10 +00:00
sevan
41dcfb613c Mark the set obsolete as well.
Heads up <jmcneill>
2019-05-04 17:03:39 +00:00
christos
c36d34a745 PR/54158: Anthony Mallet: poll(2) does not allow polling all possible fds
(hardcoded limit to 1000 + #<open-fds>). Changed to limit by the max of
the resource limit of open descriptors and the above.
2019-05-04 15:46:58 +00:00
tsutsui
b503be2c30 Regen from MILAN.in rev 1.29.
> Add pms(4), wsmouse(4), and wsmux(4) for Milan.
2019-05-04 13:14:18 +00:00
tsutsui
16242ea4e4 Add pms(4), wsmouse(4), and wsmux(4) for Milan. 2019-05-04 13:12:03 +00:00
skrll
f26afff207 Whitespace 2019-05-04 13:04:36 +00:00
kre
30031e47cf More of maxv's "switch to proper types" - hopefully unbreak i386 build. 2019-05-04 11:15:49 +00:00
maxv
50a5f274ac Add KASAN instrumentation for kcopy and copystr. 2019-05-04 10:07:10 +00:00
roy
9a12fddfce Note import of dhcpcd-7.2.2 2019-05-04 09:43:16 +00:00
roy
38f3296dbc Sync 2019-05-04 09:42:15 +00:00
roy
fb8f3aa90c Import dhcpcd-7.2.2 with the following changes:
*  DHCP: Ensure dhcp is running on the interface received from
  *  BSD: Link handling has been simplified, however it is expected
     that if an interface supports SIOCGIFMEDIA then it reports
     the correct link status via route(4) for reliable operations
  *  BPF: ARP filter is more robust
  *  BSD: Validate RTM message lengths

This security issue has been addressed:
  *  DHCPv6: Fix a potential read overflow with D6_OPTION_PD_EXCLUDE

Many thanks to Maxime Villard <max@m00nbsd.net> for discovering this issue.
2019-05-04 09:40:27 +00:00
tsutsui
863a28deac Use const for register values. 2019-05-04 09:03:08 +00:00
maxv
73524111a6 Hum. Fix a potentially catastrophic bug: kcopy() sets DF=1 if the areas
overlap, but doesn't clear it if the copy faults. If this happens, we
return to the caller with DF=1, and each future memory copy will be
backwards.

I wonder if there really are places where kcopy() is called with
overlapping areas.
2019-05-04 08:50:39 +00:00
tsutsui
f36032d612 Use proper integer types for PCI configuration registers. 2019-05-04 08:30:06 +00:00
isaki
fd2a21e429 Use err(3)/errx(3) properly to avoid "write failed: Undefined error: 0". 2019-05-04 08:27:30 +00:00
mrg
a98d0fefaa capture /etc/route.conf in /var/backups. 2019-05-04 08:26:51 +00:00
tsutsui
9b30bd9326 Misc KNF.
No binary changes on HADES and MILAN-PCIIDE kernels.
2019-05-04 08:20:05 +00:00
mrg
1ff9bd6be1 clean up ucom / ucom-parent interface slightly:
- document what the ucom_methods{} callbacks argument are and that
  they are all optional.
- remove almost all methods being assigned to NULL, as they are all
  C99 initialisers and thus don't need NULL assignments.
- ucom_get_status() callback always has lsr/msr pointers as valid.
  remove all tests for not NULL in these functions.
2019-05-04 08:04:13 +00:00
wiz
370b8860c9 gcc-9.1 is out. 2019-05-04 07:28:18 +00:00
maxv
1554c1fb35 More inlined ASM. While here switch to proper types. 2019-05-04 07:20:22 +00:00
isaki
abc9741883 Add isaki-audio2 branch. 2019-05-04 04:54:15 +00:00
kre
c531b5689e When a return occurs in the test part of a loop statement (while/until)
(inside a function or dot script) the exit status of that return
statement should become the exit status of the function (or dot
script) - we were ignoring it,

That is
	fn() { while return 7; do return 9; done; return 11; }
should exit with status 7.   It was exiting 0.

This is apparently another old ash bug that has been fixed
everywhere else in the past.

Issue pointed out by Martijn Dekker, (fairly obvious) fix borrowed
from FreeBSD, due for return sometime next century.
2019-05-04 02:52:55 +00:00
kre
b7fc669e75 Fix an (apparent) ancient ash bug, that was apparently fixed sometime
in the past, but managed to re-surface...

The expression "${0+\}}" should expand to "}" not "\}"
Almost all other shells handle it that way (incl FreeBSD & dash).

Issue pointed out by Martijn Dekker.

Add ATF sub-tests for the 4 old var expand operators (${var+word}
${var-word} ${var-word} and ${var?word} - including the forms
with the ':' included) and amongst those tests include test cases
for this issue, so if the bug tries to appear again, we can squash
it quicker.   (The newer pattern matching operators are already
well tested as part of testing patterns.)
2019-05-04 02:52:22 +00:00
scole
083f99b335 Disable optimization for pmap.c to prevent RAW assembler dependency
warnings.

If port ever becomes more stable, should revert this and figure out
exactly why only pmap seems to have this issue in the kernel.
2019-05-04 02:06:59 +00:00
macallan
e16f314b27 moar registers
to the right branch this time (hopefully)
2019-05-04 00:45:18 +00:00
kamil
efd4138069 Register KTR events for debugger related signals
Register signals for:

 - crashes (FPE, SEGV, FPE, ILL, BUS)
 - LWP events
 - CHLD (FORK/VFORK/VFORK_DONE) events -- temporarily disabled
 - EXEC events

While there refactor related functions in order to simplify the code.

Add missing comment documentation for recently added kernel functions.
2019-05-03 22:34:21 +00:00
kamil
51245743fe Improve comment in the GDB NetBSD code 2019-05-03 19:06:50 +00:00