Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (4h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 08:04:15 UTC Now

2018-01-16 07:05:25 UTC MAIN commitmail json YAML

2018-01-16 06:43:53 UTC MAIN commitmail json YAML

Neither bcd(6) nor morse(6) produce output containing slashes, and the
-d (decode) option works just fine with dashes.  :)

(pgoyette)

2018-01-16 06:38:42 UTC MAIN commitmail json YAML

2018-01-16 06:20:24 UTC MAIN commitmail json YAML

Add _, from Eitan Adler in PR bin/52897

(maya)

2018-01-15 22:38:01 UTC MAIN commitmail json YAML

2018-01-15 22:14:24 UTC MAIN commitmail json YAML

2018-01-15 21:58:55 UTC MAIN commitmail json YAML

2018-01-15 21:25:25 UTC MAIN commitmail json YAML

vcache_flush_* event counters are not interrupt type.  mark them misc.

(mrg)

2018-01-15 20:39:53 UTC MAIN commitmail json YAML

Restore formatting/indentation of the configure call in rebuildmake()
to what it used to be.

(uwe)

2018-01-15 20:14:49 UTC MAIN commitmail json YAML

Do not use HOST_CFLAGS to link the make binary.

(uwe)

2018-01-15 19:57:49 UTC MAIN commitmail json YAML

G/c unused runcmd.

(uwe)

2018-01-15 19:52:54 UTC MAIN commitmail json YAML

Make sure nbmake is always built with the right _PATH_DEFSYSPATH.

(uwe)

2018-01-15 19:01:55 UTC MAIN commitmail json YAML

2018-01-15 16:36:51 UTC MAIN commitmail json YAML

2018-01-15 14:38:06 UTC MAIN commitmail json YAML

avoid passing literal string to unconst.

(christos)

2018-01-15 14:00:34 UTC MAIN commitmail json YAML

Style, and fix a bug in the AppleTalk path: we're doing
M_PREPEND(M_DONTWAIT), but we forgot to NULL-check the mbuf afterwards.

(maxv)

2018-01-15 13:14:18 UTC MAIN commitmail json YAML

Fix two bugs in altq_etherclassify. When scanning the mbuf chain we need
to make sure that m_next is not NULL, otherwise NULL deref. After that,
we must not touch m->m_pkthdr, given that 'm' may not be the first mbuf
of the chain anymore.

Declare mtop, and add a KASSERT to make sure it has M_PKTHDR set.

(maxv)

2018-01-15 13:05:40 UTC MAIN commitmail json YAML

Add a KASSERT in IFQ_CLASSIFY, we really need to make sure the given
mbuf is the top of the chain.

(maxv)

2018-01-15 12:58:06 UTC MAIN commitmail json YAML

indent to magic logic

(maya)

2018-01-15 12:43:43 UTC MAIN commitmail json YAML

malloc+memset zero to malloc(, |M_ZERO);

ok rkujawa

(maya)

2018-01-15 12:20:47 UTC MAIN commitmail json YAML

Explain what suffixes are accepted when specifying a size.

(sborrill)

2018-01-15 12:17:05 UTC MAIN commitmail json YAML

Fix a bug in the VLAN path: there's an inverted logic, the mbuf needs to
be bigger than struct ether_vlan_header, not smaller.

Meanwhile add a KASSERT in the LLC path.

(maxv)

2018-01-15 11:57:27 UTC MAIN commitmail json YAML

Style, make the code more readable, and add a KASSERT (we expect the mbuf
to have M_PKTHDR set).

(maxv)

2018-01-15 11:27:39 UTC MAIN commitmail json YAML

Paul Goyette suggested improvements to parts of the description of
LINENO ... this is what resulted (with thanks for the grammar lessons,
and sundry references provided!)

No date (Dd) bump - there is no change of substance here, just (hopefully)
a clearer way of saying the same thing.

(kre)

2018-01-15 11:16:04 UTC MAIN commitmail json YAML

Mmh, fix a weird mistake: the guy who added #if NVLAN > 0 forgot to
actually include vlan.h, so the branches are never compiled.

They don't compile, by the way, so fix that too, by reproducing the vlan
input path of ether_input().

(maxv)

2018-01-15 10:27:51 UTC MAIN commitmail json YAML

Several fixes:
- Style and typos
- Use kmem_zalloc, in case there is a padding between the fields of
  the structures
- Use ETHER_ADDR_LEN instead of a hard-coded '6'
- kmem_alloc(KM_SLEEP) can't fail
- Simplify ether_aton_r
- Use mutex_obj_free, not to leak memory

(maxv)

2018-01-15 10:06:49 UTC MAIN commitmail json YAML

Redo previous: apply the alignement to the whole struct fpstate - everything
in there is properly aligned, and we need to have fs_queue double aligned
as well.

(martin)

2018-01-15 09:49:16 UTC MAIN commitmail json YAML

If the bridge is not running, don't call bridge_stop. Otherwise the
following commands will crash the kernel:

ifconfig bridge0 create
ifconfig bridge0 destroy

(maxv)

2018-01-15 09:48:28 UTC MAIN commitmail json YAML

2018-01-15 09:26:21 UTC MAIN commitmail json YAML

Fix spl leak.

ifconfig gif0 create
ifconfig gif0 destroy
WARNING: SPL NOT LOWERED ON ...

(maxv)

2018-01-15 08:45:19 UTC MAIN commitmail json YAML

Style, improve comment, and add KASSERTs on the assumptions.

(maxv)

2018-01-15 08:17:35 UTC MAIN commitmail json YAML

Remove extra pserialize_perform from in_purgeaddr

It's already performed in ifa_remove. Note so there (in in6_unlink_ifa too).

(ozaki-r)

2018-01-15 08:17:20 UTC MAIN commitmail json YAML

Add IA32_SPEC_CTRL MSR and IA32_PRED_CMD MSR.

(msaitoh)

2018-01-15 07:59:48 UTC MAIN commitmail json YAML

Fix the net.ether.multicast sysctl. If there is no multicast address
don't kmem_alloc(0) (which panics the kernel), and if the number of
multicast addresses has decreased don't copyout uninitialized kernel
data.

(maxv)

2018-01-15 07:20:10 UTC MAIN commitmail json YAML

2018-01-15 07:19:00 UTC MAIN commitmail json YAML

Add MSR_IA32_ARCH_CAPABILITIES definition.

(msaitoh)

2018-01-15 06:08:41 UTC MAIN commitmail json YAML

- Add Intel cpuid 7 %edx bit 29 IA32_ARCH_CAPABILITIES supported bit.
- Add comment.

(msaitoh)

2018-01-15 05:04:58 UTC MAIN commitmail json YAML

Move spammy debug message to debug2.
Similarly spammy messages exist in this debug level.

Requested by gson in PR bin/52898:
ssh -v prints debug message on every keystroke

(maya)

2018-01-15 04:25:48 UTC MAIN commitmail json YAML

2018-01-15 04:09:58 UTC MAIN commitmail json YAML

