Import dhcpcd-10.5.1 with the following changes:
* DHCP: Only send the rapid commit option when configured to
* DHCP6: Mirror the prior DHCP rapid commit fix to DHCPv6
* ipv6nd: don't leave a carrier expiry timeout on a freed interface
* ipv4: clear added state if we didn't delete the address
* DHCP: script reason should be RELEASE on RELEASE, not STOP
* control: Harden the socket at the fs level
dhcpcd-10.5.0 changes:
* Format code with clang-format
* privsep: Change IPC to use SOCK_STREAM
* BPF: Split OS specific code out into own files and add libpcap support
* hooks: Escape interface names and use printf
* Delete DHCPv6 IA FD from the loop before closing it
* eloop: Use kqueue or epoll to wait for a fd to become ready
* route: Rework rt structure so sockaddrs are pointers
* dhcp-common: Escape ifname for lease file
* privsep: smaller buffer size without INET6
* script: add ifxname as the escaped string
[36 lines not shown]
sys/lockdebug.h: Simplify conditional and explain why it's there.
No functional change intended: just changes an always-false
expression to another always-false expression in a conditional.
(Well, in principle, it reduces the number of times we evaluate this
argument, but in practice the argument should be side-effect-free
anyway.)
PR kern/60030: ddb/crash: show all locks without LOCKDEBUG
ddb(4), crash(8): Make `show all locks' work without LOCKDEBUG.
Any lwp currently waiting for a _contended_ lock will now record a
pointer to that lock in struct lwp::l_ld_wanted, even without
LOCKDEBUG. We can't tell who holds shared locks or spin locks, but we
can at least tell what lock a thread is waiting for when it's spinning
for a spin lock, and generally present the graph of current lock
dependencies reasonably well this way.
PR kern/60030: ddb/crash: show all locks without LOCKDEBUG
kernel: Track what lock each lwp is waiting for without LOCKDEBUG.
This is reasonably cheap -- one extra pointer on the stack, couple
extra stores when _waiting_ (spinning or sleeping) for a _contended_
lock -- and doesn't change the kernel ABI. Will enable us to get
diagnostics from crash dumps when, e.g., there's a softint deadlock
tripping a heartbeat panic.
PR kern/60030: ddb/crash: show all locks without LOCKDEBUG
"if PWD references the current directory, then PWD is assumed to be the
name of the current directory" is tautologically confusing.
Just state that for '-L' $PWD is _printed_ (under the right circumstances).
vchiq: Back port of the change
commit 49bec49fd7f273ec114e2e533c1bb8f21a654aaf
Author: Michael Zoran <mzoran at crowfest.net>
Date: Sun Oct 30 05:55:07 2016 -0700
staging: vc04_services: remove vchiq_copy_from_user
The vchiq_copy_from_user function is not portable
and is consider "bad practice." Replace this function
with a callback based mechanism that is passed downward
on the stack. When it is actually time to copy the data,
the callback is called to copy the data into the message.
This callback is provided internally for userland calls
through ioctls on the device.
NOTE: Internal clients will need to be modified to work
with the new internal API.
[26 lines not shown]
vchiq: Apply change from upstream
commit 6e474d8e3981a63b6e1cf11b838014ed52499804
Author: Stefan Wahren <wahrenst at gmx.net>
Date: Wed Oct 26 18:34:19 2016 +0000
staging: vchiq_shim: avoid code duplication
Rearrange the polling loops in order to avoid code duplication. Btw we fix
the style of the comments.
Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
PR/60597: RVP: Instead of assuming that writing to a UDP port is an immediate
success, wait for a bit for the ICMP port unreachable message to reach us.
evbarm/ti_edma: fix comparison sign
The comparison sign was the wrong way around. This got masked
during testing because the driver reverted to PIO mode
when it couldn't acquire a DMA channel.
Fully describe the new dotglob option
Move it to the correct place in the list of options (these things
are sorted!) and flesh out the description of what it (now) does a bit.
While here, fix some minor markup issues in an earlier revision relating
to the new -c option to the read built-in.