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

2024-05-09 23:02:01 UTC Now

2020-06-10 07:34:19 UTC MAIN commitmail json YAML

2020-06-10 03:39:03 UTC MAIN commitmail json YAML

2020-06-10 01:42:17 UTC MAIN commitmail json YAML

Protect using mipsNN_foo() functions with an #ifdef MIPSNN.

Fixes non-MIPSNN kernel compiles pointed out by tsutsui@.

(simonb)

2020-06-09 21:57:00 UTC MAIN commitmail json YAML

proplib API catchup
NFCI, tested on v210

(macallan)

2020-06-09 21:50:33 UTC MAIN commitmail json YAML

Build and install llvm-symbolizer for MKLLVM=yes

llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.

(kamil)

2020-06-09 19:45:29 UTC MAIN commitmail json YAML

2020-06-09 17:13:41 UTC MAIN commitmail json YAML

2020-06-09 16:49:08 UTC MAIN commitmail json YAML

Specify -fno-unwind-tables to shrink binary.  Saves ~3.5%.

(tsutsui)

2020-06-09 16:43:01 UTC MAIN commitmail json YAML

Suppress "options `COMPAT_xx' is not defined" warnings.

(tsutsui)

2020-06-09 11:44:48 UTC MAIN commitmail json YAML

Fix inverted Y-axis value passed to wsmouse_input(9).

Note this is what src/sys/arch/macppc/dev/ams.c does as
"upward (moving the mouse forward) is positive" as noted in wsmouse(9):
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/macppc/dev/ams.c#rev1.4

Reported and tested by @NonameInsect on his SE/30 and Xorg server.
Should be pulled up to netbsd-8 and netbsd-9.

(tsutsui)

2020-06-09 06:18:01 UTC MAIN commitmail json YAML

If we are on a SiByte or Cavium CPU with an FPU, report as "built-in FPU"
instead of saying it's an unknown FPU type.

XXX - add any other CPUs to this list?

(simonb)

2020-06-09 06:01:49 UTC MAIN commitmail json YAML

Dynamically build the wayname strings instead of using a sparse array
populated with random N-ways entries.  Not only results in smaller code,
but also handles cases with 39-way caches without extra work.

(simonb)

2020-06-09 05:07:13 UTC MAIN commitmail json YAML

2020-06-09 05:06:27 UTC MAIN commitmail json YAML

2020-06-09 04:48:45 UTC MAIN commitmail json YAML

Update wrong and obsolete comments.

... when you change the set of syscalls.conf keywords this thing
recognizes, updating the documentation too (which AFAIK is limited to
the comment in here) is always helpful ...

(dholland)

2020-06-09 01:48:17 UTC MAIN commitmail json YAML

2020-06-09 00:28:57 UTC MAIN commitmail json YAML

Add fork/vfork/posix_spawn tests for processes within pgrp

New tests:
- fork_setpgid
- vfork_setpgid
- posix_spawn_setpgid
- unrelated_tracer_fork_setpgid
- unrelated_tracer_vfork_setpgid
- unrelated_tracer_posix_spawn_setpgid

These tests trigger a kernel assert for pg_jobc going negative.

The tests are temporarily skipped.

(kamil)

2020-06-08 22:52:09 UTC MAIN commitmail json YAML

When we add "entries", "index", and "sector_size" values to the dictionary,
add them as signed valaues, rather than unsigned (which is how we keep them
in memory).  This causes them be serialized in base-10 (rather than base-16,
which is the default for unsigned).  This behavior is documented in
prop_number(3).  Fixes t_gpt::backup_2part unit test.

(thorpej)

2020-06-08 21:31:56 UTC MAIN commitmail json YAML

Fix a paste-o that caused prop_data_create_copy() to be intolerant
of creating empty data objects.  Fixes t_ifconfig::ifconfig_description
unit test.

(thorpej)

2020-06-08 21:31:17 UTC MAIN commitmail json YAML

Ensure copy_data_create_copy() is tolerant of creating empty data objects.

(thorpej)

2020-06-08 20:21:56 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-08 20:20:54 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-08 20:19:50 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-08 20:19:12 UTC MAIN commitmail json YAML

2020-06-08 20:18:13 UTC MAIN commitmail json YAML

2020-06-08 20:14:24 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-08 19:50:11 UTC MAIN commitmail json YAML

usr.bin/make: fix test failure

The two files include-sub.mk and include-subsub.mk were never intended to
be test cases on their own.  They belong to include-main.mk.

Fixes PR bin/55360.

(rillig)

2020-06-08 17:28:10 UTC MAIN commitmail json YAML

2020-06-08 17:19:44 UTC MAIN commitmail json YAML

2020-06-08 16:36:18 UTC MAIN commitmail json YAML

2020-06-08 15:01:59 UTC MAIN commitmail json YAML

Fix minor problems detected by GCC9 -Wstringop-truncation.

(rin)

2020-06-08 11:51:48 UTC MAIN commitmail json YAML

2020-06-08 07:48:58 UTC MAIN commitmail json YAML

Fix wrong divider setting.

(hkenken)

2020-06-08 05:05:44 UTC MAIN commitmail json YAML

