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

2024-05-10 20:58:25 UTC Now

2020-03-10 03:49:56 UTC MAIN commitmail json YAML

kill extra curproc/curlwp definitions that have no chance of working.

(christos)

2020-03-10 03:48:05 UTC MAIN commitmail json YAML

tuck curproc/curlwp under _KERNEL only (no _KMEMUSER)

(christos)

2020-03-10 01:23:42 UTC MAIN commitmail json YAML

On NetBSD it's spelled "__NO_STRICT_ALIGNMENT".  Adjust txp_rx_reclaim()
accordingly and structure it like other NetBSD drivers so as to re-use
the original Rx buffer rather than doing a needless free/alloc cycle.

Note this happened to work previously on my Qube2 because IP, TCP, etc.
perform their own alignment checks and react accordingly.  However, it's
not clear that ALL protocols do this yet, so it's better to just do the
safe thing for now.

(thorpej)

2020-03-10 01:17:34 UTC MAIN commitmail json YAML

protect curcpu/curlwp from _KMEMUSER

(christos)

2020-03-10 00:26:47 UTC MAIN commitmail json YAML

- Add support for MBUFTRACE.
- Fix an mbuf leak I introduced in rev 1.68 (failed to increment "cnt"
  variable in txp_start(), which subsequently caused txp_tx_reclaim()
  to never run).
- Use the context address pointer in the Tx descriptor to stash the
  pointer to the Tx job software state in a manner like that which
  is used for Rx software state.

(thorpej)

2020-03-10 00:24:08 UTC MAIN commitmail json YAML

Protect against multiple inclusion.

(thorpej)

2020-03-09 21:49:26 UTC MAIN commitmail json YAML

Rework previous, so that the real syscall code is not invoked from within
the module_hook code.  Otherwise, if the syscall just happens to be exit()
we will exit while still holding a reference to the hook's localcount, and
nothing will ever release that reference.  Attempts to manually unload the
module will hang indefinitely, as will modstat(8).

XXX pullup-9

(pgoyette)

2020-03-09 21:20:56 UTC MAIN commitmail json YAML

route: RTM_MISS now puts the message source address in RTA_AUTHOR

route(8) also reports this.
A userland app could use this to blacklist nodes who probe for machines
that doesn't exist on a subnet / prefix.

(roy)

2020-03-09 20:34:52 UTC MAIN commitmail json YAML

2020-03-09 20:33:16 UTC MAIN commitmail json YAML

2020-03-09 18:51:35 UTC netbsd-9 commitmail json YAML

2020-03-09 18:50:19 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #777):
usr.sbin/sysinst/arch/alpha/md.c: 1.8
The (unused) md_pre_disklabel() function needs to return success, otherwise
all installations will be aborted.

(snj)

2020-03-09 18:43:52 UTC MAIN commitmail json YAML

Don't expose curproc/curlwp and other random kernel macros/functions/variables
du-jour.

(christos)

2020-03-09 18:29:16 UTC netbsd-9 commitmail json YAML

2020-03-09 18:28:14 UTC netbsd-9 commitmail json YAML

Addionally pull up for ticket ticket #776, requested by christos:

src/usr.bin/config/scan.l 1.31

Add an enabled bit to keep track of the parent state (if we are ignoring
or parsing). Idea from uwe.

(martin)

2020-03-09 17:57:19 UTC MAIN commitmail json YAML

arp: report RTM_MISS when removing an unresolved entry in the arp table

Otherwise we only get it when renewing and we've sent too many requests.
This mirrors INET6 behaviour.

(roy)

2020-03-09 17:27:29 UTC MAIN commitmail json YAML

One more test from uwe.

(christos)

2020-03-09 17:27:03 UTC MAIN commitmail json YAML

Add an enabled bit to keep track of the parent state (if we are ignoring
or parsing). Idea from uwe.

(christos)

2020-03-09 17:10:31 UTC MAIN commitmail json YAML

The (unused) md_pre_disklabel() function needs to return success, otherwise
all installations will be aborted.

(martin)

2020-03-09 15:40:50 UTC MAIN commitmail json YAML

external/cddl/osnet: Fix possible null pointer access.

Detected by UBSan and fixed upstream, pick only the fix from the commit.

Cherry-pick:
From 928e8ad47d3478a3d5d01f0dd6ae74a9371af65e Mon Sep 17 00:00:00 2001
From: Serapheim Dimitropoulos <serapheimd@gmail.com>
Date: Wed, 20 Feb 2019 09:59:57 -0800
Subject: [PATCH] Introduce auxiliary metaslab histograms

Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8358

Reviewed by: kamil@

(fox)

2020-03-09 15:37:46 UTC MAIN commitmail json YAML

external/cddl/osnet: Fix possible signed integer overflow

Detected by UBSan and fixed upstream

Cherry-pick:
From 05852b3467b44cdf88541ec67624cd1f5f2ded1d Mon Sep 17 00:00:00 2001
From: luozhengzheng <luo.zhengzheng@zte.com.cn>
Date: Fri, 14 Oct 2016 05:25:05 +0800
Subject: [PATCH] Fix coverity defects: CID 147571, 147574

CID 147571: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
CID 147574: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Closes #5268

Reviewed by: kamil@

(fox)

2020-03-09 15:23:55 UTC netbsd-9 commitmail json YAML

2020-03-09 15:22:21 UTC netbsd-9 commitmail json YAML

Pull up the following, requested by christos in ticket #776:

usr.bin/config/TODO                            up to 1.32
usr.bin/config/defs.h                          up to 1.105
usr.bin/config/files.c                          up to 1.37
usr.bin/config/gram.y                          up to 1.55
usr.bin/config/main.c                          up to 1.99
usr.bin/config/scan.l                          up to 1.30
usr.bin/config/sem.c                            up to 1.84
usr.bin/config/util.c                          up to 1.21

config(1): fix issue with incorrect handling of elifdef statements.

(martin)

2020-03-09 14:45:42 UTC MAIN commitmail json YAML

Revert previous

Requested by <riastradh>

(kamil)

2020-03-09 13:36:10 UTC MAIN commitmail json YAML

Add missing END() for coldfire.

(rin)

