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 (14m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 22:52:57 UTC Now

2018-04-18 07:19:52 UTC netbsd-6-1 commitmail json YAML

2018-04-18 07:19:23 UTC netbsd-6 commitmail json YAML

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

2018-04-18 07:17:48 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1545):
sys/netipsec/ipsec_mbuf.c: revision 1.23
sys/netipsec/ipsec_mbuf.c: revision 1.24
Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.
The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().
Fix a pretty bad mistake, that has always been there.
        m_adj(m1, -(m1->m_len - roff));
        if (m1 != m)
            m->m_pkthdr.len -= (m1->m_len - roff);
This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.
Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(msaitoh)

2018-04-18 07:17:24 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1545):
sys/netipsec/ipsec_mbuf.c: revision 1.23
sys/netipsec/ipsec_mbuf.c: revision 1.24
Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.
The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().
Fix a pretty bad mistake, that has always been there.
        m_adj(m1, -(m1->m_len - roff));
        if (m1 != m)
            m->m_pkthdr.len -= (m1->m_len - roff);
This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.
Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(msaitoh)

2018-04-18 06:59:10 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1545):
sys/netipsec/ipsec_mbuf.c: revision 1.23
sys/netipsec/ipsec_mbuf.c: revision 1.24
Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.
The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().
Fix a pretty bad mistake, that has always been there.
        m_adj(m1, -(m1->m_len - roff));
        if (m1 != m)
            m->m_pkthdr.len -= (m1->m_len - roff);
This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.
Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(msaitoh)

2018-04-18 06:57:39 UTC MAIN commitmail json YAML

Remove dead code.

ok ozaki-r@

(maxv)

2018-04-18 06:52:35 UTC MAIN commitmail json YAML

2018-04-18 06:43:10 UTC MAIN commitmail json YAML

2018-04-18 06:37:18 UTC MAIN commitmail json YAML

Add missing PSLIST_ENTRY_INIT and PSLIST_ENTRY_DESTROY

(ozaki-r)

2018-04-18 06:22:47 UTC MAIN commitmail json YAML

Style, and remove another misleading comment.

(maxv)

2018-04-18 06:17:44 UTC MAIN commitmail json YAML

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

Remove the

net.inet6.esp6
net.inet6.ipcomp6
net.inet6.ah6

subtrees. They are aliases to net.inet6.ipsec6, but they are not
consistent with the original intended naming. (eg there was
net.inet6.esp6.esp_trans_deflev instead of net.inet6.esp6.trans_deflev).

(maxv)

2018-04-18 06:04:03 UTC MAIN commitmail json YAML

Get rid of a unnecessary semicolon

Pointed out by kamil@

(ozaki-r)

2018-04-18 06:03:37 UTC MAIN commitmail json YAML

Remove duplicate sysctls:

net.inet.esp.trans_deflev = net.inet.ipsec.esp_trans_deflev
net.inet.esp.net_deflev  = net.inet.ipsec.esp_net_deflev
net.inet.ah.cleartos      = net.inet.ipsec.ah_cleartos
net.inet.ah.offsetmask    = net.inet.ipsec.ah_offsetmask
net.inet.ah.trans_deflev  = net.inet.ipsec.ah_trans_deflev
net.inet.ah.net_deflev    = net.inet.ipsec.ah_net_deflev

Use the convention on the right. Discussed a month ago on tech-net@.

(maxv)

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

Cosmetics: default to dmesg -t when writing /var/run/dmesg.boot -
the timestamps at boot time are mostly useless.

(martin)

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

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

(ozaki-r)

2018-04-18 04:01:58 UTC MAIN commitmail json YAML

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.

(ozaki-r)

2018-04-18 03:49:44 UTC MAIN commitmail json YAML

Simplify bridge_rtnode_insert (NFC)

(ozaki-r)

2018-04-18 03:47:29 UTC MAIN commitmail json YAML

Remove obsolete NULL checks

(ozaki-r)

2018-04-18 01:39:14 UTC pgoyette-compat commitmail json YAML

Note current lack of implementation for syscall #148 - pre-5.0 quotactl()

(pgoyette)

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

__noreturn__ does in the header.

(christos)

2018-04-18 01:17:42 UTC MAIN commitmail json YAML

add __noreturn__ attribute to file_err{,x}

(christos)

2018-04-18 00:04:11 UTC pgoyette-compat commitmail json YAML

Note changes to syscalls.master and friends

(pgoyette)

2018-04-18 00:01:19 UTC pgoyette-compat commitmail json YAML

2018-04-17 23:58:48 UTC pgoyette-compat commitmail json YAML

Update compat module names to reference the version-specific modules.

This way, when we autoload compat code we load only what is needed,
and nothing "older".

(pgoyette)

2018-04-17 23:06:12 UTC pgoyette-compat commitmail json YAML

2018-04-17 22:31:41 UTC pgoyette-compat commitmail json YAML

Ooops - forgot to enable the last couple of alias module names.

(pgoyette)

2018-04-17 21:59:27 UTC pgoyette-compat commitmail json YAML

2018-04-17 17:56:08 UTC MAIN commitmail json YAML

2018-04-17 17:47:05 UTC MAIN commitmail json YAML

Add XXX. If this code really does something, it should use MCHTYPE.

(maxv)

2018-04-17 17:40:38 UTC MAIN commitmail json YAML

Style, add XXX (about the mtu that goes negative), and remove #ifdef inet.

(maxv)

2018-04-17 16:03:37 UTC netbsd-8 commitmail json YAML

2018-04-17 15:40:11 UTC netbsd-7-0 commitmail json YAML

2018-04-17 15:38:57 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1599):

sys/netipsec/ipsec_mbuf.c: revision 1.23,1.24 (via patch)

Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.

The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().

Fix a pretty bad mistake, that has always been there.

m_adj(m1, -(m1->m_len - roff));
if (m1 != m)
m->m_pkthdr.len -= (m1->m_len - roff);

This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.

Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(martin)

2018-04-17 15:38:39 UTC netbsd-7-1 commitmail json YAML

2018-04-17 15:38:12 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1599):

sys/netipsec/ipsec_mbuf.c: revision 1.23,1.24 (via patch)

Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.

The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().

Fix a pretty bad mistake, that has always been there.

m_adj(m1, -(m1->m_len - roff));
if (m1 != m)
m->m_pkthdr.len -= (m1->m_len - roff);

This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.

Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(martin)

