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

2024-05-10 17:42:48 UTC Now

2018-04-28 15:20:33 UTC MAIN commitmail json YAML

Create private sysctl nodes for inspecting clock trees.

(jmcneill)

2018-04-28 14:39:34 UTC MAIN commitmail json YAML

Inline M_EXT_WRITABLE directly, and remove the XXX, there's nothing wrong
in the use of !M_READONLY.

(maxv)

2018-04-28 14:25:56 UTC MAIN commitmail json YAML

Move the ipsec6_input prototype into ipsec6.h, and style.

(maxv)

2018-04-28 14:21:04 UTC MAIN commitmail json YAML

Stop using a macro, rename the function to ipsec_init_pcbpolicy directly.

(maxv)

2018-04-28 14:01:51 UTC MAIN commitmail json YAML

2018-04-28 13:44:19 UTC MAIN commitmail json YAML

Fix the net.inet6.ipsec6.def_policy node, the variable should be
&ip6_def_policy.policy, otherwise we're overwriting other fields of the
structure.

(maxv)

2018-04-28 13:38:00 UTC MAIN commitmail json YAML

Add -f option to ftpd to stay in foreground with -D.

From nia in PR bin/53221.

(riastradh)

2018-04-28 13:26:57 UTC MAIN commitmail json YAML

2018-04-28 13:23:18 UTC MAIN commitmail json YAML

2018-04-28 12:45:03 UTC MAIN commitmail json YAML

Create bpf and openfirm devices

(jmcneill)

2018-04-28 12:33:17 UTC MAIN commitmail json YAML

Define __HAVE_OLD_DISKLABEL for compatibility with the arm32 port.

(jmcneill)

2018-04-28 12:20:41 UTC MAIN commitmail json YAML

2018-04-28 11:49:48 UTC MAIN commitmail json YAML

Add support for Pinebook lid switch and eMMC

(jmcneill)

2018-04-28 11:49:06 UTC MAIN commitmail json YAML

Add support for lid switch event codes.

(jmcneill)

2018-04-28 10:53:03 UTC MAIN commitmail json YAML

Increase default MSGBUFSIZE to match arm32 defaults

(jmcneill)

2018-04-28 08:34:45 UTC MAIN commitmail json YAML

Rename the 'flags' and 'nowait' arguments to 'how'. The other BSDs did the
same. Also, in m_defrag, rename 'mold' to 'm'.

(maxv)

2018-04-28 08:16:15 UTC MAIN commitmail json YAML

Modify m_defrag, so that it never frees the first mbuf of the chain. While
here use the given 'flags' argument, and not M_DONTWAIT.

We have a problem with several drivers: they poll an mbuf chain from their
queues and call m_defrag on them, but m_defrag could update the mbuf
pointer, so the mbuf in the queue is no longer valid. It is not easy to
fix each driver, because doing pop+push will reorder the queue, and we
don't really want that to happen.

This problem was independently spotted by me, Kengo, Masanobu, and other
people too it seems (perhaps PR/53218).

Now m_defrag leaves the first mbuf in place, and compresses the chain
only starting from the second mbuf in the chain.

It is important not to compress the first mbuf with hacks, because the
storage of this first mbuf may be shared with other mbufs.

(maxv)

2018-04-28 05:12:55 UTC MAIN commitmail json YAML

2018-04-28 05:11:49 UTC MAIN commitmail json YAML

Add Symbios/LSI RAID and SAS controllers.

(mlelstv)

2018-04-28 00:14:37 UTC MAIN commitmail json YAML

Refactor the traceme2 ATF ptrace(2) tests

Replace traceme2 with 3 tests:
- traceme_sighandler_catch1
- traceme_sighandler_catch2
- traceme_sighandler_catch3

These tests are verified with PT_TRACE_ME for: SIGHUP, SIGCONT and SIGABRT.

We don't want tests all signals (this is a domain for a fuzzer), but we want
to cover tests with signals from different groups.

All tests pass.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-04-27 21:36:45 UTC MAIN commitmail json YAML

Refactor the traceme1 and traceme4 ATF ptrace(2) tests

Use common bode for these tests and a macro 1-liner to define a new test.

Test the same scenarios for 5 signals:
- SIGKILL (temporarily disabled)
- SIGSTOP
- SIGABRT
- SIGHUP
- SIGCONT

These tests call: raise(sig). It's actually important to assert their
behavior for tests that are from different kinds.

The SIGKILL test is work in progress. It can be caught by a debugger on the
FreeBSD kernel, but it's causing a signaled event in a debugger on Linux.

NetBSD is right now in one of the camps, but research whether this is a bug
or feature is in progress.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-04-27 19:06:48 UTC MAIN commitmail json YAML

2018-04-27 18:40:40 UTC MAIN commitmail json YAML