Remove t_proplib.debug from debug/shl.mi, which is built regardless of MKPIC,
and has been moved into debug/mi.

(rin)

2020-06-08 02:54:41 UTC MAIN commitmail json YAML

For /usr/libdata/debug/usr/tests/lib/libprop
- Obsolete t_basic.debug and
- Add t_proplib.debug

(rin)

2020-06-08 02:27:08 UTC MAIN commitmail json YAML

make find_cpus() static.

(mrg)

2020-06-08 01:33:27 UTC MAIN commitmail json YAML

ftp: exit if lostpeer invoked by a signal

lostpeer() calls too many async-unsafe functions (both directly
and indirectly) to close and cleanup the remote connections,
so just exit after the cleanup if invoked by a signal.

Reported in private mail by Qi Hou.
May also resolve a crash reported by Thomas Klausner.

(lukem)

2020-06-08 01:17:05 UTC MAIN commitmail json YAML

Fix tyop in a comment.  Thanks riastradh@.

(simonb)

2020-06-07 23:33:02 UTC MAIN commitmail json YAML

libexec/httpd: Fix the possible -Werror=stringop-truncation

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@, mrg@

(fox)

2020-06-07 23:29:16 UTC MAIN commitmail json YAML

external/mpl/dhcp: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-06-07 23:26:54 UTC MAIN commitmail json YAML

external/cddl/osnet: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-06-07 23:20:52 UTC MAIN commitmail json YAML

tests/lib/libarchive: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-06-07 23:15:53 UTC MAIN commitmail json YAML

libexec/lfs_cleanerd: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@, riastradh@

(fox)

2020-06-07 23:15:51 UTC MAIN commitmail json YAML

2020-06-07 23:09:34 UTC MAIN commitmail json YAML

external/bsd/atf: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-06-07 19:35:15 UTC MAIN commitmail json YAML

Sort option descriptions.

(wiz)

2020-06-07 19:08:12 UTC netbsd-9 commitmail json YAML

2020-06-07 19:06:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #951):

sys/arch/arm/include/arm32/param.h: revision 1.30

Bump the amount of KMEM allowed to 1/3rd of KVM.  _ARCH_ARM_6 has a split
of 2:2 and others have a split of 3:1.

Tested by martin@  Thanks

(martin)

2020-06-07 19:04:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #950):

sys/dev/audio/audio.c: revision 1.71
sys/dev/audio/audio.c: revision 1.73
sys/dev/audio/audio.c: revision 1.74
sys/dev/audio/audio.c: revision 1.75
sys/dev/audio/audiovar.h: revision 1.12

audio: Fix logic for resuming when the device is in use.

audio_[r/p]mixer_start should never be called when the device is
marked busy.

Resolves a panic on resume when audio is playing, PR kern/55301

audio: remove comment that is no longer valid

audio: Only restart recording mixer on resume if it's already been started

Fix suspend/resume.
- Revert temporary usage of sc_[pr]busy during suspend.  These indicate
  whether the mixer needs to be restarted or not.
- Avoid timeout error when about to suspend.

(martin)

2020-06-07 17:09:33 UTC netbsd-8 commitmail json YAML

2020-06-07 17:08:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #949):

sys/kern/subr_pcu.c: revision 1.22

Relax the KASSERT() in pcu_discard_all() to allow non-curlwp if it is
in LSIDL state, which can happen if the new LWP is exiting before it's
ever run, e.g. if an error occurs in _lwp_create(2).

(martin)

2020-06-07 17:07:07 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #949):

sys/kern/subr_pcu.c: revision 1.22

Relax the KASSERT() in pcu_discard_all() to allow non-curlwp if it is
in LSIDL state, which can happen if the new LWP is exiting before it's
ever run, e.g. if an error occurs in _lwp_create(2).

(martin)

2020-06-07 17:03:11 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #948):

sys/dev/usb/ugensa.c: revision 1.42
sys/dev/usb/u3g.c: revision 1.41

Remove duplicated USB_VENDOR_SIERRA USB_PRODUCT_SIERRA_USB305 entry
PR kern/55329

Replace calls to usbd_device2interface_handle in u3g_match() and
u3g_attach() with the interface already passed in uiaa->uiaa_iface and
store the interface in sc->sc_iface for later use by u3g_open()/

Also skip Direct IP interfaces in u3g_match() to avoid potential side
effects.

PR kern/55330

(martin)

2020-06-07 16:59:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #947):
sys/arch/arc/stand/boot/Makefile: revision 1.18
Explicitly strip debug info on calling objdump for ecoff boot binaries.
As noted by martin@ on tech-toolchain@, release binaries are built
with MKDEBUG=yes so standalone binaries should explicitly remove
debug info generated by -g option.
https://mail-index.netbsd.org/tech-toolchain/2020/06/02/msg003809.html
Should be pulled up to netbsd-9.
(ARC BIOS gets confused by debug info sections in ecoff binaries
and boot binary in 9.0 doesn't work)

(martin)

2020-06-07 16:46:01 UTC netbsd-7 commitmail json YAML

2020-06-07 16:43:40 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1733):

sys/dev/sysmon/sysmon_envsys.c: revision 1.145

