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 (2h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 14:40:32 UTC Now

2017-07-28 15:02:52 UTC MAIN commitmail json YAML

Reject out-of-bounds channel index.

From Ilja Van Sprundel.

(riastradh)

2017-07-28 14:49:55 UTC MAIN commitmail json YAML

Reject negative indices from userland.

(riastradh)

2017-07-28 14:45:59 UTC MAIN commitmail json YAML

Reject negative offset/count for smb read/write.

Not clear that this is actually a problem for the kernel -- might
overwrite user's buffers or return garbage to user, but that's their
own damn fault.  But it's hard to imagine that negative offset/count
ever makes sense, and I haven't ruled out a problem for the kernel.

(riastradh)

2017-07-28 14:40:42 UTC MAIN commitmail json YAML

Reject negative ioc_setupcnt.

(riastradh)

2017-07-28 14:37:27 UTC MAIN commitmail json YAML

2017-07-28 14:26:51 UTC MAIN commitmail json YAML

2017-07-28 14:20:46 UTC MAIN commitmail json YAML

Reject allocations for too-small buffers from userland.

From Ilja Van Sprundel.

(riastradh)

2017-07-28 14:16:29 UTC MAIN commitmail json YAML

Avert userland-controlled integer overflow.

From Ilja Van Sprundel.

(riastradh)

2017-07-28 14:13:56 UTC MAIN commitmail json YAML

Don't disclose uninitialized 32-bit word if cryptodev_session fails.

From Ilja Van Sprundel.

(riastradh)

2017-07-28 14:13:13 UTC MAIN commitmail json YAML

Disable svr4 and ibcs2 by default.

These options are not well-tested, of a limited use case, and the potential
for damage is too high. Vulnerabilities were presented at DEFCON 25 - I see
that at least one of them can be exploited to get ring0 privileges.

(maxv)

2017-07-28 14:13:11 UTC MAIN commitmail json YAML

#if DIAGNOSTIC panic ---> KASSERTMSG

(riastradh)

2017-07-28 14:12:26 UTC MAIN commitmail json YAML

cpu_trace is no more, remove vestige of it that broke ALL kernel.

(riastradh)

2017-07-28 13:59:07 UTC MAIN commitmail json YAML

Disable vm86 by default. The use case is limited, and the potential for
damage is too high.

This code is fragile, and relies on a certain number of assumptions, some
of which are not be totally true. For example, it relies on the fact that
a 16bit process cannot perform a syscall, but verily it can. The slighest
confusion in the trap frame can lead to ring0 exploits. Also, I'm not
convinced that it interacts well with the compatibility layers.

(maxv)

2017-07-28 13:58:47 UTC MAIN commitmail json YAML

Reject negative indices.

(Would be nice to change the types too, and it's *probably* safe to
replace int by u_int, but I'm reluctant to touch the ioctl
definitions without at least a modicum more thought.  Also one of
them is a u_long, because why not?)

From Ilja Van Sprundel.

(riastradh)

2017-07-28 13:53:17 UTC MAIN commitmail json YAML

Zero buffers copied to userland to avoid stack disclosure.

From Ilja Van Sprundel.

(riastradh)

2017-07-28 13:23:01 UTC MAIN commitmail json YAML

Free the RX list if ural_alloc_rx_list fails part way through.

Reported by Ilja Van Sprundel.

(skrll)

2017-07-28 12:28:48 UTC MAIN commitmail json YAML

Avoid integer overflow in kern_malloc(). Reported by Ilja Van Sprundel.
XXX Time to kill malloc() completely!

(martin)

2017-07-28 10:34:58 UTC MAIN commitmail json YAML

add comment about confusing wm_rxeof() calling.

pointed out by msaitoh@n.o.

(knakahara)

2017-07-28 10:21:10 UTC MAIN commitmail json YAML

Check some wm_nvm_read()'s return vale.

(msaitoh)

2017-07-28 09:12:40 UTC MAIN commitmail json YAML

Qemu's e1000e emulation (82574L)'s SPI has only 64 words. I've never seen on
real 82574 hardware with such small SPI ROM. Check sc->sc_nvm_wordsize before
accessing higer address words to prevent timeout.

(msaitoh)

2017-07-28 07:42:41 UTC MAIN commitmail json YAML

APIC related macros are mixed with IOAPIC related ones.
This needs separation.

Until then, band-aid it.

This fixes pci-passthrough build failures on XEN3_DOMU pointed out by
msaitoh@

(cherry)

2017-07-28 03:58:54 UTC MAIN commitmail json YAML

Remove dead code from audio open.  Found by isaki@.
Better error handling incase memory for the streams' ringbuffers cannot be
allocated.

Addresses PR kern/52433.

(nat)

2017-07-28 03:29:19 UTC MAIN commitmail json YAML

Remove unused code from audio_set_params.

Addresses PR kern/52434.

(nat)

2017-07-28 02:53:54 UTC MAIN commitmail json YAML

Refactoring of order of auto config combinations.  Most common formats
come first.

Do not exceed AUDIO_MAX_CHANNELS.

Addresses PR kern/52435.

(nat)

2017-07-28 01:36:41 UTC MAIN commitmail json YAML

2017-07-27 23:39:38 UTC MAIN commitmail json YAML

Add a null_filter to help with the audio autoconfig of pmax.

Tested by flxd@.

(nat)

2017-07-27 18:27:19 UTC MAIN commitmail json YAML

2017-07-27 18:13:46 UTC MAIN commitmail json YAML

Add sun8i-h3-nanopi-neo-air.dts, sun8i-h3-orangepi-one.dts

(jmcneill)

2017-07-27 18:12:07 UTC MAIN commitmail json YAML

dts updated to 4.12.3

(jmcneill)

2017-07-27 16:05:16 UTC MAIN commitmail json YAML

For alpha, generating alpha.d first needs pass-instances.def re-generated.

(he)

2017-07-27 12:15:59 UTC MAIN commitmail json YAML

Some stupid pkgsrc stuff insists on -std=c89, duh!
Use __inline instead of inline.

(martin)

2017-07-27 10:56:42 UTC MAIN commitmail json YAML

Macro confusion - fortunately this has no functional change.

(skrll)

2017-07-27 10:04:29 UTC MAIN commitmail json YAML

G/C EXF_WANTED

(skrll)

2017-07-27 10:03:38 UTC MAIN commitmail json YAML

5 comes after 4

(skrll)

2017-07-27 10:03:10 UTC MAIN commitmail json YAML

The sparc port needs s_nearbyint.c as well.

(he)

2017-07-27 09:53:57 UTC MAIN commitmail json YAML

Let PF_KEY socks hold their own lock instead of softnet_lock

Operations on SAD and SPD are executed via PF_KEY socks. The operations
include deletions of SAs and SPs that will use synchronization mechanisms
such as pserialize_perform to wait for references to SAs and SPs to be
released. It is known that using such mechanisms with holding softnet_lock
causes a dead lock. We should avoid the situation.

(ozaki-r)

2017-07-27 09:27:11 UTC MAIN commitmail json YAML

Fix the conversion to __BIT where bit numbering starts at zero.

No affect other than to fix the tests.

(skrll)

2017-07-27 08:42:47 UTC MAIN commitmail json YAML

(maybe) typo in comment.

(isaki)

2017-07-27 08:37:27 UTC MAIN commitmail json YAML

"sc_format[0]." is better than "sc_format->" here.

(isaki)

2017-07-27 08:28:18 UTC MAIN commitmail json YAML

Improve in #ifdef AUDIO_INTR_TIME.
Stop 19 years old weird #define, stop signed/unsigned mixing,
use int64_t instead of (u_)long to avoid integer overflow,
rearrange definitions in header, and fix indent.

(isaki)

2017-07-27 08:10:41 UTC MAIN commitmail json YAML

Remove redundant test - the compiler realised anyway as we get same binary
output

(skrll)

2017-07-27 07:53:54 UTC MAIN commitmail json YAML

Also allow SLINEAR_BE on msm6258_linear8_to_adpcm.
Before merging in-kernel mixing, it was called with SLINEAR_LE even if
big endian arch.  But now it seems to be called with SLINEAR_<HostEndian>.

(isaki)

2017-07-27 07:01:58 UTC MAIN commitmail json YAML

Non-softfloat m68k needs s_rintl.c.

(he)

2017-07-27 06:59:28 UTC MAIN commitmail json YAML

2017-07-27 03:21:43 UTC MAIN commitmail json YAML

Add WM_F_WA_I210_CLSEM flag for a workaround. FreeBSD/Linux drivers say
"In rare circumstances, the SW semaphore may already be held unintentionally."
on I21[01]. PXE boot is one of the case.

XXX pullup-[678].

(msaitoh)

2017-07-27 02:11:24 UTC MAIN commitmail json YAML

PR/52409: Avoid panic at resume.

XXX: pullup-8

(nonaka)

2017-07-26 23:09:41 UTC MAIN commitmail json YAML

PR bin/48498  PR bin/52426

Don't ignore unexpected reserved words after ';'
Don't allow any random token type as a case stmt pattern, only a word.
Those are ancient ash bugs and do not affect correct scripts.

Don't ignore redirects in a case stmt list where the list is nothing but
redirects (if the pattern matches, the redirects should be performed).
That was introduced when a redirect only case stmt list was allowed
(older shells had generated a syntax error.)

Random cleanups/refactoring taken from or inspired by the FreeBSD sh
parser ...  use makename() consistently to create a NARG node - we
were using it in a couple of places but most NARG node creation was open
coded.  Introduce consumetoken() (from FreeBSD) to handle the fairly
common case where exactly one token type must come next, and we need to
check that, and skip past it when found (or error) and linebreak() (new)
to handle places where optional \n's are permitted.
Both previously open coded.

Simplify list() by removing its second arg, which was only ever used when
handling the end of a `` (old style command substitution).  Simply move
the code from inside list() to just after its call in the `` case (from
FreeBSD.)

(kre)

2017-07-26 18:12:12 UTC jdolecek-ncq commitmail json YAML

write the device and channel for port multiplier attach (not just the atabus),
so it's easier to check

(jdolecek)

2017-07-26 17:50:21 UTC MAIN commitmail json YAML

PR bin/48498  PR bin/52426

Add two new sh syntax test cases to check for bug fixes for the parser
problems (syntax errors unidentified) reported in the two PRs.

In the latter case, also include some tests that test similar
looking, valid, syntax - to make sure the fix for the PR does not
break code that should not fail.  This is not needed for the earlier
PR as other tests, and just normal parsing, is sufficient.

These tests have been verified to fail with a current /bin/sh and to
pass with the sh updates that are to be committed soon -- and because that
fix is expected within hours, the tests are not marked as expected to
fail, just let them actually fail for now.

(kre)

2017-07-26 16:42:37 UTC MAIN commitmail json YAML

change lfs_nextsegsleep and lfs_allclean_wakeup to use condvar

XXX had to use lfs_lock in lfs_segwait, removed kernel_lock, is this
appropriate?

(maya)

2017-07-26 16:11:31 UTC netbsd-7 commitmail json YAML

tickets 1435, 1449, 1450, 1454, 1455, 1458, 1559

(snj)

2017-07-26 16:07:41 UTC netbsd-7-1 commitmail json YAML

2017-07-26 16:04:26 UTC netbsd-7-0 commitmail json YAML

2017-07-26 15:58:58 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1459):
sys/dev/pci/if_iwm.c: revision 1.72
iwm(4): match Wireless 8265 device.