Remove reference to m_ext.ext_type (doesn't exist).

(maxv)

2018-04-27 18:33:24 UTC MAIN commitmail json YAML

Canonicalize the interpreter path in #! scripts since check_exec() expects
an absolute path, and we KASSERT if that's not the case later.

(christos)

2018-04-27 16:50:57 UTC MAIN commitmail json YAML

Correct XXX comment in the ptrace(2) kernel code

Explain I and D read/write operations and its history, removing dummy XXX
comments.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-04-27 16:32:04 UTC MAIN commitmail json YAML

Remove unused ext_flags field in struct _m_ext_storage.

Also, simplify MEXTMALLOC, mbtypes[] doesn't exist anymore, but the code
still compiled correctly because "malloc" is a macro and the argument
was dropped.

(maxv)

2018-04-27 16:18:40 UTC MAIN commitmail json YAML

Stop passing the pool as argument of the storage. M_EXT_CLUSTER mbufs
are supposed to take their area from mcl_cache only.

(maxv)

2018-04-27 12:04:23 UTC MAIN commitmail json YAML

use the proper station nodeid read command.

(christos)

2018-04-27 09:55:28 UTC MAIN commitmail json YAML

Fix LOCKDEBUG kernel panic when many(about 200) tunnel interfaces is created.

The tunnel interfaces are gif(4), l2tp(4), and ipsecif(4). They use mutex
itself in percpu area. When percpu_cpu_enlarge() run, the address of the
mutex in percpu area becomes different from the address which lockdebug
saved. That can cause "already initialized" false detection.

(knakahara)

2018-04-27 09:33:43 UTC MAIN commitmail json YAML

2018-04-27 09:33:09 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2018-04-27 09:22:28 UTC MAIN commitmail json YAML

Remove _MCLGET, merge its content into m_clget(). The code is slightly
modified to reduce the indentation level.

(maxv)

2018-04-27 09:05:26 UTC MAIN commitmail json YAML

remove suspicious compare, and cleanup complex conditionals.
pointed out PR/53159 by dcb314, thanks.

(ryo)

2018-04-27 09:02:16 UTC MAIN commitmail json YAML

Fix a bug introduced in rev1.154 (2009). mcl_cache still has a size of
MCLBYTES, so the area allocated is still too small.

I think it should have been MEXTMALLOC, and of course I can't test my
change.

(maxv)

2018-04-27 08:51:26 UTC MAIN commitmail json YAML

M_CLUSTER -> M_EXT_CLUSTER, and remove M_CLUSTER completely.

(maxv)

2018-04-27 08:23:18 UTC MAIN commitmail json YAML

Reorder, to group related functions.

(maxv)

2018-04-27 08:07:08 UTC MAIN commitmail json YAML

fix instability behavior of bufcache on aarch64.
* fix to return correct ref/mod when PMAP_WIRED.
* changed to keep wired flags in pte instead of pv_entry, and cleanup.

(ryo)

2018-04-27 07:53:07 UTC MAIN commitmail json YAML

2018-04-27 07:41:58 UTC MAIN commitmail json YAML

Rename m_reclaim -> mb_drain, and localify.

(maxv)

2018-04-27 07:20:33 UTC MAIN commitmail json YAML

Implement M_COPY_PKTHDR as a function, like m_move_pkthdr.

(maxv)

2018-04-27 06:56:21 UTC MAIN commitmail json YAML

Move m_align and m_append into iee80211_netbsd.c. They are part of
net80211, and shouldn't be used outside.

(maxv)

2018-04-27 06:36:32 UTC MAIN commitmail json YAML

Remove the old unneccessary cksum files.

(ragge)

2018-04-27 06:36:16 UTC MAIN commitmail json YAML

Simplify m_copydata, use unsigned int, and change its last argument to
match that of the man page.

(maxv)

2018-04-27 06:27:36 UTC MAIN commitmail json YAML

Style and simplify.

(maxv)

2018-04-27 06:23:35 UTC MAIN commitmail json YAML

define __HAVE_ATOMIC64_OPS
pointed out by nonaka@, thanks

(ryo)

2018-04-27 06:15:49 UTC MAIN commitmail json YAML

Panic in m_copypacket if no header is present, that's a requirement.

(maxv)

2018-04-27 06:06:43 UTC MAIN commitmail json YAML

Improve the documentation of m_copypacket(), to say explicitly that a
header must be present, contrary to m_copym().

While here fix a variable name (from yesterday).

(maxv)

2018-04-27 00:06:40 UTC MAIN commitmail json YAML

Fix "how" argument of MGET(). Pointed out by maxv@n.o, thanks.

MGET() does not have M_ZERO flag, so add memset when it is required.

(knakahara)

2018-04-26 20:10:44 UTC MAIN commitmail json YAML

Hum. This should be M_READONLY, not M_ROMAP.

M_ROMAP tells us whether the mbuf storage is mapped on a read-only page.
But an mbuf can still be read-only in the sense that the storage is
shared with other mbufs.

(maxv)

2018-04-26 19:56:55 UTC MAIN commitmail json YAML

2018-04-26 19:50:09 UTC MAIN commitmail json YAML

2018-04-26 19:33:02 UTC MAIN commitmail json YAML

Fix inverted arguments in m_gethdr().

(maxv)

2018-04-26 19:27:04 UTC MAIN commitmail json YAML

Fix inverted arguments in MGET().

(maxv)

2018-04-26 19:22:17 UTC MAIN commitmail json YAML

2018-04-26 19:13:34 UTC MAIN commitmail json YAML

Change MCLGET, so that it calls m_clget instead of doing the work in a
macro. Macros are inefficient when they contain too many instructions and
are used too often, because of cache coherency (and also register use).

This change saves 32KB of kernel .text.

(maxv)

2018-04-26 18:56:18 UTC MAIN commitmail json YAML

Add SVS. It may not be disabled at securelevel 1 and above.

(alnsn)

2018-04-26 18:54:09 UTC MAIN commitmail json YAML

Add KAUTH_MACHDEP_SVS_DISABLE and add support to secmodel_securelevel(9).

Disabling SVS is denied at securelevel 1 and above.

(alnsn)

2018-04-26 18:33:02 UTC MAIN commitmail json YAML

2018-04-26 18:06:25 UTC MAIN commitmail json YAML

Update some of the _UC_MACHINE* macros even though gregs[] aren't tied to anything yet

(scole)

2018-04-26 14:59:11 UTC MAIN commitmail json YAML

Rename "cpu_switch" to "cpu_switchto"

(scole)

2018-04-26 09:37:22 UTC pgoyette-compat commitmail json YAML

2018-04-26 08:31:36 UTC MAIN commitmail json YAML

Rename

m_copyback0 -> m_copyback_internal
M_COPYBACK0_* -> CB_*

That's a lot less misleading. While here, fix a bunch of panic messages.

(maxv)

2018-04-26 08:13:30 UTC MAIN commitmail json YAML

Stop adding '0's in parameter and function names, that's just misleading.
Some remain, they need more investigation.

(maxv)

2018-04-26 08:11:18 UTC MAIN commitmail json YAML

Test for valid interface for ioctls that demand it.

Thanks to Robert Swindells for the patch.

(roy)

2018-04-26 07:48:21 UTC MAIN commitmail json YAML

Remove m_prepend from the man page, it's a helper, and is not supposed to
be part of the API.

(maxv)

2018-04-26 07:46:24 UTC MAIN commitmail json YAML

Change comment, to clearly say that m_prepend should not be used directly.

(maxv)

2018-04-26 07:28:21 UTC MAIN commitmail json YAML

2018-04-26 07:01:38 UTC MAIN commitmail json YAML

Move the address checks into one function, ip6_badaddr(). In this function,
reinstate the "IPv4-compatible IPv6 addresses" check; these addresses are
deprecated by RFC4291 (2006).

(maxv)

2018-04-26 06:23:33 UTC MAIN commitmail json YAML

Remove ping6_opts_hops, "-g" does not exist anymore (RH0 removed).

(maxv)

2018-04-26 01:58:25 UTC pgoyette-compat commitmail json YAML

Remove note about syscall #148 (old quotactl) - it was wrong.

Add comment about there being some few platforms with MD COMPAT_44
code in their machdep.c files.

(pgoyette)

2018-04-25 18:55:19 UTC MAIN commitmail json YAML

Fix the Polish keymap in xkeyboard-config

Cherry-pick a patch from upstream BugZilla

Bug 104904 - Polish symbols file broken by typo
-- https://bugs.freedesktop.org/show_bug.cgi?id=104904

Remove stray "-------" that broke the parser.

Patch detected in the Gentoo portage:
x11-misc/xkeyboard-config: add patch to fix pl keyboard layout
https://github.com/gentoo/gentoo/commit/cba05e849ae9ec7289f44eb2f624030c95b83f4b

(kamil)

2018-04-25 11:12:55 UTC MAIN commitmail json YAML

2018-04-25 11:08:21 UTC MAIN commitmail json YAML

2018-04-25 11:06:49 UTC MAIN commitmail json YAML

VAX version of cpu_in_checksum().  Increases network performance significantly.

(ragge)

2018-04-25 09:28:42 UTC MAIN commitmail json YAML

Extract M_DATA, M_LEN, M_NEXT.

(ragge)

2018-04-25 09:23:01 UTC MAIN commitmail json YAML

Add __KERNEL_RCSID() macro.

(ragge)

2018-04-25 08:46:19 UTC MAIN commitmail json YAML

Don't free and reallocate bus_dmamem when it's not required. Currently,
the watchdog timer is completely broken and never fire (it's from FreeBSD
(pre iflib)). If the problem is fixed and watchdog fired, ixgbe_init() always
calls ixgbe_jcl_reinit() and it causes panic. The reason is that
ixgbe_local_timer1(it includes watchdog function) is softint and
xgbe_jcl_reinit() calls bus_dmamem*() functions. bus_dmamem*() can't be called
from interrupt context.

One of the way to prevent panic is use worqueue for the timer, but it's
not a small change. (I'll do it in future).

Another way is not reallocate dmamem if it's not required. If both the MTU
(rx_mbuf_sz in reality) and the number of RX descriptors are not changed, it's
not required to call bus_dmamem_{unmap,free}(). Even if we use workque, this
change save time of ixgbe_init().

I have a code to fix broken watchdog timer but it sometime causes watchdog
timeout, so I don't commit it yet.

(msaitoh)

2018-04-25 08:29:45 UTC MAIN commitmail json YAML

Use spin mutex to fix a panic

The GPIO part of wbsio(4) has a lock to keep the register access
order. In addition to the lock, gpio(4) has a look to prevent
multiple control through gpio_pin_ctl(). Those locks hold at
once when gpio_pin_ctl() is called, and the lock of gpio(4) hold
before that of wbsio(4).

Therefore, the wbsio(4) has to use spin lock if gpio(4) uses
spin lock.

(yamaguchi)

2018-04-25 03:49:57 UTC MAIN commitmail json YAML

Fix a deadlock (rt_free vs. route_intr on rt_so_mtx)

It occurs only if NET_MPSAFE is enabled.

(ozaki-r)

2018-04-25 03:45:21 UTC MAIN commitmail json YAML

Remove a unnecessary wrong cast (fix build of ALL)

(ozaki-r)

2018-04-24 23:29:13 UTC MAIN commitmail json YAML

PR/53209: David Shao: lang/llvm BFD (NetBSD Binutils nb1) 2.30 assertion fail elflink.c:2824
switch x86 back to old binutils until it is fixed.
(also non pie binaries have broken relocs)

(christos)

2018-04-24 18:35:56 UTC MAIN commitmail json YAML

Denote RTS525A, bump date

(maya)

2018-04-24 18:34:46 UTC MAIN commitmail json YAML

Remove unused code branch in the signal code

Remove the ppsig argument from proc_stop_done() and from sigswitch().

This functionality was used in now gone filesystem tracing feature (/proc).
It prevented emitting signal child signals to a debugging program, namely
with the SIGCHLD signal.

The modern solution to perform tracing without signals in a debugger is
to spawn a debugging server and outsource the tracing functionality to it.
This is done in software like gdb-server, lldb-server etc.

No functional change intended.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-04-24 18:34:30 UTC MAIN commitmail json YAML

2018-04-24 18:31:48 UTC MAIN commitmail json YAML

Back out part of the prior commit where we added space for IPV6_HOPLIMIT
to the sending control message buffer.
That code never worked on ERLITE, so I elected to set socket options
instead but forgot to revert this part.

(roy)

2018-04-24 18:10:33 UTC MAIN commitmail json YAML

2018-04-24 18:08:56 UTC MAIN commitmail json YAML

add realtek RT525A PCI-E card reader

found in my Dell XPS 15 9550.

(maya)

2018-04-24 16:35:53 UTC MAIN commitmail json YAML

In uvm_page_recolor(), kmem_free() old size rather than new size.

From Yaniv Abraham-Rabinovitch in PR kern/53208.

(jakllsch)

2018-04-24 08:22:17 UTC MAIN commitmail json YAML

Remove nullcheck, m is not allowed to be null.

(maxv)

2018-04-24 08:10:32 UTC MAIN commitmail json YAML

Change/Improve the comments, so that the definitions fit one line.

(maxv)

2018-04-24 08:07:06 UTC MAIN commitmail json YAML

Remove the M_AUTHIPDGM flag. It is equivalent to M_AUTHIPHDR, both
are set in IPsec-AH, and they are always handled together.

(maxv)

2018-04-24 07:22:33 UTC MAIN commitmail json YAML

Add code 3 of paramprob, part of RFC7112: "IPv6 First Fragment has
incomplete IPv6 Header Chain". Handle this code in ping6.

(maxv)

2018-04-24 07:12:04 UTC MAIN commitmail json YAML

Remove annoying (void) casts.

(maxv)

2018-04-24 01:32:30 UTC MAIN commitmail json YAML

Fix sys/netinet/in.c:r1.229 problem. I have missed FALLTHROUGH, sorry.

(knakahara)

2018-04-23 22:53:04 UTC MAIN commitmail json YAML

Adjust Xsyscall_svs to not use movq for 64bit immediates either.

(joerg)

2018-04-23 19:55:00 UTC MAIN commitmail json YAML

enable code to only trigger usb processing when EINT is set, to
avoid misinterpreting shared interrupt for another device

when clearing USBSTS, actually preserve the bits which spec requires to
preserve, and actually clear bit 1, which should be actually always
cleared to zero by spec

also #ifdef XHCI_DEBUG some unnecessary register reads

this should finally resolve PR kern/53066 also for Martin

(jdolecek)

2018-04-23 18:59:03 UTC MAIN commitmail json YAML

Clean up the IPsec ifdefs, same as ping6.

(maxv)

2018-04-23 18:48:30 UTC MAIN commitmail json YAML

Remove double include and unused macros.

(maxv)

2018-04-23 18:44:39 UTC MAIN commitmail json YAML

Remove the "-R" option. It uses IPV6_REACHCONF, but we've never had
this.

(maxv)

2018-04-23 18:37:20 UTC MAIN commitmail json YAML

Fix usage(), A/E don't exist.

(maxv)

2018-04-23 18:32:18 UTC MAIN commitmail json YAML

Simplify: remove #ifdefs for constants that are always defined, and
remove their #else's (some of which can't compile, since they use values
that since got removed).

(maxv)

2018-04-23 15:51:00 UTC MAIN commitmail json YAML

PR/kern/53202: Kernel hangs running t_ptrace_wait:resume1 test, revert
previous.

(christos)

2018-04-23 15:40:33 UTC MAIN commitmail json YAML

PR/53206: David Binderman: fix array bounds comparison in KASSERT.

(christos)

2018-04-23 15:36:30 UTC MAIN commitmail json YAML

PR/53207: David Binderman: Use logical and

(christos)

2018-04-23 14:53:07 UTC MAIN commitmail json YAML

2018-04-23 10:35:21 UTC MAIN commitmail json YAML

Remove dead/broken code, we want to favor RFC3542 over RFC2292. No
functional change. traceroute6 and rtadvd did the same.

(maxv)

2018-04-23 10:23:38 UTC MAIN commitmail json YAML

... another occurrence of OLDRAWSOCKET ...

(maxv)

2018-04-23 10:22:18 UTC MAIN commitmail json YAML

2018-04-23 10:19:11 UTC MAIN commitmail json YAML

Remove CPPFLAGS+=-DUSE_RFC3542, it's not used anymore.

(maxv)

2018-04-23 10:14:12 UTC MAIN commitmail json YAML

Remove dead/broken code. We want to favor RFC3542 over RFC2292. No
functional change.

(maxv)

2018-04-23 09:58:35 UTC MAIN commitmail json YAML

2018-04-23 09:47:03 UTC MAIN commitmail json YAML

2018-04-23 09:22:14 UTC netbsd-8 commitmail json YAML

Fix revision confusion between CHANGES.prev and CHANGES in the
processing of ticket #602: the pullup asked for rev 1.138 of CHANGES.prev
to be applied to CHANGES, not rev 1.138 of CHANGES to be pulled up.

(martin)

2018-04-23 07:25:36 UTC MAIN commitmail json YAML

Sort options. Sort option descriptions. Remove Tn.
Sync usage (more) with man page.

(wiz)

2018-04-23 07:22:54 UTC MAIN commitmail json YAML

Remove the kernel RH0 code. RH0 is deprecated by RFC5095, for security
reasons. RH0 was already removed in the kernel's input path, but some
parts were still present in the output path: they are now removed.

Sent on tech-net@ a few days ago.

(maxv)

2018-04-23 07:13:50 UTC MAIN commitmail json YAML

Remove -g from SYNOPSIS.

(wiz)

2018-04-23 06:51:26 UTC MAIN commitmail json YAML

Remove the "hops" parameter, it uses RH0, which is deprecated by RFC5095,
and doesn't work on modern networks anymore.

(maxv)

2018-04-23 06:42:02 UTC MAIN commitmail json YAML

Remove the "-g" option, it uses RH0, which is deprecated by RFC5095, and
doesn't work on modern networks anymore.

(maxv)

2018-04-23 01:35:25 UTC MAIN commitmail json YAML

- Backout if_wm.c rev.1.574 and print "device timeout (lost interrupt)"
when all descriptors in a queue are free. When all descripters are free after
wm_txeof(), it's caused by lost interrupt (though I've never seen it). One
possibility is chip bug and another possibility is software bug. We should
reset in any cases. If we don't reset and don't print error message, TX
processing is done intermittently and user might not noticed the problem.