2020-03-09 13:12:14 UTC netbsd-9 commitmail json YAML

Fix merge botch in previous.

(martin)

2020-03-09 11:52:15 UTC netbsd-9 commitmail json YAML

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

sys/arch/powerpc/ibm4xx/copyinstr.c: revision 1.12
sys/arch/powerpc/ibm4xx/copyinstr.c: revision 1.13
sys/arch/powerpc/ibm4xx/copyoutstr.c: revision 1.10
sys/arch/powerpc/ibm4xx/copyoutstr.c: revision 1.11
sys/arch/powerpc/ibm4xx/copyoutstr.c: revision 1.12
sys/arch/powerpc/ibm4xx/copyoutstr.c: revision 1.13
sys/arch/powerpc/ibm4xx/copyinstr.c: revision 1.10
sys/arch/powerpc/ibm4xx/copyinstr.c: revision 1.11

copy{in,out}str: sync style with booke.
- early return in case of len == 0
- *done = 0 on fault

copy{in,out}str: Correctly return ENAMETOOLONG if source is not
NUL-terminated.

Use dcbst instead of dcbf to flush cache; the former does not invalidate
the cache line, which should be used immediately in most cases.

Cosmetic changes. No binary changes.

(martin)

2020-03-09 11:21:54 UTC MAIN commitmail json YAML

Give the thumb atomic ops a chance of working

(skrll)

2020-03-09 10:39:43 UTC netbsd-9 commitmail json YAML

2020-03-09 10:37:57 UTC netbsd-9 commitmail json YAML

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

sys/arch/powerpc/ibm4xx/cpu.c: revision 1.34
sys/arch/powerpc/ibm4xx/pic_uic.c: revision 1.5

Cosmetic change. No binary changes.

Remove unused macros.

(martin)

2020-03-09 10:36:42 UTC netbsd-9 commitmail json YAML

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

sys/arch/powerpc/ibm4xx/pmap.c: revision 1.81
sys/arch/powerpc/ibm4xx/pmap.c: revision 1.82
sys/arch/powerpc/ibm4xx/pmap.c: revision 1.83
sys/arch/powerpc/ibm4xx/pmap.c: revision 1.84
sys/arch/powerpc/ibm4xx/pmap.c: revision 1.85
sys/arch/powerpc/include/ibm4xx/tlb.h: revision 1.6
sys/arch/powerpc/include/ibm4xx/pmap.h: revision 1.20

Misc non-critical fixes.
- __asm --> __asm volatile for sure
- turn DEBUG code in __asm into DIAGNOSTIC code in C
- style

ppc4xx_tlb_enter(): invalidate entry after clearing MSR for sure.

pmap_procwr(): use dcbst instead of dcbf as a tiny optimization.

Retire tlbpid_t (u_short):
- PID (ctx, ASID) is 8-bit length, not half word.
- For struct pmap, no need to use integer types smaller than word as
  pm_ctx because of alignment.
- For ppc4xx_tlb_enter(), we need word-length storage for pid (and msr).
XXX
Better to rewrite pmap module with more suggestive integer types rather
than char, int, long, and so on.

Fix pmap_procwr().
While we need to turn off IMMU, DMMU should be kept on. Otherwise,
dcbst (and also icbi probably, though not documented clearly both
for 405 and 403) should not work correctly.

(martin)

2020-03-09 10:11:40 UTC netbsd-9 commitmail json YAML

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

sys/arch/powerpc/booke/copyout.c: revision 1.6
sys/arch/powerpc/booke/copyout.c: revision 1.7
sys/arch/powerpc/booke/copyout.c: revision 1.8

copyoutstr(9): sync style with copyinstr(9).
- use variable name "done" instead of "lenp"
- return return value from setfault() on fault, instead of hardcoded EFAULT
No functional changes intended.

copyoutstr(9): return ENAMETOOLONG correctly when source string is
not NUL-terminated.

Comment out full function of optimized version of copyoutstr(9),
which has never been enabled so far.
Only for clarity. No binary changes.

(martin)

2020-03-09 09:55:52 UTC netbsd-9 commitmail json YAML

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

sys/compat/netbsd32/netbsd32_mod.c: revision 1.19

If a syscall requires a module to be autoloaded, the initial invocation
of that syscall will return ERESTART.  For amd64's netbsd32_syscall()
that means we need to back up the PC saved in the trap frame so we can
re-issue the syscall instruction.  For "normal" syscall traps, we saved
the instruction length in the trap frame, but this was missing for the
oosyscall/lcall path.  Since the PC was not backed up, the kernel-only
value ERESTART was returned to userland, causing all sort of grief for
old compat_netbsd32 executables!

XXX Pullup-9

(martin)

2020-03-09 09:52:00 UTC netbsd-9 commitmail json YAML

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

external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.63

Avoid unnecessary zil_commit on rm.

1. Issue zil_commit only if we're actually updating something --
  there's no need to commit if we're unlinking the file or if
  there's no atime update being applied.

2. Issue zil_commit only if the zfs has sync=always set -- for
  sync=standard there's no need for us to commit anything here since
  no application asked for an explicit sync.

Speeds up untarring base.tgz on top of itself by a factor of about
2x, and speeds up rm by a factor of about 10x, on my system with an
SSD SLOG over SATA.  Histogram of unlink, rmdir, and rename timing
shows dramatic reduction in latency for most samples.

(To be fair, this was not an improvement over zfs; issuing the
unnecessary zil_commit was a self-inflicted performance wound.)

(martin)

2020-03-09 09:48:51 UTC netbsd-8 commitmail json YAML

2020-03-09 09:48:00 UTC netbsd-8 commitmail json YAML

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

sys/arch/i386/stand/efiboot/eficons.c: revision 1.10
sys/arch/i386/stand/efiboot/eficons.c: revision 1.11

If the default GOP mode is unavailable, fallback to the first mode defined.
PR# port-amd64/55000