Don't queue sysmon refresh until the rndsource is attached.

Using the rndsource, as refreshing the sensors will do, is not
allowed until _after_ rnd_source_attach.

XXX pullup-7
XXX pullup-8
XXX pullup-9

(martin)

2020-06-07 16:41:24 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1555):

sys/dev/sysmon/sysmon_envsys.c: revision 1.145

Don't queue sysmon refresh until the rndsource is attached.

Using the rndsource, as refreshing the sensors will do, is not
allowed until _after_ rnd_source_attach.

XXX pullup-7
XXX pullup-8
XXX pullup-9

(martin)

2020-06-07 16:40:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #946):

sys/dev/sysmon/sysmon_envsys.c: revision 1.145

Don't queue sysmon refresh until the rndsource is attached.

Using the rndsource, as refreshing the sensors will do, is not
allowed until _after_ rnd_source_attach.

XXX pullup-7
XXX pullup-8
XXX pullup-9

(martin)

2020-06-07 16:37:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #945):

sys/arch/arm/ti/ti_motg.c: revision 1.2

PR# port-evbarm/55263: BeagleBone Black too many interrupts on CPU when
using 5V DC power cable

Handle vbus status change events, and don't busy spin in the hard intr
handler when we see a vbus error (this will always be set when VBUS is not
present).

(martin)

2020-06-07 15:41:03 UTC MAIN commitmail json YAML

Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead of
{download-vulnerability-list,audit-packages}.

(leot)

2020-06-07 15:37:04 UTC MAIN commitmail json YAML

Properly quote printf string

Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!

(leot)

2020-06-07 15:19:05 UTC MAIN commitmail json YAML

Fix bohr bug triggered only once by syzkaller 2,5 months ago.

In sockopt_alloc(), 'sopt' may already have been initialized with
'sopt->sopt_data = sopt->sopt_buf'. If the allocation fails, we
end up with 'sopt->sopt_data = NULL', and later try to free this
NULL pointer in sockopt_destroy().

Fix that by not modifying 'sopt_data' if the allocation failed.

Difficult to reproduce in normal times, but fault(4) makes it
easy.

Reported-by: syzbot+380cb5d518742f063ad2@syzkaller.appspotmail.com

(maxv)

2020-06-07 14:55:13 UTC MAIN commitmail json YAML

One more libprop-related cat pages fixup.

(thorpej)

2020-06-07 13:28:03 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #944):

sys/arch/arm/ti/ti_dpll_clock.c: revision 1.3

Fix dpll clock setting on am335x

(martin)

2020-06-07 13:20:01 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #943):

sys/arch/arm/ti/ti_cpufreq.c: revision 1.3

Fix SoC revision detection. BeagleBone Black reports 1GHz as a supported
frequency again.

(martin)

2020-06-07 13:15:06 UTC netbsd-9 commitmail json YAML

Pull up the following, requested by kre in ticket #942:

external/public-domain/tz/dist/Makefile        up to 1.1.1.26
external/public-domain/tz/dist/NEWS            up to 1.1.1.29
external/public-domain/tz/dist/TZDATA_VERSION  up to 1.19
external/public-domain/tz/dist/africa          up to 1.1.1.22
external/public-domain/tz/dist/asia            up to 1.1.1.25
external/public-domain/tz/dist/backward        up to 1.1.1.11
external/public-domain/tz/dist/backzone        up to 1.1.1.18
external/public-domain/tz/dist/europe          up to 1.1.1.26
external/public-domain/tz/dist/leap-seconds.list up to 1.1.1.13
external/public-domain/tz/dist/leapseconds      up to 1.1.1.15
external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.10
external/public-domain/tz/dist/northamerica    up to 1.1.1.25
external/public-domain/tz/dist/theory.html      up to 1.1.1.10
external/public-domain/tz/dist/version          up to 1.1.1.16
external/public-domain/tz/dist/zone.tab        up to 1.1.1.18
external/public-domain/tz/dist/zone1970.tab    up to 1.1.1.20
doc/3RDPARTY (apply patch)
distrib/sets/lists/base/mi (apply patch)

Import tzdata2020a from ftp://ftp.iana.org/tz/releases/tzdata2020a.tar.gz

Summary of changes in tzdata2020a (2020-04-23 16:03:47 -0700):

    Morocco resumes summer time on 2020-05-31, not 2020-05-24.
    Canada's Yukon advanced to -07 year-round on 2020-03-08 (summer time
      will not end this year)..
    America/Nuuk renamed from America/Godthab (both names now exist).

(martin)

2020-06-07 12:54:39 UTC netbsd-9 commitmail json YAML

Apply patch, requested by bouyer in ticket #941:

sys/arch/x86/x86/pmap.c (apply patch)

Fix Xen dom0 kernel build with options DIAGNOSTIC.

(martin)

2020-06-07 12:50:17 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #940):

bin/sh/expand.h: revision 1.25
bin/sh/expand.c: revision 1.134
bin/sh/expand.c: revision 1.135
bin/sh/expand.c: revision 1.136
bin/sh/expand.c: revision 1.137

Remove a (completely harmless) duplicate assignment introduced in a
code merge from FreeBSD in 2017.  NFC.