- Rename txq_watchdog to txq_sending to make the meaning clear.

(msaitoh)

2018-04-23 01:29:23 UTC MAIN commitmail json YAML

Count timeout correctly. This change reduce timeout value for 80003 as
expected. Reported by mouse@.

(msaitoh)

2018-04-22 20:32:27 UTC MAIN commitmail json YAML

merge duplicated code, back to logging error.

(christos)

2018-04-22 12:45:10 UTC pgoyette-compat commitmail json YAML

Update sets lists for new compat_sysv_xx version-specific modules

(pgoyette)

2018-04-22 10:25:40 UTC MAIN commitmail json YAML

Rename ipip_allow->ipip_spoofcheck, and add net.inet.ipsec.ipip_spoofcheck.
Makes it simpler, and also fixes PR/39919.

(maxv)

2018-04-22 07:47:15 UTC MAIN commitmail json YAML

trigger the softint processing on that child bus which is not detached yet

fixes PR kern/53066 by Martin Husemann

(jdolecek)

2018-04-22 07:20:30 UTC pgoyette-compat commitmail json YAML

2018-04-21 23:25:01 UTC MAIN commitmail json YAML

Do not use movq for loading arbitrary 64bit immediates. The ISA
restricts it to 32bit immediates.

(joerg)

2018-04-21 23:01:29 UTC MAIN commitmail json YAML