Remove check for bestmode==-1 (shouldn't happen)

(martin)

2020-03-09 08:33:15 UTC MAIN commitmail json YAML

Defer crypto operations to a workqueue and make it utilize all CPUs.
Make device mpsafe.
Some code cleanup.

(mlelstv)

2020-03-09 08:29:12 UTC MAIN commitmail json YAML

Remove wrong comment (copy-paste from somewhere);
__mulsi3 does not depend on __udivsi3.

(rin)

2020-03-09 05:37:37 UTC netbsd-9 commitmail json YAML

2020-03-09 05:36:24 UTC netbsd-9 commitmail json YAML

Apply patch, requested by pgoyette in ticket #775 to fix fallout from
ticket #762:

sys/compat/netbsd32/netbsd32_mod.c (patched)

Fiy arguments to MODULE_HOOK_SET for the new amd64_oosyscall_hook.

(martin)

2020-03-09 05:10:19 UTC MAIN commitmail json YAML

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.

(rin)

2020-03-09 02:22:20 UTC MAIN commitmail json YAML

2020-03-09 01:55:16 UTC MAIN commitmail json YAML

Add an assertion.

(thorpej)

2020-03-09 01:54:31 UTC MAIN commitmail json YAML

2020-03-09 01:53:11 UTC MAIN commitmail json YAML

Now that we're allocating rx software state from a fixed pool, we
don't have to round-trip pointers in a sketchy way -- we can round-
trip indices.

(thorpej)

2020-03-09 01:47:51 UTC MAIN commitmail json YAML

comment out enough stuff to allow crash to print locks.

(christos)

2020-03-09 01:46:24 UTC MAIN commitmail json YAML

print a message for the commands crash does not support.
Allow "show lock"

(christos)

2020-03-09 01:06:34 UTC MAIN commitmail json YAML

If a syscall requires a module to be autoloaded, the initial invocation
of that syscall will return ERESTART.  For amd64's netbsd32_syscall()
that means we need to back up the PC saved in the trap frame so we can
re-issue the syscall instruction.  For "normal" syscall traps, we saved
the instruction length in the trap frame, but this was missing for the
oosyscall/lcall path.  Since the PC was not backed up, the kernel-only
value ERESTART was returned to userland, causing all sort of grief for
old compat_netbsd32 executables!

XXX Pullup-9

(pgoyette)

2020-03-09 00:42:36 UTC MAIN commitmail json YAML

The compat_50_quota code needs quota support from ufs.  Add dependency.

(pgoyette)

2020-03-09 00:32:53 UTC MAIN commitmail json YAML

Allocate a static set of receive software state descriptors at attach
time, and create a simple allocator for them for use by the rx reclaim
handlers.  Don't create and destroy DMA maps for receoive buffers
in the interrupt handlers -- just use the maps that are created at
attach time.

(thorpej)

2020-03-09 00:03:00 UTC MAIN commitmail json YAML

Build RUMP with -fno-delete-null-pointer-checks on all compilers

no-delete-null-pointer-checks is required in Clang/LLVM at least for
NULL + 0 operations that trigger LLVM UBSan and could be miscompiled.

(kamil)

2020-03-08 22:42:35 UTC MAIN commitmail json YAML

2020-03-08 22:27:38 UTC MAIN commitmail json YAML

Bump new libc minor due to new errno codes

(mgorny)

2020-03-08 22:26:03 UTC MAIN commitmail json YAML

Give each Tx DMA map 16 DMA segments rather than the previous absurdly large
number, and structure the loop in txp_start() similarly to other drivers
(e.g. ste_start() in the ste(4) driver).  Similar in spirit to OpenBSD's
rev 1.126, but implemented a bit differently.

(thorpej)

2020-03-08 22:19:15 UTC MAIN commitmail json YAML

Bump kernel version after errno changes in compat and nfs

(mgorny)

2020-03-08 22:12:43 UTC MAIN commitmail json YAML

Update NFS errno mapping and add assert for correctness

Add the mapping for errno values missing in nfsrv_v2errmap[].  While
at it, add a compile-time assert to make sure that the array does not
become out-of-date again.

(mgorny)

2020-03-08 22:11:48 UTC MAIN commitmail json YAML

Update dtrace errno.d mapping and add a script for it

Add a new script to autogenerate errno.d from errno.h, and use it
to regenerate the list to match NetBSD errno codes.

(mgorny)

2020-03-08 22:11:08 UTC MAIN commitmail json YAML

src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/aarch64/c++config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/alpha/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/arm/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/armeb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/coldfire/c++config.h@1.9 / diff / nxr@1.9
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earm/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmeb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmhf/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmhfeb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv4/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv4eb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6eb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6hf/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7eb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7hf/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h@1.14 / diff / nxr@1.14
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/hppa/c++config.h@1.14 / diff / nxr@1.14
      :
(more 58 files)
Enable EOWNERDEAD & ENOTRECOVERABLE in libstdc++

(mgorny)

2020-03-08 22:09:43 UTC MAIN commitmail json YAML

PR standards/44921: Add errno consts for robust mutexes

Add the two missing errno.h constants: EOWNERDEAD and ENOTRECOVERABLE.
While technically they're used for robust mutexes which we do not
support at the moment, they are listed in POSIX and used by libc++.
While libc++ can be made to build without it, it just locally redefines
the values then, so we may as well define them globally.

(mgorny)

2020-03-08 22:08:46 UTC MAIN commitmail json YAML

2020-03-08 22:06:06 UTC MAIN commitmail json YAML

Sync signal messages between catalog and sys_siglist

(mgorny)

2020-03-08 22:05:41 UTC MAIN commitmail json YAML

Sync errno messages between catalog and errno.h

(mgorny)

2020-03-08 21:35:03 UTC MAIN commitmail json YAML

Add support for alignment_assumptions in uubsan

Cherry-pick from FreeBSD:

From 7c1bc5ffc2fa68ddc76e5ea8a3a1a6fdfeee57f0 Mon Sep 17 00:00:00 2001
From: andrew <andrew@FreeBSD.org>
Date: Tue, 28 May 2019 09:12:15 +0000
Subject: [PATCH] Teach the kernel KUBSAN runtime about alignment_assumption

This checks the alignment of a given pointer is sufficient for the
requested alignment asked for. This fixes the build with a recent
llvm/clang.

Sponsored by: DARPA, AFRL

(kamil)

2020-03-08 20:49:31 UTC MAIN commitmail json YAML

2020-03-08 19:59:45 UTC MAIN commitmail json YAML

Avoid unnecessary zil_commit on rm.

1. Issue zil_commit only if we're actually updating something --
  there's no need to commit if we're unlinking the file or if
  there's no atime update being applied.

2. Issue zil_commit only if the zfs has sync=always set -- for
  sync=standard there's no need for us to commit anything here since
  no application asked for an explicit sync.

Speeds up untarring base.tgz on top of itself by a factor of about
2x, and speeds up rm by a factor of about 10x, on my system with an
SSD SLOG over SATA.  Histogram of unlink, rmdir, and rename timing
shows dramatic reduction in latency for most samples.

(To be fair, this was not an improvement over zfs; issuing the
unnecessary zil_commit was a self-inflicted performance wound.)

(riastradh)

2020-03-08 19:24:40 UTC MAIN commitmail json YAML

Follow the example of the MII code and don't register the half-duplex
versions of each media type.

(thorpej)

2020-03-08 19:02:03 UTC MAIN commitmail json YAML

- Use BUS_ADDR_{LO,HI}32(), and rather than forcing the descriptor
  DMA addresses into a 64-bit value (and thus using 64-bit shifts
  when unnecessary), just reference the address from the DMA map
  directly.
- Add some missing byte-swaps.

(thorpej)

2020-03-08 18:40:30 UTC MAIN commitmail json YAML

Only need a read lock for uvm_pagelookup().

(ad)

2020-03-08 18:27:52 UTC MAIN commitmail json YAML

Backport upstream commits (there is no newer release yet):

From c0eb5dbd9c1db6b6d5b1574bcd8c584170d7ab54 Mon Sep 17 00:00:00 2001
From: Alexey Sheplyakov <asheplyakov@altlinux.org>
Date: Wed, 27 Nov 2019 20:50:58 +0400
Subject: Don't crash X server if GPU acceleration is not available

From 4d84cf438e7f1bebf0053035ef0292e9fed257d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
Date: Fri, 29 Nov 2019 16:37:32 +0100
Subject: Handle NULL fb_ptr in pixmap_get_fb

This can happen when HW acceleration is disabled.

From Onno van der Linden in xsrc/55059.

(maya)

2020-03-08 18:26:59 UTC MAIN commitmail json YAML

2020-03-08 17:54:23 UTC MAIN commitmail json YAML

mask was too loose, creating false positives.

(is)

2020-03-08 17:38:37 UTC MAIN commitmail json YAML

Add debugging, no functional change.

(christos)

2020-03-08 17:38:12 UTC MAIN commitmail json YAML

Perform bit operations on unsigned integer

ext2fs_vnops.c:1002:2, signed integer overflow: 510008 * 4294 cannot be represented in type 'int

Maximum usec * 4294 is in the range of unsigned int.

>>> 1000000*4294
4294000000
>>> 2**32
4294967296

Patch submitted by Nisarg S. Joshi.

(kamil)

2020-03-08 17:23:55 UTC MAIN commitmail json YAML

2020-03-08 17:21:52 UTC MAIN commitmail json YAML

2020-03-08 17:04:46 UTC MAIN commitmail json YAML

PR kern/55020: dbregs_dr?_dont_inherit_lwp test cases fail on real hardware

lwp_wait(): make the check for deadlock much more permissive.

(ad)

2020-03-08 15:21:15 UTC MAIN commitmail json YAML

2020-03-08 15:07:44 UTC MAIN commitmail json YAML

Only inlcude fenv.h if __HAVE_FENV

(martin)

2020-03-08 15:05:18 UTC MAIN commitmail json YAML

Kill off kernel_lock_plug_leak(), and go back to dropping kernel_lock in
exit1(), since there seems little hope of finding the leaking code any
time soon.  Can still be caught with LOCKDEBUG.

(ad)

2020-03-08 15:01:50 UTC MAIN commitmail json YAML

Don't zap the non-pdpolicy bits in pg->pqflags.

(ad)

2020-03-08 15:00:31 UTC MAIN commitmail json YAML

sched_preempted(): always clear LP_TELEPORT.

(ad)

2020-03-08 14:44:06 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_ena.c: revision 1.24

replace #if condition for irq_slot with __diagused on the cleanup path

fixes PR kern/55044 by Uwe Toenjes

(martin)

2020-03-08 14:10:24 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior. Found by kUBSan.

(msaitoh)

2020-03-08 14:09:33 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior. Found by kUBSan.

(msaitoh)

2020-03-08 11:22:50 UTC netbsd-9 commitmail json YAML

2020-03-08 11:21:29 UTC netbsd-9 commitmail json YAML

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

sys/kern/kern_mutex.c: revision 1.90

split an "a && b" assertion into two so it's clear in the dump which condition
was not true even if both are true by the time the dump is written.

(martin)

2020-03-08 11:07:58 UTC netbsd-9 commitmail json YAML

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

sys/ufs/ufs/ufs_dirhash.c: revision 1.38

in ufsdirhash_free(), only examine dh->dh_onlist after taking the
dirhashlist lock.  if we skip the lock then we might see that
dh_onlist is zero while ufsdirhash_recycle() is still working on
the dirhash.  the symptom I saw was that ufsdirhash_free() would
try to destroy the dh_lock mutex while it was still held.

(martin)

2020-03-08 11:04:43 UTC netbsd-9 commitmail json YAML

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

sys/kern/subr_pool.c: revision 1.265

fix assertions about when it is ok for pool_get() to return NULL.

(martin)

2020-03-08 11:03:19 UTC netbsd-9 commitmail json YAML

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

sys/dev/acpi/acpi_pci_link.c: revision 1.25

apply FreeBSD revs r214848 and r214849:

    r214849 | jkim | 2010-11-05 13:24:26 -0700 (Fri, 05 Nov 2010) | 2 lines
    Add a forgotten change from the previous commit.
    r214848 | jkim | 2010-11-05 12:50:09 -0700 (Fri, 05 Nov 2010) | 13 lines

    Fix a use-after-free bug for extended IRQ resource[1].  When _PRS buffer is
    copied as a template for _SRS, a string pointer for descriptor name is also
    copied and it becomes stale as soon as it gets de-allocated[2].  Now _CRS is
    used as a template for _SRS as ACPI specification suggests if it is usable.

    The template from _PRS is still utilized but only when _CRS is not available
    or broken.  To avoid use-after-free the problem in this case, however, only
    mandatory fields are copied, optional data is removed, and structure length
    is adjusted accordingly.

    Reported by:    hps[1]
    Analyzed by:    avg[2]
    Tested by:      hps

This also fixes reading past the end of a structure as detected by KASAN.

(martin)

2020-03-08 11:01:22 UTC netbsd-9 commitmail json YAML

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

sys/uvm/uvm_fault.c: revision 1.207

fix two bugs reported in
https://syzkaller.appspot.com/bug?id=8840dce484094a926e1ec388ffb83acb2fa291c9

- in uvm_fault_check(), if the map entry is wired, handle the fault the same way
  that we would handle UVM_FAULT_WIRE.  faulting on wired mappings is valid
  if the mapped object was truncated and then later grown again.

- in uvm_fault_unwire_locked(), we must hold the locks for the vm_map_entry
  while calling pmap_extract() in order to avoid races with the mapped object
  being truncated while we are unwiring it.

(martin)

2020-03-08 10:57:15 UTC netbsd-9 commitmail json YAML

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

lib/libkvm/kvm.c: revision 1.105
lib/libkvm/kvm_x86_64.c: revision 1.11

only do bounce buffering for character devices.

use a binary search in _kvm_pa2off().  this helps a lot for sparse dumps,
which can have millions of memory segments.

(martin)

2020-03-08 10:54:43 UTC netbsd-9 commitmail json YAML

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

sys/arch/amd64/amd64/trap.c: revision 1.126
sys/compat/netbsd32/netbsd32_mod.c: revision 1.17
sys/compat/netbsd32/netbsd32_mod.c: revision 1.18
sys/sys/compat_stub.h: revision 1.23

Fix another left-over from last year's [pgoyette-compat] work.  This
allows recognition of the oosyscall sequence for amd64.

Fixes PR kern/55038
XXX pullup-9

-

fix indentation.  NFCI

(martin)

2020-03-08 10:38:10 UTC netbsd-9 commitmail json YAML

2020-03-08 10:36:38 UTC netbsd-9 commitmail json YAML

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

sys/compat/netbsd32/syscalls.master: revision 1.132
sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.60

Properly mark netbsd32_compat_43 syscalls that are directly implemented
by calling their compat_43 equivalents.  With these changes, and with
built-in versions of COMPAT_NETBSD32, COMPAT_NOMID, and COMPAT_09, I can
now run a netbsd-0.9 statically linked i386 (32-bit) version of /bin/ls
on a 9.99.x amd64 host!

Addresses PR kern/55047 but more changes coming to handle non-built-in
modules.

XXX pullup-9

(martin)

2020-03-08 10:28:17 UTC netbsd-9 commitmail json YAML

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

sys/arch/amiga/dev/gayle_pcmcia.c: revision 1.32
sys/arch/amigappc/include/bus_defs.h: revision 1.8

The Gayle interface uses swapped (little-endian) word accesses, so we
need to use the amiga_bus_stride_1swap methods for the word accesses.

Analyzed and submitted via port-amiga@ by Martin �berg.

Tested on formerly working hardware
- by Jukka Andberg with Dlink DE-660+ (ne)
- by Frank Wille with D-Link DFE-670TXD (ne)

Tested on formerly not working hardware:
- by Martin with 3Com 3c589 Etherling III (ep)
- by Martin and Frank with CompactFlash cards (wdc)

-

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.

(martin)

2020-03-08 10:22:29 UTC netbsd-9 commitmail json YAML

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

libexec/ld.elf_so/map_object.c: revision 1.61
libexec/ld.elf_so/headers.c: revision 1.68
libexec/ld.elf_so/rtld.c: revision 1.203

PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary.  However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9

(martin)

2020-03-08 10:18:04 UTC netbsd-9 commitmail json YAML

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

sys/conf/files: revision 1.1257
sys/conf/files: revision 1.1258
sys/conf/files: revision 1.1259

mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout

Addresses PR kern/55037.
XXX pullup-9

Fix comment - thanks Ryo Shimizu

Also exclude EXEC_AOUT stuff for aarch64
XXX Pullup-9 and -8

(martin)

2020-03-08 10:03:19 UTC netbsd-8 commitmail json YAML

2020-03-08 10:01:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1518):