2018-04-17 15:36:37 UTC netbsd-7 commitmail json YAML

2018-04-17 15:31:00 UTC MAIN commitmail json YAML

nvmectl(8): fix wdc command usage.

(nonaka)

2018-04-17 15:10:53 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1599):

sys/netipsec/ipsec_mbuf.c: revision 1.23,1.24 (via patch)

Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.

The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().

Fix a pretty bad mistake, that has always been there.

m_adj(m1, -(m1->m_len - roff));
if (m1 != m)
m->m_pkthdr.len -= (m1->m_len - roff);

This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.

Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(martin)

2018-04-17 15:06:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #773):

sys/netipsec/ipsec_mbuf.c: revision 1.23,1.24

Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.

The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().

Fix a pretty bad mistake, that has always been there.

m_adj(m1, -(m1->m_len - roff));
if (m1 != m)
m->m_pkthdr.len -= (m1->m_len - roff);

This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.

Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(martin)

2018-04-17 14:48:49 UTC MAIN commitmail json YAML

2018-04-17 12:34:04 UTC MAIN commitmail json YAML

sprinkle #ifdef __dead \n __dead \n #endif for clang

(jakllsch)

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

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

Tested by thorpej.

(maya)

2018-04-17 10:02:49 UTC MAIN commitmail json YAML

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.

(maya)

2018-04-17 09:06:33 UTC MAIN commitmail json YAML

Fix a pretty bad mistake, that has always been there.

m_adj(m1, -(m1->m_len - roff));
if (m1 != m)
m->m_pkthdr.len -= (m1->m_len - roff);

This is wrong: m_adj will modify m1->m_len, so we're using a wrong value
when manually adjusting m->m_pkthdr.len.

Because of that, it is possible to exploit the attack I described in
uipc_mbuf.c::rev1.182. The exploit is more complicated, but works 100%
reliably.

(maxv)

2018-04-17 08:54:35 UTC MAIN commitmail json YAML

2018-04-17 08:47:44 UTC MAIN commitmail json YAML

2018-04-17 08:47:19 UTC MAIN commitmail json YAML

Added some NVMe devices.

(nonaka)

2018-04-17 08:38:05 UTC MAIN commitmail json YAML

2018-04-17 08:37:23 UTC netbsd-8 commitmail json YAML

2018-04-17 08:36:11 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #772):

sys/miscfs/procfs/procfs_subr.c: revision 1.112

Change procfs_revoke_vnodes() to use vrecycle()/vgone() instead
of VOP_REVOKE().

Gets rid of a bunch of suspensions on /proc as vrecycle() will
succeed most time and we suspend at most once per call.

(martin)

2018-04-17 08:34:36 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #771):

sys/kern/subr_pserialize.c: revision 1.11

Function pserialize_perform() usually succeeds after two cross calls
so defer kpause() to iterations three and above.

Speeds up VOP_REVOKE() on /proc/XXX/status by a factor of ~12.

Ok: core@

(martin)

2018-04-17 08:30:43 UTC netbsd-7-0 commitmail json YAML

2018-04-17 08:30:08 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1598):

sys/kern/uipc_mbuf.c: revision 1.190

If the mbuf is shared leave M_PKTHDR in place. Given where this function
is called from that's not supposed to happen, but I'm growing unconfident
about our mbuf code.

(martin)

2018-04-17 08:29:23 UTC netbsd-7-1 commitmail json YAML

2018-04-17 08:28:55 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1598):

sys/kern/uipc_mbuf.c: revision 1.190

If the mbuf is shared leave M_PKTHDR in place. Given where this function
is called from that's not supposed to happen, but I'm growing unconfident
about our mbuf code.

(martin)

2018-04-17 08:27:46 UTC netbsd-7 commitmail json YAML

2018-04-17 08:27:18 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1598):

sys/kern/uipc_mbuf.c: revision 1.190

If the mbuf is shared leave M_PKTHDR in place. Given where this function
is called from that's not supposed to happen, but I'm growing unconfident
about our mbuf code.

(martin)

2018-04-17 08:24:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #770):

sys/kern/uipc_mbuf.c: revision 1.190

If the mbuf is shared leave M_PKTHDR in place. Given where this function
is called from that's not supposed to happen, but I'm growing unconfident
about our mbuf code.

(martin)

2018-04-17 08:20:06 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.c: revision 1.147
sys/dev/pci/ixgbe/ixgbe.h: revision 1.42

Fix panic when "sysctl -w hw.ixg0.txrx_workqueue=[01]" while there is traffic.
The operation is not supported, however causing panic is problem.

(martin)

2018-04-17 08:07:13 UTC pgoyette-compat commitmail json YAML

2018-04-17 08:04:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #768):

external/gpl2/gmake/dist/glob/glob.c: revision 1.4

According to:
    https://sourceforge.net/p/predef/wiki/Libraries/

The macro used for old glibc is __GNU_LIBRARY__ and the new one is
__GLIBC__.

Try to fix linux compilation by detecting both.

(martin)

2018-04-17 08:02:35 UTC pgoyette-compat commitmail json YAML

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

change the comment

(maxv)

2018-04-17 07:41:34 UTC MAIN commitmail json YAML

If the mbuf is shared leave M_PKTHDR in place. Given where this function
is called from that's not supposed to happen, but I'm growing unconfident
about our mbuf code.

(maxv)

2018-04-17 07:24:55 UTC pgoyette-compat commitmail json YAML

2018-04-17 06:23:30 UTC MAIN commitmail json YAML

Don't assume M_PKTHDR is set only on the first mbuf of the chain. It
should, but it looks like there are several places that can put M_PKTHDR
on secondary mbufs (PR/53189), so drop this assumption right now to
prevent further bugs.

The check is replaced by (m1 != m), which is equivalent to the previous
code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
m_adj().

(maxv)

2018-04-17 06:20:26 UTC pgoyette-compat commitmail json YAML

More updates to match reality.

(pgoyette)

2018-04-17 05:23:58 UTC MAIN commitmail json YAML

Fix panic when "sysctl -w hw.ixg0.txrx_workqueue=[01]" while there is traffic.

The operation is not supported, however causing panic is problem.

(knakahara)

2018-04-17 04:22:59 UTC MAIN commitmail json YAML

Fix panic of SADB when the state of sav is changed in timeout

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

(yamaguchi)

2018-04-17 02:03:56 UTC MAIN commitmail json YAML

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

(christos)

2018-04-17 00:02:59 UTC pgoyette-compat commitmail json YAML