(snj)

2017-07-26 15:57:53 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #1458):
sys/dev/pci/aceride.c: revision 1.37
sys/dev/pci/pciide_acer_reg.h: revision 1.13
Apply workaround from FreeBSD to fix read data corruption observed
on Fire V100 and mSATA-SSD with mSATA to IDE adapter.
The patch is from port-sparc64@.

(snj)

2017-07-26 15:54:15 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #1455):
libexec/ld.elf_so/tls.c: revision 1.11
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.

(snj)

2017-07-26 15:52:58 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1454):
sbin/route/rtutil.c: revision 1.10
Fix route and netstat -r output when built with -DSMALL
A missing \n caused the routing table to be printed all in one line
if -DSMALL was used.

(snj)

2017-07-26 15:51:45 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1450):
doc/3RDPARTY: revision 1.1425 via patch
external/public-domain/tz/dist/NEWS: up to 1.1.1.18
external/public-domain/tz/dist/TZDATA_VERSION: up to 1.8
external/public-domain/tz/dist/africa: up to 1.1.1.11
external/public-domain/tz/dist/iso3166.tab: up to 1.1.1.5
external/public-domain/tz/dist/northamerica: up to 1.1.1.16
external/public-domain/tz/dist/version: up to 1.1.1.5
Update tzdata to 2017b.

(snj)

2017-07-26 15:51:13 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1450):
doc/3RDPARTY: revision 1.1425 via patch
external/public-domain/tz/dist/NEWS: up to 1.1.1.18
external/public-domain/tz/dist/TZDATA_VERSION: up to 1.8
external/public-domain/tz/dist/africa: up to 1.1.1.11
external/public-domain/tz/dist/iso3166.tab: up to 1.1.1.5
external/public-domain/tz/dist/northamerica: up to 1.1.1.16
external/public-domain/tz/dist/version: up to 1.1.1.5
Update tzdata to 2017b.

(snj)

2017-07-26 15:50:28 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1450):
doc/3RDPARTY: revision 1.1425 via patch
external/public-domain/tz/dist/NEWS: up to 1.1.1.18
external/public-domain/tz/dist/TZDATA_VERSION: up to 1.8
external/public-domain/tz/dist/africa: up to 1.1.1.11
external/public-domain/tz/dist/iso3166.tab: up to 1.1.1.5
external/public-domain/tz/dist/northamerica: up to 1.1.1.16
external/public-domain/tz/dist/version: up to 1.1.1.5
Update tzdata to 2017b.

(snj)

2017-07-26 15:38:31 UTC netbsd-7-0 commitmail json YAML