sys/arch/amigappc/include/bus_defs.h: revision 1.8

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.

(martin)

2020-03-08 10:00:24 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1517):

sys/arch/amiga/dev/gayle_pcmcia.c: revision 1.32

The Gayle interface uses swapped (little-endian) word accesses, so we
need to use the amiga_bus_stride_1swap methods for the word accesses.

Analyzed and submitted via port-amiga@ by Martin �berg.

Tested on formerly working hardware
- by Jukka Andberg with Dlink DE-660+ (ne)
- by Frank Wille with D-Link DFE-670TXD (ne)

Tested on formerly not working hardware:
- by Martin with 3Com 3c589 Etherling III (ep)
- by Martin and Frank with CompactFlash cards (wdc)

(martin)

2020-03-08 09:57:50 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1516):

sys/dev/ic/tms320av110.c: revision 1.24

Make it compilable (remove unused variables).

(martin)

2020-03-08 09:47:28 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1515):

sys/kern/sys_select.c: revision 1.42-1.45

PR/54158: Anthony Mallet: poll(2) does not allow polling all possible fds
(hardcoded limit to 1000 + #<open-fds>). Changed to limit by the max of
the resource limit of open descriptors and the above.

Remove the slop code. Suggested by mrg@

Use the max limit (aka maxfiles or the moral equivalent of OPEN_MAX) which
makes poll(2) align with the Posix documentation (which allows EINVAL if
nfds > OPEN_MAX). From: Anthony Mallet

Add slop of 1000 and explain why.

(martin)

2020-03-08 09:42:29 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #1514):

sys/conf/files: revision 1.1257
sys/conf/files: revision 1.1258

mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout
Addresses PR kern/55037.
XXX pullup-9

Fix comment - thanks Ryo Shimizu

(martin)

2020-03-08 09:29:10 UTC netbsd-8 commitmail json YAML

2020-03-08 09:28:04 UTC netbsd-8 commitmail json YAML

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

sys/external/bsd/drm2/nouveau/nouveau_pci.c: revision 1.24,1.25
(via patch)

Improve nouveau pci attachment code so it waits for the availability of /
before trying to load firmware.
Fixes my PR 54274.

LGTM mrg

list the PCI ID range for new nvidia TU117 and TU116.

adjust the check to simply be >= 0x1580, which is the
first pciid not support.

should fix PR#54600.

(martin)

2020-03-08 09:20:52 UTC netbsd-7 commitmail json YAML

2020-03-08 09:19:55 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1725):