Pointed out by Roland Illig.

prevent sign extension from making expression always false.
remove masking and cast (requested by kre@)

When expanding a here-doc (NXHERE - the type with an unquoted end delim)
the output will not be further processed (at all) so there is no need
to escape magic chars in the output, and doing so leaves stray CTLESC
chars in the here doc text.  Not good.  So don't do that...

To save a strlen() of the result, to determine the size of the here doc,
make rmescapes() return the length of the resulting string (this isn't
needed for other uses, so didn't happen previously).

Reported on current-users@ (2020-02-06) by Jun Ebihara

XXX pullup -9

(martin)

2020-06-07 12:35:01 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #939):

distrib/arc/ramdisk/Makefile: revision 1.29
sys/arch/arc/arc/arcbios.c: revision 1.18
distrib/arc/ramdisk/list: revision 1.24
sys/arch/arc/conf/GENERIC: revision 1.198
sys/arch/arc/conf/RAMDISK: revision 1.83
distrib/arc/ramdisk/Makefile: revision 1.28

bump ramdisk size to 3200k for gcc 8.  yay!

-

Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls.

Fixes silent hangup right after starting a kernel on my
Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC).
Reviewed by soda@.  Maybe other ARC machines are also affected.

Note GXemul was not affected by this problem because it doesn't
have actual ARC BIOS ROM and emulates ARC functions internally.

Should be pulled up to at least netbsd-9.

-

Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction.

Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction.

Currently NetBSD/arc kernels are loaded at 0x80200000
(on some machines ARC BIOS uses regions before it) and
ARC BIOS also uses around 0x807f0000, so bootloader fails
on loading >6MB kernels.

Note GXemul doesn't have this restriction because it loads
a kernel directly via a command line argument.

Tested by installing using sysinst on RAMDISK kernel on netbsd-9.
Should be pulled up to netbsd-9.

(martin)

2020-06-07 12:26:22 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1732):

sys/arch/powerpc/oea/pmap.c: revision 1.96

Stop returning while PMAP_LOCK() (= KERNEL_LOCK(1, NULL)) is held.
Kernel freeze with heavy load is significantly mitigated (fixed?),
in which I could not even enter DDB from console.

XXX
There is still inconsistency in usage of two PVO pools.
I will send-pr later.

XXX
pullup to netbsd-[987]

(martin)

2020-06-07 12:23:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1554):

sys/arch/powerpc/oea/pmap.c: revision 1.96

Stop returning while PMAP_LOCK() (= KERNEL_LOCK(1, NULL)) is held.
Kernel freeze with heavy load is significantly mitigated (fixed?),
in which I could not even enter DDB from console.

XXX
There is still inconsistency in usage of two PVO pools.
I will send-pr later.

XXX
pullup to netbsd-[987]

(martin)

2020-06-07 12:21:36 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #938):

sys/arch/powerpc/oea/pmap.c: revision 1.96

Stop returning while PMAP_LOCK() (= KERNEL_LOCK(1, NULL)) is held.
Kernel freeze with heavy load is significantly mitigated (fixed?),
in which I could not even enter DDB from console.

XXX
There is still inconsistency in usage of two PVO pools.
I will send-pr later.

XXX
pullup to netbsd-[987]

(martin)

2020-06-07 10:24:50 UTC MAIN commitmail json YAML

Fix debug sets for libprop changes

(martin)

2020-06-07 09:45:20 UTC MAIN commitmail json YAML

2020-06-07 06:08:20 UTC MAIN commitmail json YAML

NetBSD 9.99.65 -- proplib(3) API additions also impact the kernel ABI.

(thorpej)

2020-06-07 06:02:58 UTC MAIN commitmail json YAML

2020-06-07 05:57:17 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 05:54:00 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 05:49:05 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 05:42:25 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 03:02:42 UTC MAIN commitmail json YAML

Use -fno-unwind-tables to shrink boot binaries a bit.

(tsutsui)

2020-06-07 03:00:54 UTC MAIN commitmail json YAML

Fix "illegal exceptoin" error on loading a secondary boot.

Recent gcc/binutils create more than two problem header sections
so the primary bootxx should handle them accordingly.
See my port-mips@ port for more details:
https://mail-index.netbsd.org/port-mips/2020/06/06/msg000948.html

Should be pulled up to netbsd-9.

(tsutsui)

2020-06-07 00:58:59 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 00:56:05 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 00:54:22 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 00:51:48 UTC MAIN commitmail json YAML

2020-06-07 00:15:37 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-07 00:12:00 UTC MAIN commitmail json YAML

2020-06-06 23:02:25 UTC MAIN commitmail json YAML

uvmexp.ncolors being used where uvmexp.colormask wanted

(ad)

2020-06-06 22:36:39 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-06 22:33:23 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-06 22:31:41 UTC MAIN commitmail json YAML

Correction to previous - set VI_PAGES correctly.

(ad)

2020-06-06 22:28:07 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-06 22:26:47 UTC MAIN commitmail json YAML

lwp_exit(): add a warning about (l != curlwp)

(ad)

2020-06-06 22:24:00 UTC MAIN commitmail json YAML