Fix legacy Tx descriptors printing when WM_DEBUG is enabled.

(knakahara)

2018-01-15 02:39:53 UTC MAIN commitmail json YAML

Fix PR kern/52920. Pointed out by David Binderman, thanks.

(knakahara)

2018-01-15 00:46:16 UTC MAIN commitmail json YAML

2018-01-15 00:21:49 UTC netbsd-8 commitmail json YAML

2018-01-15 00:08:55 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #489):
share/man/man4/audio.4: 1.81-1.82
sys/dev/audio.c: 1.376 via patch, 1.407-1.413, 1.415-1.440, 1.441 via patch, 1.443-1.450
sys/dev/audiovar.h: 1.59 via patch, 1.65-1.68
Improve audio_set_vchan_defaults().
- Correct confused input/output parameters.
- Remove sc->{sc_channels, sc_precision, sc_frequency}.  They are
  the same as sc->sc_vchan_params.{channels, precision, sample_rate}.
The input parameter of audio_set_vchan_defaults() is now only
sc->sc_vchan_params.
Fix PR kern/52437
Move play/rec mix ring buffers into a virtual channel sc_mixring.  NFCI.
Call audio_mix for a third time - thus ensuring there is a block of data
in the mix ring before the audio interrupt occurs.
This addresses the instability seen in the audio atf tests.
Improve logic in audio_initbufs().  No functional changes intended.
Ensure proper use of sc_opens (play back) and sc_recopens (recording).
Fix logic for /dev/sound so audiosetinfo is only called once.
These changes are to ensure that init_output/input is only called once for
the respective function play back or recording.  For multiple recording or
plack back streams init_input/output is only called once fot the first
play/rec stream.
This addresses PR kern/52580, PR kern/52581 and PR kern/52582 analyzed and
reported by isaki@.
Fix return value.  fo_mmap is expected to return errno on error.
Fix return value.  fo_poll is expected to return revents on error.
Fix return value.  fo_kqfilter is expected to return errno on error.
This is the rest of 1.226 (10 years ago).
Add latency sysctl to adjust hw blocksize and hence latency of the mixer.
        usage: sysctl -w hw.hdafg0.lantency="value in milliseconds"
It is possible to set the latency of the mixer unless a static blocksize
is configured by the underlying hardware driver (pad, vcaudio on RPI).
Documentation updates to audio.4 will occur in a follow up commit.
OK christos@.
Ensure that the low/high water marks are at least PREFILL_BLOCKS.
Independent blocksizes for virtual channels where a static blocksize is
not stipulated by the underlying hw driver.
This improves latency in games esp. when the stream format differs from
the harware format.
OK christos@.
No externs in .c files!  Include ioconf.h for struct cfdriver xyz_cd.
round_blocksize is only used for the hardware ring buffer.  All other
buffers (mix ring, streams) are set to be a power of 2.
This allows for consistent latency where a static blocksize is enforced by
the underlying audio device driver.
Ok christos@.
Move calculation of sc_latency into a function.
The latency of the audio device is updated on attach in the audio auto
config and shown on screen.
Ok christos@.
Only allow blocksizes greater or equal to the calculated one.
This should help applications as the blocksize obtained (AUDIO_SET/GETINFO)
will work without stutter.
Ok christos@.
Revert commit rev 1.419 to audio.c.  This should address PR kern/52685.
This also means that drivers that have a static block size will have more
latency at lower sample rates/precision/channels.  Also audio drivers that
do more than supply rounded blocksizes in their round_blocksize functions
will have to be changed.
Use mix ring block size in audio write, startp, and audio drain.
Allow for block sizes less than hw block size.  This allows for the lowest
possible latency for all precision, sample rate and frequencies.
This is a rework of rev 1.419.
Calc latency when altering precision, frequency and channels sysctls.
No need to ratify block size twice as this is done in audio_initbufs.
This is a rework of rev 1.421.
Revert to previous.  It is necessary to use the calculated blocksize if
none supplied.
Tested by martin@.
Blocksizes sould be rounded to a power of 2 as OSS applications need this.
Tested by martin@.
AU_RING_SIZE -> s.bufsize in audio_initbufs.
A sysctl is now available to disable the in kernel mixer.
        sysctl -w hw.hdafg0.usemixer=0
There currently is a problem draining the last block with the mixer
disabled.  I will fix this in a follow up commit.
AFAIK there will be a problem wiht vs(4) on x68k with the mixer disabled
as the filters for mulaw, alaw and unsigned linear have been removed post
audio mixing changes.
Documentation for this sysctl variable will be made to audio.4 in a follow
up commit.
Ok christos@.
Use mixring blocksizes in the right places when mixer is enabled.
This means that x68k's vs audio works once again with sysctl usemixer=1.
Tested with xm6i.
Don't return EIO falsely when dealing with the hardware vc.
Draining of the hardware vc on close is now possible.
Plug memory leak as the mixer state does not grow or shrink when audio
mixing is disabled.  This avoids triggering a panic also.
Improved draining function for when the mixer is and is not enabled.
One block of silence is also played in audio drivers using start_output
when draining the hardware, this helps playback of short (less than
blocksize) samples.
Improved audiostartp for when audio mixing is disabled.
audio_pint improvements for when audio mixing is disabled.
When audio mixing is disabled there is only the hardware vc the mix ring
is not used.
The harware vc is rounded to a power of two then round_blocksize is called.
This improves playback and makes it possibile to use mmapped audio on usb.
For the virtual stream it is required to insert silence.  As these streams
are not harware streams audio_pint_silence is ineffective.
As audio_mix() was the only consumer of audio_pint_silence it has been
removed along with sc_sil_count - which was only used by this function.
Add vc to debug messages in audio_mix.
Also add debug message when available data in the vc is less than the mix
ring blocksize.  NFC.
Use correct combination of mix ring block size and vc playring used low
for signalling the writer or fetching data from the vc play ring filters.
When dealing with the ring buffer sc_mpr.s it is necessary to use the hwvc
or mixring block sizes as they represent the final size of the data to be
played back from the stream vc.
When dealing with sc_pustream when there is play back filters or not one
should use the vc->sc_mpr.blocksize, as this represents the amount of data
before going through play back filters.
This should address PR kern/52685.
Speed up improvements for MIX_FUNC.
As suggested by jmcneill@.
Only init the mix ring if sc_usemixer is enabled as with mixing set to
false the mix ring is not used.
Allow the hwvc block size to be set to any amount with audio mixing
disabled.
Convert double block size of data though the play back filters.  This is
primarily for when audio mixing is disabled to stop inserting silence when
there is data available.
This change should have no effect when mixing is enabled as there is only
1 block of data in the mix ring.
Whitespace.
Only signal a pause change on a transition of a pause change.
This addresses a problem found in audio/sox causing high cpu usage.
Path and analysis by Onno van der Linden.
Rework of play/rec threads to ensure effective use of locks.
Addresses part of PR kern/52889 where the mixing thread would not exit on
audio detach.
Forcefully detach children of audio instances.
This addresses part of PR kern/52889 as children of pad(4) were not
detaching.
Document the hw.driverN.latency sysctl variable.
Bump date for previous. Remove superfluous Pp.
Allow open of audioctl devices whilst audio is open with the mixer
disabled.