Apply patch (requested by mrg in ticket #1449):
Don't use defined() on perl arrays.

(snj)

2017-07-26 15:38:12 UTC netbsd-7-1 commitmail json YAML

Apply patch (requested by mrg in ticket #1449):
Don't use defined() on perl arrays.

(snj)

2017-07-26 15:37:58 UTC netbsd-7 commitmail json YAML

Apply patch (requested by mrg in ticket #1449):
Don't use defined() on perl arrays.

(snj)

2017-07-26 15:32:09 UTC MAIN commitmail json YAML

Document xetc.tgz installation set.

Thanks to <wiz> for the review!

(leot)

2017-07-26 15:22:37 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #1435):
sys/arch/arm/arm32/cpu.c: 1.113 via patch
sys/arch/arm/broadcom/bcm2835_bsc.c: 1.6 via patch
sys/arch/arm/broadcom/bcm2835_plcom.c: 1.4 via patch
sys/arch/arm/cortex/gtmr.c: 1.18 via patch
sys/arch/arm/include/armreg.h: 1.110 via patch
sys/arch/arm/include/vfpreg.h: 1.15 via patch
sys/arch/arm/vfp/vfp_init.c: 1.50 via patch
sys/arch/evbarm/rpi/rpi_machdep.c: 1.59, 1.70-1.72 via patch
sys/arch/evbarm/rpi/vcprop.h: 1.16
Get the RPI3 working (in aarch32 mode) by recognising Cortex A53 CPUs.
While I'm here add some A57/A72 info as well.
My RPI3 works with FB console - the uart needs some help with its clocks.
--
Do invalidate the cache as RPI2 build with Clang can't fetch the memory
config otherwise.
--
Use the VC property mailbox to request the UART clock rate and use it
appropriately
Newer firmwares use 48MHz
--
Disable BSC0 on Raspberry Pi 3 and Zero W boards.
--
Interrupts are enabled before the timer is configured. Ensure that the
timer is disabled when attaching so it doesn't go crazy between the time
interrupts are enabled and clocks are initialized. My RPI3 makes it
multi-user now.
--
Enable UART0 (PL011) on GPIO header for Raspberry Pi 3 / Zero W

(snj)

2017-07-26 15:07:27 UTC MAIN commitmail json YAML

Revert r1.272 fix to PR kern/52301, the performance hit is making things
unusable.

(maya)

2017-07-26 14:39:00 UTC MAIN commitmail json YAML

Deduplicate sanity check that seglock is held on segunlock

(maya)

2017-07-26 09:53:09 UTC MAIN commitmail json YAML

Add s_nearbyint.c to alpha, ia64, riscv, mips, powerpc, and sh3 ports.

(he)

2017-07-26 09:42:12 UTC MAIN commitmail json YAML

Add some blank lines to separate the different CPU archs,
for a minimal readability improvement.

(he)

2017-07-26 09:18:15 UTC MAIN commitmail json YAML

2017-07-26 08:58:45 UTC MAIN commitmail json YAML

2017-07-26 08:57:24 UTC MAIN commitmail json YAML

Add Intel 5520/X58 QuickPath from OpenBSD.

(msaitoh)

2017-07-26 08:09:59 UTC MAIN commitmail json YAML

On 8254[17] with SPI ROM, wm_nvm_set_addrbits_size_eecd() calls wm_nvm_read(),
so it's required to set flags and functions before calling it. It was broken
again in if_wm.c rev. 1.530 (see also 1.313). Tested with Dell Power Edge 1850.

(msaitoh)

2017-07-26 07:45:05 UTC MAIN commitmail json YAML

uaudio: don't block suspend.

audio after resume hasn't been fully tested due to other issues, but
the problem machine resumes. tested by Ricardo Mottola

(maya)

2017-07-26 07:40:01 UTC netbsd-8 commitmail json YAML

2017-07-26 07:39:54 UTC MAIN commitmail json YAML

Fix indentation

Pointed out by knakahara@

(ozaki-r)

2017-07-26 07:34:37 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #160):
sys/arch/dreamcast/conf/G1IDE: revision 1.2
sys/arch/dreamcast/conf/GENERIC: revision 1.126
sys/arch/dreamcast/dev/g2/aica.c: revision 1.23
Dreamcast audio only supports playback so set it in the props.
This makes dreamcast audio work again.
Tested by Bjorn Johannesson.
cvs: ----------------------------------------------------------------------
Use the correct attachment for dreamcast audio.
Found and tested by Bjorn Johannesson on port-dreamcast.

(martin)

2017-07-26 07:32:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #159):
sys/arch/evbarm/conf/SUNXI: revision 1.18
sys/arch/arm/sunxi/sunxi_wdt.c: revision 1.1
sys/arch/arm/sunxi/files.sunxi: revision 1.14
Add watchdog timer support.

(martin)

2017-07-26 07:29:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #158):
sys/kern/sched_4bsd.c: revision 1.31-1.33

explain a bit
-
Revert rev1.26. l_estcpu is increased by only one cpu, not all of them.
-
Should be loadfactor().

(martin)

2017-07-26 06:48:49 UTC MAIN commitmail json YAML

-  Our MII readreg/writereg API has not way to detect an error.
  kmrn_{read,write}reg() are not used for MII API, so it's not required for
  these functions to use the same API. So,
  - Change return value as error code.
  - Change register vaule from int to uint16_t.
  - read: pass pointer for uint16_t as an argument.
  - Check return value on caller side.
- Check whether it's required to use MDIC workaround for 80003 or not in
  wm_reset(). If the workaround isn't required, don't use the workaround code
  in wm_gmii_i80003_{read,write}reg.

(msaitoh)

2017-07-26 06:44:50 UTC MAIN commitmail json YAML

update locking notes of opencrypto(9)

(knakahara)

2017-07-26 06:44:01 UTC MAIN commitmail json YAML

divide crp_ret_{,k}q by CPU to avoid reordering.

update locking note later.

(knakahara)

2017-07-26 06:40:43 UTC MAIN commitmail json YAML

make crp_{,k}q percpu to scale crypto_dispatch().

update locking note later.

(knakahara)

2017-07-26 03:59:59 UTC MAIN commitmail json YAML

2017-07-26 03:46:55 UTC MAIN commitmail json YAML

Add a comment explaining the ordering reltionship of the tokens
(operators all come first, then TWORD, then keywords), and switch
from using TIF to define KWDOFFSET to using TWORD (the barrier,
rather than the token that happens to be first after it.)

(kre)

2017-07-26 03:44:43 UTC MAIN commitmail json YAML

NFC: DEBUG mode change - add a couple more TRACE macros to allow for
conditional (apart from the normal debug conditions) tracing.

(kre)

2017-07-26 03:40:40 UTC MAIN commitmail json YAML

Tweak slightly sketchy logic in linux_idr.

1. idr_preload can fail if you don't set __GFP_WAIT.
2. If idr_preload fails, it is wrong for idr_alloc to assert.
3. There is no way for idr_alloc to know what flags idr_preload got.

Probably won't *fix* any bugs, but if there is a bug with a missing
__GFP_WAIT, then we will learn about a trifle sooner.

(riastradh)

2017-07-26 01:33:35 UTC MAIN commitmail json YAML

Fix key_getcomb_setlifetime

The fix adjusts a soft limit to be 80% of a corresponding hard limit.

I'm not sure the fix is really correct though, at least the original
code is wrong. A passed comb is zero-cleared before calling
key_getcomb_setlifetime, so
  comb->sadb_comb_soft_addtime = comb->sadb_comb_soft_addtime * 80 / 100;
is meaningless.

(ozaki-r)

2017-07-25 23:31:27 UTC MAIN commitmail json YAML

Pull in upstream commit:

Author: Ville Syrjè¾°lè¾° <ville.syrjala@linux.intel.com>
Date:  Mon Jun 9 16:20:46 2014 +0300

    drm/i915: Avoid div-by-zero when pixel_multiplier is zero

On certain platforms pixel_multiplier is read out in
.get_pipe_config(), but it also gets used to calculate the
pixel clock in intel_sdvo_get_config(). If the pipe is disabled
but some SDVO outputs are active, we may end up dividing by zero
in intel_sdvo_get_config().

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=76520

(maya)

2017-07-25 23:20:57 UTC MAIN commitmail json YAML

Use the correct attachment for dreamcast audio.

Found and tested by Bjorn Johannesson on port-dreamcast.

(nat)

2017-07-25 23:18:04 UTC MAIN commitmail json YAML

Dreamcast audio only supports playback so set it in the props.
This makes dreamcast audio work again.

Tested by Bjorn Johannesson.
cvs: ----------------------------------------------------------------------

(nat)

2017-07-25 23:17:20 UTC MAIN commitmail json YAML

enable rt2860 power management code

adjust to fit netbsd:
make suspend,resume functions match desired pmf* prototypes
remove wakeup/activate wrapper functions

avoid jumping to NULL on resume by initializing if_stop

the problem machine has other issues on resume, so there might be further
issues, but it's an improvement over a jump to NULL.

tested by Riccardo Mottola

(maya)

2017-07-25 22:28:22 UTC MAIN commitmail json YAML

Do the previous test a better way - for a file, test is generally
adequate, but for a device, we really need to actually try opening
it to determine that it is possible - so do the test that way, then
if the open succeeds once, assume it will the second time (which then
holds it open.)

(kre)

2017-07-25 21:26:56 UTC MAIN commitmail json YAML

Revert previous as it breaks at least sparc and hpcsh builds.
nearbyint() is not included in libm on all platforms.

(uwe)

2017-07-25 21:25:03 UTC MAIN commitmail json YAML

Correct oversight in previous ... redirecting into a compound statement
causes the shell to exit if the redirect fails (posix says "may exit"
and /bin/sh does - maybe should give that more thought) - which will
happen if /dev/pad0 does not exist, causing a very messy test abort
(the shell running the test is not supposed to just go away).  So
check tha the device exista and is readable before attempting to open it.

Problem brought to my attention by nat@ - thanks...

(kre)

2017-07-25 19:51:29 UTC netbsd-7 commitmail json YAML

2017-07-25 19:44:28 UTC netbsd-7 commitmail json YAML

2017-07-25 19:44:25 UTC MAIN commitmail json YAML

TLS relocations for PIE and non-PIE main executable work the same, so
apply the same relaxation rules and the same static binding rules.

(joerg)

2017-07-25 19:43:03 UTC netbsd-7 commitmail json YAML

src/distrib/sets/lists/base/mi@1.1087.2.11 / diff / nxr@1.1087.2.11
src/etc/mtree/NetBSD.dist.base@1.139.2.3 / diff / nxr@1.139.2.3
src/external/intel-fw-public/Makefile@1.7.4.2 / diff / nxr@1.7.4.2
src/external/intel-fw-public/iwl3160/Makefile@1.4.8.2 / diff / nxr@1.4.8.2
src/external/intel-fw-public/iwl3160/dist/LICENSE.iwlwifi-3160-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl3160/dist/README.iwlwifi-3160-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl3160/dist/iwlwifi-3160-17.ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl3168/Makefile@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl3168/dist/LICENSE.iwlwifi-3168-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl3168/dist/README.iwlwifi-3168-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl3168/dist/iwlwifi-3168-22.ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7260/Makefile@1.4.8.2 / diff / nxr@1.4.8.2
src/external/intel-fw-public/iwl7260/dist/LICENSE.iwlwifi-7260-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7260/dist/README.iwlwifi-7260-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7260/dist/iwlwifi-7260-17.ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7265/Makefile@1.5.8.2 / diff / nxr@1.5.8.2
src/external/intel-fw-public/iwl7265/dist/LICENSE.iwlwifi-7265-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7265/dist/README.iwlwifi-7265-ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7265/dist/iwlwifi-7265-17.ucode@1.1.12.2 / diff / nxr@1.1.12.2
src/external/intel-fw-public/iwl7265/dist/iwlwifi-7265D-22.ucode@1.1.12.2 / diff / nxr@1.1.12.2
      :
(more 15 files)
Apply patch (requested by nonaka in ticket #1413):
iwm(4): Add a driver for Intel Wireless 726x, 316x, 826x and 416x series.
Ported from OpenBSD.

(snj)

2017-07-25 18:03:56 UTC MAIN commitmail json YAML

This branch must be static, otherwise there is a condition under which
the KASSERT in startlwp32 would be triggered.

(maxv)

2017-07-25 17:43:44 UTC MAIN commitmail json YAML

2017-07-25 17:04:52 UTC MAIN commitmail json YAML

2017-07-25 13:29:16 UTC MAIN commitmail json YAML

Fix a panic caused by opening pad(4)'s mixer before the corresponding
audio device has attached.

Addresses PR kern/52424.

(nat)

2017-07-25 10:43:41 UTC MAIN commitmail json YAML

Current sljit version is r350.

(alnsn)

2017-07-25 08:37:48 UTC MAIN commitmail json YAML

Remove trailing whitespace.

(wiz)

2017-07-25 08:30:45 UTC MAIN commitmail json YAML

2017-07-25 08:30:27 UTC MAIN commitmail json YAML

2017-07-25 08:15:57 UTC MAIN commitmail json YAML

Remove unused macro

(ozaki-r)

2017-07-25 06:44:22 UTC MAIN commitmail json YAML

don't set NEED_MDSETIMAGE when we don't enable the md_root.  move the
option in with the commented md_root options.

part 2 of the CI20 kernel build fix.  now evbmips builds completes
sanely for me.

(mrg)

2017-07-25 06:43:03 UTC MAIN commitmail json YAML

initialise some stack variables to zero so that later checking ensures
they are considered "unfound" instead of some random value.

part 1 in fixing the CI20 kernel build.  this one actually will cause
the build to fail, but it's outputting broken objects right now anyway.
part 2 coming up in the CI20 configuration itself.

(mrg)

2017-07-25 06:00:17 UTC MAIN commitmail json YAML

Use new nvm.{acquire,release}() for semaphore. Almost the same except the
following:
- 8257[12]: Don't directly access SPI but use EERD register.
- 82575-I354: If the size of SPI ROM >= 32K words, use direct SPI access
  instead of EERD register access.
- Add wm_nvm_eec_clock_raise() and wm_nvm_eec_clock_lower() and use them for
  Microwire/SPI bus control. Same as Linux and FreeBSD.
- Redude timeout value for 80003 in wm_get_swfw_semaphore(). Same as
  Linux and FreeBSD.

(msaitoh)

2017-07-25 05:01:25 UTC MAIN commitmail json YAML

2017-07-25 04:36:33 UTC MAIN commitmail json YAML

Stupid old C versions do not know "bool" - include stdbool.h to the
rescue.

(martin)

2017-07-25 03:51:41 UTC MAIN commitmail json YAML

2017-07-25 02:23:33 UTC netbsd-8 commitmail json YAML

tickets 130-134, 136-143, 145, 148-157

(snj)

2017-07-25 02:21:27 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #157):
lib/libc/compiler_rt/Makefile.inc: revision 1.35
Do not use IEEE 754 specific functions for VAX

(snj)

2017-07-25 02:19:04 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #156):
libexec/ld.elf_so/arch/sparc64/mdreloc.c: 1.62, 1.63
Simplify and fix the offset calculation when doing a %pc relative
branch from the PLT slot to the target.
--
Fix thinko in previous: even if the address is an unsigned value and we
have verified the range before, we still need to mask the bit pattern
to the target instruction field.

(snj)

2017-07-25 02:17:16 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #155):
sys/net/npf/npf_os.c: revision 1.7
The npf module depends on some stuff from the bpf module, so set the
required modules list accordingly.

(snj)

2017-07-25 02:15:20 UTC netbsd-8 commitmail json YAML

Apply patch (requested by flxd in ticket #154):
Revert pmax switch to common MIPS bus_space and bus_dma.

(snj)

2017-07-25 02:12:35 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #153):
sys/dev/pci/aceride.c: revision 1.37
sys/dev/pci/pciide_acer_reg.h: revision 1.13
Apply workaround from FreeBSD to fix read data corruption observed
on Fire V100 and mSATA-SSD with mSATA to IDE adapter.
The patch is from port-sparc64@.

(snj)

2017-07-25 02:11:14 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #152):
usr.sbin/crash/Makefile: revision 1.37
sys/arch/sparc/conf/files.sparc: revision 1.157
sys/arch/sparc/sparc/db_interface.c: revision 1.94
sys/arch/sparc/sparc/db_machdep.c: revision 1.1
Move the ddb registers and empty command table used for crash(8) into
db_machdep.c like other archs.
--
sparc has db_machdep.c now.

(snj)

2017-07-25 02:09:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #151):
sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.11
Fix reserved memory handling.

(snj)

2017-07-25 02:08:31 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #150):
sys/dev/ic/rt2860.c: revision 1.27
Use kmem_free for kmem_alloc'd memory
Fixes diagnostic crash on detach, tested by Riccardo Mottola

(snj)

2017-07-25 02:07:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #149):
sys/net/if_pppoe.c: revision 1.126
fix panic when PPPOE_DEBUG enabled. implemented by s-yamaguchi@IIJ, thanks.

(snj)

2017-07-25 02:06:10 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #148):
tests/lib/libc/arch/sh3/return_one.S: revision 1.2
Don't execute random garbage.  Fixes mprotect_mremap_exec test.

(snj)

2017-07-25 02:04:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #145):
sys/fs/union/union.h: revision 1.29
sys/fs/union/union_subr.c: revision 1.76
Make union_newlower() ans union_newupper() local to union_subr.c,
expand and remove union_updatevp() and take care to transfer the
vnode lock from the union vnode to its new upper vnode without
breaking the fstrans state.
Add assertions that un_lowervp and un_uppervp never change from
non-NULL to non-NULL.

(snj)

2017-07-25 02:03:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #143):
sys/arch/arm/sunxi/files.sunxi: revision 1.12
sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.8
sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.6
sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.7
sys/arch/arm/sunxi/sunxi_ccu_phase.c: revision 1.1
sys/arch/arm/sunxi/sunxi_mmc.c: revision 1.3
sys/arch/arm/sunxi/sunxi_mmc.h: revision 1.2
Add SDMMC[012] sample/output clock phase controls.
--
Add support for eMMC DDR52 transfer mode.

(snj)

2017-07-25 02:00:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #142):
usr.bin/mkubootimage/mkubootimage.1: 1.9-1.10
usr.bin/mkubootimage/mkubootimage.c: 1.20
usr.bin/mkubootimage/uboot.h: 1.7
Add support for "kernel_noload" image types. This type is the same as the
"kernel" type, except it can run from any load address.
--
Remove unnecessary macros. Use standard headers.

(snj)

2017-07-25 01:58:09 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #141):
sys/conf/dts.mk: 1.1-1.2
sys/conf/Makefile.kern.inc: revision 1.260
Move the dts rule to a separate file and add dependencies handling.
--
do dts depend processing in two passes, one for /include/ and one for #include

(snj)

2017-07-25 01:55:21 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #140):
sys/kern/uipc_domain.c: 1.97-1.99
sys/net/rtsock.c: 1.225-1.227
sys/sys/socket.h: 1.123
Restore the original length of a sockaddr for netmask
route(8) passes a sockaddr for netmask that is truncated with its
prefixlen. However the kernel basically doesn't expect such format
and may read beyond the data. So restore the original length of the
the data at the beginning of the kernel for the rest components.
Failures of ATF tests such as route_flags_blackhole6 should
be fixed.
--
Avoid DIAGNOSTIC warning with previous fix and simplify it (don't require
memory alloc/free).
--
put the code that returns the sizeof the socket by family in one place.
--
don't warn about AF_LINK sockets with sa_len less than the size of the sockaddr
--
don't print diagnostic for AF_LINK

(snj)

2017-07-25 01:49:13 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #139):
sys/arch/arm/sunxi/sunxi_mmc.c: revision 1.2
sys/dev/sdmmc/ld_sdmmc.c: revision 1.31
sys/dev/sdmmc/sdmmc_mem.c: revision 1.61
sys/dev/sdmmc/sdmmcreg.h: revision 1.32
sys/dev/sdmmc/sdmmcvar.h: revision 1.28
Add support for eMMC 4.5's optional cache feature. If a cache is present,
and the host controller reports the SMC_CAPS_POLLING capability (needed
to flush cache at shutdown), it will be automatically enabled and used.
--
Add SMC_CAPS_POLLING support.

(snj)

2017-07-25 01:43:37 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #138):
usr.bin/systat/iostat.c: revision 1.38
usr.bin/systat/vmstat.c: revision 1.82
usr.bin/vmstat/drvstats.c: revision 1.11
usr.bin/vmstat/drvstats.h: revision 1.5
usr.bin/vmstat/vmstat.c: revision 1.217
usr.sbin/iostat/iostat.c: revision 1.65
Use I/O timestamps to compute disk statistics for better precision.
Disk statistics are collected in a fixed size array, that got corrupted
when a disk was detached. Adapt by skipping entries of detached disks
and detect reused disknames at the array end.
--
Use I/O timestamps to compute disk statistics for better precisison.

(snj)

2017-07-25 01:41:29 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #137):
share/mk/bsd.man.mk: revision 1.119
Latest mandoc no longer supports multiple -O options. Instead it expects
option values to be separated by commas. PR toolchain/52402

(snj)

2017-07-25 01:39:42 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #136):
sys/dev/usb/uhci.c: revision 1.276
Only call uhci_free_stds if there are TDs to free.
In uhci_alloc_std_chain ensure we fill the TD array correctly and note
the number of allocated TDs so that uhci_free_stds will do the right thing
Fixes a problem seen by anon

(snj)

2017-07-25 01:38:42 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #134):
sys/lib/libunwind/Registers.hpp: revision 1.20
GCC 5.3 likes to emit unwind data with float registers, i.e. register
halfs. Compensate.

(snj)

2017-07-25 01:36:58 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #133):
libexec/ld.elf_so/tls.c: revision 1.11
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.

(snj)

2017-07-25 01:35:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #132):
sys/arch/arm/sunxi/sunxi_platform.c: revision 1.5
sys/arch/evbarm/conf/SUNXI: revision 1.17
Add support for Allwinner H2+ as found in the Orange Pi Zero.
--
Build sun8i-h2-plus-orangepi-zero.dts

(snj)

2017-07-25 01:34:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #131):
sbin/route/rtutil.c: revision 1.10
Fix route and netstat -r output when built with -DSMALL
A missing \n caused the routing table to be printed all in one line
if -DSMALL was used.

(snj)

2017-07-25 01:29:56 UTC netbsd-8 commitmail json YAML

2017-07-25 01:29:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #130):
sys/kern/vnode_if.src: revision 1.77
As VOP_ADVLOCK() may block indefinitely we cannot take fstrans here.
Fixes PR kern/52364: System hangs not much before showing the login prompt

(snj)

2017-07-24 19:56:07 UTC MAIN commitmail json YAML

Add a condition variable (ex_flwanted) to struct extent so that ex_flags
becomes an invariant.

Remove strange locking for ex_flags as a result.

(skrll)

2017-07-24 19:37:41 UTC MAIN commitmail json YAML

Replace assembler flags with .arch* annotation.

(joerg)

2017-07-24 19:22:32 UTC MAIN commitmail json YAML

Use __BIT(3) for bit values.  No functional change.

(skrll)

2017-07-24 18:14:46 UTC MAIN commitmail json YAML

Add a test checking nearbyint(), using the same table as used by
the existing lrint() test.

(he)

2017-07-24 18:13:36 UTC MAIN commitmail json YAML

Swap around the two last args to the check for expected fegetround(),
so the error message makes sense.

(he)

2017-07-24 14:17:12 UTC MAIN commitmail json YAML

Implement the "pipefail" option (same semantics as in other shells)
to cause (when set, which it is not by default) the exit status of a
pipe to be 0 iff all commands in the pipe exited with status 0, and
otherwise, the status of the rightmost command to exit with a non-0
status.

In the doc, while describing this, also reword some of the text about
commands in general, how they are structured, and when they are executed.

(kre)

2017-07-24 13:36:15 UTC MAIN commitmail json YAML

NFC: DEBUG mode only change - add a little more tracing.

(kre)

2017-07-24 13:21:14 UTC MAIN commitmail json YAML

Add support for ++ and -- (pre & post) and ',' to arithmetic.

(kre)

2017-07-24 12:36:02 UTC MAIN commitmail json YAML

Document the times builtin command, reported as lost in space
by rudolf at eq.cz on tech-userlevel (July 15, 2017.)

Also correct a typo, de-correct some entirely proper English so
the doc remains written in American instead.  And note that
interactive mode is set when stdin & stderr are terminals, not
stding and stdout.

(kre)

2017-07-24 12:35:37 UTC MAIN commitmail json YAML

PR standards/52406

Absent other information, the shell should be interactive if reading
from stdin, and stdin and stderr are ttys, not stdin and stdout.

So sayeth the great lord posix.

(kre)

2017-07-24 12:35:12 UTC MAIN commitmail json YAML

PR bin/52348

Avoid a reference after free (detected by asan) - harmless here, but
easy to fix.

(kre)

2017-07-24 12:34:46 UTC MAIN commitmail json YAML

PR bin/52348

Silence nuisance testing environments - avoid << of a negative number
(a signed char -- in a hash function, the result is irrelevant, as long
as it is repeatable).

(kre)

2017-07-24 10:34:55 UTC MAIN commitmail json YAML

2017-07-24 10:04:09 UTC MAIN commitmail json YAML

ugly hack -- for SB1, use the contents of sbmips/include/disklabel.h.
with this, i can build the 32 bit little endian SBMIPS kernel in the
evbmips directory.

(mrg)

2017-07-24 09:56:46 UTC MAIN commitmail json YAML

2017-07-24 08:08:34 UTC MAIN commitmail json YAML

Fix thinko in previous: even if the address is an unsigned value and we
have verified the range before, we still need to mask the bit pattern
to the target instruction field.

(martin)

2017-07-24 06:37:46 UTC netbsd-8 commitmail json YAML

118, 119, 120, 125, 126, 128, 129

(snj)

2017-07-24 06:21:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #129):
sys/ufs/ffs/ffs_alloc.c: revision 1.157
When initializing more inodes make sure to write them to disk
before writing the cylinder group with updated cg_initediblk.

(snj)

2017-07-24 06:20:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #128):
sys/conf/Makefile.kern.inc: revision 1.259
sys/arch/arm/dts/sun8i-h3-orangepi-plus2e.dts: revision 1.1
sys/arch/arm/dts/sun8i-h3.dtsi: revision 1.1
sys/arch/arm/dts/sun8i-h3-nanopi-neo.dts: revision 1.1
Add support for dts files outside of external/gpl2.
--
Add local patches to sun8i-h3-orangepi-plus2e and sun8i-h3-nanopi-neo to
enable ethernet support.

(snj)

2017-07-24 06:15:54 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #126):
libexec/ld.elf_so/rtld.h: revision 1.128
Drop comments about symbol exporting, the relevant code is gone.

(snj)

2017-07-24 06:11:40 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #125):
share/man/man7/sysctl.7: revision 1.115
Document vm.guard_size and vm.thread_guard_size

(snj)

2017-07-24 06:03:42 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #120):
sys/uvm/uvm_fault.c: revision 1.200
tests/lib/libc/sys/t_write.c: revision 1.4-1.6
PR/52384: make uvm_fault_check() return EFAULT not EACCES, like our man
pages
(but not OpenGroup which does not document EFAULT for read/write, and onl=
y
documents EACCES for sockets) say for read/write.
--
check for EFAULT on reads and writes to memory with not permission.
--
add munmap
#define for const.
--
add another missing munmap (Kamil)

(snj)

2017-07-24 05:48:00 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #119):
lib/libpthread/pthread_tsd.c: revision 1.16
PR/52386: Use the number of iterations we document.

(snj)

2017-07-24 05:37:58 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #118):
share/man/man8/MAKEDEV.8: revision 1.46
regen

(snj)

2017-07-24 02:07:43 UTC MAIN commitmail json YAML

Skip ipsec_spi_*_*_preferred_new_timeout when running on qemu

Probably due to PR 43997

(ozaki-r)

2017-07-23 20:59:00 UTC MAIN commitmail json YAML

Don't build unwind data for the ramdisk, use more aggressive size
optimization for clang.

(joerg)

2017-07-23 20:45:31 UTC MAIN commitmail json YAML

GCC 5.3 now lives in gcc.old.
add Xfont2 to X11 list.

(mrg)

2017-07-23 19:26:06 UTC MAIN commitmail json YAML

Add missing setlist entries for DUCET collation test.

(perseant)

2017-07-23 19:16:11 UTC perseant-stdc-iso10646 commitmail json YAML

2017-07-23 19:00:22 UTC MAIN commitmail json YAML

Bump the miniroot size slightly for clang.

(joerg)

2017-07-23 18:51:21 UTC perseant-stdc-iso10646 commitmail json YAML

Add missing files from last commit:

Move Unicode <-> ku/ten mapping into the individual codec modules.
Mapping is based on existing iconv data for single-byte encodings,
and included for several, but not all, multibyte encodings.

(perseant)

2017-07-23 15:06:16 UTC netbsd-8 commitmail json YAML

2017-07-23 15:05:36 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #105):
share/man/man7/environ.7: revision 1.27
Document EDITRC

(snj)

2017-07-23 15:01:21 UTC netbsd-8 commitmail json YAML

2017-07-23 14:58:14 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #103):
bin/kill/kill.c: 1.28
bin/sh/Makefile: 1.111-1.113
bin/sh/arith_token.c: 1.5
bin/sh/arith_tokens.h: 1.2
bin/sh/arithmetic.c: 1.3
bin/sh/arithmetic.h: 1.2
bin/sh/bltin/bltin.h: 1.15
bin/sh/cd.c: 1.49-1.50
bin/sh/error.c: 1.40
bin/sh/eval.c: 1.142-1.151
bin/sh/exec.c: 1.49-1.51
bin/sh/exec.h: 1.26
bin/sh/expand.c: 1.113-1.119
bin/sh/expand.h: 1.23
bin/sh/histedit.c: 1.49-1.52
bin/sh/input.c: 1.57-1.60
bin/sh/input.h: 1.19-1.20
bin/sh/jobs.c: 1.86-1.87
bin/sh/main.c: 1.71-1.72
bin/sh/memalloc.c: 1.30
bin/sh/memalloc.h: 1.17
bin/sh/mknodenames.sh: 1.4
bin/sh/mkoptions.sh: 1.3-1.4
bin/sh/myhistedit.h: 1.12-1.13
bin/sh/nodetypes: 1.16-1.18
bin/sh/option.list: 1.3-1.5
bin/sh/parser.c: 1.133-1.141
bin/sh/parser.h: 1.22-1.23
bin/sh/redir.c: 1.58
bin/sh/redir.h: 1.24
bin/sh/sh.1: 1.149-1.159
bin/sh/shell.h: 1.24
bin/sh/show.c: 1.43-1.47
bin/sh/show.h: 1.11
bin/sh/syntax.c: 1.4
bin/sh/syntax.h: 1.8
bin/sh/trap.c: 1.41
bin/sh/var.c: 1.56-1.65
bin/sh/var.h: 1.29-1.35
An initial attempt at implementing LINENO to meet the specs.
Aside from one problem (not too hard to fix if it was ever needed) this version
does about as well as most other shell implementations when expanding
$((LINENO)) and better for ${LINENO} as it retains the "LINENO hack" for the
latter, and that is very accurate.
Unfortunately that means that ${LINENO} and $((LINENO)) do not always produce
the same value when used on the same line (a defect that other shells do not
share - aside from the FreeBSD sh as it is today, where only the LINENO hack
exists and so (like for us before this commit) $((LINENO)) is always either
0, or at least whatever value was last set, perhaps by
LINENO=${LINENO}
which does actually work ... for that one line...)
This could be corrected by simply removing the LINENO hack (look for the string
LINENO in parser.c) in which case ${LINENO} and $((LINENO)) would give the
same (not perfectly accurate) values, as do most other shells.
POSIX requires that LINENO be set before each command, and this implementation
does that fairly literally - except that we only bother before the commands
which actually expand words (for, case and simple commands).  Unfortunately
this forgot that expansions also occur in redirects, and the other compound
commands can also have redirects, so if a redirect on one of the other compound
commands wants to use the value of $((LINENO)) as a part of a generated file
name, then it will get an incorrect value.  This is the "one problem" above.
(Because the LINENO hack is still enabled, using ${LINENO} works.)
This could be fixed, but as this version of the LINENO implementation is just
for reference purposes (it will be superseded within minutes by a better one)
I won't bother.  However should anyone else decide that this is a better choice
(it is probably a smaller implementation, in terms of code & data space then
the replacement, but also I would expect, slower, and definitely less accurate)
this defect is something to bear in mind, and fix.
This version retains the *BSD historical practice that line numbers in functions
(all functions) count from 1 from the start of the function, and elsewhere,
start from 1 from where the shell started reading the input file/stream in
question.  In an "eval" expression the line number starts at the line of the
"eval" (and then increases if the input is a multi-line string).
Note: this version is not documented (beyond as much as LINENO was before)
hence this slightly longer than usual commit message.
A better LINENO implementation.  This version deletes (well, #if 0's out)
the LINENO hack, and uses the LINENO var for both ${LINENO} and $((LINENO)).
(Code to invert the LINENO hack when required, like when de-compiling the
execution tree to provide the "jobs" command strings, is still included,
that can be deleted when the LINENO hack is completely removed - look for
refs to VSLINENO throughout the code.  The var funclinno in parser.c can
also be removed, it is used only for the LINENO hack.)
This version produces accurate results: $((LINENO)) was made as accurate
as the LINENO hack made ${LINENO} which is very good.  That's why the
LINENO hack is not yet completely removed, so it can be easily re-enabled.
If you can tell the difference when it is in use, or not in use, then
something has broken (or I managed to miss a case somewhere.)
The way that LINENO works is documented in its own (new) section in the
man page, so nothing more about that, or the new options, etc, here.
This version introduces the possibility of having a "reference" function
associated with a variable, which gets called whenever the value of the
variable is required (that's what implements LINENO).  There is just
one function pointer however, so any particular variable gets at most
one of the set function (as used for PATH, etc) or the reference function.
The VFUNCREF bit in the var flags indicates which func the variable in
question uses (if any - the func ptr, as before, can be NULL).
I would not call the results of this perfect yet, but it is close.
Unbreak (at least) i386 build .... I have no idea why this built for me on
amd64 (problem was missing prototype for snprintf witout <stdio.h>)
While here, add some (DEBUG mode only) tracing that proved useful in
solving another problem.
Set the line number before expanding args, not after.  As the line_number
would have usually been set earlier, this change is mostly an effective
no-op, but it is better this way (just in case) - not observed to have
caused any problems.
Undo some over agressive fixes for a (pre-commit) bug that did not
need these changes to be fixed - and these cause problems in another
absurd use case.  Either of these issues is unlikely to be seen by
anyone who isn't an idiot masochist...
PR bin/52280
removescapes_nl in expari() even when not quoted,
CRTNONL's appear regardless of quoting (unlike CTLESC).
New sentence, new line. Whitespace.
Improve the (new) LINENO section, markup changes (with thanks to wiz@ for
assistace) and some better wording in a few placed.
I am an idiot...  revert the previous unintended commit.
Remove some left over baggage from the LINENO v1 implementation that
didn't get removed with v2, and should have.  This would have had
(I think, without having tested it) one very minor effect on the way
LINENO worked in the v2 implementation, but my guess is it would have
taken a long time before anyone noticed...
Correct spelling in comments of DEBUG only code...
(Perhaps) temporary fix to pkgtools (cwrappers) build (configure).
Expanding  `` containing \ \n sequences looks to have been giving
problems.  I don't think this is the correct fix, but it will do
no worse harm than (perhaps) incorrectly calculating LINENO in this
kind of (rare) circumstance.  I'll look and see if there should be
a better fix later.
s/volatile/const/ -- wonderful how opposites attract like this.
NFC (normal use) - DEBUG only change, when showing empty arg list don't
omit terminating \n.
Free stack memory in a couple of obscure cases where it wasn't
being done (one in probably dead code that is never compiled, the other
in a very rare error case.)  Since it is stack memory it wasn't lost
in any case, just held longer than needed.
Many internal memory management type fixes.
PR bin/52302  (core dump with interactive shell, here doc and error
on same line) is fixed.  (An old bug.)
echo "$( echo x; for a in $( seq 1000 ); do printf '%s\n'; done; echo y )"
consistently prints 1002 lines (x, 1000 empty ones, then y) as it should
(And you don't want to know what it did before, or why.) (Another old one.)
(Recently added) Problems with ~ expansion fixed (mem management related).
Proper fix for the cwrappers configure problem (which includes the quick
fix that was done earlier, but extends upon that to be correct). (This was
another newly added problem.)
And the really devious (and rare) old bug - if STACKSTRNUL() needs to
allocate a new buffer in which to store the \0, calculate the size of
the string space remaining correctly, unlike when SPUTC() grows the
buffer, there is no actual data being stored in the STACKSTRNUL()
case - the string space remaining was calculated as one byte too few.
That would be harmless, unless the next buffer also filled, in which
case it was assumed that it was really full, not one byte less, meaning
one junk char (a nul, or anything) was being copied into the next (even
bigger buffer) corrupting the data.
Consistent use of stalloc() to allocate a new block of (stack) memory,
and grabstackstr() to claim a block of (stack) memory that had already
been occupied but not claimed as in use.  Since grabstackstr is implemented
as just a call to stalloc() this is a no-op change in practice, but makes
it much easier to comprehend what is really happening.  Previous code
sometimes used stalloc() when the use case was really for grabstackstr().
Change grabstackstr() to actually use the arg passed to it, instead of
(not much better than) guessing how much space to claim,
More care when using unstalloc()/ungrabstackstr() to return space, and in
particular when the stack must be returned to its previous state, rather than
just returning no-longer needed space, neither of those work.  They also don't
work properly if there have been (really, even might have been) any stack mem
allocations since the last stalloc()/grabstackstr().  (If we know there
cannot have been then the alloc/release sequence is kind of pointless.)
To work correctly in general we must use setstackmark()/popstackmark() so
do that when needed.  Have those also save/restore the top of stack string
space remaining.
[Aside: for those reading this, the "stack" mentioned is not
in any way related to the thing used for maintaining the C
function call state, ie: the "stack segment" of the program,
but the shell's internal memory management strategy.]
More comments to better explain what is happening in some cases.
Also cleaned up some hopelessly broken DEBUG mode data that were
recently added (no effect on anyone but the poor semi-human attempting
to make sense of it...).
User visible changes:
Proper counting of line numbers when a here document is delimited
by a multi-line end-delimiter, as in
cat << 'REALLY
END'
here doc line 1
here doc line 2
REALLY
END
(which is an obscure case, but nothing says should not work.)  The \n
in the end-delimiter of the here doc (the last one) was not incrementing
the line number, which from that point on in the script would be 1 too
low (or more, for end-delimiters with more than one \n in them.)
With tilde expansion:
unset HOME; echo ~
changed to return getpwuid(getuid())->pw_home instead of failing (returning ~)
POSIX says this is unspecified, which makes it difficult for a script to
compensate for being run without HOME set (as in env -i sh script), so
while not able to be used portably, this seems like a useful extension
(and is implemented the same way by some other shells).
Further, with
HOME=; printf %s ~
we now write nothing (which is required by POSIX - which requires ~ to
expand to the value of $HOME if it is set) previously if $HOME (in this
case) or a user's directory in the passwd file (for ~user) were a null
STRING, We failed the ~ expansion and left behind '~' or '~user'.
Changed the long name for the -L option from lineno_fn_relative
to local_lineno as the latter seemed to be marginally more popular,
and perhaps more importantly, is the same length as the peviously
existing quietprofile option, which means the man page indentation
for the list of options can return to (about) what it was before...
(That is, less indented, which means more data/line, which means less
lines of man page - a good thing!)
Cosmetic changes to variable flags - make their values more suited
to my delicate sensibilities...  (NFC).
Arrange not to barf (ever) if some turkey makes _ readonly.  Do this
by adding a VNOERROR flag that causes errors in var setting to be
ignored (intended use is only for internal shell var setting, like of "_").
(nb: invalid var name errors ignore this flag, but those should never
occur on a var set by the shell itself.)
From FreeBSD: don't simply discard memory if a variable is not set for
any reason (including because it is readonly) if the var's value had
been malloc'd.  Free it instead...
NFC - DEBUG changes, update this to new TRACE method.
KNF - white space and comment formatting.
NFC - DEBUG mode only change - convert this to the new TRACE() format.
NFC - DEBUG mode only change - complete a change made earlier (marking
the line number when included in the trace line tag to show whether it
comes from the parser, or the elsewhere as they tend to be quite different).
Initially only one case was changed, while I pondered whether I liked it
or not.  Now it is all done...  Also when there is a line tag at all,
always include the root/sub-shell indicator character, not only when the
pid is included.
NFC: DEBUG related comment change - catch up with reality.
NFC: DEBUG mode only change.  Fix botched cleanup of one TRACE().
"b" more forgiving when sorting options to allow reasonable (and intended)
flexibility in option.list format.  Changes nothing for current option.list.
Now that excessive use of STACKSTRNUL has served its purpose (well, accidental
purpose) in exposing the bug in its implementation, go back to not using
it when not needed for DEBUG TRACE purposes.  This change should have no
practical effect on either a DEBUG shell (where the STACKSTRNUL() calls
remain) or a non DEBUG shell where they are not needed.
Correct the initial line number used for processing -c arg strings.
(It was inheriting the value from end of profile file processing) - I didn't
notice before as I usually test with empty or no profile files to avoid
complications.  Trivial change which should have very limited impact.
Fix from FreeBSD (applied there in July 2008...)
Don't dump core with input like sh -c 'x=; echo >&$x' - that is where
the word after a >& or <& redirect expands to nothing at all.
Another fix from FreeBSD (this one from April 2009).
When processing a string (as in eval, trap, or sh -c) don't allow
trailing \n's to destroy the exit status of the last command executed.
That is:
sh -c 'false
'
echo $?
should produce 1, not 0.
It is amazing what nonsense appears to work sometimes... (all my nonsense too!)
Two bugs here, one benign because of the way the script is used.
The other hidden by NetBSD's sort being stable, and the data not really
requiring sorting at all...
So as it happens these fixes change nothing, but they are needed anyway.
(The contents of the generated file are only used in DEBUG shells, so
this is really even less important than it seems.)
Another ancient (highly improbable) bug bites the dust.  This one
caused by incorrect macro usage (ie: using the wrong one) which has
been in the sources since version 1.1 (ie: forever).
Like the previous (STACKSTRNUL) bug, the probability of this one
actually occurring has been infinitesimal but the LINENO code increases
that to infinitesimal and a smidgen... (or a few, depending upon usage).
Still, apparently that was enough, Kamil Rytarowski discovered that the
zsh configure script (damn competition!) managed to trigger this problem.
source .editrc after we initialize so that commands persist!
Make arg parsing in kill POSIX compatible with POSIX (XBD 2.12) by
parsing the way getopt(3) would, if only it could handle the (required)
-signumber and -signame options.  This adds two "features" to kill,
-ssigname and -lstatus now work (ie: one word with all of the '-', the
option letter, and its value) and "--" also now works (kill -- -pid1 pid2
will not attempt to send the pid1 signal to pid2, but rather SIGTERM
to the pid1 process group and pid2).  It is still the case that (apart
from --) at most 1 option is permitted (-l, -s, -signame, or -signumber.)
Note that we now have an ambiguity, -sname might mean "-s name" or
send the signal "sname" - if one of those turns out to be valid, that
will be accepted, otherwise the error message will indicate that "sname"
is not a valid signal name, not that "name" is not.  Keeping the "-s"
and signal name as separate words avoids this issue.
Also caution: should someone be weird enough to define a new signal
name (as in the part after SIG) which is almost the same name as an
existing name that starts with 'S' by adding an extra 'S' prepended
(eg: adding a SIGSSYS) then the ambiguity problem becomes much worse.
In that case "kill -ssys" will be resolved in favour of the "-s"
flag being used (the more modern syntax) and would send a SIGSYS, rather
that a SIGSSYS.    So don't do that.
While here, switch to using signalname(3) (bye bye NSIG, et. al.), add
some constipation, and show a little pride in formatting the signal names
for "kill -l" (and in the usage when appropriate -- same routine.)  Respect
COLUMNS (POSIX XBD 8.3) as primary specification of the width (terminal width,
not number of columns to print) for kill -l, a very small value for COLUMNS
will cause kill -l output to list signals one per line, a very large
value will cause them all to be listed on one line.) (eg: "COLUMNS=1 kill -l")
TODO: the signal printing for "trap -l" and that for "kill -l"
should be switched to use a common routine (for the sh builtin versions.)
All changes of relevance here are to bin/kill - the (minor) changes to bin/sh
are only to properly expose the builtin version of getenv(3) so the builtin
version of kill can use it (ie: make its prototype available.)
Properly support EDITRC - use it as (naming) the file when setting
up libedit, and re-do the config whenever EDITRC is set.
Get rid of workarounds for ancient groff html backend.
Simplify macro usage.
Make one example more like a real world possibility (it still isn't, but
is closer) - though the actual content is irrelevant to the point being made.
Add literal prompt support this allows one to do:
CA="$(printf '\1')"
PS1="${CA}$(tput bold)${CA}\$${CA}$(tput sgr0)${CA} "
Now libedit supports embedded mode switch sequence, improve sh
support for them (adds PSlit variable to set the magic character).
NFC: DEBUG only change - provide an externally visible (to the DEBUG sh
internals) interface to one of the internal (private to trace code) functions
Include redirections in trace output from "set -x"
Implement PS1, PS2 and PS4 expansions (variable expansions, arithmetic
expansions, and if enabled by the promptcmds option, command substitutions.)
Implement a bunch of new shell environment variables. many mostly useful
in prompts when expanded at prompt time, but all available for general use.
Many of the new ones are not available in SMALL shells (they work as normal
if assigned, but the shell does not set or use them - and there is no magic
in a SMALL shell (usually for install media.))
Omnibus manual update for prompt expansions and new variables.  Throw in
some random cleanups as a bonus.
Correct a markup typo (why did I not see this before the prev commit??)
Sort options (our default is 0..9AaBbZz).
Fix markup problems and a typo.
Make $- list flags in the same order they appear in sh(1)
Do a better job of detecting the error in pkgsrc/devel/libbson-1.6.3's
configure script, ie: $(( which is intended to be a sub-shell in a
command substitution, but is an arith subst instead, it needs to be
written $( ( to do as intended.  Instead of just blindly carrying on to
find the missing )) somewhere, anywhere, give up as soon as we have seen
an unbalanced ')' that isn't immediately followed by another ')' which
in a valid arith subst it always would be.
While here, there has been a comment in the code for quite a while noting a
difference in the standard between the text descr & grammar when it comes to
the syntax of case statements.  Add more comments to explain why parsing it
as we do is in fact definitely the correct way (ie: the grammar wins arguments
like this...).
DEBUG and white space changes only.  Convert TRACE() calls for DEBUg mode
to the new style.  NFC (when not debugging sh).
Mostly DEBUG and white space changes.  Convert DEEBUG TRACE() calls to
the new format.  Also #if 0 a function definition that is used nowhere.
While here, change the function of pushfile() slightly - it now sets
the buf pointer in the top (new) input descriptor to NULL, instead of
simply leaving it - code that needs a buffer always (before and after)
must malloc() one and assign it after the call.  But code which does not
(which will be reading from a string or similar) now does not have to
explicitly set it to NULL (cleaner interface.)  NFC intended (or observed.)
DEBUG changes: convert DEBUG TRACE() calls to new format.
ALso, cause exec failures to always cause the shell to exit with
status 126 or 127, whatever the cause.  127 is intended for lookup
failures (and is used that way), 126 is used for anything else that
goes wrong (as in several other shells.)  We no longer use 2 (more easily
confused with an exit status of the command exec'd) for shell exec failures.
DEBUG only changes.  Convert the TRACE() calls in the remaining files
that still used it to the new format.  NFC.
Fix a reference after free (and consequent nonsense diagnostic for
attempts to set readonly variables) I added in 1.60 by incompletely
copying the FreeBSD fix for the lost memory issue.

(snj)

2017-07-23 14:41:26 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #102):
lib/libedit/Makefile: 1.64-1.65
lib/libedit/editline.3: 1.94-1.96
lib/libedit/editrc.5: 1.33
lib/libedit/el.c: 1.93-1.94
lib/libedit/el.h: 1.42
lib/libedit/literal.c: 1.1-1.3
lib/libedit/literal.h: 1.1-1.2
lib/libedit/prompt.c: 1.27
lib/libedit/read.c: 1.103
lib/libedit/refresh.c: 1.52-1.54
lib/libedit/refresh.h: 1.11
lib/libedit/terminal.c: 1.33
Make the default editrc file be $EDITRC (from env) if set, falling back
to $HOME/.editrc otherwise.    Better support for this in sh coming.
--
Include EDITRC in doc.
--
mention the limitation of the literal sequence delimiter.
--
- handle literal escape sequence printing.
- factor out common code in allocation and freeing of the display.
--
- add literal sequence handling.
--
remove unused variable
--
add literal escape sequence support, patterned after the tcsh ones.
--
fix comment
--
Fix an obvious, but almost invisible typo (avoid some core dumps).
--
Allow wide characters (properly encoded as byte strings according to LC_CTYPE)
to be (perhaps part of) the "invisible" characters in a prompt, or the
required prompt character which follows the literal sequence (this character
must be one with a printing column width >= 1).  The literal indicator
character (which is just a marker, and not printed anywhere) (the PSlit
parameter in sh(1)) can also be a wide char (passed to libedit as a wchar_t,
encoded as that by sh(1) or other applications that support this.)
Note: this has currently only been tested with everything ascii (C locale).
--
Remove workaround for ancient HTML generation code.

(snj)

2017-07-23 14:37:51 UTC MAIN commitmail json YAML

Simplify and fix the offset calculation when doing a %pc relative
branch from the PLT slot to the target.

(martin)

2017-07-23 14:30:15 UTC netbsd-6 commitmail json YAML

2017-07-23 14:27:24 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #1463):
sys/dev/pci/aceride.c: revision 1.37
sys/dev/pci/pciide_acer_reg.h: revision 1.13
Apply workaround from FreeBSD to fix read data corruption observed
on Fire V100 and mSATA-SSD with mSATA to IDE adapter.
The patch is from port-sparc64@.

(snj)

2017-07-23 14:25:46 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #1462):
libexec/ld.elf_so/tls.c: revision 1.11 via patch
Fix two bugs related to promotion of DSO TLS blocks into the static
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.

(snj)

2017-07-23 14:19:28 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by mbalmer in ticket #1452):
lib/lua/sqlite/sqlite.c: revision 1.9
Guard against double freeing of objects (explicit by the Lua program,
then later by the garbage collector).
This fixes PR bin/52218.

(snj)

2017-07-23 14:14:44 UTC jdolecek-ncq commitmail json YAML

rework the error handling and recovery, so that errors during the recovery
are handled correctly, and the recovery more closely follows the spec

this fixes e.g. NCQ error handling under QEMU, which doesn't implement
READ LOG EXT - previous code actually made the call 'succeed', returning bogus
(zero) slot/error/status

finished xfers are still handled before entering recovery (with channel frozen)
to avoid unnecessary retries

(jdolecek)

2017-07-23 13:50:43 UTC jdolecek-ncq commitmail json YAML

for wd, only call disk_busy() on the first try, do not call it on retries,
as unbusy is called just once when the xfer is finished

also noticed in PR kern/43169 by Matthias Pfaller, but contrary to suggested
fix done in way to keep the disk marked busy during the timeouts, as I think
it's more correct

(jdolecek)

2017-07-23 13:35:15 UTC MAIN commitmail json YAML

2017-07-23 10:55:00 UTC MAIN commitmail json YAML

kmem_intr_free kmem_intr_[z]alloced memory

the underlying pools are the same but api-wise those should match

(para)

2017-07-23 10:16:09 UTC MAIN commitmail json YAML

2017-07-23 09:50:54 UTC MAIN commitmail json YAML

Do not use IEEE 754 specific functions for VAX

(martin)

2017-07-23 06:29:48 UTC netbsd-7 commitmail json YAML

1418, 1422, 1423, 1438-1440, 1447, 1452, 1456

(snj)

2017-07-23 06:19:00 UTC MAIN commitmail json YAML

use the scoping functions (JINMEI, Tatuya)

(christos)

2017-07-23 06:15:49 UTC netbsd-7-1 commitmail json YAML

2017-07-23 06:14:04 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1452):
sys/arch/arm/arm32/genassym.cf: revision 1.75
sys/arch/arm/arm/cpufunc_asm_arm11x6.S: revision 1.8
In idcache_wbinv_range if the range size is bigger than the dcache size
then call idcache_wbinv_all
Avoids a problem with large ranges as seen in
port-evbarm/52169: setting dtrace module to load cause Pi to hang on boot

(snj)

2017-07-23 06:12:02 UTC MAIN commitmail json YAML

From Edgar Fuss:
ipf's return-icmp doesn't work when the packet matched by the rule is
directed at a link local address. The problem is that
ipf_send_icmp_err() calls ipf_ifpaddr() to find an address of the
interface in question, but that routine discards link local addresses.
I guess the best fix is to simply use the destination address instead if
it is link local, i.e. treat the rule as if return-icmp-as-dest was
given in this case.

(christos)

2017-07-23 06:11:47 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1456):
sys/dev/usb/uhci.c: revision 1.276
Only call uhci_free_stds if there are TDs to free.
In uhci_alloc_std_chain ensure we fill the TD array correctly and note
the number of allocated TDs so that uhci_free_stds will do the right thing
Fixes a problem seen by anon

(snj)

2017-07-23 06:09:53 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #1447):
sys/dev/sdmmc/ld_sdmmc.c: revision 1.29
The config_* APIs are not MPSAFE, so make sure the deferred attach
thread holds KERNEL_LOCK.

(snj)

2017-07-23 06:08:17 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1440):
distrib/utils/libhack/Makefile: revision 1.25
distrib/utils/libhack/Makefile.inc: revision 1.27
lib/libc/gen/getcap.c: revision 1.57
Make shared -DSMALL libc buildable without breaking libhack
We used -DSMALL to exclude code from libc in order to build
libhack. Introduce -DLIBHACK to do this without so that
-DSMALL does not remove code necessary for building a shared libc

(snj)

2017-07-23 06:06:52 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1439):
lib/libc/net/Makefile.inc: revision 1.87
Include IPv6 global variable in USE_INET6=no libc
This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.

(snj)

2017-07-23 06:05:36 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1438):
sys/dev/hpc/hpckbd.c: revision 1.31
Restore wscons keymaps feature on hpcarm
hpc ports need to alter keydesc data at runtime in order to load
alternate keymaps. But since keydesc is const initialized data, it
is mapped read only and the operation should fail.
It seems older compiler failed to enforce the read-only mapping and
this is why it used to work, but on recent NetBSD releases, the
feature is broken.
We fix it by duplicating the keydesc data once into a malloc'ed area
that can be modified.

(snj)

2017-07-23 06:03:30 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by mbalmer in ticket #1423):
sys/modules/lua/lua.c: revision 1.23
always put the module on the stack

(snj)

2017-07-23 06:00:39 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by mbalmer in ticket #1422):
sys/modules/lua/lua.c: revision 1.22 via patch
Only load a module if it is not already loaded in a state (much like
userland Lua handles require).
Fixes PR kern/52226.

(snj)

2017-07-23 05:56:36 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by mbalmer in ticket #1418):
sys/modules/lua/lua.c: revision 1.21
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.

(snj)