Adjust previous.  In the condvar case the wakeup might already have been
eaten.

(ad)

2020-06-06 22:23:31 UTC MAIN commitmail json YAML

Correct a deprecation warning.

(thorpej)

2020-06-06 22:06:42 UTC MAIN commitmail json YAML

sun2 and vax have no native TLS support, so avoid using modern jemalloc
as it has a couple of nasty race conditions when using TSD.

(joerg)

2020-06-06 21:45:07 UTC MAIN commitmail json YAML

Don't use deprecated proplib APIs (in the old "basic" test case).

(thorpej)

2020-06-06 21:26:00 UTC MAIN commitmail json YAML

Improvements to the problib(3) API:

==> Provide a much more complete set of setters and getters for different
    value types in the prop_array_util(3) and prop_dictionary_util(3)
    functions.

==> Overhaul the prop_data(3), prop_number(3), and prop_string(3) APIs
    to be easier to use and less awkwardly named,  Deprecate the old
    awkward names, and produce link-time warnings when they are referenced.

==> Deprecate mutable prop_data(3) and prop_string(3) objects.  The old
    APIs that support them still exist, but will now produce link-time
    warnings when used.

==> When the new prop_string(3) API is used, strings are internally
    de-duplicated as a memory footprint optimization.

==> Provide a rich set of bounds-checked gettter functions in and a
    corresponding set of convenience setters in the prop_number(3) API.

==> Add a new prop_bool_value(3) function that is equivalent to
    prop_bool_true(3), but aligned with the new "value" routines in
    prop_data(3), prop_string(3), and prop_number(3).

(thorpej)

2020-06-06 20:38:00 UTC MAIN commitmail json YAML

Use more markup.

(wiz)

2020-06-06 20:30:23 UTC MAIN commitmail json YAML

2020-06-06 20:28:42 UTC MAIN commitmail json YAML

Remove trailing whitespace.

(wiz)

2020-06-06 18:13:02 UTC MAIN commitmail json YAML

Relax the KASSERT() in pcu_discard_all() to allow non-curlwp if it is
in LSIDL state, which can happen if the new LWP is exiting before it's
ever run, e.g. if an error occurs in _lwp_create(2).

(thorpej)

2020-06-06 18:11:21 UTC MAIN commitmail json YAML

Add a test case to ensure that _lwp_create() fails with the
expected error code when a bad new-lwp-id pointer is passed.

(thorpej)

2020-06-06 17:39:35 UTC MAIN commitmail json YAML

2020-06-06 15:45:47 UTC MAIN commitmail json YAML

Make libsa's vsnprintf() work as expected when passed a NULL
destinatino buffer.

(thorpej)

2020-06-06 14:30:44 UTC MAIN commitmail json YAML

Increase readability by reducing #ifdef using a macro.

(simonb)

2020-06-06 13:53:43 UTC MAIN commitmail json YAML

Conditionally enable the formerly #if'ed-out code to use the
WRITE_REGION_1 command for writing blocks of data to the device.
This is to address a performance issue where "ifconfig run0 up" would
take as long as 20-30 seconds when using a UHCI or OHCI host
controller due to the large number of control transfers performed by
the driver in combination with the inability of those host controllers
to perform multiple control transfers per USB frame.  Limit the
transfers to 64 bytes as in the corresponding #if'ed-out code in
FreeBSD.  Currently only enabled for mac_ver 0x5390 as it is the only
version tested so far.

(gson)

2020-06-06 10:22:45 UTC MAIN commitmail json YAML

Fix ews4800mips example.  Its raw partition is rsd0p, not rsd0c.

(tsutsui)

2020-06-06 09:03:59 UTC MAIN commitmail json YAML

2020-06-06 08:56:31 UTC MAIN commitmail json YAML

2020-06-06 07:03:21 UTC MAIN commitmail json YAML

If the frame is not aligned, leave right away. This place probably needs
to be revisited, because %rbp could easily contain garbage.

Reported-by: syzbot+ecb40cf7f8acc102c29b@syzkaller.appspotmail.com

(maxv)

2020-06-06 06:42:54 UTC MAIN commitmail json YAML

kMSan: re-set the orig after pool_cache_get_slow(), using the address of
the caller of pool_cache_get_paddr().

Otherwise the orig is just pool_cache_get_paddr(), and that's not really
useful for debugging.

(maxv)

2020-06-05 22:08:11 UTC MAIN commitmail json YAML

terminfo(5): Numbre -> Number

Thanks to yukonbob

(roy)

2020-06-05 21:48:04 UTC MAIN commitmail json YAML

Change const unsigned to preprocessor define

Fixes GCC -O0 build with the stack protector.

(kamil)

2020-06-05 19:45:51 UTC MAIN commitmail json YAML

2020-06-05 19:20:46 UTC MAIN commitmail json YAML

make: add :Or for reverse sort

:Or is more efficient than :O:[-1..1]

Reviewed by: christos

(sjg)

2020-06-05 18:03:59 UTC MAIN commitmail json YAML

cached_stats: do not conflate stat and lstat

While make uses lstat quite rarely, it does so for reason.
Avoid confusing the results.

Reviewed by: christos