sys/arch/amigappc/include/bus_defs.h: revision 1.8

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.

(martin)

2020-03-08 09:18:34 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1724):

sys/arch/amiga/dev/gayle_pcmcia.c: revision 1.32

The Gayle interface uses swapped (little-endian) word accesses, so we
need to use the amiga_bus_stride_1swap methods for the word accesses.

Analyzed and submitted via port-amiga@ by Martin �berg.

Tested on formerly working hardware
- by Jukka Andberg with Dlink DE-660+ (ne)
- by Frank Wille with D-Link DFE-670TXD (ne)

Tested on formerly not working hardware:
- by Martin with 3Com 3c589 Etherling III (ep)
- by Martin and Frank with CompactFlash cards (wdc)

(martin)

2020-03-08 09:15:34 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1723):

sys/dev/ic/tms320av110.c: revision 1.24

Make it compilable (remove unused variables).

(martin)

2020-03-08 09:05:34 UTC MAIN commitmail json YAML

address to ATF t_vlan failure. adapt ifmcstat(8) output format change.

(nisimura)

2020-03-08 08:26:54 UTC MAIN commitmail json YAML

Fix LOCKDEBUG by calling fdtbus_intr_init as part of cpu_startup_hook, i.e.
later.

(skrll)

2020-03-08 08:25:36 UTC MAIN commitmail json YAML