(snj)

2018-01-14 22:51:12 UTC MAIN commitmail json YAML

2018-01-14 22:46:10 UTC MAIN commitmail json YAML

2018-01-14 22:44:04 UTC MAIN commitmail json YAML

2018-01-14 22:43:18 UTC MAIN commitmail json YAML

support getargs, fix flush, fix mutex_destroy

(christos)

2018-01-14 20:16:04 UTC MAIN commitmail json YAML

2018-01-14 20:07:03 UTC MAIN commitmail json YAML

2018-01-14 20:04:56 UTC MAIN commitmail json YAML

2018-01-14 19:59:52 UTC MAIN commitmail json YAML

2018-01-14 19:37:36 UTC MAIN commitmail json YAML

merge conflicts

(christos)

2018-01-14 18:23:03 UTC MAIN commitmail json YAML

Fix awful use of m_defrag, this code just can't work. And don't forget to
return the updated pointer, because otherwise use-after-free.

I couldn't test this change because I don't have the hardware.

(maxv)

2018-01-14 17:43:55 UTC MAIN commitmail json YAML

Dedup. m_defrag is already a common function, no need to reimplement it
there. Meanwhile this should fix two bugs (that I couldn't investigate
more than that since I don't have this hardware): the mbuf passed to
vge_m_defrag was leaked, and the tags were not copied in the returned
mbuf.

(maxv)

2018-01-14 17:16:58 UTC MAIN commitmail json YAML

KDASSERT -> KASSERT. This code is fast and useful.

(maxv)

2018-01-14 16:59:37 UTC MAIN commitmail json YAML

2018-01-14 16:50:37 UTC MAIN commitmail json YAML

If cnt == 0, don't kmem_alloc(0). Found by Mootja.

Looking at the code, I also find it suspicious that we read
ifv->ifv_mib->ifvm_p directly without making sure ifv_mib != NULL.

(maxv)

2018-01-14 16:43:03 UTC MAIN commitmail json YAML

2018-01-14 16:36:04 UTC MAIN commitmail json YAML

Fix use-after-free. There is a path where the mbuf gets pulled up without
a proper mtod afterwards:

218    ipo = mtod(m, struct ip *);
281    m = m_pullup(m, hlen);
232    ipo->ip_src.s_addr

Found by Mootja.

Meanwhile it seems to me that 'ipo' should be set to NULL if the inner
packet is IPv6, but I'll revisit that later.

(maxv)

2018-01-14 16:18:11 UTC MAIN commitmail json YAML

Fix memory leak, found by Mootja.

(maxv)

2018-01-14 11:55:33 UTC MAIN commitmail json YAML

Force explicit alignment for fpstate in the kernel, to match what our
asm code assumes.
We use a stack variable at least once (in fpu_init).

(martin)

2018-01-14 03:33:10 UTC MAIN commitmail json YAML

Copy-paste a .Dx macro for DragonFly (from .Ox) and add a couple of
FreeBSD versions to make autofs(5) man pages cleanly format with groff.

(uwe)

2018-01-14 03:17:28 UTC MAIN commitmail json YAML

2018-01-14 03:14:46 UTC MAIN commitmail json YAML

Fix accidental trailing whitespace.

(uwe)

2018-01-14 03:09:47 UTC MAIN commitmail json YAML

Vertical space before an example in .Dl

(uwe)

2018-01-14 03:05:06 UTC MAIN commitmail json YAML

2018-01-14 02:54:55 UTC MAIN commitmail json YAML

2018-01-14 00:45:55 UTC MAIN commitmail json YAML

note the default path for ucode updates can be found in sysctl.

(mrg)

2018-01-13 23:43:47 UTC MAIN commitmail json YAML

2018-01-13 22:33:12 UTC netbsd-8 commitmail json YAML

473, 478, 490-496, 503-504

(snj)

2018-01-13 22:32:25 UTC netbsd-6 commitmail json YAML

2018-01-13 22:30:57 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1514):
xsrc/external/mit/libXcursor/dist/src/file.c: patch
xsrc/external/mit/libXcursor/dist/src/library.c: patch
xsrc/external/mit/libXfont/dist/src/bitmap/pcfread.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/dirfile.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/fileio.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/fontdir.c: patch
xsrc/xfree/xc/lib/Xcursor/file.c: patch
xsrc/xfree/xc/lib/Xcursor/library.c: patch
xsrc/xfree/xc/lib/font/bitmap/pcfread.c: patch
xsrc/xfree/xc/lib/font/fontfile/dirfile.c: patch
xsrc/xfree/xc/lib/font/fontfile/fileio.c: patch
xsrc/xfree/xc/lib/font/fontfile/fontdir.c: patch
Fix CVEs 2017-13722, 2017-13720, 2017-16611, and 2017-16612.

(snj)

2018-01-13 22:30:37 UTC netbsd-6-1 commitmail json YAML

2018-01-13 22:30:12 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1514):
xsrc/external/mit/libXcursor/dist/src/file.c: patch
xsrc/external/mit/libXcursor/dist/src/library.c: patch
xsrc/external/mit/libXfont/dist/src/bitmap/pcfread.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/dirfile.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/fileio.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/fontdir.c: patch
xsrc/xfree/xc/lib/Xcursor/file.c: patch
xsrc/xfree/xc/lib/Xcursor/library.c: patch
xsrc/xfree/xc/lib/font/bitmap/pcfread.c: patch
xsrc/xfree/xc/lib/font/fontfile/dirfile.c: patch
xsrc/xfree/xc/lib/font/fontfile/fileio.c: patch
xsrc/xfree/xc/lib/font/fontfile/fontdir.c: patch
Fix CVEs 2017-13722, 2017-13720, 2017-16611, and 2017-16612.

(snj)

2018-01-13 22:29:47 UTC netbsd-6-0 commitmail json YAML

2018-01-13 22:29:23 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1514):
xsrc/external/mit/libXcursor/dist/src/file.c: patch
xsrc/external/mit/libXcursor/dist/src/library.c: patch
xsrc/external/mit/libXfont/dist/src/bitmap/pcfread.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/dirfile.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/fileio.c: patch
xsrc/external/mit/libXfont/dist/src/fontfile/fontdir.c: patch
xsrc/xfree/xc/lib/Xcursor/file.c: patch
xsrc/xfree/xc/lib/Xcursor/library.c: patch
xsrc/xfree/xc/lib/font/bitmap/pcfread.c: patch
xsrc/xfree/xc/lib/font/fontfile/dirfile.c: patch
xsrc/xfree/xc/lib/font/fontfile/fileio.c: patch
xsrc/xfree/xc/lib/font/fontfile/fontdir.c: patch
Fix CVEs 2017-13722, 2017-13720, 2017-16611, and 2017-16612.