2018-04-16 22:33:28 UTC MAIN commitmail json YAML

remove superfluous semicolon

(jdolecek)

2018-04-16 20:27:38 UTC MAIN commitmail json YAML

Change procfs_revoke_vnodes() to use vrecycle()/vgone() instead
of VOP_REVOKE().

Gets rid of a bunch of suspensions on /proc as vrecycle() will
succeed most time and we suspend at most once per call.

(hannken)

2018-04-16 20:25:21 UTC MAIN commitmail json YAML

Function pserialize_perform() usually succeeds after two cross calls
so defer kpause() to iterations three and above.

Speeds up VOP_REVOKE() on /proc/XXX/status by a factor of ~12.

Ok: core@

(hannken)

2018-04-16 19:19:51 UTC MAIN commitmail json YAML

Disable the M_PKTHDR check for now. It causes PR/53189 (which is also
reproducible on i386).

It seems that someone is giving looutput a malformed chain.

(maxv)

2018-04-16 17:32:34 UTC MAIN commitmail json YAML

Remove dead code.

ok ozaki-r@

(maxv)

2018-04-16 16:11:40 UTC MAIN commitmail json YAML

According to:
    https://sourceforge.net/p/predef/wiki/Libraries/
The macro used for old glibc is __GNU_LIBRARY__ and the new one is __GLIBC__.
Try to fix linux compilation by detecting both.

(christos)

2018-04-16 16:02:57 UTC MAIN commitmail json YAML

Revert previous glob.c change

It broke on !GLIBC.

(kamil)

2018-04-16 15:02:37 UTC MAIN commitmail json YAML

Merge EAGAIN descriptions.

(wiz)

2018-04-16 14:52:00 UTC MAIN commitmail json YAML

Remove the rnewprocp argument from fork1(9)

It's now unused and it can cause use-after-free scenarios as noted by
<Mateusz Guzik>.

Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html

Sponsored by <The NetBSD Foundation>

(kamil)

2018-04-16 14:39:19 UTC MAIN commitmail json YAML

Fix build of gmake (in tools) on new GLIBC systems

Reported on Debian and Fedora.

Reference for similar fix:
https://lists.nongnu.org/archive/html/bug-make/2017-11/msg00020.html

Tested by <Mateusz Guzik> on Fedora.
Tested by <Mandacaru Cascavel> on Debian.

(kamil)

2018-04-16 14:36:29 UTC netbsd-8 commitmail json YAML

2018-04-16 14:34:43 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/pci/if_vmx.c: revision 1.23,1.24

vmx(4): handled SIOCZIFDATA.

vmx(4): compute if_ibytes using rxq->vxrxq_stats.vmrxs_ibytes.

(martin)

2018-04-16 14:31:44 UTC netbsd-8 commitmail json YAML

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

sys/netipsec/key.c: revision 1.250

Removed the unnecessary order check of key_lookup_sa

key_prefered_oldsa flag can change the sa to use if an sah
has multiple sav. However the multiple saves whose protocol
is ah, esp, or tcp cannot exist because their duplications
are checked by the spi value. Although the multiple saves
can exist in the case of ipcomp, the values using in the
post processing are same between the saves.

For those reasons, it is no need to select an sav by its
lifetime.

In addition, FreeBSD has already remove this.
reviewed by ozaki-r@n.o, thanks.

(martin)

2018-04-16 14:28:24 UTC netbsd-8 commitmail json YAML

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

sys/dev/isa/wbsio.c: revision 1.22

Handle watchdog attachment in the wbsio_rescan() function, where we
take care of other children.

ok knakahara@ and yamaguchi@

(martin)

2018-04-16 14:25:49 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.567
sys/dev/pci/if_wm.c: revision 1.568
sys/dev/pci/if_wm.c: revision 1.569
sys/dev/pci/if_wmvar.h: revision 1.38
sys/dev/pci/if_wm.c: revision 1.570
sys/dev/pci/if_wm.c: revision 1.571
sys/dev/pci/if_wm.c: revision 1.572
share/man/man4/wm.4: revision 1.40
sys/dev/pci/if_wmreg.h: revision 1.106
sys/dev/pci/if_wmreg.h: revision 1.107

SW PHY Config Enable bit for ICH8 B0 stepping is not bit 1 but bit 0.

No binary change:
- Sort registers.
- Lowercase hexadecimal value.

On PCH_SPT (and newer), FLASH access should be done by 32bit.
Especially for ICH_FLASH_HSFCTL register, it's located at 0x0006, so
it should be accessed via ICH_FLASH_HSFSTS(0x0004) and use shift or mask.

Our PCH_SPT part of wm_nvm_valid_bank_detect_ich8lan() was based on
FreeBSD r287467. After that, they reverted it and committed the different
code in r287762. r287762's bank detect code didn't work for us because our wm
dirver had a problem in flash access. The problem was fixed in if_wm.c rev.
1.567, so we can use the new way now.

If the extended configration size in the EXTCNFSIZE register is 0, don't
continue.
Add PCH_CNP support (I219 with Intel 300 series chipset).
It's required more test, so it's disabled by default.

Enable I219.

I354 uses an external PHY, so don't use wm_set_eee_i350().

(martin)

2018-04-16 14:21:48 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ichsmb.c: revision 1.57
sys/dev/pci/pucdata.c: revision 1.101

Add 300 series chipset support.

(martin)

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

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

sys/arch/x86/pci/if_vmx.c: revision 1.22

vmx(4): Fix calculation of interface statistics counter.

(martin)

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

Set initproc inside start_init()

This allows us to stop using the rnewprocp argument in fork1(9).

The rnewprocp argument will be removed soon from the API, as it can cause
use-after-free scenarios.

No functional change intended.

Noted by <Mateusz Guzik>
Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html

Sponsored by <The NetBSD Foundation>

(kamil)

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