In uses like $(( var )) (un-dollared vars in arithmetic) we allow
leading whitespace in the value of var (because strtoimax() does)
but did not allow trailing whitespace.  The effect is that some
cases where $(( ${var:-0} )) would work do not work without the $
expansion.

Fix that - allow trailing whitespace.  However, continue to insist
upon at least one digit (a non-null var that contains nothing but
whitespace is still an error).

Note: posix is not helpful here, it simply requires that the variable
contain "a value that forms a valid integer constant" (with an optional
+ or - sign).

(kre)

2018-04-21 21:32:14 UTC MAIN commitmail json YAML

PR bin/53201

Don't synerr on
${var-anything
more}

The newline in the middle of the var expansion is permitted.

Bug reported by Martijn Dekker from his modernish tests.

XXX pullup-8

(kre)

2018-04-21 21:28:35 UTC MAIN commitmail json YAML

Add a test case for PR bin/53201

Currently this test case will fail, a fix is coming soon (not worth
marking this as an expected failure.)

This test case and the initial bug report comes from
Martijn Dekker's modernish (shell/test set).

(kre)

2018-04-21 18:34:08 UTC MAIN commitmail json YAML

2018-04-21 18:07:24 UTC MAIN commitmail json YAML

downgrade error to debug.

(christos)