Use MUTEX_DEFAULT to avoid confusion

(skrll)

2020-03-08 06:44:27 UTC MAIN commitmail json YAML

2020-03-08 06:43:06 UTC MAIN commitmail json YAML

NVIDIA 0x036[0-7] are nForce MCP55 LPC Bridge.

(msaitoh)

2020-03-08 06:32:41 UTC MAIN commitmail json YAML

2020-03-08 06:30:06 UTC MAIN commitmail json YAML

Fix broken printf(3) %d output for numbers more than two digits, e.g.,

  printf("%d\n", 42) ---> "::" instead of "42"

Our __{,u}modsi3 codes assume that __udivsi3 returns remainder to
%d1 (volatile register). __udivsi3 in libgcc does not, and therefore
mixing them up results in mess.

(rin)

2020-03-08 06:25:10 UTC MAIN commitmail json YAML

Retire md(4) in favor of tmpfs provided by module,
though both are not useful for 8MB RAM system...

(rin)

2020-03-08 06:23:18 UTC MAIN commitmail json YAML

sun2 kernel is restricted to ~2MB due to bootloader.
It seems that working kernel should be more smaller.

Strip off most kernel options, and provide by kernel modules.
Also add GENERIC kernel for NFS root instead of FFS.

(rin)

2020-03-08 06:12:01 UTC MAIN commitmail json YAML

Remove mutex stubs for 68010 that merely fall back to C codes, and
do not work with kern_mutex.c rev 1.85 and later:

    http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_mutex.c#rev1.85
    http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_mutex.c#rev1.86

Fix sun2 kernel freeze during early boot stage in mutex_exit(9).

(rin)

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

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

2020-03-08 04:17:50 UTC MAIN commitmail json YAML

2020-03-08 03:16:20 UTC MAIN commitmail json YAML

Use BUS_ADDR_{HI,LO}32().

(thorpej)

2020-03-08 02:44:12 UTC MAIN commitmail json YAML

Support 64-bit DMA addressing on the DP83820, used only when a 64-bit
DMA tag is available.

(thorpej)

2020-03-08 02:42:00 UTC MAIN commitmail json YAML

Add BUS_ADDR_{LO,HI}32() macros to correctly extract the lower and
upper halves of 64-bit DMA addresses for 32-bit and 64-bit bus_addr_t.
This is a common pattern in modern drivers, so it's a good idea to provide
a common correct definition.

This particular implementation suggested by riastradh@.

(thorpej)

2020-03-08 00:53:13 UTC MAIN commitmail json YAML

Fix another left-over from last year's [pgoyette-compat] work.  This
allows recognition of the oosyscall sequence for amd64.

Fixes PR kern/55038

XXX pullup-9

(pgoyette)

2020-03-08 00:31:19 UTC MAIN commitmail json YAML

KMEM_SIZE: append the size_t to the allocated buffer, rather than
prepending, so it doesn't screw up the alignment of the buffer.

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

(ad)

2020-03-08 00:26:06 UTC MAIN commitmail json YAML

split an "a && b" assertion into two so it's clear in the dump which condition
was not true even if both are true by the time the dump is written.

(chs)

2020-03-08 00:23:59 UTC MAIN commitmail json YAML

in ufsdirhash_free(), only examine dh->dh_onlist after taking the
dirhashlist lock.  if we skip the lock then we might see that
dh_onlist is zero while ufsdirhash_recycle() is still working on
the dirhash.  the symptom I saw was that ufsdirhash_free() would
try to destroy the dh_lock mutex while it was still held.

(chs)

2020-03-08 00:18:41 UTC MAIN commitmail json YAML

undo previous since config has been fixed

(christos)

2020-03-08 00:14:18 UTC MAIN commitmail json YAML

use a binary search in _kvm_pa2off().  this helps a lot for sparse dumps,
which can have millions of memory segments.

(chs)

2020-03-08 00:06:42 UTC MAIN commitmail json YAML

only do bounce buffering for character devices.

(chs)

2020-03-08 00:04:12 UTC MAIN commitmail json YAML