Pull up following revision(s) (requested by nat in ticket #761):

sys/dev/isa/sbdsp.c: revision 1.137

Add AUDIO_ENCODING_SLINEAR to supported encodings.  This allows sb, sbpro
& sb16 to configure with 8-bit precision.

Tested in games/mame with a 486DX emulation.

(martin)

2018-04-16 14:15:03 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #760):

sys/dev/isa/gus.c: revision 1.112

Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.

(martin)

2018-04-16 14:11:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #759):

sys/dev/audio.c: revision 1.367
sys/dev/audio.c: revision 1.369
sys/dev/audio.c: revision 1.376 (patch)
sys/dev/audio.c: revision 1.377 (patch)
sys/dev/audio.c: revision 1.378
sys/dev/audio.c: revision 1.382 (patch)
sys/dev/audio.c: revision 1.383 (patch)
sys/dev/audio.c: revision 1.384
sys/dev/audio.c: revision 1.388
sys/dev/audio.c: revision 1.389
sys/dev/audio.c: revision 1.395
sys/dev/audio.c: revision 1.396 (patch)
sys/dev/audio.c: revision 1.397
sys/dev/audio.c: revision 1.403
sys/dev/audio.c: revision 1.451
sys/dev/audio.c: revision 1.452
sys/dev/audiovar.h: revision 1.59 (patch)
sys/dev/aurateconv.c: revision 1.21 (patch)
sys/dev/auconv.c: revision 1.31 (patch)
sys/dev/audiovar.h: revision 1.60 (patch)

Broadcast all conditional variables if in being deactivated so no readers
or writers get stuck.

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

Addresses PR kern/52424.

Improve audio_set_vchan_defaults().
- Correct confused input/output parameters.
- Remove sc->{sc_channels, sc_precision, sc_frequency}.  They are
  the same as sc->sc_vchan_params.{channels, precision, sample_rate}.
The input parameter of audio_set_vchan_defaults() is now only
sc->sc_vchan_params.

Fix PR kern/52437

const-ify.

0 -> NULL in audioattach()

"bits" sounds better than "name" for argument name.
I feel expression (name / NBBY) a little strange.

The audio module will now compile with WARNS=5.

Typo in debug message.

Remove a duplicated line.

Add missing initialization of sc_rfilters in audioattach().

Remove dead codes.

sc->sc_opens never changes in this loop and as a result of
previous sc_audiochan cleanup "sc_opens == 0" is the same as
"sc_audiochan is empty".

Clean up audio_allocbufs().

As a result of sc_audiochan cleanup, it is easy to access sc_hwvc.

Clean up audio_open().

As a result of sc_audiochan cleanup, this loop is the same as last + 1.
hw_if->set_params is mandatory, so it will never be NULL.

CID-1427745: kill possible buffer overflows.

Revert my wrong r1.380 and add a comment instead.

(martin)

2018-04-16 13:31:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #758):

sys/kern/kern_proc.c: revision 1.212

Don't set errno ESRCH for empty result of KINFO_PROC[2]

Restore the previous behavior as it's prefered.
This new behavior was introduced in 1.210.
Code should check for length of the result.

Requested by <mlelstv>

(martin)

2018-04-16 13:12:36 UTC MAIN commitmail json YAML

2018-04-16 13:11:53 UTC MAIN commitmail json YAML

Add Intel SSD 760p.

(msaitoh)

2018-04-16 13:08:33 UTC MAIN commitmail json YAML

Add some 8th Generation Intel Core Processor devices.

(msaitoh)

2018-04-16 12:25:18 UTC MAIN commitmail json YAML

2018-04-16 09:53:02 UTC pgoyette-compat commitmail json YAML

Update with notes from a recent status update e-mail sent to tech-kern

(pgoyette)

2018-04-16 09:12:52 UTC MAIN commitmail json YAML

vmx(4): compute if_ibytes using rxq->vxrxq_stats.vmrxs_ibytes.

(nonaka)

2018-04-16 09:10:42 UTC MAIN commitmail json YAML

vmx(4): handled SIOCZIFDATA.

(nonaka)

2018-04-16 08:56:08 UTC MAIN commitmail json YAML

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.

(yamaguchi)

2018-04-16 08:52:09 UTC MAIN commitmail json YAML

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.

(yamaguchi)

2018-04-16 08:31:06 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2018-04-16 08:17:18 UTC MAIN commitmail json YAML

2018-04-16 03:41:34 UTC pgoyette-compat commitmail json YAML

2018-04-16 03:21:43 UTC MAIN commitmail json YAML

vmx(4): Fix calculation of interface statistics counter.

(nonaka)

2018-04-16 02:03:04 UTC pgoyette-compat commitmail json YAML

2018-04-16 02:00:10 UTC pgoyette-compat commitmail json YAML

src/bin/ed/ed.1@1.31.4.2 / diff / nxr@1.31.4.2
src/bin/ps/keyword.c@1.55.2.1 / diff / nxr@1.55.2.1
src/bin/ps/print.c@1.128.2.1 / diff / nxr@1.128.2.1
src/bin/ps/ps.c@1.89.2.1 / diff / nxr@1.89.2.1
src/crypto/external/bsd/openssh/dist/auth2-pubkey.c@1.18.2.2 / diff / nxr@1.18.2.2
src/crypto/external/bsd/openssh/dist/freezero.c@1.1.2.2 / diff / nxr@1.1.2.2
src/crypto/external/bsd/openssh/dist/servconf.c@1.25.2.2 / diff / nxr@1.25.2.2
src/crypto/external/bsd/openssh/dist/ssh-xmss.c@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/sshd.c@1.28.2.2 / diff / nxr@1.28.2.2
src/crypto/external/bsd/openssh/dist/sshkey-xmss.c@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/sshkey-xmss.h@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_commons.c@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_commons.h@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_fast.c@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_fast.h@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_hash.c@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_hash.h@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_hash_address.c@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_hash_address.h@1.2.2.2 / diff / nxr@1.2.2.2
src/crypto/external/bsd/openssh/dist/xmss_wots.h@1.2.2.2 / diff / nxr@1.2.2.2
      :
(more 9271 files)
Sync with HEAD, resolve some conflicts

(pgoyette)

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

Break down explanation of netpgp_init to make it easier to extend.
Document how the userid is obtained.

(sevan)

2018-04-15 22:13:36 UTC MAIN commitmail json YAML

Remove unnecessary __BEGIN_DECLS ... __END_DECLS at Christos's suggestion.

(pgoyette)

2018-04-15 21:50:39 UTC MAIN commitmail json YAML

do the bracket nesting only for clang for now.

(christos)

2018-04-15 20:08:13 UTC MAIN commitmail json YAML

switch x86 to binutils-2.30

(christos)

2018-04-15 20:06:05 UTC MAIN commitmail json YAML

2018-04-15 19:48:44 UTC MAIN commitmail json YAML

2018-04-15 19:47:30 UTC MAIN commitmail json YAML

2018-04-15 19:45:32 UTC MAIN commitmail json YAML

2018-04-15 18:24:52 UTC MAIN commitmail json YAML

Simplify interrupt handling by only enabling interrupts for events that
we actually need. After we've consumed the event, mask the interrupt.

(jmcneill)

2018-04-15 17:26:39 UTC MAIN commitmail json YAML

2018-04-15 17:22:03 UTC MAIN commitmail json YAML

Add a note about potential tools build failure due to yesterday's
binutils sources juggling.

(jakllsch)

2018-04-15 15:13:37 UTC MAIN commitmail json YAML

fix the variable name for then non-gmake case.

(christos)

2018-04-15 08:31:18 UTC MAIN commitmail json YAML

Remove useless DIAGNOSTIC block, the caller already ensures the
assumptions, and here we're not doing anything (it should be a panic
rather than a printf).