2018-04-21 15:53:25 UTC MAIN commitmail json YAML

add KASSERT() that sc_child* is set to NULL after child detach; just for
readability, it's not immediatelly obvious this is done in xhci_childdet()

no functional changes

(jdolecek)

2018-04-21 15:10:28 UTC MAIN commitmail json YAML

Fix an ancient typo, instead of setting the base address, the size
value is written leaving the autoconf setting (-1) as the address.
The value is only used for printing an attach message, the actual
pcdisplay_init code uses hard coded base addresses again.

(mlelstv)

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

Remove #ifndef __vax__.

The check enforces a 4-byte-aligned size for the option mbuf. If the size
is not multiple of 4, the computation of ip_hl gets truncated in the
output path. There is no reason for this check not to be present on VAX.

While here add a KASSERT in ip_insertoptions to enforce the assumption.

Discussed briefly on tech-net@

(maxv)

2018-04-21 12:38:17 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2018-04-21 09:31:08 UTC MAIN commitmail json YAML

2018-04-21 08:30:19 UTC MAIN commitmail json YAML

Remove unused variable since previous revision.

(rin)

2018-04-20 21:03:00 UTC MAIN commitmail json YAML

It was not gcc's fault for correctly detecting an uninitialized variable.
Fix the uninitialized variable issues by error checking things.