Recognize {if{,n}def,elfif{,n}def,else,endif} only at the beginning of the
line or after whitespace.

(christos)

2020-03-07 23:20:19 UTC MAIN commitmail json YAML

clean trailing whitespace

(tnn)

2020-03-07 23:17:47 UTC MAIN commitmail json YAML

correct documentation for options TFTPROOT

TFTPROOT does *not* require MEMORY_DISK_IS_ROOT. In fact, it doesn't
work at all when MEMORY_DISK_IS_ROOT is set, because then setroot()
tries to perform dhcp on md0 instead of the network card.

(tnn)

2020-03-07 22:35:16 UTC MAIN commitmail json YAML

PR/55057: Paul Goyette: Don't use % 6 arithmetic that hurts the brain for
the ifdef state machine, use bits and shifts instead. Also don't forget to
restore the state once an include file ends.

(christos)

2020-03-07 22:26:26 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk@1.15 / diff / nxr@1.15
src/external/gpl3/gcc/lib/libiberty/defs.mk@1.24 / diff / nxr@1.24
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/c++config.h@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h@1.31 / diff / nxr@1.31
src/external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/symver-config.h@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h@1.33 / diff / nxr@1.33
src/external/gpl3/gcc/lib/libstdc++-v3/arch/arm/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h@1.33 / diff / nxr@1.33
src/external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h@1.31 / diff / nxr@1.31
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h@1.29 / diff / nxr@1.29
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h@1.29 / diff / nxr@1.29
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h@1.27 / diff / nxr@1.27
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/symver-config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h@1.26 / diff / nxr@1.26
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/symver-config.h@1.5 / diff / nxr@1.5
      :
(more 110 files)
regen for mknative and all platforms.  there are a few things
fixed in this, mostly related to tgmath.h or frexp, and some
generated vs hand-edited white space diffs.

(mrg)

2020-03-07 20:27:55 UTC MAIN commitmail json YAML

2020-03-07 19:47:44 UTC MAIN commitmail json YAML

2020-03-07 19:26:13 UTC MAIN commitmail json YAML

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

Add missing newline to a diagnostic printf.

(thorpej)

2020-03-07 18:08:48 UTC MAIN commitmail json YAML

Fix MIPS builds by working around an apparent bug in config(8)'s elif
handling.

(thorpej)

2020-03-07 14:53:14 UTC MAIN commitmail json YAML

Try to fix the build. This is why all those inlines should really be in a
separate file as regular function. The code is too large and hard to manage
this way, and only increases in complexity as time goes by.

(christos)

2020-03-07 13:28:45 UTC MAIN commitmail json YAML

Fold constant. err is always 0, so switch to return 0;

(maya)

2020-03-07 13:01:07 UTC MAIN commitmail json YAML

Delete unavailable package from attrs

(uki)

2020-03-07 12:31:50 UTC MAIN commitmail json YAML

Return error values directly where appropriate, instead of using the err
variable.

(fcambus)

2020-03-07 07:33:39 UTC MAIN commitmail json YAML

If bus_dmatag_subregion(), actually fall back on the base 64-bit
DMA tag.

(thorpej)

2020-03-07 06:27:19 UTC MAIN commitmail json YAML

Fix/Update comments about allocm/freem.

(isaki)

2020-03-07 06:25:57 UTC MAIN commitmail json YAML

Split sc_lock and sc_exlock.
Most (probably all) malloc/free (or routines which may sleep) now can be
called without holding mutex.
Pointed out by riastradh@.

(isaki)

2020-03-07 00:57:31 UTC MAIN commitmail json YAML

2020-03-07 00:56:41 UTC MAIN commitmail json YAML

Properly mark netbsd32_compat_43 syscalls that are directly implemented
by calling their compat_43 equivalents.  With these changes, and with
built-in versions of COMPAT_NETBSD32, COMPAT_NOMID, and COMPAT_09, I can
now run a netbsd-0.9 statically linked i386 (32-bit) version of /bin/ls
on a 9.99.x amd64 host!

Addresses PR kern/55047 but more changes coming to handle non-built-in
modules.

XXX pullup-9

(pgoyette)

2020-03-07 00:53:25 UTC MAIN commitmail json YAML

XXX:

turn off -Wunused-but-set-variable for mips' linux_machdep.c and GCC 8.

(mrg)

2020-03-07 00:51:10 UTC MAIN commitmail json YAML

enable DDR and HS200 modes only on boards which claim to support them
with this eMMC works on libretech,all-h3-cc-h5
also tested on pinebook
ok jmcneill@

(macallan)

2020-03-06 20:46:12 UTC MAIN commitmail json YAML

Fix a comment.

(ad)

2020-03-06 20:28:26 UTC MAIN commitmail json YAML

2020-03-06 20:13:24 UTC MAIN commitmail json YAML

add more definitions for ARMv8.1-ARMv8.4

(ryo)

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

Remove note that has been incorrect for a while.

Thanks ottavio for the heads up.

(maya)

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

2020-03-06 18:32:36 UTC MAIN commitmail json YAML

Add new ptrace(2) test file

t_ptrace_sigchld - for SIGCHLD handler + ptrace(2).

Right now a single test is enabled (raise(SIGKILL)) and marked as failed
as it never finishes as the child is never collected before exiting the
parent uninterested about its child (SA_NOCLDWAIT).

(kamil)

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

Add await_collected()

This functions waits for collecting a process.

(kamil)

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

Move macros wrapping functions from msg.h into msg.h

This makes code reusing easier.

(kamil)

2020-03-06 10:26:59 UTC MAIN commitmail json YAML

remove unnecessary lock in sppp_mediastatus() as it doesn't touch struct sppp.

ok'ed by yamaguchi@n.o.

(knakahara)

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

According to mrg@ we need to include aarch64 in the list of those
that need to support COMPAT_NETBSD32

(pgoyette)

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

Include "opt_uvm_page_trkown.h" for UVM_PAGE_TRKOWN.

(riastradh)

2020-03-06 02:31:13 UTC MAIN commitmail json YAML

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.

(christos)

2020-03-05 22:44:19 UTC MAIN commitmail json YAML