(maxv)

2018-04-15 08:27:21 UTC MAIN commitmail json YAML

typo in comment

(maxv)

2018-04-15 07:35:49 UTC MAIN commitmail json YAML

Introduce a m_verify_packet function, that verifies the mbuf chain of a
packet to ensure it is not malformed. Call this function in "points of
interest", that are the IPv4/IPv6/IPsec entry points. There could be more.

We use M_VERIFY_PACKET(m), declared under DIAGNOSTIC only.

This function should not be called everywhere, especially not in places
that temporarily manipulate (and clobber) the mbuf structure; once they're
done they put the mbuf back in a correct format.

(maxv)

2018-04-15 06:23:31 UTC pgoyette-compat commitmail json YAML

2018-04-15 03:25:25 UTC MAIN commitmail json YAML

Remove unused variable p from linux_sys_clone()

After refactoring by <chs> in 2010 (r. 1.63) the p variable is no longer
used.

As noted by <Mateusz Guzik> its usage is also unsafe and might cause
use-after-free scenarios.

No functional change intended.

Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html

Sponsored by <The NetBSD Foundation>

(kamil)

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

Refactor fork-like ATG tests in t_ptrace_wait*

Add CPP syntax sugare to define each fork-like test within a single line
of code with less than 80 columns.

This is a preparation for new fork-like scenarios where we detach either
child and/or parent with PT_DETACH.

The code could be still reduced to smaller number of columns, instead of:

  FORK_TEST(fork1, DSCR(fork,0,0,0,0,0), fork, F, F, F, F, F)

we could perhaps need 50% of it, as the data is duplicated.

On the other hand the line is already short and taking only a single line.

No functional change intended.

Sponsored by <The NetBSD Foundation>

(kamil)

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

switch everyone to binutils.old

(christos)

2018-04-14 20:21:09 UTC MAIN commitmail json YAML

List some obvious remaining items to-do

(scole)

2018-04-14 19:58:20 UTC MAIN commitmail json YAML

Add XXX note regarding incomplete forking

(scole)

2018-04-14 17:55:47 UTC MAIN commitmail json YAML

Fix 'icmp6len', it shouldn't be ip6_plen, because we may not be at the
beginning of the packet (off+ip6_plen is beyond the end of the mbuf). By
luck, the IP6_EXTHDR_GET that follows will fail and prevent buffer
overflows in non-jumbogram packets.

For jumbograms we will probably be in trouble here; but it doesn't seem
possible to craft reliably a jumbogram for a non-jumbogram-enabled device.

So I don't think it's a huge problem.

(maxv)

2018-04-14 17:53:22 UTC MAIN commitmail json YAML

src/external/gpl3/binutils.old/Makefile@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/Makefile.inc@1.7 / diff / nxr@1.7
src/external/gpl3/binutils.old/binutils2netbsd@1.3 / diff / nxr@1.3
src/external/gpl3/binutils.old/dist/bfd/hosts/alphalinux.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/alphavms.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/decstation.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/delta68.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/dpx2.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/hp300bsd.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/i386bsd.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/i386linux.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/i386mach3.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/i386sco.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/i860mach3.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/m68kaux.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/m68klinux.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/m88kmach3.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/mipsbsd.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/mipsmach3.h@1.5 / diff / nxr@1.5
src/external/gpl3/binutils.old/dist/bfd/hosts/news-mips.h@1.5 / diff / nxr@1.5
      :
(more 1914 files)
readd files.

(christos)

2018-04-14 15:49:49 UTC MAIN commitmail json YAML

2018-04-14 15:40:17 UTC MAIN commitmail json YAML

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

Cosmetic, and remove one XXX (no problem).

(maxv)

2018-04-14 14:26:20 UTC MAIN commitmail json YAML

Don't set errno ESRCH for empty result of KINFO_PROC[2]

Restore the previous behavior as it's prefered.

This new behavior was introduced in 1.210.

Code should check for length of the result.

Requested by <mlelstv>

(kamil)

2018-04-14 11:28:13 UTC netbsd-8 commitmail json YAML

2018-04-14 11:26:46 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #757):

external/gpl3/gcc.old/lib/libstdc++-v3/arch/powerpc/gstdint.h: revision 1.7
external/gpl3/gcc.old/usr.bin/gcc/arch/powerpc/configargs.h: revision 1.8
external/gpl3/gcc.old/usr.bin/gcc/arch/powerpc/defs.mk: revision 1.7
external/gpl3/gcc.old/usr.bin/gcc/arch/powerpc/gtyp-input.list: revision 1.6
external/gpl3/gcc.old/lib/libstdc++-v3/arch/powerpc/c++config.h: revision 1.8
external/gpl3/gcc.old/usr.bin/gcc/arch/powerpc/tm.h: revision 1.6
external/gpl3/gcc.old/dist/gcc/config.gcc: revision 1.9
(with gcc.old -> gcc)

apply the changes from GCC 6 / powerpc and netbsd-stdint.h
to make <stdatomic.h> work.

(martin)

2018-04-14 11:07:16 UTC netbsd-8 commitmail json YAML

2018-04-14 10:53:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #756):

sys/sys/ptrace.h: revision 1.61

PR kern/52805: fix copy & pasto, from Onno van der Linden.

(martin)

2018-04-14 10:50:49 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #755):

external/bsd/mdocml/include/config.h: revision 1.5
external/bsd/mdocml/dist/term_ascii.c: revision 1.2

Re-enable wchar_t support.  mandoc(1) can now fall back to ascii
output if the locale is non-UTF-8 locale with the following change.