(snj)

2018-01-13 22:19:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #504):
sys/arch/sparc/sparc/timer.c: 1.33-1.34
sys/arch/sparc/sparc/timer_sun4m.c: 1.31
sys/arch/sparc/sparc/timerreg.h: 1.10
fix time goes backwards problems on sparc.
there are a few things here:
- there's a race between reading the limit register (which clears
  the interrupt and the limit bit) and increasing the latest offset.
  this can happen easily if an interrupt comes between the read and
  the call to tickle_tc() that increases the offset (i obverved this
  actually happening.)
- in early boot, sometimes the counter can cycle twice before the
  tickle happens.
to handle these issues, add two workarounds:
- if the limit bit isn't set, but the counter value is less than
  the previous value, and the offset hasn't changed, use the same
  fixup as if the limit bit was set.  this handles the first case
  above.
- add a hard-workaround for never allowing returning a smaller
  value (except during 32 bit overflow): if the result is less than
  the last result, add fixups until it does (or until it would
  overflow.)
the first workaround fixes general run-time issues, and the second
fixes issues only seen during boot.
also expand some comments in timer_sun4m.c and re-enable the sun4m
sub-microsecond tmr_ustolim4m() support (but it's always called with
at least 'tick' microseconds, so the end result is the same.)
--
fix hang at 4B microseconds (1h12 or so), and simplify part of the previous

(snj)

2018-01-13 22:15:30 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #503):
sys/dev/sbus/dbri.c: up to 1.38
sys/dev/sbus/dbrivar.h: up to 1.15
fix audiomp bugs:
- switch from tsleep/wakeup to condvar
- fix locking in a bunch of places.  there were several locking
  against myself issues.

also:
- don't let dbri_process_interrupt_buffer() loop more than once
  over the array of intrs.

this fixes hangs when using audio on ss20 in -current, but does
not make audio work.  it eventually times out with eg:

dbri0: switching to control mode timed out (0 f6)

and may leave a sample in the audio buffer repeating.
--
fix several KASSERT()s and locking in a few places.
fixes DIAGNOSTIC kernels and still plays.

(snj)

2018-01-13 22:10:55 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #496):
sys/net/route.c: revision 1.202-1.203
sys/net/route.h: revision 1.117
Use a queue of deferred entries to delete routes instead of a fixed stack
of 10. Otherwise we can overflow in route deletions from the rexmit timer.
--
Don't stomp past the end of the array! need __arraycount not sizeof()
Found by chuq, while debugging the sdf.org crashes
Restructure a bit for readability.

(snj)

2018-01-13 22:06:21 UTC MAIN commitmail json YAML

prevent assert on unmount.

(christos)