(sjg)

2020-06-05 17:20:57 UTC MAIN commitmail json YAML

2020-06-05 17:10:44 UTC MAIN commitmail json YAML

2020-06-05 15:19:08 UTC MAIN commitmail json YAML

fix wrong size addition (Andrew Cagney)
XXX: This file is nearly identical with /usr/src/sys/netipsec/key_debug.c
and should be merged.

(christos)

2020-06-05 12:47:28 UTC MAIN commitmail json YAML

Check x > 0 *before*, not after, using (x - 1) as index of array.

(rin)

2020-06-05 11:16:15 UTC MAIN commitmail json YAML

Remove more bogus tests for 64-bit i386 and SuperH.

These are always false.

(nia)

2020-06-05 09:18:35 UTC MAIN commitmail json YAML

Rework CVMSEG LM usage a litte:
- remove unused LM slots
- use #defines for defining the size of CVMSEG LM users

XXX: Need to dynamically set CVMMEMCTL[LMEMSZ] during startup so we can
    both adapt to any future increase in CVMSEG LM usage and not waste
    any more L2 that we need to.
XXX: Still need to move general IOBDMA conf to a different (new?) header.

(simonb)

2020-06-05 08:02:32 UTC MAIN commitmail json YAML

Replace calls to usbd_device2interface_handle in u3g_match() and
u3g_attach() with the interface already passed in uiaa->uiaa_iface and
store the interface in sc->sc_iface for later use by u3g_open()/

Also skip Direct IP interfaces in u3g_match() to avoid potential side effects.

PR kern/55330

(skrll)

2020-06-05 08:01:49 UTC MAIN commitmail json YAML

Remove duplicated USB_VENDOR_SIERRA USB_PRODUCT_SIERRA_USB305 entry

PR kern/55329

(skrll)

2020-06-05 07:17:38 UTC MAIN commitmail json YAML

Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.

(simonb)

2020-06-05 03:24:59 UTC MAIN commitmail json YAML

Refactor a little and follow new format of "npfctl list".

Fix the below ATF failures.
    - net/if_ipsec/t_ipsec_natt:ipsecif_natt_transport_null
    - net/if_ipsec/t_ipsec_natt:ipsecif_natt_transport_rijndaelcbc
    - net/ipsec/t_ipsec_natt:ipsec_natt_transport_ipv4_null
    - net/ipsec/t_ipsec_natt:ipsec_natt_transport_ipv4_rijndaelcbc

ok'ed by ozaki-r@n.o, thanks.

(knakahara)

2020-06-05 02:30:54 UTC MAIN commitmail json YAML

2020-06-05 02:28:10 UTC MAIN commitmail json YAML

2020-06-04 20:54:37 UTC MAIN commitmail json YAML

Near complete conversion to __BITS

(skrll)

2020-06-04 19:54:53 UTC MAIN commitmail json YAML

Add self-tests for 3des and blowfish too.

Nobody should use these on new disks but it is good to have them so
we don't break decrypting old disks.

(riastradh)

2020-06-04 19:53:55 UTC MAIN commitmail json YAML

Call clts/stts in fpu_kern_enter/leave so they work.

(riastradh)

2020-06-04 19:50:21 UTC MAIN commitmail json YAML

Consistent whitespace.  Register defines are <tab> indented. Bits defines
for registers are <tab><space> indented.

(skrll)

2020-06-04 15:42:31 UTC MAIN commitmail json YAML

Tidy up some ugly output from mips_page_physload() when a segment starts
and finishes in the same page.

(simonb)

2020-06-04 14:33:28 UTC MAIN commitmail json YAML

ACAB (worksafe variant)

(nia)

2020-06-04 14:09:54 UTC MAIN commitmail json YAML

2020-06-04 14:08:16 UTC MAIN commitmail json YAML

dhcpcd: re-obsolete the chroot sub dirs

Ordering matters - dhcpcd needs to be fixed before obsolete for postinstall

(roy)

2020-06-04 13:45:19 UTC MAIN commitmail json YAML

Add missing comma.

(wiz)

2020-06-04 13:11:04 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.1.1

(roy)

2020-06-04 13:09:45 UTC MAIN commitmail json YAML

dhcpcd: kqueue(2) support removed in favour of pollts(2)

(roy)

2020-06-04 13:08:13 UTC MAIN commitmail json YAML

2020-06-04 11:28:00 UTC MAIN commitmail json YAML

getaddrinfo.3: order of the struct members is wrong, correct it

(nia)

2020-06-04 11:21:16 UTC MAIN commitmail json YAML

Remove bogus tests for 64-bit i386 and SuperH

(nia)

2020-06-04 08:24:44 UTC MAIN commitmail json YAML

G.C. No functional change. OK'd by bouyer@.

(msaitoh)

2020-06-04 04:40:01 UTC MAIN commitmail json YAML

Nix trailing whitespace.  NFCI.

(riastradh)

2020-06-04 03:14:36 UTC MAIN commitmail json YAML

Nix trailing whitespace.  NFCI.

(riastradh)

2020-06-04 03:12:26 UTC MAIN commitmail json YAML

Nix trailing whitespace.  NFCI.