https://marc.info/?l=openbsd-cvs&m=152364416720474
Modified files:
usr.bin/mandoc : term_ascii.c
Log message:
Make sure that mandoc only goes into UTF-8 mode if the user really
selected UTF-8, not some other multibyte locale.  This obviously
makes no difference on OpenBSD but improves portability.
Issue reported by <Nakayama at NetBSD> via wiz@.

(martin)

2018-04-14 10:44:56 UTC netbsd-8 commitmail json YAML

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

tools/Makefile.gnuhost: revision 1.45

GCC build exceeds the macOS clang default bracket nesting level of 256.

Work around with -fbracket-depth=512.

From potr in PR toolchain/53178.

(martin)

2018-04-14 10:41:15 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/include/bootinfo.h: revision 1.29

x86: Increase BOOTINFO_MAXSIZE to 8Kib.

Proposed on port-i386 and port-amd64 with no objections:
http://mail-index.netbsd.org/port-i386/2018/04/11/msg003692.html
http://mail-index.netbsd.org/port-amd64/2018/04/11/msg002697.html

(martin)

2018-04-14 10:38:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ryo in ticket #752):

sys/net/if_vlan.c: revision 1.125

Fix the handling of the state returned from pfil_run_hooks().

pfil_run_hooks() invokes any registered packet filters on the packet
being handled.  It may return a (non-zero) errno, indicating that a
filter has decided that the packet should be discarded, and has freed
the mbuf.  While a non-error (0) return usually means that the packet
should be processed normally, a filter may still free the mbuf if the
packet is a fragment, and the filter is holding it for reassembly and
future evaluation.  Therefore, there must be separate tests for the
return value and for a possible discarded packet.  (See pfil(9).)

OK: christos, martin

(martin)

2018-04-14 10:34:12 UTC netbsd-8 commitmail json YAML