2018-01-13 21:57:11 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #495):
lib/librumpuser/rumpfiber.c: revision 1.13
lib/librumpuser/rumpuser_pth.c: revision 1.46
lib/librumpuser/rumpuser_pth_dummy.c: revision 1.18
sys/kern/kern_condvar.c: revision 1.40
sys/kern/kern_lock.c: revision 1.161
sys/kern/kern_mutex.c: revision 1.68
sys/kern/kern_rwlock.c: revision 1.48
sys/rump/include/rump/rumpuser.h: revision 1.115
sys/rump/librump/rumpkern/locks.c: revision 1.76-1.79
Apply C99-style struct initialization to lockops_t
--
Tweak LOCKDEBUG macros (NFC)
--
Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG
Formerly rump kernels treated the two types of mutexes as both adaptive for
LOCKDEBUG for some reasons.
Now we can detect violations of mutex restrictions on rump kernels such as
taking an adaptive mutex with holding a spin mutex as well as normal kernels.
--
rump: check if the mutex is surely owned by the caller in mutex_exit
Unlocking a not-owned mutex wasn't detected well (it could detect if the mutex
is not held by anyone but that's not enough). Let's check it (the check is the
same as normal kernel's mutex).
If LOCKDEBUG is enabled, give the check over LOCKDEBUG because it can provide
better debugging information.

(snj)

2018-01-13 21:52:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #494):
sys/netinet/ip_output.c: revision 1.291-1.292
- this is not python, we need braces
- protect ifp locking against NULL
--
from ozaki-r: use the proper ifp.
XXX: perhaps push the lock in in_delmulti()?

(snj)

2018-01-13 21:50:31 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #493):
sys/arch/x86/include/intr.h: revision 1.53
sys/arch/x86/pci/pci_intr_machdep.c: revision 1.42
sys/arch/x86/x86/intr.c: revision 1.114 via patch
fix "intrctl list" panic when ACPI is disabled.
reviewed by cherry@n.o and tested by msaitoh@n.o, thanks.

(snj)

2018-01-13 21:44:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #492):
sys/arch/x86/x86/procfs_machdep.c: revision 1.21
Print intel_pt in /proc/cpuinfo.

(snj)

2018-01-13 21:42:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #491):
sys/dev/pci/if_wm.c: 1.550, 1.552
Don't use MSI-X if we can use only one queue to save interrupt resource.
Written by knakahara and tested by me.
--
Add ASPM workaround for 8257[1234] and 82583 to prevent device timeout or
hangup. Fixes PR#52818 reported by Shinichi Doyashiki.

(snj)

2018-01-13 21:40:01 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #490):
sys/dev/pci/ixgbe/ixgbe.c: revision 1.116-1.119
sys/dev/pci/ixgbe/ixv.c: revision 1.76-1.77
Don't panic when resource shortage occured. Fixes PR#52820 reported by
kardel@:
- Don't use if_free() because ixgbe(4) don't use if_alloc().
- Move location of {ixgbe,ixv}_setup_interface() call at a position that
  any error don't occur. One of the reason is that it should be. Another
  reason is that it's hard to call ether_ifdetach() and if_detach() when
  cold == 1 (because of pserialize_perform, xc_wait, timing of domaininit
  and maybe more).
--
Don't panic when resource shortage occured. Like ixgbe.c rev. 1.116.
- Move location of {ixgbe,ixv}_setup_interface() call at a position that
  any error don't occur. One of the reason is that it should be. Another
  reason is that it's hard to call ether_ifdetach() and if_detach() when
  cold == 1 (because of pserialize_perform, xc_wait, timing of domaininit
  and maybe more).
--
Fix panic when only link interrupt can't be established.
--
- If MSI can't be used on some environment, fallback to INTx correctly.
- Use single vector MSI when number of CPU is 1 to save interrupt slot.
--
Fallback from MSI-X to MSI or INTx if MSI-X setup failed.

(snj)

2018-01-13 21:35:31 UTC netbsd-8 commitmail json YAML

src/doc/3RDPARTY@1.1444.2.7 / diff / nxr@1.1444.2.7
src/external/bsd/dhcpcd/dist/.gitignore@1.3.4.1 / diff / nxr@1.3.4.1
src/external/bsd/dhcpcd/dist/LICENSE@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/Makefile.inc@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/README.md@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/compat/crypt/hmac.c@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/bsd/dhcpcd/dist/compat/crypt/hmac.h@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/bsd/dhcpcd/dist/compat/crypt/md5.h@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/compat/strlcpy.c@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/bsd/dhcpcd/dist/compat/strlcpy.h@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/bsd/dhcpcd/dist/configure@1.1.1.3.2.1 / diff / nxr@1.1.1.3.2.1
src/external/bsd/dhcpcd/dist/hooks/01-test@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/src/Makefile@1.1.1.3.2.1 / diff / nxr@1.1.1.3.2.1
src/external/bsd/dhcpcd/dist/src/arp.c@1.1.1.2.8.1 / diff / nxr@1.1.1.2.8.1
src/external/bsd/dhcpcd/dist/src/arp.h@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/src/auth.c@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/src/auth.h@1.1.1.1.8.1 / diff / nxr@1.1.1.1.8.1
src/external/bsd/dhcpcd/dist/src/bpf.c@1.3.8.1 / diff / nxr@1.3.8.1
      :
(more 58 files)
Pull up following revision(s) (requested by roy in ticket #478):
doc/3RDPARTY: 1.1472, 1.1474, 1.1489, 1.1492
external/bsd/dhcpcd/dist/.gitignore: up to 1.4
external/bsd/dhcpcd/dist/LICENSE: up to 1.1.1.2
external/bsd/dhcpcd/dist/Makefile.inc: up to 1.1.1.2
external/bsd/dhcpcd/dist/README.md: up to 1.1.1.3
external/bsd/dhcpcd/dist/compat/crypt/hmac.c: up to 1.1.1.1
external/bsd/dhcpcd/dist/compat/crypt/hmac.h: up to 1.1.1.1
external/bsd/dhcpcd/dist/compat/crypt/md5.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/compat/strlcpy.c: up to 1.1.1.1
external/bsd/dhcpcd/dist/compat/strlcpy.h: up to 1.1.1.1
external/bsd/dhcpcd/dist/configure: up to 1.1.1.4
external/bsd/dhcpcd/dist/hooks/01-test: up to 1.1.1.2
external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in: up to 1.1.1.3
external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/Makefile: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/arp.c: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/arp.h: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/auth.c: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/auth.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/bpf.c: up to 1.6
external/bsd/dhcpcd/dist/src/bpf.h: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/common.c: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/common.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/control.c: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/control.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/crypt/crypt.h: delete
external/bsd/dhcpcd/dist/src/crypt/hmac_md5.c: delete
external/bsd/dhcpcd/dist/src/defs.h: up to 1.1.1.8
external/bsd/dhcpcd/dist/src/dev.c: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/dev.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/dhcp-common.c: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/dhcp-common.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/dhcp.c: up to 1.7
external/bsd/dhcpcd/dist/src/dhcp.h: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/dhcp6.c: up to 1.1.1.8
external/bsd/dhcpcd/dist/src/dhcp6.h: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/dhcpcd.8.in: up to 1.1.1.7
external/bsd/dhcpcd/dist/src/dhcpcd.c: up to 1.7
external/bsd/dhcpcd/dist/src/dhcpcd.conf: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/dhcpcd.h: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/eloop.c: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/eloop.h: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/if-bsd.c: up to 1.1.1.6
external/bsd/dhcpcd/dist/src/if-linux-wext.c: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/if-linux.c: up to 1.1.1.7
external/bsd/dhcpcd/dist/src/if-options.c: up to 1.6
external/bsd/dhcpcd/dist/src/if-options.h: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/if-sun.c: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/if.c: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/if.h: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/ipv4.c: up to 1.1.1.7
external/bsd/dhcpcd/dist/src/ipv4.h: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/ipv4ll.c: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/ipv4ll.h: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/ipv6.c: up to 1.1.1.7
external/bsd/dhcpcd/dist/src/ipv6.h: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/ipv6nd.c: up to 1.1.1.6
external/bsd/dhcpcd/dist/src/ipv6nd.h: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/logerr.c: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/logerr.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/route.c: up to 1.1.1.5
external/bsd/dhcpcd/dist/src/route.h: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/sa.c: up to 1.1.1.3
external/bsd/dhcpcd/dist/src/sa.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/src/script.c: up to 1.1.1.4
external/bsd/dhcpcd/dist/src/script.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/tests/crypt/Makefile: up to 1.1.1.2
external/bsd/dhcpcd/dist/tests/crypt/run-test.c: up to 1.1.1.2
external/bsd/dhcpcd/dist/tests/crypt/test.h: up to 1.1.1.2
external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c: up to 1.1.1.3
external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile: up to 1.1.1.2
external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c: up to 1.1.1.2
external/bsd/dhcpcd/include/config.h: up to 1.2
external/bsd/dhcpcd/sbin/Makefile.inc: up to 1.5
external/bsd/dhcpcd/sbin/dhcpcd/Makefile: up to 1.42
Update dhcpcd to 7.0.0.

(snj)

2018-01-13 21:33:14 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #473):
sys/sys/cdefs.h: 1.133-1.135
Ignore __thread for lint for now
--
lint knows about all inline variant syntax...
--
add linted to __USE()

(snj)

2018-01-13 20:36:06 UTC MAIN commitmail json YAML

Also set ih_realfun/ih_realarg in Xen's intr_establish_xname() as
intr_disestablish() use them.
Should fix the panic at device detach time (esp. at shutdown time).

(bouyer)

2018-01-13 19:57:35 UTC MAIN commitmail json YAML

Use .Ar to mark up the variable parts of sysctl nodes.

(uwe)

2018-01-13 19:50:52 UTC MAIN commitmail json YAML

Try to improve markup.

(uwe)

2018-01-13 19:01:59 UTC MAIN commitmail json YAML

Fix semantic markup.

(uwe)

2018-01-13 18:57:48 UTC MAIN commitmail json YAML

Fix semantic markup.

(uwe)

2018-01-13 17:55:57 UTC MAIN commitmail json YAML

fix swapped comments for EFER LME and LMA

(jdolecek)

2018-01-13 17:35:33 UTC MAIN commitmail json YAML

Fix semantic markup.

(uwe)

2018-01-13 16:20:33 UTC MAIN commitmail json YAML

2018-01-13 15:15:03 UTC MAIN commitmail json YAML

Implement dummy process_read_dbreg() and process_write_dbreg() used in x86

(reinoud)

2018-01-13 14:48:13 UTC MAIN commitmail json YAML

Needs cpu_init_tss() for application processor too.

(bouyer)

2018-01-13 14:47:58 UTC MAIN commitmail json YAML

Miscellaneous formatting tweaks.

(uwe)

2018-01-13 14:39:15 UTC MAIN commitmail json YAML

Add dbreg structure prototype needed for x86_64

(reinoud)

2018-01-13 14:34:00 UTC MAIN commitmail json YAML

Improve formatting of "Other options" section.  Use -compact list to
squash groups of options together.  The price for that is that now
items need explicit .Pp but the result looks more readable.

(uwe)

2018-01-13 14:12:57 UTC MAIN commitmail json YAML

Xen now needs cpu_init_tss() too. Makes XEN3PAE_DOMU boot again.

(bouyer)

2018-01-13 14:11:40 UTC MAIN commitmail json YAML

Fix fancy "options" lines as mandoc seems to interpret some of them
differently than nroff does.  Use \*q for literal double quotes,
protect literal space.

(uwe)

2018-01-13 14:00:51 UTC MAIN commitmail json YAML

Fix trailing whitespace.

(uwe)

2018-01-13 13:53:36 UTC MAIN commitmail json YAML

Compilation of a kernel outside the build.sh framework exposed the
uninitialised usage of `error' in interrupt_avert_intr(). In theory it can
reach the `out' label without `error' initialized. No idea if that really ever
happens in practice.

(reinoud)

2018-01-13 13:49:10 UTC MAIN commitmail json YAML

Move device lines to the top of the synopsis section. Group related
options.  Drop the count from the wsmux declaration, it hasn't been
necessary for ages.

(uwe)

2018-01-13 12:38:16 UTC MAIN commitmail json YAML

2018-01-13 12:36:35 UTC MAIN commitmail json YAML

add more __dead/EXIT_FAILURE

(christos)

2018-01-13 12:20:49 UTC MAIN commitmail json YAML

Fix another column width.

(uwe)

2018-01-13 12:14:26 UTC MAIN commitmail json YAML

Use .Fn when describing C macros

(uwe)

2018-01-13 12:06:48 UTC MAIN commitmail json YAML

Fix column width in postscript output.

(uwe)

2018-01-13 10:27:58 UTC MAIN commitmail json YAML

Keep up with changes in ld(4): adding ioctl handling on the ld(4) instead of
using the old dedicated ldflush() function.

(reinoud)

2018-01-13 10:20:45 UTC MAIN commitmail json YAML

Set size of mtusize before calling getsockopt to obtain mtu size.

(nat)

2018-01-13 10:08:35 UTC MAIN commitmail json YAML

Add the missing strategy argument of ldattach()

(reinoud)

2018-01-13 05:50:47 UTC netbsd-8 commitmail json YAML

472, 475, 476, 486-488

(snj)

2018-01-13 05:45:06 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #488):
sys/netinet/in.c: revision 1.213
Don't pass rwlock to callout_halt

(snj)

2018-01-13 05:43:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #487):
sys/net/if.c: revision 1.417
Suppress the assertion of IFNET_LOCK in if_mcast_op if MROUTING
MROUTING doesn't deal with IFNET_LOCK yet.
Reported by kardel@

(snj)

2018-01-13 05:41:39 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #486):
sys/net/if.c: revision 1.418
Check MP-safety in ifa_insert and ifa_remove only for IFEF_MPSAFE drivers
Eventually the assertions should pass for all drivers, however, at this point
it's too eager.
Fix PR kern/52895

(snj)

2018-01-13 05:40:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by macallan in ticket #476):
sys/dev/sbus/dbrivar.h: revision 1.15
sys/dev/ic/cs4215reg.h: revision 1.5
sys/dev/sbus/dbri.c: revision 1.37
overhaul the dbri driver and make it work again in the New Order Of Things
- fix switching between control and data mode
- make sure interrupts can happen in control mode
- implement audioif.commit_settings()
- switch to control mode only if needed - for changes in sample rate or format
  but not for things like volume control
should fix PR 52786

(snj)

2018-01-13 05:38:54 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #475):
sys/dev/fss.c: revision 1.101-1.103
usr.sbin/fssconfig/fssconfig.c: revision 1.13
Bounds check against media size for non-persistent snapshots.
--
Treat partial read from backing store as I/O error.
--
Pass residual back to b_resid for persistent snapshots.
--
Use stat() information to decide if the backing store is a directory.
Depending on open() returning EISDIR fails for mount points.

(snj)

2018-01-13 05:36:03 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #472):
sys/dev/pci/pucdata.c: revision 1.100
PR/52868: Petar Bogdanovic: Add support for Manhattan 158220 card

(snj)

2018-01-13 04:44:51 UTC netbsd-8 commitmail json YAML

2018-01-13 04:44:29 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #456):
sys/dev/ic/dwc_gmac.c: 1.45
Don't KASSERT that we are MPSAFE if ! DWCGMAC_MPSAFE

(snj)

2018-01-13 03:35:40 UTC MAIN commitmail json YAML

Add:  BIDI = boy, I did it

(pgoyette)

2018-01-12 23:38:24 UTC MAIN commitmail json YAML

2018-01-12 23:01:14 UTC MAIN commitmail json YAML

Fix an unitialized memory read bug in ps(1)

rawcpu of type int, is declared inside main(){} and it can be passed as
uninitialized to setpinfo().
The setpinfo() function has a switch checking the value of rawcpu:

  if (!rawcpu)
    pi[i].pcpu /= 1.0 - exp(ki[i].p_swtime * log_ccpu);

rawcpu is set to 1 with the command line argument "-C".

  -C          Change the way the CPU percentage is calculated by using a
                "raw" CPU calculation that ignores "resident" time (this
                normally has no effect).

Bug reproducible with an invocation: "ps u". It hides with "ps uC".

Initialize rawcpu by default to 0, before the getopt(3) machinery.

Detected with MSan running on NetBSD/amd64.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-01-12 19:38:53 UTC MAIN commitmail json YAML

We always need bp->b_resid initialized before we try to toss the transfer.

(jakllsch)

2018-01-12 18:54:37 UTC MAIN commitmail json YAML

fix comment

pool stats are listed 'vmstat -m' not 'vmstat -i'

(para)

2018-01-12 18:22:35 UTC MAIN commitmail json YAML

Add clocks gates and divisors for H3/H5 SPI[01] controllers.

(jakllsch)

2018-01-12 17:58:51 UTC MAIN commitmail json YAML

Set EV_ONESHOT to prevent rescheduling
XXX: pullup-8

(christos)

2018-01-12 17:54:36 UTC MAIN commitmail json YAML

missing printflike

(christos)

2018-01-12 09:47:44 UTC MAIN commitmail json YAML

fix hang at 4B microseconds (1h12 or so), and simplify part of the previous

(mrg)

2018-01-12 09:12:02 UTC MAIN commitmail json YAML

Split svs_page_add in two, one half will be used for other purposes, and
update a comment.

(maxv)

2018-01-12 06:24:43 UTC MAIN commitmail json YAML

2018-01-12 06:01:34 UTC MAIN commitmail json YAML

fix time goes backwards problems on sparc.

there are a few things here:
- there's a race between reading the limit register (which clears
  the interrupt and the limit bit) and increasing the latest offset.
  this can happen easily if an interrupt comes between the read and
  the call to tickle_tc() that increases the offset (i obverved this
  actually happening.)
- in early boot, sometimes the counter can cycle twice before the
  tickle happens.

to handle these issues, add two workarounds:
- if the limit bit isn't set, but the counter value is less than
  the previous value, and the offset hasn't changed, use the same
  fixup as if the limit bit was set.  this handles the first case
  above.
- add a hard-workaround for never allowing returning a smaller
  value (except during 32 bit overflow): if the result is less than
  the last result, add fixups until it does (or until it would
  overflow.)

the first workaround fixes general run-time issues, and the second
fixes issues only seen during boot.

also expand some comments in timer_sun4m.c and re-enable the sun4m
sub-microsecond tmr_ustolim4m() support (but it's always called with
at least 'tick' microseconds, so the end result is the same.)

(mrg)

2018-01-12 05:59:20 UTC MAIN commitmail json YAML

fix several KASSERT()s and locking in a few places.
fixes DIAGNOSTIC kernels and still plays.

(mrg)

2018-01-12 04:10:10 UTC MAIN commitmail json YAML

Allow open of audioctl devices whilst audio is open with the mixer
disabled.

XXX pullup -8

(nat)

2018-01-11 13:44:26 UTC MAIN commitmail json YAML

sprinkle __dead, use EXIT_{SUCCESS,FAILURE}

(christos)

2018-01-11 13:35:15 UTC MAIN commitmail json YAML

Introduce a new svs_page_add function, which can be used to map in the user
space a VA from the kernel space.

Use it to replace the PDIR_SLOT_PCPU slot: at boot time each CPU creates
its own slot which maps only its own pcpu_entry plus the common area (IDT+
LDT).

This way, the pcpu areas of the remote CPUs are not mapped in userland.

(maxv)

2018-01-11 11:15:35 UTC MAIN commitmail json YAML

The uarea must always be page-aligned.

(maxv)

2018-01-11 10:38:13 UTC MAIN commitmail json YAML

2018-01-11 10:30:26 UTC MAIN commitmail json YAML

Initialize ist0 in cpu_init_tss. On amd64 this is the DDB stack, and it has
nothing to do with ci_intrstack. While here, style, and don't forget to
pass UVM_KMF_ZERO in uvm_km_alloc.

(maxv)

2018-01-11 09:53:55 UTC MAIN commitmail json YAML

kern.module.verbose is a boolean, not an integer.  We had it right in the
text following the table, but the table itself was wrong.

Thanks to martin@ for pointing this out.

(pgoyette)

2018-01-11 09:18:16 UTC MAIN commitmail json YAML

Changing CR4 register may change cpuid values. For example, setting
CR4_OSXSAVE sets CPUID2_OSXSAVE. The CPUID2_OSXSAVE is in ci_feat_val[1],
so update it after changing CR4.

(msaitoh)

2018-01-11 09:00:04 UTC MAIN commitmail json YAML

Declare new SVS_* variants: SVS_ENTER_NOSTACK and SVS_LEAVE_NOSTACK. Use
SVS_ENTER_NOSTACK in the syscall entry point, and put it before the code
that touches curlwp. (curlwp is located in the direct map.)

Then, disable __HAVE_CPU_UAREA_ROUTINES (to be removed later). This moves
the kernel stack into pmap_kernel(), and not the direct map. That's a
change I've always wanted to make: because of the direct map we can't add
a redzone on the stack, and basically, a stack overflow can go very far
in memory without being detected (as far as erasing all of the system's
memory).

Finally, unmap the direct map from userland.

(maxv)

2018-01-11 08:59:27 UTC MAIN commitmail json YAML

New sentence, new line. Remove empty macro.

(wiz)

2018-01-11 07:58:22 UTC MAIN commitmail json YAML

Change the prefix of test names to ipsecif_ to distinguish from tests for ipsec(4)

(ozaki-r)

2018-01-11 06:38:05 UTC MAIN commitmail json YAML

Improve ipsecif.4. Default port ipsec(4) NAT-T is tested now.

pointed out by wiz@n.o and suggested by ozaki-r@n.o, thanks.

(knakahara)

2018-01-10 20:51:11 UTC MAIN commitmail json YAML

Restrict the check: SMAP faults are always protection violations, as the
SDM points out, so make sure we have PGEX_P. This way NULL dereferences -
which are caused by an unmapped VA, and therefore are not protection
violations - don't take this branch, and don't display a misleading
"SMAP" in ddb.

Adding a PGEX_P check, or not, does not essentially change anything from
a security point of view, it's just a matter of what gets displayed when
a fatal fault comes in.

I didn't put PGEX_P until now, because initially when I wrote the SMAP
implementation Qemu did not always receive the fault if the PGEX_P check
was there, while a native i5 would. I'm unable to reproduce this issue
with a recent Qemu, so I assume I did something wrong when testing in the
first place.

(maxv)

2018-01-10 19:56:47 UTC MAIN commitmail json YAML

Revert previous.  I misunderstood how it now works.

(jakllsch)

2018-01-10 19:51:04 UTC MAIN commitmail json YAML

Add COMPAT_70 via compat_netbsd70.conf.

(jakllsch)

2018-01-10 18:51:31 UTC MAIN commitmail json YAML

from ozaki-r: use the proper ifp.
XXX: perhaps push the lock in in_delmulti()?

(christos)

2018-01-10 18:39:50 UTC MAIN commitmail json YAML

Match Intel Dual Band Wireless AC 3168. The code already supports it.

(mlelstv)

2018-01-10 18:15:18 UTC MAIN commitmail json YAML

When we ask make about MACHINE_CPU and TARGET_ENDIANNESS make sure we
use the right bsd.*.mk files.

(uwe)

2018-01-10 18:13:30 UTC MAIN commitmail json YAML

2018-01-10 17:36:06 UTC MAIN commitmail json YAML

- this is not python, we need braces
- protect ifp locking against NULL

(christos)

2018-01-10 15:58:40 UTC MAIN commitmail json YAML

Use correct type with CTLTYPE_BOOL.

Fixes this sysctl on big endian.

(jakllsch)

2018-01-10 12:18:22 UTC MAIN commitmail json YAML

Improve wording and macro use.

Some parts are not clear to me, so someone with knowledge of ipsecif(4)
should improve this some more.

(wiz)

2018-01-10 12:16:39 UTC MAIN commitmail json YAML

Spell IPsec that way. Simplify macro usage. Sort SEE ALSO. Bump
date for previous.

(wiz)

2018-01-10 11:46:02 UTC MAIN commitmail json YAML

Print intel_pt in /proc/cpuinfo.

(msaitoh)

2018-01-10 11:33:48 UTC MAIN commitmail json YAML

2018-01-10 11:32:29 UTC MAIN commitmail json YAML

Comment out AUTOFS until it compiles

(jmcneill)

2018-01-10 11:13:26 UTC MAIN commitmail json YAML

apply in{,6}_tunnel_validate() to gif(4).

(knakahara)

2018-01-10 11:11:20 UTC MAIN commitmail json YAML

add ipsec(4) interface to amd64/GENERIC and amd64/ALL configs.

(knakahara)

2018-01-10 11:08:56 UTC MAIN commitmail json YAML

2018-01-10 11:06:06 UTC MAIN commitmail json YAML

2018-01-10 11:02:42 UTC MAIN commitmail json YAML

2018-01-10 10:56:31 UTC MAIN commitmail json YAML

2018-01-10 08:47:30 UTC MAIN commitmail json YAML

Add SVS - Separate Virtual Space

(pgoyette)

2018-01-10 07:34:31 UTC MAIN commitmail json YAML

Get rid of unnecessary ifdef for IFT_IEEE80211

(ozaki-r)

2018-01-10 07:11:38 UTC MAIN commitmail json YAML

Fix a deadlock on callout_halt of nd6_dad_timer

We must not call callout_halt of nd6_dad_timer with holding nd6_dad_lock because
the lock is taken in nd6_dad_timer. Once softnet_lock goes away, we can pass the
lock to callout_halt, but for now we cannot.

(ozaki-r)

2018-01-10 07:08:35 UTC MAIN commitmail json YAML

Print Intel cpuid 7 %edx.

Example output of cpuctl -v identify 0:

+cpu0: 00000007: 00000000 000027ab 00000000 0c000000
(snip)
+cpu0: SEF edx 0xc000000<IBRS,STIBP>

(msaitoh)

2018-01-10 07:04:54 UTC MAIN commitmail json YAML

Add Intel cpuid 7 %edx IBRS(IBPB Speculation Control) and
STIBP(STIBP Speculation Control) from OpenBSD.

(msaitoh)

2018-01-10 04:45:24 UTC MAIN commitmail json YAML

2018-01-10 02:50:26 UTC MAIN commitmail json YAML

Don't start callouts for domains before attaching domains on rump kernels

On rump kernels, the callouts for domains, pffasttimo and pfslowtimo, started
before domains were attached. Normally the callouts were dispatched after
domain attaches (initializations) finished, however, under load the callouts
could be executed prior to the attaches, resulting in that the callouts accessed
unallocated or uninitialized resources.

(ozaki-r)

2018-01-10 01:49:05 UTC MAIN commitmail json YAML

s/level 25/level 15/ -- there's nothing higher than 15 on sparc, and
this is talking about NMI.

(mrg)

2018-01-10 01:22:26 UTC MAIN commitmail json YAML

Check MP-safety in ifa_insert and ifa_remove only for IFEF_MPSAFE drivers

Eventually the assertions should pass for all drivers, however, at this point
it's too eager.

Fix PR kern/52895

(ozaki-r)

2018-01-09 22:58:45 UTC MAIN commitmail json YAML

KASSERT() that kthread_join()'s target is expecting to be joined.

As discussed on IRC.

(pgoyette)

2018-01-09 21:17:46 UTC MAIN commitmail json YAML

Correct the signature of kvm_getproc2(3) in the man-page.

The elemsize argument is of type "size_t", not "int".

Sponsored by <The NetBSD Foundation>

(kamil)

2018-01-09 21:13:59 UTC MAIN commitmail json YAML

Correct the signature of kvm_getlwps(3) in the man-page.

The elemsize argument is of type "size_t", not "int *".

Sponsored by <The NetBSD Foundation>

(kamil)

2018-01-09 20:55:43 UTC MAIN commitmail json YAML

2018-01-09 19:52:29 UTC MAIN commitmail json YAML

Use a queue of deferred entries to delete routes instead of a fixed stack
of 10. Otherwise we can overflow in route deletions from the rexmit timer.
XXX: pullup-8

(christos)

2018-01-09 19:39:51 UTC netbsd-8 commitmail json YAML

2018-01-09 19:35:03 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #485):
sys/dev/auconv.c: 1.32-1.35
sys/dev/auconv.h: 1.20-1.21
sys/dev/mulaw.c: 1.33
sys/dev/mulaw.h: 1.25
Improve LINEAR_LINEARN macro - inparticular BE/LE conversions.
Addresses part of PR kern/52586 analyzed and reported by isaki@.
--
Allow maxused to be an odd number of bytes.  This makes single byte
conversions work for the test described in the PR.
Addresses another part of PR kern/52586.
--
Remove 24 bit in a 32 bit container filters.
At present this filter did not work well and has caused problems with
the audio mixer disabled for hdaudio(4).
These filters may return when they are fixed.
--
Replace LINEARN_TO_LINEARN macro with individual optimized functions for
8, 16, 24 and 32 bits linear to linear conversions.
Addresses PR kern/52586.
--
mulaw/alaw_to_linearN macros replaced with individual faster filters.
NFC.

(snj)

2018-01-09 19:30:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #484):
sys/netinet6/ip6_forward.c: 1.89-1.90
Fix use-after-free of mbuf by ip6flow_create
This fixes recent failures of some ATF tests such as t_ipsec_tunnel_odd.
--
Fix use-after-free of mbuf by ip6flow_create (one more)

(snj)

2018-01-09 19:29:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #483):
etc/etc.i386/MAKEDEV.conf: revision 1.26
Add NVMe devices.

(snj)

2018-01-09 19:27:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #482):
external/bsd/nvi/usr.bin/recover/virecover: revision 1.4
Don't get stuck reading named pipes; only try to read plain files in
order to send mail.

(snj)

2018-01-09 19:24:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #481):
sys/netinet6/ip6_flow.c: revision 1.36
Fix use-after-free: if m_pullup fails the (freed) mbuf is pushed on the
ip6_pktq queue and re-processed later. Return 1 to say "processed and
freed".

(snj)

2018-01-09 19:23:04 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #480):
sys/net/if_ethersubr.c: revision 1.249
Make sure we have an llc structure in the packet, and don't read past the
end of the mbuf if we don't. I'm wondering whether we should not pull up
instead, but whatever.

(snj)

2018-01-09 19:20:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #479):
sys/netatalk/aarp.c: revision 1.40
Mmh, pull up the packet to ether_aarp, otherwise we're reading past the
end of the mbuf.

(snj)

2018-01-09 17:58:10 UTC MAIN commitmail json YAML

tidy up debugging (make it compile with the 'ALL' kernel)

(christos)

2018-01-09 17:35:29 UTC MAIN commitmail json YAML

2018-01-09 16:19:39 UTC MAIN commitmail json YAML

2018-01-09 16:18:35 UTC MAIN commitmail json YAML

2018-01-09 15:16:02 UTC MAIN commitmail json YAML

Skip the test on non-modular kernels

(martin)

2018-01-09 13:56:00 UTC MAIN commitmail json YAML

Include <sys/atomic.h> for the atomic funtions used in here.

(martin)

2018-01-09 10:47:57 UTC MAIN commitmail json YAML

Use fseeko instead of fseek to fix the build on some 32bit architectures

(martin)

2018-01-09 09:41:29 UTC MAIN commitmail json YAML

File system police. Add RCS Id. Improve SYNOPSIS. Use more markup.

(wiz)

2018-01-09 09:39:07 UTC MAIN commitmail json YAML

File system police. Sort options. Add RCS Id. Use more markup. Wording.

(wiz)