(riastradh)

2020-06-04 03:08:59 UTC MAIN commitmail json YAML

Only clear BSS up to "end" symbol, not all the way to mips_round_page(end).
U-Boot puts some data immediately after the BSS section cleared in the ELF
segments, and we don't want to overwrite that.

XXX: Stop using mips_round_page(end) on all MIPS?

(simonb)

2020-06-04 03:08:33 UTC MAIN commitmail json YAML

Nix trailing whitespace.  NFCI.

(riastradh)

2020-06-04 00:45:32 UTC MAIN commitmail json YAML

If _malloc_thread_cleanup is implement, call it from libpthread.
Provide the hook from modern jemalloc to avoid using TSD for the thread
destruction cleanup as it can result in reentrancy crashes if fork is
called from a thread that never called malloc as it will result in a
late malloc from the pre-fork synchronisation handler.

(joerg)

2020-06-03 22:25:49 UTC MAIN commitmail json YAML

PR kern/55032 (rump/rumpkern/t_vm:uvmwait test case now fails)

Work around issues with rump's pagedaemon emulation, including one that's
sensitive to timing effects (i.e. scheduler changes).  While here tidy up
some other stuff around the emulation of page alloc/free.

(ad)

2020-06-03 22:10:24 UTC MAIN commitmail json YAML

Deal with a couple of problems with threads being awoken early due to
timeouts or cancellation where:

- The restarting thread calls _lwp_exit() before another thread gets around
  to waking it with _lwp_unpark(), leading to ESRCH (observed by joerg@).
  (I may have removed a similar check mistakenly over the weekend.)

- The restarting thread considers itself gone off the sleep queue but
  at the same time another thread is part way through waking it, and hasn't
  fully completed that operation yet by setting thread->pt_mutexwait = 0.
  I think that could have potentially lead to the list of waiters getting
  messed up given the right circumstances.

(ad)

2020-06-03 19:55:13 UTC MAIN commitmail json YAML

Re-enable "set cpufreq at boot" code.

(jmcneill)

2020-06-03 19:16:23 UTC MAIN commitmail json YAML

PR# port-evbarm/55263: BeagleBone Black too many interrupts on CPU when
using 5V DC power cable

Handle vbus status change events, and don't busy spin in the hard intr
handler when we see a vbus error (this will always be set when VBUS is not
present).

(jmcneill)

2020-06-03 18:26:06 UTC MAIN commitmail json YAML

Fix dpll clock setting on am335x

(jmcneill)

2020-06-03 18:25:26 UTC MAIN commitmail json YAML

Don't print an error message on spurious interrupt. Way too noisy for Xen.

(bouyer)

2020-06-03 18:07:26 UTC MAIN commitmail json YAML

Skip this test on machines where it would cause serious swapping.

(martin)

2020-06-03 18:02:03 UTC MAIN commitmail json YAML

Fix SoC revision detection. BeagleBone Black reports 1GHz as a supported
frequency again.

(jmcneill)

2020-06-03 16:00:00 UTC MAIN commitmail json YAML

If we can't find a hwmod name, use the device type and mmio address

(jmcneill)

2020-06-03 15:59:22 UTC MAIN commitmail json YAML

Add a line break before rnd_attach_source so the "entropy: ready" announcement does not get mixed with device prints

(jmcneill)

2020-06-03 15:47:23 UTC MAIN commitmail json YAML

Disable setting cpufreq at boot for now

(jmcneill)

2020-06-03 15:44:45 UTC MAIN commitmail json YAML

Highest speed is first opp, not last

(jmcneill)

2020-06-03 15:38:02 UTC MAIN commitmail json YAML

Convert ohcireg.h to __BITS.  NFCI.

(skrll)

2020-06-03 14:56:10 UTC MAIN commitmail json YAML

Catch up to clock changes in last dts import.

(jmcneill)

2020-06-03 14:19:10 UTC MAIN commitmail json YAML

Add FHRP, GLBP, HSRP

(sevan)

2020-06-03 14:10:56 UTC MAIN commitmail json YAML

2020-06-03 13:14:01 UTC MAIN commitmail json YAML

defflag SOC_IMX6DL and SOC_IMX6Q

(jmcneill)

2020-06-03 11:47:47 UTC MAIN commitmail json YAML

Ensure the dhcpcd log socket is removed.

(roy)

2020-06-03 11:33:38 UTC MAIN commitmail json YAML

Explicitly strip debug info on calling objdump for ecoff boot binaries.

As noted by martin@ on tech-toolchain@, release binaries are built
with MKDEBUG=yes so standalone binaries should explicitly remove
debug info generated by -g option.
https://mail-index.netbsd.org/tech-toolchain/2020/06/02/msg003809.html