regen (for ticket #751):

Add Nvidia GeForce 9400M as found in the late 2009 13" MacBook (MacBook6,1)
Add new I219 devices (using with 300 series chipset).

(martin)

2018-04-14 10:32:05 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1308
sys/dev/pci/pcidevs: revision 1.1327

Add Nvidia GeForce 9400M as found in the late 2009 13" MacBook (MacBook6,1)

Add new I219 devices (using with 300 series chipset).

(martin)

2018-04-14 10:25:12 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_x540.h: revision 1.8
sys/dev/pci/ixgbe/ixgbe_82598.c: revision 1.11
sys/dev/pci/ixgbe/ixgbe_dcb_82599.c: revision 1.6
sys/dev/pci/ixgbe/ixgbe_82598.c: revision 1.12
sys/dev/pci/ixgbe/ixgbe_dcb_82599.c: revision 1.7
sys/dev/pci/ixgbe/ixgbe_dcb_82598.h: revision 1.6
sys/dev/pci/ixgbe/ixgbe_fdir.h: revision 1.2
sys/dev/pci/ixgbe/ixgbe_dcb_82599.h: revision 1.6
sys/dev/pci/ixgbe/ixgbe_dcb_82598.c: revision 1.6
sys/dev/pci/ixgbe/ixgbe_82599.c: revision 1.18
sys/dev/pci/ixgbe/if_sriov.c: revision 1.3
sys/dev/pci/ixgbe/ixgbe_dcb_82598.c: revision 1.7
sys/dev/pci/ixgbe/ixgbe_82599.c: revision 1.19
sys/dev/pci/ixgbe/ixgbe_mbx.h: revision 1.13
sys/dev/pci/ixgbe/ixgbe_dcb.c: revision 1.7
sys/dev/pci/ixgbe/ixgbe_api.c: revision 1.19
sys/dev/pci/ixgbe/ixgbe_vf.c: revision 1.16
sys/dev/pci/ixgbe/ixgbe_dcb.c: revision 1.8
sys/dev/pci/ixgbe/ixgbe_vf.c: revision 1.17
sys/dev/pci/ixgbe/ixgbe_dcb.h: revision 1.6
sys/dev/pci/ixgbe/if_bypass.c: revision 1.4
sys/dev/pci/ixgbe/ixv.c: revision 1.91
sys/dev/pci/ixgbe/ixgbe_rss.h: revision 1.4
sys/dev/pci/ixgbe/ixv.c: revision 1.92
sys/dev/pci/ixgbe/ixv.c: revision 1.93
sys/dev/pci/ixgbe/ixgbe_osdep.c: revision 1.4
sys/dev/pci/ixgbe/ixgbe_common.h: revision 1.12
sys/dev/pci/ixgbe/ixgbe_common.h: revision 1.13
sys/dev/pci/ixgbe/ixgbe_api.h: revision 1.13
sys/dev/pci/ixgbe/ixgbe_x550.c: revision 1.12
sys/dev/pci/ixgbe/ixgbe_type.h: revision 1.33
sys/dev/pci/ixgbe/if_fdir.c: revision 1.2
sys/dev/pci/ixgbe/ixgbe_type.h: revision 1.34
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.39
sys/dev/pci/ixgbe/ixgbe_vf.h: revision 1.13
sys/dev/pci/ixgbe/ixgbe_api.c: revision 1.20
sys/dev/pci/ixgbe/ixgbe_sriov.h: revision 1.3
sys/dev/pci/ixgbe/ixgbe_common.c: revision 1.21
sys/dev/pci/ixgbe/ixgbe_osdep.h: revision 1.21
sys/dev/pci/ixgbe/ixgbe_common.c: revision 1.22
sys/dev/pci/ixgbe/ixgbe_82599.h: revision 1.7
sys/dev/pci/ixgbe/ixgbe.c: revision 1.144
sys/dev/pci/ixgbe/ixgbe.c: revision 1.145
sys/dev/pci/ixgbe/ixgbe_phy.c: revision 1.16
sys/dev/pci/ixgbe/ixgbe.c: revision 1.146
sys/dev/pci/ixgbe/ixgbe_phy.c: revision 1.17
sys/dev/pci/ixgbe/ixgbe_82598.h: revision 1.8
sys/dev/pci/ixgbe/ixgbe.h: revision 1.41
sys/dev/pci/ixgbe/ixgbe_mbx.c: revision 1.10
sys/dev/pci/ixgbe/ixgbe_x540.c: revision 1.14
sys/dev/pci/ixgbe/ixgbe_x540.c: revision 1.15
sys/dev/pci/ixgbe/ixgbe_phy.h: revision 1.11

Sync with the remaining part of FreeBSD r328265 except sfp_reinit stuff:
- Always schedule module intterrupt in ixgbe_config_link() when a device is
  SFP+ based.
- Use not loop index but txr->me in ixv_initialize_{transmit,receive}_units().
  It's required for VMDQ but NetBSD doesn't use it, so it's not a bug in
  NetBSD.
- Simplify ixgbe_bp_wd_set(). No functional change.
- Whitespace.

Sync with FreeBSD r331224 except ixv_if_update_admin_status()'s change:
- Fix length of reading buffer when the command is Read Flash in
  ixgbe_host_interface_command().
- Add missing start_hw() call in ixv_init_locked(). This is not a real bug
  because start_hw just set hw->adapter_stopped to false and anyone refer it.
- Style change.
- Update comment.

Read sc_if_flags after taking core lock. Same as if_wm.c rev. 1.418.

(martin)

2018-04-14 10:16:19 UTC netbsd-8 commitmail json YAML

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

sys/net/if.h: revision 1.259
sys/net/route.c: revision 1.209
sys/net/route.h: revision 1.118
sys/net/rtsock.c: revision 1.240

Resolve tangled lock dependencies in route.c

This change sweeps remaining lock decisions based on if locked or not by
moving utility functions of rtentry updates from rtsock.c and ensuring
holding the rt_lock.
It also improves the atomicity of a update of a rtentry.

(martin)

2018-04-14 10:11:49 UTC netbsd-8 commitmail json YAML

Pullup the following revisions via patch, requested by maxv in ticket #748:

sys/arch/amd64/amd64/copy.S 1.29 (adapted, via patch)
sys/arch/amd64/amd64/amd64_trap.S 1.16,1.19 (partial) (via patch)
sys/arch/amd64/amd64/trap.c 1.102,1.106 (partial),1.110 (via patch)
sys/arch/amd64/include/frameasm.h 1.22,1.24 (via patch)
sys/arch/x86/x86/cpu.c 1.137 (via patch)
sys/arch/x86/x86/patch.c 1.23,1.26 (partial) (via patch)

Backport of SMAP support.

(martin)

2018-04-14 08:13:58 UTC MAIN commitmail json YAML

2018-04-14 08:09:46 UTC MAIN commitmail json YAML

2018-04-14 08:03:33 UTC MAIN commitmail json YAML

Remove the RH0 code from ICMPv6. RH0 is deprecated by RFC5095 (2007) for
security reasons. We already removed it in Route6.

In addition there was an mbuf bug here: calling IP6_EXTHDR_GET twice with
the same offset, but still using the pointer from the first call, which
could have been made invalid. By luck, m_pulldown leaves zero-sized mbufs
in place, instead of freeing them.

And in general, using a 'finaldst' pointer on the mbuf, and then modifying
that mbuf with IP6_EXTHDR_GET with a smaller offset, was really error-
prone.

(maxv)

2018-04-14 06:45:18 UTC MAIN commitmail json YAML

Remove dead code. It is the same as the non-obsolete one, since
ICMP6_DST_UNREACH_NOTNEIGHBOR == ICMP6_DST_UNREACH_BEYONDSCOPE,
and the code leads to the same errno value (EHOSTUNREACH).

(maxv)

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

redo the previous -- compat/sys/siginfo.h is already included
later, as is another header.  move them up near the top.

(mrg)

2018-04-14 03:13:38 UTC netbsd-8 commitmail json YAML

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

Pull up revision 1.116 of sys/compat/netbsd32/netbsd32.h to fix fallout
from ticket #713:
include <compat/sys/siginfo.h> for siginfo32_t.

(snj)

2018-04-14 01:53:38 UTC MAIN commitmail json YAML

Change the default precision of timestamps from 9 digits (nanosecs)
to 7 (100's of nanosecs).  This should perhaps depend upon the
port (what resolution is rational) the CPU speed, and the clock
update frequency (no point printing nanoseconds if the value being
brinted is only updated every few microseconds).

Eventually it should be able to be controlled by a sysctl, but
the default still matters, as that's what the autoconf (boot time,
before init starts) messages will use.

(kre)

2018-04-14 01:45:37 UTC MAIN commitmail json YAML

Allow the precision of the sub-second field of timestamps to
be controlled - for now that is done by editing this file and
recompiling (or using gdb or equiv to patch /netbsd or /dev/kmem)
but adding a sysctl to allow dynamic userland control should be easy.

Also reduce the initial seconds field width of timestamp from 5 to 4
(it grows wider as needed.)

Avoid printing timestamps if we cannot be sure there will be
a message to accompany them.  (Observed happening...)

(kre)

2018-04-14 01:37:34 UTC MAIN commitmail json YAML

Make timestamp reading code adapt to whatever precision (up to
nanoseconds, 9 digits) the kernel happens to send in the timestamps
in log messages.

Output (numeric) timestamps (when produced) are unchanged and always
in microseconds (for now).

(kre)

2018-04-14 01:34:47 UTC MAIN commitmail json YAML

Minor wording change (no date bump needed.)

(kre)

2018-04-13 22:13:09 UTC MAIN commitmail json YAML

track bus-range for every bus and restrict config space accesses to that
range. Now pcictl pci* list no longer crashes the kernel.

(macallan)

2018-04-13 21:52:49 UTC MAIN commitmail json YAML

Re-enable wchar_t support.  mandoc(1) can now fall back to ascii
output if the locale is non-UTF-8 locale with the following change.

https://marc.info/?l=openbsd-cvs&m=152364416720474

| Modified files:
| usr.bin/mandoc : term_ascii.c
|
| Log message:
| Make sure that mandoc only goes into UTF-8 mode if the user really
| selected UTF-8, not some other multibyte locale.  This obviously
| makes no difference on OpenBSD but improves portability.
| Issue reported by <Nakayama at NetBSD> via wiz@.

(nakayama)

2018-04-13 20:30:09 UTC MAIN commitmail json YAML

Add a new example kernel module

executor - basic implementation of callout and RUN_ONCE

While there, perform a small cleanup in README.

Patch by <Siddharth Muralee>
Polishing by myself.

(kamil)

2018-04-13 17:43:37 UTC MAIN commitmail json YAML

Document "debug" in usage().

(maxv)

2018-04-13 14:31:35 UTC MAIN commitmail json YAML

[bsd-family-tree] announce OpenBSD 6.3 & DragonFly 5.2.0

ok pgoyette@ maya@

(eadler)

2018-04-13 11:32:44 UTC MAIN commitmail json YAML

Localify global variables, style, and add two XXXs.

(maxv)

2018-04-13 11:24:34 UTC MAIN commitmail json YAML

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

Add XXX, using a pool would be better than kmem.

(maxv)

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

Release the lock a little earlier.

(maxv)

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

2018-04-13 09:35:10 UTC MAIN commitmail json YAML

I354 uses an external PHY, so don't use wm_set_eee_i350().

(msaitoh)

2018-04-13 09:34:20 UTC MAIN commitmail json YAML

Remove duplicate, to better show that this place doesn't make a lot of
sense. The code should probably be removed, it's a leftover from when we
had #ifdef __FreeBSD__.

(maxv)

2018-04-13 09:29:04 UTC MAIN commitmail json YAML

Improve the check, we want to have len >= udphdr all the time, and not
just when the packet size doesn't match the mbuf size.

Normally that's not a huge problem, since IP6_EXTHDR_GET gets called
earlier, so we can't have

(ip_len == iphlen + len) && (len < sizeof(struct udphdr))

(maxv)

2018-04-13 09:21:16 UTC MAIN commitmail json YAML

make this narrower by popular request.

(christos)

2018-04-13 09:00:29 UTC MAIN commitmail json YAML

Remove useless comment and style.

(maxv)

2018-04-13 08:55:50 UTC MAIN commitmail json YAML

Add XXX. In fact, it would be better, if all the fragments were offloaded,
to quickly recompute the checksum on the fly, and keep it in the mbuf
header.

(maxv)

2018-04-13 08:47:46 UTC MAIN commitmail json YAML

Reduce the diff between similar blocks.

(maxv)

2018-04-13 08:44:41 UTC MAIN commitmail json YAML

Add a KASSERT, we want M_PKTHDR.

(maxv)

2018-04-13 08:12:51 UTC MAIN commitmail json YAML

Reorder a few instructions to clarify. Replace two bcopy by memcpy.

(maxv)

2018-04-13 08:01:23 UTC MAIN commitmail json YAML

- ichsmb(4), puc(4): add new devices.
- Add missing comma.

(msaitoh)

2018-04-13 07:57:04 UTC MAIN commitmail json YAML

Add 300 series chipset support.

(msaitoh)

2018-04-13 07:36:11 UTC MAIN commitmail json YAML

No, fix previous.

(maxv)

2018-04-13 07:30:46 UTC MAIN commitmail json YAML

Improve comment.

(maxv)

2018-04-13 06:15:26 UTC MAIN commitmail json YAML

GCC build exceeds the macOS clang default bracket nesting level of 256.
Work around with -fbracket-depth=512.

From potr in PR toolchain/53178.

(snj)

2018-04-13 06:07:20 UTC MAIN commitmail json YAML

Enable I219 by default.

(msaitoh)

2018-04-13 06:04:12 UTC MAIN commitmail json YAML

2018-04-13 01:49:47 UTC MAIN commitmail json YAML

Correct discrepancy with the Multiboot specification

The VBE mode was missing, and the types of the subsequent VBE members
were also wrong. Nothing in NetBSD's base seems to be using this, and
therefore nothing is expected to break as a result of this fix, or any
binary to change for that matter.
The latest specification (as of today) can be found at:
https://www.gnu.org/software/grub/manual/multiboot/multiboot.html

This was already reported in misc/52366, and addresses part of it.

Patch sent to port-i386@. Build-tested on NetBSD/amd64.

(khorben)

2018-04-13 01:20:28 UTC MAIN commitmail json YAML

Add new example kernel module: sysctl

sysctl - demonstrates adding a sysctl handle dynamically.

Patch by <Siddharth Muralee>
Polishing by myself.

(kamil)

2018-04-13 01:14:19 UTC MAIN commitmail json YAML

fix some more missing depends issues.  remove various wrong/old depends.

fixes issues i was able to trigger manually by building specific files.

more for PR#53137.

(mrg)

2018-04-12 22:33:41 UTC pgoyette-compat commitmail json YAML

2018-04-12 21:39:00 UTC MAIN commitmail json YAML

2018-04-12 21:14:53 UTC MAIN commitmail json YAML

PR/53177: David Binderman: Better error handling

(christos)

2018-04-12 20:49:08 UTC MAIN commitmail json YAML

ignore the ancient NetBSD emulation tag.

(christos)

2018-04-12 20:48:42 UTC MAIN commitmail json YAML

There have never been binaries with a checksum tag for NetBSD.
These days the equivalent functionality is provided by the build
id tag. It was incorrect in the first place to overload tag #2
(which used to be the emulation name) with a different meaning, so
actually document the meaning that was once used (because binaries
with that tag exist).

Tag existance noticed by kre@

(christos)

2018-04-12 20:44:16 UTC MAIN commitmail json YAML

fix the hard coded depends list for insn-*.  i pulled these out
of the generated .d files for a successful build.  i've tested
that at least one recent macppc build failure is fixed with this
change (namely, try building just insn-emit.o in this subdir),
but the pattern should fix anything else left in insn*.

this really should finally fix PR#53137.

(mrg)

2018-04-12 20:43:44 UTC MAIN commitmail json YAML

let the modular code load the sysv modules.

(christos)

2018-04-12 20:37:00 UTC MAIN commitmail json YAML

If we are modular, allow us to use modules for compat; don't load all the
compat code in.

(christos)

2018-04-12 20:09:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #713):
sys/secmodel/extensions/secmodel_extensions.c: 1.8
Add new sysctl(3) entry: security.models.extensions.user_set_dbregs
Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same
level of sysctl(3) switches.
Allow to read unconditionally Debug Registers (no change here). This is
convenient as even if a user of a debugger does not use hardware assisted
watchpoints/breakpoints, a debugger can still prompt these values to store
in an internal cache with context of registers. Reading them should have
no security concerns.
Add a paranoid MI switch that prohibits by default setting these registers
by a regular user (non-superuser). Make this switch disabled by default.
There are enough reserved bits out there to allow using them
unconditionally on hardened hosts.
Features shipped with Debug Registers are optional features in debuggers.
There is no reduction in elementary functionality.
Reviewed by <christos>
Sponsored by <The NetBSD Foundation>

(snj)

2018-04-12 19:12:25 UTC MAIN commitmail json YAML

fix year for the tls-maxphys resync

(jdolecek)