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


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




switch to index mode

recent branches: MAIN (2h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 16:47:55 UTC Now

2018-06-03 07:54:51 UTC MAIN commitmail json YAML

Add characters in "Emoji & Pictographs" from Unicode 10.0.0:
  http://www.unicode.org/charts/

They are classified as PUNCT, which is historically used for characters other
than blank, alphabetic, or digit ones.

Glyph widths are taken from "East Asian Width":
  https://www.unicode.org/Public/10.0.0/ucd/EastAsianWidth.txt
Characters of "F" or "W" are classified to SWIDTH2, and others are classified
to SWIDTH1, as implicitly done in the previous revisions.

Should address problems like PR bin/53323.

Discussed with soda@. We thank Takuya SHIOZAKI (tshiozak@) for useful comments.

(rin)

2018-06-03 07:24:18 UTC MAIN commitmail json YAML

Enable Synaptics multifinger capability (Extended W mode)

Magic parameters are taken from
  https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller/.
Tested on HP ProBook 4630s, Lenovo E530, VAIO Pro 11 and HP Spectre x360 ae.

(ryoon)

2018-06-03 05:55:08 UTC MAIN commitmail json YAML

2018-06-03 05:29:27 UTC MAIN commitmail json YAML

top(1): revert 1.11

This change breaks the expectations of users that would like a coredump
of top(1). Other similar applications such as vmstat(1) don't do this.
Since the change was just a courtesy, revert.

(eadler)

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

Fix MKFIRMWARE description.

(wiz)

2018-06-03 04:38:12 UTC MAIN commitmail json YAML

Fix MKSANITIZER default in description.

(wiz)

2018-06-03 03:05:56 UTC MAIN commitmail json YAML

avoid calling kpause() with a delay of 0.

(chs)

2018-06-03 02:13:09 UTC MAIN commitmail json YAML

remove trailing whitespace

(jakllsch)

2018-06-03 01:55:17 UTC MAIN commitmail json YAML

Update sets lists for new MLINKS for module(9)

(pgoyette)

2018-06-03 01:52:48 UTC MAIN commitmail json YAML

Also add new entries in the .Nm list, and update Makefile to actually
build the MLINKS

(pgoyette)

2018-06-03 01:50:28 UTC MAIN commitmail json YAML

Add documentation on the module_{,un}register_callbacks() routines.

XXX Still need to document the module_specificdata_* stuff, which
XXX needs to refer to a non-existent specificdata(9) man page!

(pgoyette)

2018-06-03 01:08:55 UTC MAIN commitmail json YAML

Remove unnecessary include

(jmcneill)

2018-06-02 22:43:15 UTC MAIN commitmail json YAML

2018-06-02 22:30:20 UTC MAIN commitmail json YAML

top(1): chdir to / at init

This allows us to unmount whatever directory we happen to be in when we
started top(1).

ok phone

(eadler)

2018-06-02 22:25:30 UTC MAIN commitmail json YAML

make his freestanding.

(christos)

2018-06-02 21:17:06 UTC MAIN commitmail json YAML

2018-06-02 21:15:33 UTC MAIN commitmail json YAML

Apple Bluetooth adapter, as found on the G4 PowerBook FW-800 (PowerBook5,2)
ubt0: Apple Computer (0x5ac) product 8203 (0x8203), rev 1.10/5.26, addr 2

(sevan)

2018-06-02 20:07:15 UTC MAIN commitmail json YAML

just include <sys/mutex.h> for mkioctls.  this works fine for me
for several platforms and fixes the clang build.

(mrg)

2018-06-02 19:28:39 UTC MAIN commitmail json YAML

Enabled IPsec & ipsecif(4) support by default.

ok macallan

(sevan)

2018-06-02 19:08:34 UTC MAIN commitmail json YAML

gem(4) can also be connected to makphy(4), as found on a G4 PowerBook
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
gem0: interrupting at irq 41
makphy0 at gem0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 1
gem0: Ethernet address 00:0a:95:xx:xx:xx, 10KB RX fifo, 4KB TX fifo

(sevan)

2018-06-02 18:46:34 UTC MAIN commitmail json YAML

- Remove more extraneous includes to avoid circular dependencies with the
  real header files.
- Add <sys/errno.h> to <sys/systm.h> to avoid changing the source, but
  it should really belong to the source.

(christos)

2018-06-02 18:11:26 UTC MAIN commitmail json YAML

disable sanitizers and relro

(christos)

2018-06-02 15:47:22 UTC MAIN commitmail json YAML

don't include <sys/proc.h>

(christos)

2018-06-02 15:24:55 UTC MAIN commitmail json YAML

add missing boilerplate for UVMHIST.

(chs)

2018-06-02 15:19:45 UTC MAIN commitmail json YAML

Sanitizers don't support static linking.

(christos)

2018-06-02 15:09:37 UTC MAIN commitmail json YAML

Disable sanitizers for the kernel.

(christos)

2018-06-02 14:31:40 UTC MAIN commitmail json YAML

2018-06-02 14:30:35 UTC MAIN commitmail json YAML

2018-06-02 14:30:07 UTC MAIN commitmail json YAML

2018-06-02 13:30:32 UTC MAIN commitmail json YAML

fix CVS keyword in __KERNEL_RCSID

(jakllsch)

2018-06-02 11:56:57 UTC MAIN commitmail json YAML

Copy more mbuf flags.

(maxv)

2018-06-02 09:45:56 UTC MAIN commitmail json YAML

Note import of dhcpcd-7.0.5

(roy)

2018-06-02 09:44:27 UTC MAIN commitmail json YAML

2018-06-02 05:55:47 UTC MAIN commitmail json YAML

Update calendar files for the upcoming NetBSD 8.0 release.  I'm
assuming that it will be released by August 1, which is two months
from now.  Thus I used 2018 dates for all holidays between Aug.
1st and Dec. 31st, and 2019 dates for all holidays between Jan.
1st and Jul. 31st.

(jnemeth)

2018-06-02 03:02:30 UTC MAIN commitmail json YAML

Move the RELRO and the SANITIZER stuff outside of the WARNS conditional!

(christos)

2018-06-02 01:41:49 UTC MAIN commitmail json YAML

Add build glue to build all the code with sanitizers: MKSANITIZE.

(christos)

2018-06-02 01:40:52 UTC MAIN commitmail json YAML

Don't warn about undefined symbols when we sanitize, since we are not linking
against the sanitizers.

(christos)

2018-06-02 01:40:02 UTC MAIN commitmail json YAML

Don't add a dynamic dependency to the sanitizer shared libaries in other
shared libraries.

(christos)

2018-06-02 01:38:41 UTC MAIN commitmail json YAML

2018-06-02 01:19:46 UTC MAIN commitmail json YAML

Use a constant to prevent dynamic array allocation which messes up SSP.

(christos)

2018-06-01 22:11:54 UTC MAIN commitmail json YAML

2018-06-01 21:46:19 UTC MAIN commitmail json YAML

commit some note updates i wrote last august.

(mrg)

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

include <sys/param.h> for the cddl proc.h vs our lwp.h.

this fixes build issues with cats/netwinder since the zfs/dtrace update.

(mrg)

2018-06-01 19:19:54 UTC MAIN commitmail json YAML

Fix support for 8192eu, notably TPLINK TL-WN823NV2, by using the right
registers when setting receiver gain.

Ok christos@.

(nat)

2018-06-01 19:17:04 UTC MAIN commitmail json YAML

Add another register as found on 8192eu.

(nat)

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

add functions to access SCOM registers on 970 CPUs

(macallan)

2018-06-01 18:14:33 UTC MAIN commitmail json YAML

set ATACH_DMA_BEFORE_CMD

(macallan)

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

add a flag to start DMA before issuing commands - needed to work around a bug
in some SATA chips which get confused if the disk responds too fast
Mostly for K2 SATA / svwsata found in G5 Macs
adapted from OpenBSD

(macallan)

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

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

Defer display hardware reset to pipeline activation. This way, if we have a
pipeline setup which we can't manage, the simple framebuffer will keep working.

(bouyer)

2018-06-01 16:13:08 UTC MAIN commitmail json YAML

enable svwsata now that it works properly

(macallan)

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

another G5-specific fix - do a 32bit read of the status register before
checking for channel interrupts. No more interrupt storms.
Adapted from FreeBSD

(macallan)

2018-06-01 13:42:14 UTC MAIN commitmail json YAML

Fix a paste-o that prevented the 2-pin interrupt messages from being
printed correctly (but no other harmful effects).  Pointed out by
Brad Spencer.

(thorpej)

2018-06-01 09:34:39 UTC MAIN commitmail json YAML

Fix M_PKTHDR use in if_alc, if_age and if_ena.

if_alc and if_age always put in _rxhead a M_PKTHDR-flagged mbuf, so the
flag must always be present. Instead of manually adding the flag, add a
KASSERT to ensure it is already there. If it weren't, there would be
memory corruptions.

Same in if_ena, but this one does not compile so we don't really care.

Also, use m_remove_pkthdr to remove the flag, instead of doing it
manually. This ensures the tags get freed (even though these drivers
don't seem to be using mtags).

(maxv)

2018-06-01 09:10:52 UTC MAIN commitmail json YAML

Use m_remove_pkthdr() instead of "&= ~M_PKTHDR", to ensure the tags get
freed. Several other drivers have this problem it seems...

(maxv)

2018-06-01 08:56:01 UTC MAIN commitmail json YAML

Rename

M_CSUM_DATA_IPv6_HL -> M_CSUM_DATA_IPv6_IPHL
M_CSUM_DATA_IPv6_HL_SET -> M_CSUM_DATA_IPv6_SET

Reduces the diff against IPv4. Also, clarify the definitions.

(maxv)

2018-06-01 08:04:57 UTC MAIN commitmail json YAML

2018-06-01 07:26:15 UTC MAIN commitmail json YAML

Pass the address of the array, this fixes issues with i386 compilation

(reinoud)

2018-06-01 07:22:33 UTC MAIN commitmail json YAML

Compile NetBSD/userland without CTF for the linker doesn't allow for a single
file compiled without CTF

(reinoud)

2018-06-01 07:19:50 UTC MAIN commitmail json YAML

Fix compilation errors so NetBSD/usermode compiles under ./build.sh

(reinoud)

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

Make sure to remove all AF_LINK addresses in if_detach

(ozaki-r)

2018-06-01 07:14:14 UTC MAIN commitmail json YAML

Make sure to not change if_hwdl once set

(ozaki-r)

2018-06-01 07:13:35 UTC MAIN commitmail json YAML

Fix _rt_free via rtrequest(RTM_DELETE) hangs in rt_timer handlers

A rt_timer handler is passed a rtentry with an extra reference that avoids the
rtentry is accidentally released.  So rt_timer handers must release the reference
of a passed rtentry by themselves (but they didn't).

(ozaki-r)

2018-06-01 05:48:29 UTC MAIN commitmail json YAML

80 column police.  Some KNF and whitespace corrections (until I got bored...)
NFCI.

(kre)

2018-06-01 01:21:02 UTC MAIN commitmail json YAML

2018-06-01 01:19:06 UTC MAIN commitmail json YAML

disable a few more things and return another 1% of memory.

(mrg)

2018-06-01 00:56:19 UTC MAIN commitmail json YAML

Avoid duplicate typedefs so these headers can be used
as part of tools build, when the base system compiler does
not allow duplicate type definitions.

Someone please fix this some better way than this!

(kre)

2018-06-01 00:42:49 UTC MAIN commitmail json YAML

PR/50893: Bruce Lilly: Handle carp interfaces.

XXX: pullup-8 (in src/external/bsd/dhcp/dist/common/bpf.c)

(christos)

2018-05-31 23:46:59 UTC MAIN commitmail json YAML

the previous change doubled the check for pascal.  fix it so
that we only check for later maxwell and pascal once each,
as intended.

(mrg)

2018-05-31 23:22:50 UTC MAIN commitmail json YAML

docpureset() doesn't return anything, so mark it void.
(probably could also be __dead.)

(mrg)

2018-05-31 22:44:13 UTC MAIN commitmail json YAML

convert Lfp_null_fpstate (which is invoked if savefpstate() is called
with NULL) into a panic for DIAGNOSTIC kernels.

(mrg)

2018-05-31 22:26:37 UTC MAIN commitmail json YAML

it's called VM_MAXUSER_ADDRESS32 not VM_MAXUSER32_ADDRESS.

fixes mips64 builds, and likely fixes riscv when it happens again.

(mrg)

2018-05-31 20:52:53 UTC MAIN commitmail json YAML

sunxi_gpio_release: hold lock around call to sunxi_gpio_ctl

(jmcneill)

2018-05-31 15:41:11 UTC MAIN commitmail json YAML

Add XXX for NULL deref. Not sure how to fix it, not sure we care either...

(maxv)

2018-05-31 15:34:25 UTC MAIN commitmail json YAML

Clarify, remove superfluous things.

(maxv)

2018-05-31 15:06:45 UTC MAIN commitmail json YAML

Adapt rev1.75, suggested by Alexander Bluhm. Relax the checks to allow
protocols smaller than two bytes (only IPPROTO_NONE). While here style.

(maxv)

2018-05-31 13:51:57 UTC MAIN commitmail json YAML

Remove the non-IKE part of the computation, too.

(maxv)

2018-05-31 10:14:21 UTC MAIN commitmail json YAML

Fix read of unitialized array elements in top(1)

The cp_old array is allocated with malloc(3) and its pointer is passed to
percentages64().

In this function there happens a calculation of total_change, which value
depends on the value inside the unitialized cp_old[] array.

==26662==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x268a2c in percentages64 /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:1341:6
#1 0x26748b in get_system_info /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:478:6
#2 0x25518e in do_display /usr/src/external/bsd/top/bin/../dist/top.c:507:5
#3 0x253038 in main /usr/src/external/bsd/top/bin/../dist/top.c:975:2
#4 0x21cad1 in ___start (/usr/bin/top+0x1cad1)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:1341:6 in percentages64
Exiting

Fix this issue by changling malloc(3) with calloc(3).

Detected with Memory Sanitizer during the integration of sanitizers with
the NetBSD basesystem.

Reported by <Yang Zheng>

(kamil)

2018-05-31 09:37:16 UTC MAIN commitmail json YAML

implement properly branch_taken() and inst_unconditional_flow_transfer().

(ryo)

2018-05-31 09:31:39 UTC MAIN commitmail json YAML

fix XORG_PKG_PACKAGE_NAME to not include multiple quotes for PACKAGE_NAME,
and add a XORG_PKG_RELEASE_DATE to define RELEASE_DATE.

(mrg)

2018-05-31 09:20:05 UTC MAIN commitmail json YAML

Fix unitialized signal mask passed to sigaction(2) in top(1)

Detected with Memory Sanitizer during the integration of sanitizers with
the NetBSD basesystem.

Reported by <Yang Zheng>

(kamil)

2018-05-31 09:18:31 UTC MAIN commitmail json YAML

disable matching nouveau on pascal and the second generation of maxwell
cards that are not supported by this version of drm.

this should fix various modern systems vs nvidia issues, eg PR 53188.

XXX: pullup-7, pullup-8.

(mrg)

2018-05-31 09:12:12 UTC MAIN commitmail json YAML

2018-05-31 09:11:47 UTC MAIN commitmail json YAML

add a bunch of nvidia devices from various generations.

(mrg)

2018-05-31 09:09:32 UTC MAIN commitmail json YAML

2018-05-31 09:08:26 UTC MAIN commitmail json YAML

2018-05-31 07:37:45 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2018-05-31 07:36:25 UTC MAIN commitmail json YAML

Fix a typo in the example properties

(pgoyette)

2018-05-31 07:16:17 UTC MAIN commitmail json YAML

Disable draft_00 in racoon, discussed on tech-net@ and now in PR/53334.
While here clarify the comments, no #undef.

No need to increase the library version I guess, since draft_00 is not
used in libipsec.

(maxv)

2018-05-31 07:03:57 UTC MAIN commitmail json YAML

Remove support for non-IKE markers in the kernel. Discussed on tech-net@,
and now in PR/53334. Basically non-IKE markers come from a deprecated
draft, and our kernel code for them has never worked.

Setsockopt will now reject UDP_ENCAP_ESPINUDP_NON_IKE.

Perhaps we should also add a check in key_handle_natt_info(), to make
sure we also reject UDP_ENCAP_ESPINUDP_NON_IKE in the SADB.

(maxv)

2018-05-31 06:25:41 UTC MAIN commitmail json YAML

Constify ipseczeroes, and remove one use of it.

(maxv)

2018-05-31 06:14:18 UTC MAIN commitmail json YAML

Add a comment and a KASSERT. I remember wondering whether this check was a
problem, since ARC4 has a blocksize of one. Normally ARC4 can't be used in
IPsec.

(maxv)

2018-05-31 05:52:09 UTC MAIN commitmail json YAML

2018-05-31 05:27:46 UTC MAIN commitmail json YAML

introduce MKFIRMWARE that controls where (most) of the contents
of /libdata/firmware and /usr/libdata/firmware are not installed
if set to "no".  from the bsd.README:

MKFIRMWARE      If "no", install the /libdata/firmware directory,
which is necessary for several drivers: athn(4), bwfm(4),
ipw(4), iwi(4), iwm(4), iwn(4), otus(4), rtwn(4), urtwn(4),
wpi(4), ral(4), rum(4), run(4), zyd(4), bcm43xx(4), and
the Tegra 124 SoC.
Default: yes on amd64, cobalt, evbarm evbmips, evbppc, hpcarm,
hppa, i386, mac68k, macppc, sandpoint, and sparc64, no elsewhere.

convert MKRADEONFIRMWARE and MKTEGRAFIRMWARE into FOO.arch lists,
and move their defaults above the general defaults setting.

saves about 12MB in a normal installation for other platforms.

(mrg)

2018-05-31 03:29:01 UTC MAIN commitmail json YAML

Fix the bit location of SSBD in the macro for snprintb.

(msaitoh)

2018-05-31 02:50:38 UTC MAIN commitmail json YAML

2018-05-31 02:50:14 UTC MAIN commitmail json YAML

- Add some Intel 82965 devices.
- Change Intel 0x2a06 from IDE to IDER

(msaitoh)

2018-05-31 02:10:23 UTC MAIN commitmail json YAML

Relax a lock check in if_mcast_op unless NET_MPSAFE

It seems that there remain some paths that don't satisfy the constraint that is
required only if NET_MPSAFE.  So don't check it by default.

One known path is nd6_rtrequest => in6_addmulti => if_mcast_op, which is not
easy to address.

(ozaki-r)

2018-05-31 00:25:38 UTC MAIN commitmail json YAML

Fix build with MKCATPAGES=yes

zpool-features.8 -> zpool-features.0

(kamil)

2018-05-30 23:54:03 UTC MAIN commitmail json YAML

Simplify comparison of two processes

No need to check p_pid to compare whether two processes are the same.

No functional change intended.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-30 23:41:44 UTC MAIN commitmail json YAML

Avoid widowed signal numbers.

(uwe)

2018-05-30 23:24:13 UTC MAIN commitmail json YAML

Shorten pleonastic "by the tty driver tty(4)".

(uwe)

2018-05-30 20:54:08 UTC MAIN commitmail json YAML

2018-05-30 18:02:41 UTC MAIN commitmail json YAML

Correctly handle the padding for IPv6-AH, as specified by RFC4302. Seen in
a FreeBSD bug report, by Jason Mader.

The RFC specifies that under IPv6 the complete AH header must be 64bit-
aligned, and under IPv4 32bit-aligned. That's a rule we've never respected.
The other BSDs and MacOS never have either.

So respect it now.

This makes it possible to set up IPv6-AH between Linux and NetBSD, and also
probably between Windows and NetBSD.

Until now all the tests I made were between two *BSD hosts, and everything
worked "correctly" since both hosts were speaking the same non-standard
AHv6, so they could understand each other.

Tested with Fedora<->NetBSD, hmac-sha2-384.

(maxv)

2018-05-30 17:48:13 UTC MAIN commitmail json YAML

Add a comment for the workaround in trigger_bus()

Explain PROT_READ|PROT_WRITE.

(kamil)

2018-05-30 17:31:34 UTC MAIN commitmail json YAML

Make the trigger_bus() test compatible with more CPUs (at least ALPHA)

If we write a byte character into a pointer, a compiler can emit a
read-modify-write operation, especially when a CPU cannot access directly
a character wide address.

In this scenario calling mmap(2) with PROT_WRITE, without PROT_READ will
emit unexpected trap.

There are two possible workarounds for this issue:
- write register wide memory without rmw sequence,
- mark the region with additional protection PROT_READ

Both work for NetBSD/alpha.

Go for the latter as perhaps more safe for dump compilers emitting rmw
sequences.

Investigated by <martin>

(kamil)

2018-05-30 17:17:11 UTC MAIN commitmail json YAML

Introduce ah_authsiz, which computes the length of the ICV only. Use it in
esp_hdrsiz, and clarify.

Until now we were using ah_hdrsiz, and were relying on the fact that the
size of the AH header happens to be equal to that of the ESP trailer.

Now the size of the ESP trailer is added manually. This also fixes one
branch in esp_hdrsiz: we always append an ESP trailer, so it must always
be taken into account, and not just when an ICV is here.

(maxv)

2018-05-30 16:49:38 UTC MAIN commitmail json YAML

Apply the previous change in esp_input too, same as esp_output.

(maxv)

2018-05-30 16:43:29 UTC MAIN commitmail json YAML

Remove dead code, 'espx' is never NULL and dereferenced earlier, so no need
to NULL-check all the time.

(maxv)

2018-05-30 16:32:26 UTC MAIN commitmail json YAML

Simplify the padding computation. Until now 'padlen' contained the ESP
Trailer (two bytes), and we were doing minus two all the time.

Declare 'tlen', which contains padlen+ESP_Trailer+ICV, and use 'struct
esptail' instead of hardcoding the construction of the trailer. 'padlen'
now indicates only the length of the padding, so no need to do -2.

(maxv)

2018-05-30 16:15:19 UTC MAIN commitmail json YAML

Rename padding -> padlen, pad -> tail, and clarify.

(maxv)

2018-05-30 13:20:39 UTC MAIN commitmail json YAML

Remove double and trailing whitespaces

(ryoon)

2018-05-30 09:17:17 UTC MAIN commitmail json YAML

Add hw.ixgN.debug sysctl. "sysctl -w hw.ixgN.debug=1" dumps some registers
to console.

(msaitoh)

2018-05-30 08:35:27 UTC MAIN commitmail json YAML

Clear que->disabled_count in {ixgbe,ixv}_init_locked(). Without this,
interrupt mask state and EIMS may mismatch and if_init doesn't recover
from TX/RX stall problem.

This change itself doesn't fix PR#53294.

(msaitoh)

2018-05-30 05:09:12 UTC MAIN commitmail json YAML

The bytes_transfer_piod_read_auxv test uses 4096 for the size param
to bytes_transfer() which asserted that the size is < the size of 512 AuxInfo
structs.  On a 32 bit system, an AuxInfo is 8 bytes, and 512 AuxInfo
structs is thus 4096 bytes, and 4096 is not < 4096, so the assertion
failed.  It would probably work as a <= assert, but I am not confident
enough with this test case to make that call, so instead increase the
array size to be 513 instead, 4096 is < 513*8 so happiness should return
and all should be right with the world.  At least for this one test.
(There was no problem on 64 bit systems as AuxInfo is bigger there.)

(kre)

2018-05-29 23:34:18 UTC MAIN commitmail json YAML

Harden PT_ATTACH in ptrace(2)

Don't allow to PT_ATTACH from a vfork(2)ed child (before exec(3)/_exit(3))
to its parent. Return error with EPERM errno.

This scenario does not have a purpose and there is no clear picture how to
route signals.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-29 19:45:31 UTC MAIN commitmail json YAML

Add AltGr modifier for brazilian abnt2 keymap.
Fixes PR misc/50147 by Vicente Chaves.

(zafer)

2018-05-29 17:21:57 UTC MAIN commitmail json YAML

Fix an XXX of mine, be clearer about what we're doing. Basically we want to
preserve the fragment offset and flags. That's necessary if the packet
we're fragmenting is itself a fragment.

(maxv)

2018-05-29 16:53:56 UTC MAIN commitmail json YAML

Introduce new example kernel module: panic_string

The panic_string module accepts input from a device file over the write(2)
system call.

It prints panic(9) message passed from user space, e.g.:

  echo "Hello world" > /dev/panic

If a string is empty or contain only whitespaces it's ignored and panic(9)
is not triggered. If a non printable character is passed within the input
buffer, the rest of the string is ignored.

This module performs the sync(8) operation before panic(9) to flush cache.

Submitted by Harry Pantazis.
Simplified and cleaned up by myself.

(kamil)

2018-05-29 16:50:38 UTC MAIN commitmail json YAML

Strengthen and simplify, once more.

(maxv)

2018-05-29 16:29:47 UTC MAIN commitmail json YAML

Remove aarp_clean, unused. By the way this function was probably buggy
since it didn't reset aat_hold to NULL.

(maxv)

2018-05-29 16:24:34 UTC MAIN commitmail json YAML

Remove an XXX of mine, actually it's fine. While here also remove a
misleading printf.

(maxv)

2018-05-29 16:21:30 UTC MAIN commitmail json YAML

Remove dead code, we don't care.

(maxv)

2018-05-29 14:29:53 UTC MAIN commitmail json YAML

Use proper forward declaration for kmutex_t. This makes MKDTRACE=no builds
work again.

(martin)

2018-05-29 13:10:28 UTC MAIN commitmail json YAML

Ooops, backout previous - it was an update build artifact (or something)

(martin)

2018-05-29 11:38:24 UTC MAIN commitmail json YAML

2018-05-29 11:18:50 UTC MAIN commitmail json YAML

Backout previous: "typedef void *kmutex_t;
is incompatible with our kmutex_t and breaks the build. ZFS will need
to find a better way to work around this.

(martin)

2018-05-29 10:40:54 UTC MAIN commitmail json YAML

Add new ATF ptrace(2) tests verifying crash signal handling

Add new tests:
- traceme_crash_trap
- traceme_crash_segv
- traceme_crash_ill (temporarily disabled)
- traceme_crash_fpe
- traceme_crash_bus
- unrelated_tracer_sees_crash_trap
- unrelated_tracer_sees_crash_segv
- unrelated_tracer_sees_crash_ill (temporarily disabled)
- unrelated_tracer_sees_crash_fpe
- unrelated_tracer_sees_crash_bus

These tests verify two subtle kernel paths that differ internally:
- for a tracer that is a parent of a traced program (and not vforked)
  real parent == tracer
- for a tracer that is an unrelated process of a traced program
  real parent != tracer

Regressions in the signal code can cause to break one of the scenarios, and
keep working the other one. It might be propagated to a scenario like:
- attaching to a process with a debugger (over pid)
- starting a process inside a debugger

We can assert on the ATF level that both will be functional.

While there, cover all the crash signals as testing is done practically
for free. While the Machine Independent signal routing code for crash
signals is mostly the same in the kernel, we can verify whether Machine
Dependent parts works as expected emitting the proper signal number and
signal code (si_code).

There have been already caught an unexpected behavior on Alpha, that
instead of SIGBUS we receive SIGSEGV.

Another benefit is that it's easier to catch races, as they pop up more
frequently. (This already helped to catch bugs more quickly)

These tests will help assert correctness of future kernel changes in the
signal routines.

All tests pass.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-29 09:25:44 UTC MAIN commitmail json YAML

Fix non-INET6 builds

(ozaki-r)

2018-05-29 09:25:01 UTC MAIN commitmail json YAML

Only report the things we've passed in the mcontext and leave out flags that
are not reported in the mcontext anyway!

(reinoud)

2018-05-29 09:10:39 UTC MAIN commitmail json YAML

Mark in6m as used for non-DIAGNOSTIC builds.

(prlw1)

2018-05-29 08:37:33 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2018-05-29 08:24:59 UTC MAIN commitmail json YAML

Replace KASSERT by m_pullup. While the ethernet header is always there
when the packet was received on a physical interface, it may not be if
the packet was received over L2TP/EtherIP.

In particular, if the inner ethernet header ends up on two separate IP
fragments. Here the KASSERT is triggered, and on !DIAGNOSTIC we corrupt
memory.

Note that this is a widespread problem: a lot of L2 code was written with
the assumption that "most" headers are present in the first mbuf.
Obviously, that's not true if L2 encapsulation is being used.

(maxv)

2018-05-29 07:35:40 UTC MAIN commitmail json YAML

Implement cpu_lwp_setprivate(). This removes the need for the cpu_switch()
hack.

Programs with TLS work fine now, including gdb!

(reinoud)

2018-05-29 07:09:22 UTC MAIN commitmail json YAML

Only set requested parts of the mcontext in cpu_setmcontext()
Make the atomic switcher `atomic' by using splhigh()

(reinoud)

2018-05-29 06:14:34 UTC MAIN commitmail json YAML

fix off-by-one in the mapping of the ISA DMA page registers, they actually
start at 0x81; the code used bus_space_map() starting from 0x80 but
used +1 offset for actual I/O, now it maps starting 0x81 and does I/O
without offset

the reads and writes work exactly the same as before, but this frees
0x80 for being mapped independantly

patch provided in PR kern/52468 by Jonathan Chapman; checked against the spec
and also FreeBSD sys/x86/isa/isa_dma.c

(jdolecek)

2018-05-29 06:07:26 UTC MAIN commitmail json YAML

2018-05-29 04:45:50 UTC MAIN commitmail json YAML

Reviewd by ohishi@IIJ. Sorry, I jumped the gun and committed.

Fix the following two issues.
    - remove extra padding of sizeof(xisr) when adding ipsec policy
    - add padding for xpl when adding discard policy

(knakahara)

2018-05-29 04:39:26 UTC MAIN commitmail json YAML

Avoid double LIST_REMOVE which corrupts lists

(ozaki-r)

2018-05-29 04:38:59 UTC MAIN commitmail json YAML

Move LIST_REMOVE

mld_stoptimer releases in6_multilock temporarily, so we must LIST_REMOVE first.

(ozaki-r)

2018-05-29 04:38:29 UTC MAIN commitmail json YAML

2018-05-29 04:37:58 UTC MAIN commitmail json YAML

Make a refcount decrement and a removal from a list of an item atomic

in6m_refcount of an in6m can be incremented if the in6m is on the list
(if_multiaddrs) in in6_addmulti or mld_input.  So we must avoid such an
increment when we try to destroy an in6m.  To this end we must make
an in6m_refcount decrement and a removal of an in6m from if_multiaddrs
atomic.

(ozaki-r)

2018-05-29 04:37:16 UTC MAIN commitmail json YAML

Avoid NULL pointer dereference on imm->i6mm_maddr

(ozaki-r)

2018-05-29 04:36:48 UTC MAIN commitmail json YAML

Improve atomicity of in6_leavegroup and in6_delmulti

(ozaki-r)

2018-05-29 04:36:15 UTC MAIN commitmail json YAML

Release in6_multilock on callout_halt of mld_timeo to avoid a deadlock

(ozaki-r)

2018-05-29 04:35:28 UTC MAIN commitmail json YAML

Don't hold softnet_lock in mld_timeo

Then we can get rid of remaining abuses of mutex_owned(softnet_lock).

(ozaki-r)

2018-05-29 03:38:25 UTC MAIN commitmail json YAML

Fix panic when ipsecif(4) adds discard policy. Pointed out by ohishi@IIJ, thanks.

(knakahara)

2018-05-29 02:53:24 UTC MAIN commitmail json YAML

Add ABRT, AER, BERT, CMC, COS, CPE, CPER, CRUD, EDAC, EINJ, ERST, ESB,
    GHES, GIC, HATEOAS, HECI, HEST, IPMB, IPMI, ITP, JSON, KCS, MD-SAL,
    MQTT, (another) MSR, OAM, PCE, (another) SAL, SAX, SDEI, SEA, SLAAC,
    SMB, SNIA, SVI, TSDB, (another) VID, WAMP, YANG

(ginsbach)

2018-05-29 02:42:34 UTC MAIN commitmail json YAML

2018-05-29 01:09:49 UTC MAIN commitmail json YAML

Build fix attempt, use TOOL_AWK (with fallback to "awk") rather than "nawk".

(kre)

2018-05-28 23:47:40 UTC MAIN commitmail json YAML

add some new files missed by my script:
merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().

(chs)

2018-05-28 22:28:56 UTC MAIN commitmail json YAML

Add new module(9) links to the sets lists

(pgoyette)

2018-05-28 22:25:12 UTC MAIN commitmail json YAML

Add man-page links for new module_* accessor functions

(pgoyette)

2018-05-28 22:22:54 UTC MAIN commitmail json YAML

Partial update for new module interfaces.  This update addresses the
new accessor functions and changes to module_hold() and module_rele(),
and fixes the prototype of each module's xxx_modcmd() function.

We still need updates related to the "specificdata" and callback
changes:

    specificdata_key_t module_specific_key_create(specificdata_key_t *,
specificdata_dtor_t);
    void  module_specific_key_delete(specificdata_key_t);
    void  *module_getspecific(module_t *, specificdata_key_t);
    void  module_setspecific(module_t *, specificdata_key_t, void *);
    void  *module_register_callbacks(void (*)(struct module *),
                                    void (*)(struct module *));
    void  module_unregister_callbacks(void *);

XXX The various functions listed in the man page should grouped into a
XXX few logical sub-sets.

(pgoyette)

2018-05-28 21:05:16 UTC MAIN commitmail json YAML

welcome to 8.99.13:
- uao_create()'s size is now 64-bit
- new genfs op to let a file system constrain the range of pages
  passed to GOP_WRITE()
- various module interface changes
- changes to various MD hooks for the new dtrace

(chs)

2018-05-28 21:05:12 UTC MAIN commitmail json YAML

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().

(chs)

2018-05-28 21:04:42 UTC MAIN commitmail json YAML

add copyin_pid(), to copyin from a different user address space.

(chs)

2018-05-28 21:04:40 UTC MAIN commitmail json YAML

add more accessor functions for various struct module fields.
add a mechanism for registering callbacks to be called upon module load/unload.

(chs)

2018-05-28 21:04:38 UTC MAIN commitmail json YAML

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

2018-05-28 20:45:38 UTC MAIN commitmail json YAML

2018-05-28 20:34:45 UTC MAIN commitmail json YAML

2018-05-28 20:18:58 UTC MAIN commitmail json YAML

Mmh, don't automatically set enabled=1 for SpectreV4, the actual mitigation
is not yet applied by default. Just so people can test.

(maxv)

2018-05-28 19:52:19 UTC MAIN commitmail json YAML

2018-05-28 19:39:21 UTC MAIN commitmail json YAML

Remove ipsec_bindump, there is no prototype, so the function can't be used.

(maxv)

2018-05-28 19:36:42 UTC MAIN commitmail json YAML

2018-05-28 19:22:40 UTC MAIN commitmail json YAML

2018-05-28 15:48:23 UTC MAIN commitmail json YAML

Add signal numbers in overview table.
They are already in the text, but this way they're easier to find.

(wiz)

2018-05-28 14:07:37 UTC MAIN commitmail json YAML

Revert previous

There is a regression not covered by tests.

(kamil)

2018-05-28 13:22:34 UTC MAIN commitmail json YAML

2018-05-28 13:21:50 UTC MAIN commitmail json YAML

install bsd.hostinit.mk

(christos)

2018-05-28 13:12:54 UTC MAIN commitmail json YAML

Enhance the signal routing of a trapsignal under a debugger

Stop resetting signal masks for crash signals under a debugger.

If we set a trap (either software or hardware one) in the code, we don't
want to see reset of signal handlers in a traced child as a knock-on effect
in the original code.

Maintain the vfork(2) + ptrace(2) special case functional.

No regressions are observed in ATF ptrace(2) and kernel/t_trapsignal tests.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-28 12:42:45 UTC MAIN commitmail json YAML

Sort options in usage.

(wiz)

2018-05-28 12:42:02 UTC MAIN commitmail json YAML

Document -l, -r, and -w, based on input by jmcneill@

Bump date.

(wiz)

2018-05-28 11:35:50 UTC MAIN commitmail json YAML

Correct the t_ptrace_wait*:signal5 ATF test case

This functionality now works.
Correct the code path in this test.
Add additional sanity check with PT_GET_SIGINFO and validating si_code.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-28 11:32:20 UTC MAIN commitmail json YAML

Correct reporting SIGTRAP TRAP_EXEC when SIGTRAP is masked

Switch from kpsignal(9) to sigswitch() as it allows to bypass signal
masking rules of a crash signal.

There are no regressions in existing tests.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-28 11:15:48 UTC MAIN commitmail json YAML

Drop trailing white space

(kamil)

2018-05-28 08:36:36 UTC MAIN commitmail json YAML

File system police.

(wiz)

2018-05-28 07:55:56 UTC MAIN commitmail json YAML

PR port-amd64/53316: two int don't make a long (when passed to
a C variadic function)

(martin)

2018-05-28 05:27:52 UTC MAIN commitmail json YAML

enable SMP, remove some ADB-only comments

(macallan)

2018-05-28 05:25:06 UTC MAIN commitmail json YAML

2018-05-28 05:21:53 UTC MAIN commitmail json YAML

smusat attaches to iic now

(macallan)

2018-05-28 02:28:05 UTC MAIN commitmail json YAML

2018-05-28 02:27:33 UTC MAIN commitmail json YAML

Add some Intel 4 series chipset devices.

(msaitoh)

2018-05-28 00:18:06 UTC MAIN commitmail json YAML

2018-05-27 21:09:39 UTC MAIN commitmail json YAML

Don't mention sprintf and vsprintf, they don't exist in the kernel.
Drop MLINKS, too.

(maya)

2018-05-27 19:54:46 UTC MAIN commitmail json YAML

Enable apb_pclk clock if present

(jmcneill)

2018-05-27 17:16:39 UTC MAIN commitmail json YAML

Try to fool $CC harder in ATF ptrace(2) tests in trigger_fpe()

A function that returns a value that is not used, can be optimized out by
a compiler. Try to fool the compiler with calling libc functions that shall
trigger a division by zero crash.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-27 17:14:23 UTC MAIN commitmail json YAML

Rename sunxi_com to dw_apb_uart and move it to dev/fdt since it is not
sunxi-specific.

(jmcneill)

2018-05-27 17:05:06 UTC MAIN commitmail json YAML

2018-05-27 17:04:45 UTC MAIN commitmail json YAML

Handle FPE and BUS scenarios in the ATF t_trapsignal tests

These crash signals are crucial for proper handling of abnormal conditions
in a program. The additional purpose of these tests it to assure the proper
handling of these signals for the coming ptrace(2)-related changes in the
signal routing code.

Add a stub for ILL scenarios.

All tests pass (on amd64).

The shell ATF script contains duplicated code. There should be a way to
deduplicate it, without rewrite to C.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-27 14:03:56 UTC MAIN commitmail json YAML

Update the compat strings to match what Linux uses, per jmcneill@.

(thorpej)

2018-05-27 12:24:36 UTC MAIN commitmail json YAML

Add missing $NetBSD$ comment at the beginning.

(uwe)

2018-05-27 08:08:24 UTC MAIN commitmail json YAML

Fix ATF ptrace(2) bytes_transfer_piod_read_auxv test

Make the initial buffer larger to stop triggering the runtime assert about
its size.

Its size is probably larger than all real use cases, but it's good enough
for the purpose of ATF tests and immune of potential AUXV size.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-05-27 07:12:27 UTC MAIN commitmail json YAML

Minor improvements.

(wiz)

2018-05-27 06:40:31 UTC MAIN commitmail json YAML

Fix typo in comment.

(wiz)

2018-05-27 05:31:20 UTC MAIN commitmail json YAML

2018-05-27 01:39:00 UTC MAIN commitmail json YAML

2018-05-27 01:14:51 UTC MAIN commitmail json YAML

2018-05-27 00:36:56 UTC MAIN commitmail json YAML

alloca, bad; stack protector, good.

(christos)