2020-03-05 21:08:36 UTC MAIN commitmail json YAML

Also exclude EXEC_AOUT stuff for aarch64

XXX Pullup-9 and -8

(pgoyette)

2020-03-05 18:20:38 UTC MAIN commitmail json YAML

Remove references to non-existing fonts.

Include files with font data (courier11x18.h and iso8x16.h) were removed
in 1999 due to licensing concerns.

(fcambus)

2020-03-05 17:58:08 UTC MAIN commitmail json YAML

Fix userland build by surrounding stuff with #ifdef _KERNEL.

(...Why does this header file get exposed to userland at all?)

(riastradh)

2020-03-05 16:05:45 UTC MAIN commitmail json YAML

u_int*_t -> unit*_t. No funcitonal change.

(msaitoh)

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

Revert "Add fixup operation to remove private mutex types for x86."

The x86 (and arm) definitions of struct kmutex are no longer defined
differently depending on __MUTEX_PRIVATE.

(riastradh)

2020-03-05 15:58:34 UTC MAIN commitmail json YAML

2020-03-05 15:56:56 UTC MAIN commitmail json YAML

Remove __MUTEX_PRIVATE conditional in definition of struct kmutex.

This doesn't buy us anything but the need to hack around it in
ctfmerge to avoid massive duplication of kernel types -- which only
worked for the x86 definition.

This changes only x86 and arm for now, pending compile-testing the
remaining architectures.

(riastradh)

2020-03-05 15:56:20 UTC MAIN commitmail json YAML

2020-03-05 15:45:48 UTC MAIN commitmail json YAML

Add support for Farallon PN9000SX from FreeBSD.

(msaitoh)

2020-03-05 15:43:30 UTC MAIN commitmail json YAML

2020-03-05 15:43:00 UTC MAIN commitmail json YAML

Add Farallon PN9000SX Ethernet.

(msaitoh)

2020-03-05 15:40:06 UTC MAIN commitmail json YAML

No functional change:

- Remove extra semicolon
- Remove extra whitespace

(msaitoh)

2020-03-05 15:36:39 UTC MAIN commitmail json YAML

No functional change:

- Fix typo in comment.
- Whitespace

(msaitoh)

2020-03-05 15:33:13 UTC MAIN commitmail json YAML

s/Intialize/Initialize/ in comment.

(msaitoh)

2020-03-05 15:18:56 UTC MAIN commitmail json YAML

2020-03-05 14:24:46 UTC MAIN commitmail json YAML

#include_next confuses clang-cpp; use relative pathname to upstream dts

warning: #include_next in file found relative to primary source file or
found by absolute path; will search from start of include path
[-Winclude-next-absolute-path]
error: #include nested too deeply

(tnn)

2020-03-05 13:11:31 UTC MAIN commitmail json YAML

Fix comment - thanks Ryo Shimizu

(pgoyette)

2020-03-05 12:21:00 UTC MAIN commitmail json YAML

Part of PR kern/54994:

Memory allocated in the fast path of uarea_poolpage_alloc() is
a page itself. Therefore, it is obviously page-aligned.

Pointed out by skrll.

(rin)

2020-03-05 11:44:54 UTC MAIN commitmail json YAML

Fix pmap_procwr().

While we need to turn off IMMU, DMMU should be kept on. Otherwise,
dcbst (and also icbi probably, though not documented clearly both
for 405 and 403) should not work correctly.

(rin)

2020-03-05 11:33:14 UTC MAIN commitmail json YAML

2020-03-05 08:36:54 UTC MAIN commitmail json YAML

Hackily rename enum pipe for drm, without patching.

The patch we used to maintain to do this rename doubled the pain
of merging drm updates.  But ctf gets confused if we have a struct
and an enum both called `pipe', and it's technically against C99
to do so.  So #define it in all drm code for now to fix dtrace.

(riastradh)

2020-03-05 08:35:17 UTC MAIN commitmail json YAML

Use howmany.  NFC.

(skrll)

2020-03-05 08:30:59 UTC MAIN commitmail json YAML

Use howmany.  NFC.

(skrll)

2020-03-05 08:12:30 UTC MAIN commitmail json YAML

Remove XXX comment.  The sync is done one the last sitd after the loop.

(skrll)

2020-03-05 08:08:34 UTC MAIN commitmail json YAML

2020-03-05 07:46:59 UTC MAIN commitmail json YAML

Avoid struct inode.

This is an fs-independent structure in Linux.  We don't actually use
it as such; it's just a dummy struct tag.  But we do have an actual
struct inode in ufs and in lfs, and using the same struct tag here
confuses ctf leading to four copies of pretty much every drm data
structure.

(riastradh)

2020-03-05 07:46:49 UTC MAIN commitmail json YAML

Avoid duplicate definition of internal_state struct.

(riastradh)

2020-03-05 07:46:36 UTC MAIN commitmail json YAML

2020-03-05 02:14:53 UTC MAIN commitmail json YAML

Retire tlbpid_t (u_short):

- PID (ctx, ASID) is 8-bit length, not half word.
- For struct pmap, no need to use integer types smaller than word as
  pm_ctx because of alignment.
- For ppc4xx_tlb_enter(), we need word-length storage for pid (and msr).

XXX
Better to rewrite pmap module with more suggestive integer types rather
than char, int, long, and so on.

(rin)

2020-03-05 02:02:08 UTC MAIN commitmail json YAML

copyoutstr(9): return ENAMETOOLONG correctly when source string is
not NUL-terminated.

(rin)

2020-03-05 01:35:00 UTC MAIN commitmail json YAML

pmap_procwr(): use dcbst instead of dcbf as a tiny optimization.

(rin)

2020-03-05 01:33:36 UTC MAIN commitmail json YAML

ppc4xx_tlb_enter(): invalidate entry after clearing MSR for sure.

(rin)

2020-03-05 01:31:27 UTC MAIN commitmail json YAML

Misc non-critical fixes.

- __asm --> __asm volatile for sure
- turn DEBUG code in __asm into DIAGNOSTIC code in C
- style

(rin)

2020-03-05 01:21:09 UTC MAIN commitmail json YAML

Cosmetic change. No binary changes.

(rin)