Should be pulled up to netbsd-9.
(ARC BIOS gets confused by debug info sections in ecoff binaries
and boot binary in 9.0 doesn't work)

(tsutsui)

2020-06-03 07:06:18 UTC MAIN commitmail json YAML

Manifest that we need liblzma only when USE_XZ_SETS is enabled.

(rin)

2020-06-03 06:36:44 UTC MAIN commitmail json YAML

x_gzip need liblzma for xz support.

(rin)

2020-06-03 02:55:17 UTC MAIN commitmail json YAML

Add missing compat debug symbols only available for llvm && dtrace.

(rin)

2020-06-03 02:51:40 UTC MAIN commitmail json YAML

Appease clang -Waddress-of-packed-member for <ufs/lfs/lfs_accessors.h>,
in the same manner as done for sparc64; pointer substitution is just for
sanity check and harmless there.

(rin)

2020-06-03 02:07:53 UTC MAIN commitmail json YAML

Fix the vax build: vax is special and always builds pic code.

(christos)

2020-06-03 00:27:46 UTC MAIN commitmail json YAML

Revert most of 1.396 and go back to using memset()/memcpy().
Do not restore pageidlezero stuff though.

(ad)

2020-06-02 21:10:07 UTC MAIN commitmail json YAML

2020-06-02 19:30:29 UTC MAIN commitmail json YAML

timespec_get(3) was developed by myself

Remove FreeBSD from the authorship as it was just a pullup of small
documentation changes.

(kamil)

2020-06-02 19:15:15 UTC MAIN commitmail json YAML

dhcpcd: delete the obsolete chroot paths

postinstall will take care of it.

(roy)

2020-06-02 17:23:22 UTC MAIN commitmail json YAML

2020-06-02 17:02:33 UTC MAIN commitmail json YAML

2020-06-02 16:45:42 UTC MAIN commitmail json YAML

Respect syscall aliases in the rump code

With this change rump_sys_*() matches *() from the usually libc entry point.

(kamil)

2020-06-02 15:43:26 UTC MAIN commitmail json YAML

2020-06-02 14:39:57 UTC MAIN commitmail json YAML

Add a missing entry, clean up a few other incorrect entries.

(simonb)

2020-06-02 14:27:32 UTC MAIN commitmail json YAML

Revert previous; always use the same INSTIMAGEMB size regardless of
MKDEBUG. Should fit now that USE_XZ_SETS=yes on aarch64.

(jmcneill)

2020-06-02 14:26:01 UTC MAIN commitmail json YAML

Set USE_XZ_SETS for evbarm-aarch64

(jmcneill)

2020-06-02 13:56:30 UTC MAIN commitmail json YAML

Don't suggest removing arc4random with a libc bump.

It's established enough in non-legacy code that this is a terrible idea.
Even if we add getentropy it's not a comparable API (not a userspace RNG
capable of streaming large numbers of bytes, doesn't have _uniform, etc).

"Feel free to remove that line!" - riastradh

(nia)

2020-06-02 13:49:15 UTC MAIN commitmail json YAML

Synchronize struct name in rump_syscalls.c and syscallargs.h

Whenever a syscall has alias name, the struct sys_ names shall be the same.

(kamil)

2020-06-02 11:40:02 UTC MAIN commitmail json YAML

Select the highest rate at boot, and update cycle counter frequency when rates change

(jmcneill)

2020-06-02 10:41:30 UTC MAIN commitmail json YAML

Use a larger INSTIMAGEMB value for MKDEBUG builds

(jmcneill)

2020-06-02 08:03:59 UTC MAIN commitmail json YAML

don't elide fortran components.  we'd like to revive g77-as-gfortran.

(mrg)

2020-06-02 02:04:35 UTC MAIN commitmail json YAML

Appease clang -Wtentative-definition-incomplete-type.

Now, both kernel and crash(8) build with clang for amd64
(and certainly other ports also).

Pointed out by joerg.

(rin)

2020-06-02 01:34:50 UTC MAIN commitmail json YAML

Exclude ramdisk images and empty instkernel directory

(jmcneill)

2020-06-02 01:30:31 UTC MAIN commitmail json YAML

Don't overalign _RuneStatePriv, it must share the alignment of mbstate_t
it aliased with. Assert that the alignment actually used reflects the
alignment required by existing implementation and for newly build
modules assert that it is at most the guaranteed alignment.

(joerg)

2020-06-02 00:29:53 UTC MAIN commitmail json YAML

Pass down errno when calling pthread__errorfunc after a system call.
Allow format arguments for that reason and use (v)snprintf_ss in
pthread_errorfunc to avoid race conditions and the like.

(joerg)

2020-06-01 22:58:06 UTC MAIN commitmail json YAML

Reported-by: syzbot+6dd5a230d19f0cbc7814@syzkaller.appspotmail.com

Instrument STOS/MOVS for KMSAN to unbreak it.

(ad)

2020-06-01 21:54:47 UTC MAIN commitmail json YAML

Don't queue sysmon refresh until the rndsource is attached.

Using the rndsource, as refreshing the sensors will do, is not
allowed until _after_ rnd_source_attach.

XXX pullup-7
XXX pullup-8
XXX pullup-9

(riastradh)

2020-06-01 18:55:37 UTC MAIN commitmail json YAML

Locking protocol changed; the internal routines are now called with the
socket locked. Adjust for that.

(christos)

2020-06-01 14:46:04 UTC MAIN commitmail json YAML

Mention cleaning needed in LIBISPRIVATE directories

(christos)

2020-06-01 14:42:53 UTC MAIN commitmail json YAML