(christos)

2018-04-20 19:02:18 UTC MAIN commitmail json YAML

add prot parameter for uvm_emap_enter(), so that it's possible to
enter also read/write mappings

(jdolecek)

2018-04-20 18:58:10 UTC MAIN commitmail json YAML

make ubc_alloc() and ubc_release() static, they should not be used
outside of ubc_uiomove()/ubc_zeropage(); for now mark as noinline
to keep them available as breakpoints

(jdolecek)

2018-04-20 18:24:44 UTC MAIN commitmail json YAML

2018-04-20 18:22:50 UTC MAIN commitmail json YAML

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.

(macallan)

2018-04-20 18:07:41 UTC MAIN commitmail json YAML

Remove sunxi_codec_drain(). It's optional, and as the DMA is not stopped
at this time I'm not sure what draining the fifo means here. Also,
we're not waiting for the drain to complete.
The upper level will play enough silence when needed to make sure interesting
data have been played.

In sunxi_codec_halt_output() and sunxi_codec_halt_input(), drain the fifo
(and wait for it to complete) before or after disabling the DMA.

(bouyer)

2018-04-20 18:04:12 UTC MAIN commitmail json YAML

sun4idma_halt(): do not set the control register to 0 but just clear
the LOAD bit. This is how it was done in the allwinner code.
I don't know why but without this, I could play sound (via sunxi_codec)
only once. After the call to sunxi_codec_halt_output(), subsequent play
would output only silence.

(bouyer)

2018-04-20 16:37:17 UTC MAIN commitmail json YAML

2018-04-20 16:18:18 UTC MAIN commitmail json YAML

Make the #defines more readable

(roy)

2018-04-20 16:07:48 UTC MAIN commitmail json YAML

Lack of timeout is a programming error, so use an assert in it's place.
While here, improve the error reported if malloc fails.

(roy)

2018-04-20 15:59:17 UTC MAIN commitmail json YAML

Use EXIT_FAILURE instead of an arbtitary number.

(roy)

2018-04-20 15:57:23 UTC MAIN commitmail json YAML

Unicast solicited RA's as per RFC 7772.

This is done by having a secondary timer against rainfo so we
can delay unicasting by the required randomised amount of time
without affecting the unsolicited RA timer.

(roy)

2018-04-20 15:29:19 UTC MAIN commitmail json YAML

Ensure that the soliciter list is initialised and freed correctly, even if it's not used yet.

(roy)

2018-04-20 13:27:45 UTC MAIN commitmail json YAML

Allow timers to exist but be inactive.
This will be used in a future commit.

(roy)

2018-04-20 11:31:54 UTC MAIN commitmail json YAML

Insist on newer socket options.

(roy)

2018-04-20 11:25:39 UTC MAIN commitmail json YAML

Use pidifle_lock(3)

(roy)

2018-04-20 11:14:40 UTC MAIN commitmail json YAML

propagate pullup-782 for NetBSD-8 to HEAD (gcc uninitialized)

(christos)

2018-04-20 10:43:38 UTC MAIN commitmail json YAML

2018-04-20 10:39:37 UTC MAIN commitmail json YAML

2018-04-20 10:26:34 UTC MAIN commitmail json YAML

2018-04-20 09:56:22 UTC MAIN commitmail json YAML

SIOCSIFDSTADDR uses struct ifreq instead of struct ifaddr or struct in_aliasreq.

SIOCSIFDSTADDR is not used by base package commands...

I checked sys/net*/* only.

(knakahara)

2018-04-20 06:01:59 UTC MAIN commitmail json YAML

Cast to int, to properly handle dstoff > MHLEN (which never happens).

(maxv)

2018-04-20 03:03:13 UTC MAIN commitmail json YAML

Fix watchdog timer. Without this change, watchdog timer is unnecessary
fired and device is initialized without any error message. OK'd by knakahara.

(msaitoh)

2018-04-20 00:06:45 UTC MAIN commitmail json YAML

Add new example loadable kernel module example: readhappy_mpsafe

readhappy_mpsafe - demonstrates how to make a module MPSAFE

This module contains an additional helper program test_readhappy.c,
that is designed to exercise the kernel module with multiple threads.

Submitted by <Siddharth Muralee>

(kamil)

2018-04-19 22:01:27 UTC MAIN commitmail json YAML

add missing cgraphunit.c dependancy on pass_manager.h.  should fix report
from thorpej on current-users about missing pass-instances.def.

(mrg)

2018-04-19 21:50:10 UTC MAIN commitmail json YAML

2018-04-19 21:22:02 UTC MAIN commitmail json YAML

s/static inline/static __inline/g for consistency.

(christos)

2018-04-19 21:21:44 UTC MAIN commitmail json YAML

s/static inline/static __inline/g for consistency.

(christos)

2018-04-19 21:20:43 UTC MAIN commitmail json YAML

2018-04-19 21:19:07 UTC MAIN commitmail json YAML

2018-04-19 18:19:17 UTC MAIN commitmail json YAML

Take the interrupt lock in interrupt handler. Seesm to fix the hang I was
seeing with a portaudio2 application.
Don't unmute at attach time, it will be done when the upper level starts
sending data.

(bouyer)

2018-04-19 15:55:22 UTC netbsd-8 commitmail json YAML

2018-04-19 15:38:22 UTC netbsd-8 commitmail json YAML

2018-04-19 15:37:56 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #781):

sbin/nvmectl/Makefile 1.4
sbin/nvmectl/bignum.c 1.2
sbin/nvmectl/devlist.c 1.3-1.5
sbin/nvmectl/firmware.c 1.3,1.4
sbin/nvmectl/identify.c 1.3-1.5
sbin/nvmectl/logpage.c 1.5-1.7
sbin/nvmectl/nvme.h 1.3
sbin/nvmectl/nvmectl.8 1.5
sbin/nvmectl/nvmectl.c 1.5-1.7
sbin/nvmectl/nvmectl.h 1.5-1.8
sbin/nvmectl/perftest.c 1.3-1.5
sbin/nvmectl/power.c 1.3,1.4
sbin/nvmectl/reset.c 1.2,1.3
sbin/nvmectl/util.c 1.1,1.2
sbin/nvmectl/wdc.c 1.2-1.4
sys/dev/ic/ld_nvme.c 1.20
sys/dev/ic/nvme.c 1.38,1.39
sys/dev/ic/nvmeio.h 1.2
sys/dev/ic/nvmereg.h 1.10,1.11
sys/dev/ic/nvmevar.h 1.16
sys/dev/pci/nvme_pci.c 1.20

nvmectl(8): Sync with FreeBSD nvmecontrol(8) r328763.

nvmectl(8): fix wdc command usage.

nvme(4): Added some delay before check RDY bit quirk when disabling device.
Pick from FreeBSD nvme(4) r326937.

Add some new structure fileds, opcodes and statuses from NVMe 1.3a.

nvmectl(8): Add big-endian support.
from FreeBSD nvmecontolr(8) r329824.

nvmectl(8): fix subcommand usage.

nvmectl(8): Remove some wdc subcommands from man page.
- wdc drive-log
- wdc get-crash-dump
- wdc purge
- wdc purge-monitor

Typos.

use setprogname()/getprogname(), do not hardcode the prognam name in fixed
strings

(martin)

2018-04-19 08:39:18 UTC MAIN commitmail json YAML

Re-apply 1.35 which was accidentally reverted in 1.49

(maya)

2018-04-19 08:27:39 UTC MAIN commitmail json YAML

2018-04-19 08:16:44 UTC MAIN commitmail json YAML

Remove unused typedef, remove unused arguments from _ipip_input, sync
comment with reality, and change panic message.

(maxv)

2018-04-19 07:58:26 UTC MAIN commitmail json YAML

Add a KASSERT (which is not triggerable since ipsec_common_input already
ensures 8 bytes are present), add an XXX (about the fact that it is
better to use m_copydata, because it is faster and less error-prone), and
improve two m_copybacks (remove useless casts).

(maxv)

2018-04-19 07:40:12 UTC MAIN commitmail json YAML

Use ixgbe_eitr_write() when writing the EITR for the link interrupt like
queue's EITR to write the register safely. This change is not relatively
so important than queue's EITR because link's EITR is written in if_init().

(msaitoh)

2018-04-19 07:36:23 UTC MAIN commitmail json YAML

Style, and remove meaningless XXX.

(maxv)

2018-04-19 07:22:30 UTC MAIN commitmail json YAML

2018-04-19 06:04:31 UTC MAIN commitmail json YAML

Remove unused IXGBE_FC_HI and IXGBE_FC_LO. The watermark of the flow control
is automatically calculated from the size of the packet buffer.

(msaitoh)

2018-04-19 05:16:02 UTC MAIN commitmail json YAML

The mbuf length is allowed to be zero.

(maxv)

2018-04-18 17:58:07 UTC MAIN commitmail json YAML

Simplify the IPv4 parser. Get the option length in 'optlen', and sanitize
it earlier. A new check is added (off + optlen > skip).

In the IPv6 parser we reuse 'optlen', and remove 'ad' as a result.

(maxv)

2018-04-18 17:34:54 UTC MAIN commitmail json YAML

Remove unused includes, remove misleading comments, and style.

(maxv)

2018-04-18 15:01:03 UTC MAIN commitmail json YAML

m_free -> m_freem, m_copyback could have added mbufs in the chain

(maxv)

2018-04-18 14:56:35 UTC MAIN commitmail json YAML

m_free -> m_freem, m_copyback could have added mbufs in the chain

(maxv)

2018-04-18 14:50:39 UTC netbsd-8 commitmail json YAML

2018-04-18 14:47:12 UTC MAIN commitmail json YAML

mention SVS, retpoline, SMAP

(maxv)

2018-04-18 14:45:09 UTC netbsd-8 commitmail json YAML

Requested by skrll in ticket #60:
        sys/arch/amd64/conf/GENERIC
        sys/arch/amd64/conf/XEN3_DOM0
        sys/arch/amd64/conf/XEN3_DOMU
        sys/arch/cobalt/conf/GENERIC
        sys/arch/evbarm/conf/BEAGLEBONE
        sys/arch/evbarm/conf/BEAGLEBOARD
        sys/arch/evbarm/conf/BEAGLEBOARDXM
        sys/arch/evbarm/conf/GENERIC.common
        sys/arch/i386/conf/GENERIC
        sys/arch/i386/conf/XEN3_DOM0
        sys/arch/i386/conf/XEN3_DOMU
        sys/arch/mvmeppc/conf/GENERIC
        sys/arch/shark/conf/GENERIC
        sys/arch/sparc64/conf/GENERIC
        sys/arch/zaurus/conf/GENERIC

Remove option DIAGNOSTIC.

(martin)

2018-04-18 14:42:16 UTC MAIN commitmail json YAML

mention meltdown/spectre fixes

(maxv)

2018-04-18 14:21:50 UTC netbsd-8 commitmail json YAML

2018-04-18 14:20:26 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #780):

sys/dev/pci/pcidevs: revision 1.1328-1.1330

Add some 8th Generation Intel Core Processor devices.
Add Intel SSD 760p.
Added some NVMe devices.

(martin)

2018-04-18 14:16:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #779):

sys/net/if_pppoe.c: revision 1.135,1.136

net.pppoe.term_unknown can be written safely now.

Fix sending PADT to unexpected hosts when net.pppoe.term_unknown is enabled.

(martin)

2018-04-18 14:14:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #778):

sys/arch/x86/include/specialreg.h: revision 1.118,1.119

From the latest Intel SDM:
- Add Intel Fn0000_0006 %eax new bit 14-20 (HWP stuff).
- Intel Fn0000_0007 %ecx bit 22 is for both RDPID and IA32_TSC_AUX.

Add Some bit definitions of AMD Fn80000001 %edx:
  - MMX
  - FXSR

(martin)

2018-04-18 14:11:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #777):

tests/net/if_bridge/t_rtable.sh: revision 1.3
sys/net/if_bridge.c: revision 1.150-1.154
sys/net/if_bridgevar.h: revision 1.32

Remove obsolete NULL checks

Simplify bridge_rtnode_insert (NFC)

bridge: use pslist(9) for rtlist and rthash

The change fixes race conditions on list operations.  One example is that a
reader may see invalid pointers on a looking item in a list due to lack of
membar_producer.

Add a test that checks if brconfig flush surely removes all entries

Get rid of a unnecessary semicolon
Pointed out by kamil@

Add missing PSLIST_ENTRY_INIT and PSLIST_ENTRY_DESTROY

(martin)

2018-04-18 14:06:24 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by yamaguchi in ticket #776):

sys/netipsec/key.c: revision 1.251-1.253
sys/netipsec/keydb.h: revision 1.22

Introduced a hash table to sahlist

An saidx of sah included in the list is unique so that
the search can use a hash list whose hash is calculated by
the saidx to find an sah quickly.

The hash list of the sahlits is used in FreeBSD, too.
reviewed by ozaki-r@n.o, thanks.

Added a lookup table to find an sav quickly
key_sad.sahlists doesn't work well for inbound packets because
its key includes source address. For the reason, the
look-up-table for the inbound packets is newly added.
The table has all sav whose state is MATURE or DYING and uses a
key calculated by destination address, protocol, and spi instead
of saidx.

reviewd ozaki-r@n.o, thanks.

Fix panic of SADB when the state of sav is changed in timeout
pointed out by ozaki-r@n.o, thanks

(martin)

2018-04-18 14:01:16 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #775):

tools/Makefile.gnuhost: revision 1.46-1.48
external/gpl3/gcc/dist/gcc/genattrtab.c: revision 1.2

do the bracket nesting only for clang for now.

Use the __clang__ preprocessor symbol to check for clang, since --version
might barf. From joerg@

Apply upstream commit:
From: ppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 27 Apr 2016 21:18:05 +0000
Subject: [PATCH] Reduce nesting of parentheses in conditionals generated by
genattrtab

gcc/ChangeLog:
        * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
        which defaults to true.  Emit an outer pair of parentheses only if
        EMIT_PARENS.  When continuing a chain of && or || (or & or |),
        don't emit parentheses for the right-hand operand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235536

gcc/arm generates so many parens it hits a bracket depth limited which is
enforced by clang. This reduces the number of parens generated and avoids the
need to increase bracket depth.

Fixes PR toolchain/53178 properly.

Remove hack previously needed to build gcc/arm with clang.
genattrtab.c:1.2 makes this unnecessary.

Tested by thorpej.

(martin)

2018-04-18 13:51:36 UTC netbsd-8 commitmail json YAML

2018-04-18 10:40:22 UTC MAIN commitmail json YAML

Make SPECTRE_V2_GCC_MITIGATION overridable at the make command line.

(martin)

2018-04-18 10:38:47 UTC MAIN commitmail json YAML

Simplify previous, pointed out by mrg.

(martin)

2018-04-18 10:17:54 UTC MAIN commitmail json YAML

nvmectl(8): Remove some wdc subcommands from man page.

- wdc drive-log
- wdc get-crash-dump
- wdc purge
- wdc purge-monitor

(nonaka)

2018-04-18 10:16:22 UTC MAIN commitmail json YAML

nvmectl(8): fix subcommand usage.

(nonaka)