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

2024-05-10 20:45:05 UTC Now

2019-12-08 22:35:27 UTC MAIN commitmail json YAML

_rtld_relro - fix debug printf format for a size_t argument

(uwe)

2019-12-08 21:46:03 UTC MAIN commitmail json YAML

Fix typo in the definition of #ha() in a comment.

(uwe)

2019-12-08 21:30:00 UTC MAIN commitmail json YAML

2019-12-08 20:42:49 UTC MAIN commitmail json YAML

Merge x86 pmap changes from yamt-pagecache:

- Deal better with the multi-level pmap object locking kludge.
- Handle uvm_pagealloc() being able to block.

(ad)

2019-12-08 20:35:23 UTC MAIN commitmail json YAML

For safety, cv_broadcast(&bp->b_busy) in more places where the buffer is
changing identity or moving from one vnode list to another.

(ad)

2019-12-08 20:00:56 UTC MAIN commitmail json YAML

After lots of testing I'm not convinced of the benefit to the tweak
I made to rw_enter(), so undo it to return to baseline.

(ad)

2019-12-08 19:52:37 UTC MAIN commitmail json YAML

Revert previous.  No performance gain worth the potential headaches
with buffers in these contexts.

(ad)

2019-12-08 19:49:25 UTC MAIN commitmail json YAML

Adjustment to previous: if we're going to toss the buffer, then wake
everybody.

(ad)

2019-12-08 19:26:05 UTC MAIN commitmail json YAML

- Avoid thundering herd: cv_broadcast(&bp->b_busy) -> cv_signal(&bp->b_busy)
- Sprinkle __cacheline_aligned.

(ad)

2019-12-08 19:24:26 UTC MAIN commitmail json YAML

Avoid thundering herd: cv_broadcast(&bp->b_busy) -> cv_signal(&bp->b_busy)

(ad)

2019-12-08 19:23:51 UTC MAIN commitmail json YAML

Avoid thundering herd: cv_broadcast(&bp->b_busy) -> cv_signal(&bp->b_busy)

(ad)

2019-12-08 18:13:24 UTC MAIN commitmail json YAML

Add SUNXI_CCU_NM_ROUND_DOWN to CE clock, fix pll parents to use 2X outputs

(jmcneill)

2019-12-08 17:37:16 UTC MAIN commitmail json YAML

Adjust tests for 0 hex values printing 0 instead of 0x0

(christos)

2019-12-08 15:54:35 UTC netbsd-9 commitmail json YAML

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

external/cddl/osnet/dist/uts/common/fs/zfs/arc.c: revision 1.15
share/mk/bsd.own.mk: revision 1.1167
external/cddl/osnet/dist/uts/common/os/fm.c: revision 1.2

Provide a default ptob() implementation
Need sys/atomic.h on NetBSD
Enable ZFS support on aarch64

(martin)

2019-12-08 15:51:50 UTC MAIN commitmail json YAML

Add another issue that I just remembered, from the time working on the
[pgoyette-compat] branch, regarding inability to get some XEN-related
modules to build.

(pgoyette)

2019-12-08 15:09:33 UTC MAIN commitmail json YAML

PR install/54745: fix confusion about absolut and NetBSD-partition
relative offsets.

(martin)

2019-12-08 15:05:44 UTC netbsd-9 commitmail json YAML

2019-12-08 15:00:33 UTC netbsd-9 commitmail json YAML

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

external/mit/MesaLib/dist/src/gallium/winsys/sw/dri/dri_sw_winsys.c: revision 1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c: revision 1.2
external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_buffer.c: revision 1.2

From 02c3dad0f3b4d26e0faa5cc51d06bc50d693dcdc Mon Sep 17 00:00:00 2001

From: Brian Paul <brianp@vmware.com>
Date: Wed, 9 Oct 2019 12:05:16 -0600
Subject: [PATCH] Call shmget() with permission 0600 instead of 0777

A security advisory (TALOS-2019-0857/CVE-2019-5068) found that
creating shared memory regions with permission mode 0777 could allow
any user to access that memory.  Several Mesa drivers use shared-
memory XImages to implement back buffers for improved performance.

This path changes the shmget() calls to use 0600 (user r/w).
Tested with legacy Xlib driver and llvmpipe.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>

(martin)

2019-12-08 14:59:42 UTC MAIN commitmail json YAML

dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)

dm_target_insert() has assertions to ensure targets implement all handlers.
Adding dummy ones at least prevents panic on modload(8).

(tkusumi)

2019-12-08 14:43:16 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #517):

sys/arch/emips/ebus/flash_ebus.c: revision 1.21
sys/arch/emips/ebus/ace_ebus.c: revision 1.21

Drop advertisement clause from my licenses

(martin)

2019-12-08 14:42:02 UTC netbsd-9 commitmail json YAML

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

etc/rc.d/zfs: revision 1.2
etc/rc.d/zfs: revision 1.3

Attempt to load the zfs module even if /etc/zfs/zpool.cache is absent. The
module needs to be loaded to create a pool in the first place, and
autoloading won't work after the fact won't work at securelevel=1.

Add missing rcvar=$name

(martin)

2019-12-08 14:39:07 UTC netbsd-9 commitmail json YAML

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

external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c: revision 1.13

Initialize b_dev before passing buf to d_minphys (ldminphys needs this)

(martin)

2019-12-08 14:37:29 UTC netbsd-9 commitmail json YAML

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

sys/arch/aarch64/aarch64/kobj_machdep.c: revision 1.3

Flush insn / data caches after loading modules

(martin)

2019-12-08 14:36:21 UTC netbsd-9 commitmail json YAML

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

share/mk/bsd.kmodule.mk: revision 1.63

Build aarch64 modules without fp or simd instructions.

(martin)

2019-12-08 14:35:10 UTC netbsd-9 commitmail json YAML

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

distrib/utils/embedded/conf/evbarm.conf: revision 1.34

Remove the pretty much useless 128MB swap partition from the arm images.

(martin)

2019-12-08 14:31:58 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/arm32/fault.c: revision 1.109

if Thumb-32 bit instruction located on a page boundariy, also need to consider the pc + 2 address.
Fix PR/54720. more detail and PoC are descrived in the PR.

(martin)

2019-12-08 14:29:37 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/imx/if_enet.c: revision 1.29

set the multicast filter properly.

don't always IFF_ALLMULTI if multicast is configured.
fix the handling of GAUR and GALR.

(martin)

2019-12-08 14:26:39 UTC netbsd-9 commitmail json YAML

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

distrib/sets/lists/comp/mi: revision 1.2294
share/man/man9/Makefile: revision 1.443
sys/sys/atomic.h: revision 1.18
share/man/man9/atomic_loadstore.9: revision 1.1
share/man/man9/atomic_loadstore.9: revision 1.2

New atomic load/store operations for the kernel.

Guarantee no fusing and no tearing, and can optionally impose
ordering relative to other memory operations.

Unordered:
- atomic_load_relaxed
- atomic_store_relaxed

Ordered:
- atomic_load_acquire
- atomic_load_consume
- atomic_store_release

These are intended to match C11 semantics, and can be defined in
terms of the C11 atomic API when ready.

Document relation to atomic_ops(3) and membar_ops(3).

(martin)

2019-12-08 13:37:46 UTC netbsd-9 commitmail json YAML

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

lib/libm/arch/aarch64/fenv.c: revision 1.5
lib/libm/arch/aarch64/fenv.c: revision 1.6

Fix fesetenv and feupdateenv.
- fesetenv is supposed to set the stored rounding mode (and stored trap
  settings, but they have no effect on any ARMv8 I know).
- feupdateenv is supposed to re-raise the exceptions that were raised
  in the environment when it was called.
XXX atf test
XXX pullup-9

Fix feraiseexcept.
- Don't touch the trap flags (though on all ARMv8 I know they have no
  effect anyway).
- Don't clear any existing raised exception flags; just add to them.
XXX atf test
XXX pullup-9

(martin)

2019-12-08 13:35:51 UTC netbsd-9 commitmail json YAML

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

lib/libc/gdtoa/Makefile.inc: revision 1.11
lib/libc/gdtoa/gdtoa_fltrnds.h: revision 1.2
lib/libc/gdtoa/gdtoaimp.h: revision 1.15
lib/libc/gdtoa/gdtoaimp.h: revision 1.17

Honour the floating-point rounding mode in floating-point formatting.

C99, Sec. 7.19.6.1 `The fprintf function', paragraph 13, p. 281:
  (Recommended practice)
  For e, E, f, F, g, and G conversions, if the number of significant
  decimal digits is at most DECIMAL_DIG, then the result should be
  correctly rounded.  If the number of significant decimal digits is
  more than DECIMAL_DIG but the source value is exactly
  representable with DECIMAL_DIG digits, then the result should be
  an exact representation with trailing zeros.  Otherwise, the
  source value is bounded by two adjacent decimal strings L < U,
  both having DECIMAL_DIG significant idgits; the value of the
  resultant decimal string D should satisfy L <= D <= U, _with the
  extra stipulation that the error should have a correct sign for
  the current rounding direction_.  [emphasis added]

The gdtoa code base already supports respecting the floating-point
rounding mode, as long as we compile it with Honor_FLT_ROUNDS
defined.  However, for this to work, fegetround must be available in
libc, which it is not currently -- the fenv logic is in libm.

Fortunately, we don't have to move all of fenv from libm to libc --
programs that do not link against libm don't have fesetround, so the
rounding mode is always the default (barring asm shenanigans that
bypass the API -- tough).  So use a weak reference to fegetround; by
default, assume FE_TONEAREST if it is not defined.

Mark the libc fegetround weak reference unused.
Not all .c files that include gdtoaimp.h use it, which makes clang
unhappy.

(martin)

2019-12-08 13:23:23 UTC netbsd-9 commitmail json YAML

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

common/lib/libc/hash/murmurhash/murmurhash.c: revision 1.7
common/lib/libc/hash/murmurhash/murmurhash.c: revision 1.8
sys/sys/param.h: revision 1.610
sys/arch/amd64/include/param.h: revision 1.31
sys/arch/i386/include/param.h: revision 1.85

New macro ALIGNED_POINTER_LOAD.

To be used with ALIGNED_POINTER(p,t) instead of writing *(const t *)p
directly.  This way, on machines without strict alignment, we can use
memcpy to pacify sanitizers, while getting the same compiled code in
the end with a single (say) MOV instruction.

Fix byte order bug in murmurhash and pacify sanitizers.
add now required includes for memcpy prototypes analogue to other hash functions
(fix the build)

(martin)

2019-12-08 13:19:59 UTC MAIN commitmail json YAML

Welcome 9.99.21. dk_lookup() has been replaced.

(mlelstv)

2019-12-08 13:16:53 UTC netbsd-9 commitmail json YAML

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

share/man/man4/rnd.4: revision 1.26
share/man/man4/rnd.4: revision 1.27
share/man/man4/rnd.4: revision 1.28
share/man/man4/rnd.4: revision 1.25

Update man page to reflect switch from CTR_DRBG to Hash_DRBG.

Replace slightly wrong rant by shorter and slightly less long rant.
(If X and Y in Z/2Z are independent, then so are X and X+Y.  What was
I thinking.)

Update NIST SP800-90A reference.

New sentence, new line. Use \(em.

(martin)

2019-12-08 13:13:06 UTC netbsd-9 commitmail json YAML

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

sys/stand/efiboot/Makefile.efiboot: revision 1.9
sys/stand/efiboot/efiacpi.c: revision 1.5
sys/stand/efiboot/version: revision 1.13
sys/stand/efiboot/smbios.h: revision 1.1
sys/stand/efiboot/smbios.c: revision 1.1

Use SMBIOS system vendor and product strings to create a "model" string
for the root node in the fabricated ACPI device tree, when possible.

(martin)

2019-12-08 13:09:28 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #502):
sys/arch/x86/x86/hyperv.c: revision 1.5
sys/arch/x86/include/genfb_machdep.h: revision 1.4
sys/arch/x86/x86/genfb_machdep.c: revision 1.15
Prevent panic when attaching genfb if using a serial console with Hyper-V Gen.2.

(martin)

2019-12-08 13:06:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #501):

games/fortune/datfiles/fortunes: revision 1.83
games/fortune/datfiles/fortunes: revision 1.84
games/fortune/datfiles/fortunes: revision 1.85
games/fortune/datfiles/fortunes: revision 1.86
games/fortune/datfiles/netbsd: revision 1.29

Donnie Darko

Chris' happiest moment
http://bbc.co.uk/programmes/b09b1zbb

Definition of austerity by Alexei Sayle on Radio 4
https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc

https://twitter.com/sei6r/status/1182433546331279360

Introspection. From "Surely You're Joking, Mr. Feynman!"

(martin)

2019-12-08 13:01:10 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #500):

usr.bin/calendar/calendars/calendar.music: revision 1.20
usr.bin/calendar/calendars/calendar.computer: revision 1.8
usr.bin/calendar/calendars/calendar.computer: revision 1.9
usr.bin/calendar/calendars/calendar.usholiday: revision 1.9
usr.bin/calendar/calendars/calendar.birthday: revision 1.30
usr.bin/calendar/calendars/calendar.birthday: revision 1.31
usr.bin/calendar/calendars/calendar.birthday: revision 1.32
usr.bin/calendar/calendars/calendar.birthday: revision 1.33
usr.bin/calendar/calendars/calendar.birthday: revision 1.34
usr.bin/calendar/calendars/calendar.birthday: revision 1.35
usr.bin/calendar/calendars/calendar.netbsd: revision 1.41
usr.bin/calendar/calendars/calendar.netbsd: revision 1.42
usr.bin/calendar/calendars/calendar.netbsd: revision 1.43

Add Danny Cohen
https://www.nytimes.com/2019/08/16/obituaries/danny-cohen-who-helped-set-the-stage-for-a-digital-era-dies-at-81.html

Add 8.1 release

sort

We use spaces, not tabs here

Add Alan Perlis

Add SICP
https://twitter.com/mit_csail/status/1164226910035087360

Add Ted Nelson's birthday

Belatedly update several entries that move from year to year.

Add Aaron Swartz and Steve Jobs

Add Grace Hopper and Richard Feynman

Sort

(martin)

2019-12-08 12:57:21 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/ti/ti_wdt.c: revision 1.1
sys/arch/arm/ti/am3_prcm.c: revision 1.12
sys/arch/arm/ti/files.ti: revision 1.21
sys/arch/evbarm/conf/GENERIC: revision 1.68

Add TI OMAP watchdog timer driver.
Add tiwdt

(martin)

2019-12-08 12:55:30 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/rockchip/rk3399_pcie.c: revision 1.7

Do not crash if the optional vpcie3v3-supply property is missing or the
regulator can not be found.

(martin)

2019-12-08 12:54:10 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/ti/ti_sdhc.c: revision 1.4
sys/arch/arm/ti/ti_sdhc.c: revision 1.5
sys/arch/arm/ti/am3_prcm.c: revision 1.11

Fix mmc and timer indexes.
Fix inverted ti,needs-special-hs-handling property logic and enable EDMA support
Support 1-bit mode and force all xfers to bounce to workaround a transfer error issue for now

(martin)

2019-12-08 12:50:44 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #495):

distrib/notes/sparc/contents: revision 1.26

It's KRUPS not GENERIC-KRUPS.

(martin)

2019-12-08 12:48:14 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #494):

sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.24

Add a hack for qemu/macppc. OF_finddevice calls will crash depending on
the boot loader and kernel being used. This patch allows using
-prom-env qemu_boot_hack=y to disable the lookup.

(martin)

2019-12-08 12:23:00 UTC MAIN commitmail json YAML

Drop comment about dk_lookup being in the wrong place.

(mlelstv)

2019-12-08 12:15:24 UTC MAIN commitmail json YAML

Drop now unused dk_lookup function.

(mlelstv)

2019-12-08 12:14:41 UTC MAIN commitmail json YAML

2019-12-08 11:53:54 UTC MAIN commitmail json YAML

Use the inlines; it is actually fine, since the compiler drops the inlines
if the caller is kmsan-instrumented, forcing a white-listing of the memory
access.

(maxv)

2019-12-08 11:48:15 UTC MAIN commitmail json YAML

Fix __nomsan: missing opt_kmsan.h, and the attribute should be
kernel-memory.

(maxv)

2019-12-08 10:57:17 UTC MAIN commitmail json YAML

2019-12-08 10:50:21 UTC MAIN commitmail json YAML

dm: Move targets specific structs to .c files

These don't need to be defined and exposed in dm.h.

(tkusumi)

2019-12-08 10:37:19 UTC MAIN commitmail json YAML

Mark FDT as non-exec and create KVA=VA mapping of same size as identity
mapping, i.e. include BOOTPAGE_ALLOC_MAX

(skrll)

2019-12-08 10:35:53 UTC MAIN commitmail json YAML

dm: Unbreak compilation of kernel modules

The dm kernel modules (MK_DM_TARGETS enabled in sys/modules/dm/Makefile)
have been broken. Unbreak the build.

(tkusumi)

2019-12-08 10:33:35 UTC netbsd-8 commitmail json YAML

2019-12-08 10:32:41 UTC netbsd-8 commitmail json YAML

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

include/monetary.h: revision 1.4

PR lib/54744  (bruno@haible.de)
Add missing __END_DECLS for C++ compiles.

XXX pullup -9 XXX pullup -8 (bug not present in -7).

(martin)

2019-12-08 10:31:02 UTC netbsd-8 commitmail json YAML

2019-12-08 10:30:31 UTC netbsd-8 commitmail json YAML

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

sys/dev/cons.c: revision 1.76
sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

(martin)

2019-12-08 10:27:54 UTC netbsd-7-0 commitmail json YAML

2019-12-08 10:27:32 UTC netbsd-7-0 commitmail json YAML

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

sys/dev/cons.c: revision 1.76
sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

(martin)

2019-12-08 10:27:05 UTC netbsd-7-1 commitmail json YAML

2019-12-08 10:26:37 UTC netbsd-7-1 commitmail json YAML

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

sys/dev/cons.c: revision 1.76
sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

(martin)

2019-12-08 10:26:08 UTC netbsd-7 commitmail json YAML

2019-12-08 10:25:38 UTC netbsd-7 commitmail json YAML

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

sys/dev/cons.c: revision 1.76
sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

(martin)

2019-12-08 10:12:19 UTC MAIN commitmail json YAML

2019-12-08 04:41:02 UTC MAIN commitmail json YAML

dm: Refactor target's ->init() i/f

Take dm_table_entry_t* instead of void**.
Remove dm_dev_t* unneeded by target code.
No functional change, but for future changes.

taken-from: DragonFlyBSD

(tkusumi)

2019-12-08 02:57:52 UTC MAIN commitmail json YAML

Replace mention of azalia with hdaudio

(nia)

2019-12-08 02:54:54 UTC MAIN commitmail json YAML

2019-12-08 02:15:02 UTC MAIN commitmail json YAML

PR lib/54744  (bruno@haible.de)

Add missing __END_DECLS for C++ compiles.

XXX pullup -9 XXX pullup -8 (bug not present in -7).

(kre)

2019-12-08 00:58:16 UTC MAIN commitmail json YAML

We don't need to require the presence of /etc/zfs/zpool.cache to unmount &
unload the module, just like for the start target.

(sevan)

2019-12-08 00:12:20 UTC MAIN commitmail json YAML

2019-12-08 00:00:59 UTC MAIN commitmail json YAML

Simplify markup for inline code to plain .Li in most places.

Use backslashes to protetect embedded spaces in inline code to prevent
filling from stretching them.

Use .Fn and .Fa to refer only to things this manual page documents,
they are not to be used for "a function" or "a function argument" in
general.

In code examples drop the empty line at the beginning of a function
(mandated by the KNF when there are no variables) - it doesn't help
readability here.

(uwe)

2019-12-07 21:14:36 UTC MAIN commitmail json YAML

mi_switch: move an over eager KASSERT defeated by kernel preemption.
Discovered during automated test.

(ad)

2019-12-07 19:50:34 UTC MAIN commitmail json YAML

Revert the in_interrupt() change to use again the x86 specific code

This is prerequisite for kMSan and upcoming kernel changes.

Discussed with <maxv>

(kamil)

2019-12-07 19:38:29 UTC MAIN commitmail json YAML

Switch proc_getlwpstatus from PT_LWPINFO to PT_GET_SIGINFO for NetBSD

PT_LWPINFO from FreeBSD is almost never intended to be expressed with
PT_LWPINFO in NetBSD. PT_GET_SIGINFO reads siginfo_t with the signal
information about the event, on FreeBSD siginfo_t is merged into
ptrace_lwpinfo and returns the thread that received the event (not the
first one in a list like on NetBSD).

(kamil)

2019-12-07 17:56:08 UTC MAIN commitmail json YAML

sys/atomic.h for membar_*

(jmcneill)

2019-12-07 17:36:33 UTC MAIN commitmail json YAML

mi_switch: move LOCKDEBUG_BARRIER later to accomodate holding two locks
on entry.

(ad)

2019-12-07 16:38:42 UTC MAIN commitmail json YAML

2019-12-07 16:32:22 UTC MAIN commitmail json YAML

Add some more pfilter_notify() calls where authentication attempts fail.

(christos)

2019-12-07 16:25:36 UTC MAIN commitmail json YAML

don't call pfilter_notify() from authz_log(). Logging should not have side
effects (kim@)

(christos)

2019-12-07 16:25:05 UTC MAIN commitmail json YAML

don't call pfilter_notify() twice in grace_alarm_handler(). (kim@)

(christos)

2019-12-07 16:13:39 UTC MAIN commitmail json YAML

2019-12-07 16:00:36 UTC MAIN commitmail json YAML

Use bus_space_{peek,poke}_4 for pci conf reg access.

(jmcneill)

2019-12-07 16:00:09 UTC MAIN commitmail json YAML

Define __BUS_SPACE_HAS_PROBING_METHODS

(jmcneill)

2019-12-07 15:28:39 UTC MAIN commitmail json YAML

2019-12-07 15:14:00 UTC MAIN commitmail json YAML

Add missing MLINK for membar_datadep_consumer(3).

Detected by the indefatigable wizd.

(riastradh)

2019-12-07 14:55:58 UTC MAIN commitmail json YAML

Restore call to pserialize_init.

We need it after all for psz_lock on the event counter.

(riastradh)

2019-12-07 13:33:45 UTC MAIN commitmail json YAML

Relax restrictions on packnames, as disklabel(8) does not do full decoding
for the tag field.
Fix quoting of command args.

(martin)

2019-12-07 13:31:41 UTC MAIN commitmail json YAML

Fix build for ports without __BUS_SPACE_HAS_STREAM_METHODS defined

(jmcneill)

2019-12-07 12:47:07 UTC MAIN commitmail json YAML

Remove trailing whitespace.

(wiz)

2019-12-07 12:45:28 UTC MAIN commitmail json YAML

Really add -isoC-2018 (not just the docs).

(wiz)

2019-12-07 12:45:11 UTC MAIN commitmail json YAML

2019-12-07 12:43:19 UTC MAIN commitmail json YAML

Reduce diff to upstream.

(wiz)

2019-12-07 12:35:27 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2019-12-07 12:34:17 UTC MAIN commitmail json YAML

Sync usage with man page, merge single letter options.

Limit program usage line length.

(wiz)

2019-12-07 12:26:05 UTC MAIN commitmail json YAML

Simplify macro usage.

(wiz)

2019-12-07 12:22:19 UTC MAIN commitmail json YAML

2019-12-07 11:45:45 UTC MAIN commitmail json YAML

Get a Hyper-V virtual processor id in cpu_hatch().

Currently, it is got in config_interrupts context.
However, since it is required when attaching a device,
it is got earlier than now.

(nonaka)

2019-12-07 10:19:35 UTC MAIN commitmail json YAML

Panic instead of printf, same as syscall.

(maxv)

2019-12-07 08:47:39 UTC netbsd-8 commitmail json YAML

2019-12-07 08:46:48 UTC netbsd-8 commitmail json YAML

2019-12-07 06:26:31 UTC MAIN commitmail json YAML

dm: Simplify list eviction code

taken-from: DragonFlyBSD

(tkusumi)

2019-12-07 04:55:01 UTC MAIN commitmail json YAML

Drop the advertising clause to match the other files.

(christos)

2019-12-07 02:29:03 UTC MAIN commitmail json YAML

loadfile sets errno, return the correct error, not EIO.

(christos)

2019-12-07 01:00:40 UTC MAIN commitmail json YAML

clean up the video mode selection logic, switch modes only when actually
necessary
while there make some debug output optional

(macallan)

2019-12-06 21:45:14 UTC MAIN commitmail json YAML

Note also that the load address (if provided) is also for the module's
text segment.

(pgoyette)

2019-12-06 21:36:11 UTC MAIN commitmail json YAML

Make it possible to call mi_switch() and immediately switch to another CPU.
This seems to take about 3us on my Intel system.  Two changes required:

- Have the caller to mi_switch() be responsible for calling spc_lock().
- Avoid using l->l_cpu in mi_switch().

While here:

- Add a couple of calls to membar_enter()
- Have the idle LWP set itself to LSIDL, to match softint_thread().
- Remove unused return value from mi_switch().

(ad)

2019-12-06 21:07:08 UTC MAIN commitmail json YAML

NetBSD 9.99.20 cpu_info/cpu_data changes for topology

(ad)

2019-12-06 19:37:43 UTC MAIN commitmail json YAML

Adjust snprintb(3) format from '%d' to '%ju' to reflect reality and so that
it works on big endian machines.

(christos)

2019-12-06 19:36:22 UTC MAIN commitmail json YAML

Formalize that the printf formats should be uintmax_t so we can
uniformly use 'j' in the user-provided formatting strings instead
of depending on _LP64 to use 'll' or 'l' (and the PRI macros). The
alternative is to parse the printf format manually to determine
which modifier to apply which would make this transparent to the
user (they could still always use '%u' or '%x'), but that's too
painful.

(christos)

2019-12-06 19:36:22 UTC MAIN commitmail json YAML

Sanitize disk type and packname a bit more - when using existing disklabel
partitions we might run into trouble later when filing this label (unescaped)
in disktab format otherwise.

(martin)

2019-12-06 19:31:52 UTC MAIN commitmail json YAML

Correct the man page, and say that the printf(3) format characters need
to be uintmax_t.

(christos)

2019-12-06 19:28:11 UTC MAIN commitmail json YAML

Fix broken tests in big endian machines. Internally field values are
stored as uint64_t/uintmax_t so printing them with %d on big endian
ends up being 0.

(christos)

2019-12-06 18:33:19 UTC MAIN commitmail json YAML

sched_tick(): don't try to optimise something that's called 10 times a
second, it's a fine way to introduce bugs (and I did).  Use the MI
interface for rescheduling which always does the correct thing.

(ad)

2019-12-06 18:16:23 UTC MAIN commitmail json YAML

Remove __HAVE_CPU_LWP_SETPRIVATE from aarch64

aarch64 specific cpu_lwp_setprivate() is redundant with its caller
lwp_setprivate() and there are no MD bits.

(kamil)

2019-12-06 18:15:57 UTC MAIN commitmail json YAML

softint_trigger (slow case): set RESCHED_IDLE too just to be consistent.
No functional change.

(ad)

2019-12-06 18:03:49 UTC MAIN commitmail json YAML

Remove misleading comments from core(5)

netbsd_elfcore_procinfo is still in version 1.
cpi_siglwp is stored in the same netbsd_elfcore_procinfo version (1).

The size of struct is stored in cpi_cpisize and the struct can be
expanded without versioning the struct.

(kamil)

2019-12-06 17:41:43 UTC MAIN commitmail json YAML

Correct signals in siglist+sigmask passed in kinfo_lwp

Make the union of LWP and PROC pending signals correctly.

(kamil)

2019-12-06 16:54:47 UTC MAIN commitmail json YAML

cast to proper type

(maxv)

2019-12-06 16:46:14 UTC MAIN commitmail json YAML

2019-12-06 16:33:47 UTC MAIN commitmail json YAML

2019-12-06 16:19:32 UTC MAIN commitmail json YAML

Fix manpage due to updated aligned_alloc behavior

Since aligned_alloc does not demand that size is to be multiple of alignment
anymore, don't make that claim in the man page.

(nros)

2019-12-06 16:11:59 UTC MAIN commitmail json YAML

dm: Don't ignore dm_target_alloc() argument

dm_target_alloc() is supposed to be copying the name argument to its ->name.
taken-from: DragonFlyBSD

(tkusumi)

2019-12-06 14:43:30 UTC MAIN commitmail json YAML

2019-12-06 14:43:18 UTC MAIN commitmail json YAML

Teach `rndctl -L' to update the seed file, not just delete it.

The seed file is updated by entering the old seed into the system and
then hashing the old seed together with data from /dev/urandom, and
writing it atomically with write-to-temporary/rename-to-permanent.

This way, interruption by crash or power loss does not obliterate
your persistent entropy (unless it causes file system corruption).

(riastradh)

2019-12-06 12:46:06 UTC MAIN commitmail json YAML

Clear the allocated memory in hyperv_dma_alloc().

(nonaka)

2019-12-06 12:41:17 UTC MAIN commitmail json YAML

Added RNDIS RSS and TCP offload related definitions.

(nonaka)

2019-12-06 12:39:51 UTC MAIN commitmail json YAML

Added NDIS ver.6.20 definition.

(nonaka)

2019-12-06 08:40:34 UTC MAIN commitmail json YAML

Simplify userret function signature.  From ad@

(skrll)

2019-12-06 08:35:21 UTC MAIN commitmail json YAML

Fix a bunch of unimportant "Local variable hides global variable" warnings
from the LGTM bot.

(maxv)

2019-12-06 07:27:07 UTC MAIN commitmail json YAML

2019-12-06 07:12:39 UTC MAIN commitmail json YAML

2019-12-06 06:38:39 UTC MAIN commitmail json YAML

revert this change from early this year.  it appears the
changes macallan@ commited to fix FIRMWORKSBUGS issues
in openfirmware() have fixed the hangs seen on PegasosII.

hooray!

---
Log Message:
workaround a problem with the pegasos firmware interface:
attempting to use /dev/openfirm on this machine hangs hard.

this isn't a new problem, and i've been meaning to try to
figure it out for years, but it's become a problem since
the xf86-video-radeon driver gained code to look for the
macppc model using this interface.

this is why xorg-server 1.18 and 1.20 hang recently on the
pegasosII.

this change is fairly ugly but i couldn't think of a less
ugly method to avoid /dev/openfirm working just on this
one platform.  introduce new __OPENFIRMIO_OPEN_CHECK_BROKEN
macro and associated __openfirmio_open_check_broken(), and
use them in the new openfirmopen() to fail opens.

include proplib.h in macppc and ofppc autoconf.h since they
use it.
---

(mrg)

2019-12-06 05:53:21 UTC MAIN commitmail json YAML

remove some XXX comments.  one isn't relevant, and the other two
have been incorrect for a long while now.

(mrg)

2019-12-06 04:15:38 UTC MAIN commitmail json YAML

Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

(riastradh)

2019-12-06 03:45:33 UTC MAIN commitmail json YAML

Fix reference count leak in cons(4).

Don't forget to vrele after you're done, folks!

XXX pullup-9
XXX pullup-8
XXX pullup-7
XXX pullup-6... 5... 4 might not have had this bug!

(riastradh)

2019-12-06 02:37:53 UTC MAIN commitmail json YAML

more updates for the vnode and mount list iterator changes
that happened a while back.  also, port to 64 bit properly.
now these all appear to work again.

(mrg)

2019-12-06 01:09:51 UTC MAIN commitmail json YAML

Log PID.LWP in t_ptrace_wait* tests for enabled debug

This is useful for multithreaded test scenarios.

(kamil)

2019-12-06 01:01:02 UTC MAIN commitmail json YAML

it's mountlist not mount_list.  now 'mountdump' works again.

(mrg)

2019-12-05 22:05:05 UTC MAIN commitmail json YAML

Enable pciverbose option to make use of the pcidevs database by default.

ok ad, mrg

(sevan)

2019-12-05 22:02:29 UTC MAIN commitmail json YAML

Undo loading pciverbose module by default.
See item 14 in src/doc/TODO.modules.

(sevan)

2019-12-05 20:55:24 UTC MAIN commitmail json YAML

Need to call userret() from cpu_ast().

(ad)

2019-12-05 20:25:54 UTC MAIN commitmail json YAML

Use the original linux function rather than my wrong translation.

...Include the header to have it.

Thanks Riastradh!

(maya)

2019-12-05 20:03:09 UTC MAIN commitmail json YAML

Add what appears to be the fixes to CVE-2019-0154, CVE-2019-0155.
This commit requires review, but I'd also like it to be tested by others
while it is being reviewed.

CVE-2019-0155:
It was discovered that the Intel i915 graphics chipsets allowed userspace
to modify page table entries via writes to MMIO from the Blitter Command
Streamer and expose kernel memory information. A local attacker could use
this to expose sensitive information or possibly elevate privileges.

CVE-2019-0154:
It was discovered that the Intel i915 graphics chipsets could cause
a system hang when userspace performed a read from GT memory mapped
input output (MMIO) when the product is in certain low power states.
A local attacker could use this to cause a denial of service.

From upstream commits to linux-4.4.y:

-------------------
From 6d0cfddc7afc715835f0e17827106f832b14dd2a Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Thu, 12 Jul 2018 19:53:10 +0100
Subject: [PATCH] drm/i915/gtt: Add read only pages to gen8_pte_encode

We can set a bit inside the ppGTT PTE to indicate a page is read-only;
writes from the GPU will be discarded. We can use this to protect pages
and in particular support read-only userptr mappings (necessary for
importing PROT_READ vma).
-------------------
From 774b68aa2105c70b40c3b1777feb7ab500d716dd Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Mon, 6 Aug 2018 14:10:48 -0700
Subject: [PATCH] drm/i915/gtt: Read-only pages for insert_entries on bdw+

Hook up the flags to allow read-only ppGTT mappings for gen8+

v2: Include a selftest to check that writes to a readonly PTE are
dropped
v3: Don't duplicate cpu_check() as we can just reuse it, and even worse
don't wholesale copy the theory-of-operation comment from igt_ctx_exec
without changing it to explain the intention behind the new test!
v4: Joonas really likes magic mystery values
-------------------
From 3fd1c2e65c60c1c513155e1d1d74138b141aa8a3 Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris@chris-wilson.co.uk>
Date: Thu, 12 Jul 2018 19:53:12 +0100
Subject: [PATCH] drm/i915/gtt: Disable read-only support under GVT

GVT is not propagating the PTE bits, and is always setting the
read-write bit, thus breaking read-only support.
-------------------
From e5e3c0154c19f2d8213e0af88b7a10d9de7fbafd Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Fri, 20 Apr 2018 14:26:01 -0700
Subject: [PATCH] drm/i915: Rename gen7 cmdparser tables

We're about to introduce some new tables for later gens, and the
current naming for the gen7 tables will no longer make sense.

v2: rebase
-------------------
From 3122671a5df3ee13f5cf22b7bdacf422b7b4319a Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Fri, 8 Jun 2018 08:53:46 -0700
Subject: [PATCH] drm/i915: Disable Secure Batches for gen6+

Retroactively stop reporting support for secure batches
through the api for gen6+ so that older binaries trigger
the fallback path instead.

Older binaries use secure batches pre gen6 to access resources
that are not available to normal usermode processes. However,
all known userspace explicitly checks for HAS_SECURE_BATCHES
before relying on the secure batch feature.

Since there are no known binaries relying on this for newer gens
we can kill secure batches from gen6, via I915_PARAM_HAS_SECURE_BATCHES.

v2: rebase (Mika)
v3: rebase (Mika)
-------------------
From 544fd7d9d4cfe32357beab2f1dc543637d42e69f Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Fri, 8 Jun 2018 10:05:26 -0700
Subject: [PATCH] drm/i915: Remove Master tables from cmdparser

The previous patch has killed support for secure batches
on gen6+, and hence the cmdparsers master tables are
now dead code. Remove them.
-------------------
From 17e89f38212d8b3cba470efca91b997ac03c592c Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Wed, 1 Aug 2018 09:33:59 -0700
Subject: [PATCH] drm/i915: Add support for mandatory cmdparsing

The existing cmdparser for gen7 can be bypassed by specifying
batch_len=0 in the execbuf call. This is safe because bypassing
simply reduces the cmd-set available.

In a later patch we will introduce cmdparsing for gen9, as a
security measure, which must be strictly enforced since without
it we are vulnerable to DoS attacks.

Introduce the concept of 'required' cmd parsing that cannot be
bypassed by submitting zero-length bb's.

v2: rebase (Mika)
v2: rebase (Mika)
v3: fix conflict on engine flags (Mika)
-------------------
From 77524398bccea3592a25cbe92a9a54fa555013af Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Tue, 22 May 2018 13:59:06 -0700
Subject: [PATCH] drm/i915: Support ro ppgtt mapped cmdparser shadow buffers

For Gen7, the original cmdparser motive was to permit limited
use of register read/write instructions in unprivileged BB's.
This worked by copying the user supplied bb to a kmd owned
bb, and running it in secure mode, from the ggtt, only if
the scanner finds no unsafe commands or registers.

For Gen8+ we can't use this same technique because running bb's
from the ggtt also disables access to ppgtt space. But we also
do not actually require 'secure' execution since we are only
trying to reduce the available command/register set. Instead we
will copy the user buffer to a kmd owned read-only bb in ppgtt,
and run in the usual non-secure mode.

Note that ro pages are only supported by ppgtt (not ggtt), but
luckily that's exactly what we need.

Add the required paths to map the shadow buffer to ppgtt ro for Gen8+

v2: IS_GEN7/IS_GEN (Mika)
v3: rebase
v4: rebase
v5: rebase
-------------------
From 2ac501479a1325d00aca5012887ebfece8358032 Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Wed, 1 Aug 2018 09:45:50 -0700
Subject: [PATCH] drm/i915: Allow parsing of unsized batches

In "drm/i915: Add support for mandatory cmdparsing" we introduced the
concept of mandatory parsing. This allows the cmdparser to be invoked
even when user passes batch_len=0 to the execbuf ioctl's.

However, the cmdparser needs to know the extents of the buffer being
scanned. Refactor the code to ensure the cmdparser uses the actual
object size, instead of the incoming length, if user passes 0.
-------------------
From 57c2c8f58ca07e8045f020e4e2548ac3bc3a5aab Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Mon, 23 Apr 2018 11:12:15 -0700
Subject: [PATCH] drm/i915: Add gen9 BCS cmdparsing

For gen9 we enable cmdparsing on the BCS ring, specifically
to catch inadvertent accesses to sensitive registers

Unlike gen7/hsw, we use the parser only to block certain
registers. We can rely on h/w to block restricted commands,
so the command tables only provide enough info to allow the
parser to delineate each command, and identify commands that
access registers.

Note: This patch deliberately ignores checkpatch issues in
favour of matching the style of the surrounding code. We'll
correct the entire file in one go in a later patch.

v3: rebase (Mika)
v4: Add RING_TIMESTAMP registers to whitelist (Jon)
-------------------
From d88d2d3fc6076760e903e78135f5bef028e6e813 Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Fri, 21 Sep 2018 13:18:09 -0700
Subject: [PATCH] drm/i915/cmdparser: Add support for backward jumps

To keep things manageable, the pre-gen9 cmdparser does not
attempt to track any form of nested BB_START's. This did not
prevent usermode from using nested starts, or even chained
batches because the cmdparser is not strictly enforced pre gen9.

Instead, the existence of a nested BB_START would cause the batch
to be emitted in insecure mode, and any privileged capabilities
would not be available.

For Gen9, the cmdparser becomes mandatory (for BCS at least), and
so not providing any form of nested BB_START support becomes
overly restrictive. Any such batch will simply not run.

We make heavy use of backward jumps in igt, and it is much easier
to add support for this restricted subset of nested jumps, than to
rewrite the whole of our test suite to avoid them.

Add the required logic to support limited backward jumps, to
instructions that have already been validated by the parser.

Note that it's not sufficient to simply approve any BB_START
that jumps backwards in the buffer because this would allow an
attacker to embed a rogue instruction sequence within the
operand words of a harmless instruction (say LRI) and jump to
that.

We introduce a bit array to track every instr offset successfully
validated, and test the target of BB_START against this. If the
target offset hits, it is re-written to the same offset in the
shadow buffer and the BB_START cmd is allowed.

Note: This patch deliberately ignores checkpatch issues in the
cmdtables, in order to match the style of the surrounding code.
We'll correct the entire file in one go in a later patch.

v2: set dispatch secure late (Mika)
v3: rebase (Mika)
v4: Clear whitelist on each parse
Minor review updates (Chris)
v5: Correct backward jump batching
v6: fix compilation error due to struct eb shuffle (Mika)
-------------------
From 362917ebcfacbd9c2b5172d5a5fe8cbef3ab838f Mon Sep 17 00:00:00 2001
From: Jon Bloomfield <jon.bloomfield@intel.com>
Date: Thu, 20 Sep 2018 09:45:10 -0700
Subject: [PATCH] drm/i915/cmdparser: Ignore Length operands during command
matching

Some of the gen instruction macros (e.g. MI_DISPLAY_FLIP) have the
length directly encoded in them. Since these are used directly in
the tables, the Length becomes part of the comparison used for
matching during parsing. Thus, if the cmd being parsed has a
different length to that in the table, it is not matched and the
cmd is accepted via the default variable length path.

Fix by masking out everything except the Opcode in the cmd tables
-------------------
From 1433b8d41b1aa346e100b839c19fc033871ac5a6 Mon Sep 17 00:00:00 2001
From: Uma Shankar <uma.shankar@intel.com>
Date: Tue, 7 Aug 2018 21:15:35 +0530
Subject: [PATCH] drm/i915: Lower RM timeout to avoid DSI hard hangs

In BXT/APL, device 2 MMIO reads from MIPI controller requires its PLL
to be turned ON. When MIPI PLL is turned off (MIPI Display is not
active or connected), and someone (host or GT engine) tries to read
MIPI registers, it causes hard hang. This is a hardware restriction
or limitation.

Driver by itself doesn't read MIPI registers when MIPI display is off.
But any userspace application can submit unprivileged batch buffer for
execution. In that batch buffer there can be mmio reads. And these
reads are allowed even for unprivileged applications. If these
register reads are for MIPI DSI controller and MIPI display is not
active during that time, then the MMIO read operation causes system
hard hang and only way to recover is hard reboot. A genuine
process/application won't submit batch buffer like this and doesn't
cause any issue. But on a compromised system, a malign userspace
process/app can generate such batch buffer and can trigger system
hard hang (denial of service attack).

The fix is to lower the internal MMIO timeout value to an optimum
value of 950us as recommended by hardware team. If the timeout is
beyond 1ms (which will hit for any value we choose if MMIO READ on a
DSI specific register is performed without PLL ON), it causes the
system hang. But if the timeout value is lower than it will be below
the threshold (even if timeout happens) and system will not get into
a hung state. This will avoid a system hang without losing any
programming or GT interrupts, taking the worst case of lowest CDCLK
frequency and early DC5 abort into account.
-------------------
From 284d38667f7ed7171fd8f168c42490f9087c824c Mon Sep 17 00:00:00 2001
From: Imre Deak <imre.deak@intel.com>
Date: Mon, 9 Jul 2018 18:24:27 +0300
Subject: [PATCH] drm/i915/gen8+: Add RC6 CTX corruption WA

In some circumstances the RC6 context can get corrupted. We can detect
this and take the required action, that is disable RC6 and runtime PM.
The HW recovers from the corrupted state after a system suspend/resume
cycle, so detect the recovery and re-enable RC6 and runtime PM.

v2: rebase (Mika)
v3:
- Move intel_suspend_gt_powersave() to the end of the GEM suspend
  sequence.
- Add commit message.
v4:
- Rebased on intel_uncore_forcewake_put(i915->uncore, ...) API
  change.
v5: rebased on gem/gt split (Mika)
-------------------
From 6dd52bae8a01af77236b88917e84e84dbcfe06db Mon Sep 17 00:00:00 2001
From: Ben Hutchings <ben@decadent.org.uk>
Date: Mon, 11 Nov 2019 08:13:24 -0800
Subject: [PATCH] drm/i915/cmdparser: Fix jump whitelist clearing

When a jump_whitelist bitmap is reused, it needs to be cleared.
Currently this is done with memset() and the size calculation assumes
bitmaps are made of 32-bit words, not longs.  So on 64-bit
architectures, only the first half of the bitmap is cleared.

If some whitelist bits are carried over between successive batches
submitted on the same context, this will presumably allow embedding
the rogue instructions that we're trying to reject.

Use bitmap_zero() instead, which gets the calculation right.

(maya)

2019-12-05 19:03:39 UTC MAIN commitmail json YAML

Fix warning that appears when compiling in kernel.

(ad)

2019-12-05 18:50:41 UTC MAIN commitmail json YAML

Delete the counter from "struct radix_tree_node", and in the one place we
need a non-zero check, substitute with a deterministic bitwise OR of all
values in the node.  The structure then becomes cache line aligned.

For each node we now need only touch 2 cache lines instead of 3, which makes
all the operations faster (measured), amortises the cost of not having a
counter, and will avoid intra-pool-page false sharing on MP.

(ad)

2019-12-05 18:32:25 UTC MAIN commitmail json YAML

Merge radixtree changes from yamt-pagecache.

(ad)

2019-12-05 17:52:06 UTC MAIN commitmail json YAML

PR/54740: Izumi Tsutsui: Disable cryptoengine unavailable message when
device is not configured (ENXIO).

(christos)

2019-12-05 17:41:10 UTC MAIN commitmail json YAML

2019-12-05 17:00:36 UTC netbsd-8 commitmail json YAML

2019-12-05 16:59:43 UTC MAIN commitmail json YAML

dm: Make dm core set config to NULL after destroy

Just let dm core do this instead of having a comment expecting each
target to do the right thing.

taken-from: DragonFlyBSD

(tkusumi)

2019-12-05 16:59:35 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1468):
sys/external/bsd/dwc2/dwc2.c: revision 1.60
sys/external/bsd/dwc2/dwc2.c: revision 1.61
sys/external/bsd/dwc2/dwc2.c: revision 1.62
sys/external/bsd/dwc2/dwc2.c: revision 1.63
sys/external/bsd/dwc2/dwc2.c: revision 1.64
sys/external/bsd/dwc2/dwc2.c: revision 1.65
sys/external/bsd/dwc2/dwc2.c: revision 1.66
KNF
Make dwc2debug sysctl'able
Need <sys/sysctl.h> for previous
Use size_t for loop count variable
Calulate the right lenght for isoc transfer and the usb_syncmem
PR/54696: Kernel panic in bus_dma.c on Raspberry Pi 3B/3B+
build fix
Consistency.

(bouyer)

2019-12-05 16:57:11 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1467):
share/man/man4/rnd.4: revision 1.26
share/man/man4/rnd.4: revision 1.27
share/man/man4/rnd.4: revision 1.28
share/man/man4/rnd.4: revision 1.25
Update man page to reflect switch from CTR_DRBG to Hash_DRBG.
Replace slightly wrong rant by shorter and slightly less long rant.
(If X and Y in Z/2Z are independent, then so are X and X+Y.  What was
I thinking.)
Update NIST SP800-90A reference.
New sentence, new line. Use \(em.

(bouyer)

2019-12-05 16:54:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1466):
sys/arch/x86/x86/hyperv.c: revision 1.5
sys/arch/x86/include/genfb_machdep.h: revision 1.4
sys/arch/x86/x86/genfb_machdep.c: revision 1.15
Prevent panic when attaching genfb if using a serial console with Hyper-V Gen.2.

(bouyer)

2019-12-05 16:53:06 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by joerg in ticket #1465):
sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.24
Add a hack for qemu/macppc. OF_finddevice calls will crash depending on
the boot loader and kernel being used. This patch allows using
-prom-env qemu_boot_hack=y to disable the lookup.

(bouyer)

2019-12-05 16:51:06 UTC MAIN commitmail json YAML

Fix date sorting order of previous checkin

(scole)

2019-12-05 16:50:54 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1464):
sys/dev/pci/if_alc.c                    1.44 via patch
sys/dev/pci/if_ale.c                    1.35-1.36 via patch
sys/dev/pci/if_cas.c                    1.36 via patch
- Fix a bug that IFF_ALLMULTI is almost always set.
- Whitespace fixes.

(bouyer)

2019-12-05 16:47:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1462):
        sys/dev/pci/if_age.c: revision 1.61, 1.63-1.64 via patch

- Fix direction of the loop in age_get_macaddr().
- Fix multicast handling. All Atheros controllers use big-endian form
  when computing multicast hash.
- Fix a bug that IFF_ALLMULTI is almost always set.

(bouyer)

2019-12-05 16:44:32 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1462):
sys/dev/pci/if_bge.c: revision 1.340
sys/dev/pci/if_bge.c: revision 1.341
sys/dev/pci/if_bge.c: revision 1.336
- Avoid undefined behavior in bge_setmulti(). found by kUBSan.
- Avoid undefined behavior when setting the MAC address in bge_init().
  found by kUBSan.
Fix a bug that SK-9D41 can't detect fiber media. Check the subsystem ID
correctly. This bug was added in if_bge.c rev. 1.161.
- Use *_FLUSH() more. The main purpose is to wait following delay() correctly.
- Add missing DELAY(80) after writing BGE_MI_MODE register.

(bouyer)

2019-12-05 16:30:45 UTC netbsd-7 commitmail json YAML

2019-12-05 16:30:17 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1716):
sys/external/bsd/dwc2/dwc2.c: revision 1.60
sys/external/bsd/dwc2/dwc2.c: revision 1.61
sys/external/bsd/dwc2/dwc2.c: revision 1.62
sys/external/bsd/dwc2/dwc2.c: revision 1.63
sys/external/bsd/dwc2/dwc2.c: revision 1.64
sys/external/bsd/dwc2/dwc2.c: revision 1.65
sys/external/bsd/dwc2/dwc2.c: revision 1.66
KNF
Make dwc2debug sysctl'able
Need <sys/sysctl.h> for previous
Use size_t for loop count variable
Calulate the right lenght for isoc transfer and the usb_syncmem
PR/54696: Kernel panic in bus_dma.c on Raspberry Pi 3B/3B+
build fix
Consistency.

(bouyer)

2019-12-05 16:29:23 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1715):
        share/man/man4/rnd.4: revision 1.26
        share/man/man4/rnd.4: revision 1.27
        share/man/man4/rnd.4: revision 1.28
        share/man/man4/rnd.4: revision 1.25
Update man page to reflect switch from CTR_DRBG to Hash_DRBG.
Replace slightly wrong rant by shorter and slightly less long rant.
(If X and Y in Z/2Z are independent, then so are X and X+Y.  What was
I thinking.)
Update NIST SP800-90A reference.
New sentence, new line. Use \(em.

(bouyer)

2019-12-05 16:25:17 UTC netbsd-7 commitmail json YAML

2019-12-05 16:24:46 UTC netbsd-7-1 commitmail json YAML

2019-12-05 16:24:29 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1715):
share/man/man4/rnd.4: revision 1.26
share/man/man4/rnd.4: revision 1.27
share/man/man4/rnd.4: revision 1.28
share/man/man4/rnd.4: revision 1.25
Update man page to reflect switch from CTR_DRBG to Hash_DRBG.
Replace slightly wrong rant by shorter and slightly less long rant.
(If X and Y in Z/2Z are independent, then so are X and X+Y.  What was
I thinking.)
Update NIST SP800-90A reference.
New sentence, new line. Use \(em.

(bouyer)

2019-12-05 16:23:51 UTC netbsd-7-0 commitmail json YAML

2019-12-05 16:23:23 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1715):
share/man/man4/rnd.4: revision 1.26
share/man/man4/rnd.4: revision 1.27
share/man/man4/rnd.4: revision 1.28
share/man/man4/rnd.4: revision 1.25
Update man page to reflect switch from CTR_DRBG to Hash_DRBG.
Replace slightly wrong rant by shorter and slightly less long rant.
(If X and Y in Z/2Z are independent, then so are X and X+Y.  What was
I thinking.)
Update NIST SP800-90A reference.
New sentence, new line. Use \(em.

(bouyer)

2019-12-05 15:52:39 UTC MAIN commitmail json YAML

dm: Remove unneeded dm_get_version_ioctl()

"version" is implemented and handled in userspace,
hence dm ioctl doesn't need to support it.

taken-from: DragonFlyBSD

(tkusumi)

2019-12-05 10:29:13 UTC netbsd-9 commitmail json YAML

Note macppc ISO generator changes

(martin)

2019-12-05 10:28:07 UTC netbsd-9 commitmail json YAML

Pull up the following revision:

distrib/cdrom/NetBSD-9.0.mk 1.1

Add a clone of -current for 9.0. First time this makes a difference
(for macppc ppc 601) for all still relevant use cases.

(martin)

2019-12-05 10:25:41 UTC MAIN commitmail json YAML

Copy -current to 9.0, this has diverged (macppc 601 support and others,
but since the macppc release ISOs are still generated by this, it is
important to catch up)

(martin)

2019-12-05 09:40:15 UTC netbsd-9 commitmail json YAML

Note manual CHANGES changes for ppc 601

(martin)

2019-12-05 09:39:03 UTC netbsd-9 commitmail json YAML

Belatedly add changes from scole for macppc powerpc 601 machines

(martin)

2019-12-05 09:36:01 UTC MAIN commitmail json YAML

Belatedly note changes from scole for macppc powerpc 601 machines.

(martin)

2019-12-05 08:00:05 UTC MAIN commitmail json YAML

Attempt to restore Utah $Hdr$

(skrll)

2019-12-05 07:03:01 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2019-12-05 06:28:20 UTC MAIN commitmail json YAML

Revert if_mc.c rev. 1.25. It's not required to check ifm->ifm_cur->ifm_media
instead of ifm->ifm_media.

(msaitoh)

2019-12-05 06:28:09 UTC MAIN commitmail json YAML

Revert previous. Indirect matches are not wanted on platforms that
use external configuration data (FDT or OF).

(mlelstv)

2019-12-05 06:25:33 UTC MAIN commitmail json YAML

Revert if_admsw.c rev. 1.25. It's not required to check
sc->sc_ifmedia[port].ifm_cur->ifm_media instead of ifm->ifm_media.

(msaitoh)

2019-12-05 05:45:52 UTC MAIN commitmail json YAML

fix build error by my previous commit

(ryo)

2019-12-05 05:29:28 UTC MAIN commitmail json YAML

Fix previous comment change for ifm_media. It was correct.

The real problem is that some driver misuse ifm_media as the current active
media. struct mii_data has the current active media(mii_media_active). If a
driver use mii(4), it can be use mii->mii_media_active for this purpose.
struct ifmedia has no entry for this purpose. Some drivers have an entry
in their own softc to keep the value, but some other's don't have it and
they mistakenly use ifm_media.

We might add a new entry to struct ifmedia in future to avoid this confusion
and for simplify.

(msaitoh)

2019-12-05 05:28:09 UTC MAIN commitmail json YAML

Remove SIOC[SIFMEDIA because ifmedia_ioctl() does the same thing.

(msaitoh)

2019-12-05 05:17:55 UTC MAIN commitmail json YAML

MAX_CACHE_LEVEL * struct aarch64_cache_info are required to statically allocate for cpu0.

avoid "cpu0: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT *UNK* cache" by r1.8

(ryo)

2019-12-05 04:17:13 UTC MAIN commitmail json YAML

#ifdef notyet ---> never

(riastradh)

2019-12-05 03:59:39 UTC MAIN commitmail json YAML

Only need one ci_onproc member.

(riastradh)

2019-12-05 03:57:55 UTC MAIN commitmail json YAML

Missed a spot in the crypto/arc4 deletion.

(riastradh)

2019-12-05 03:22:03 UTC MAIN commitmail json YAML

Nuke crypto/arc4.  Has not been used since 2003.  Will not be missed.

(riastradh)

2019-12-05 03:21:42 UTC MAIN commitmail json YAML

Avoid redefining uint_t &c. if compat_defs.h already defines them.

(riastradh)

2019-12-05 03:21:29 UTC MAIN commitmail json YAML

Switch psz_ev_excl to static evcnt.

(riastradh)

2019-12-05 03:21:17 UTC MAIN commitmail json YAML

Restore psz_lock just for the event count.

Cost of mutex_enter/exit is negligible compared to the xcall we just
did, so this is not going to meaningfully affect performance.

(riastradh)

2019-12-05 03:21:08 UTC MAIN commitmail json YAML

Allow equality in this assertion.

This can happen if we lose the race mentioned in percpu_cpu_swap.

(riastradh)

2019-12-05 03:15:20 UTC MAIN commitmail json YAML

Do SIOC[GS]IFMEDIA like others. Not tested.

(msaitoh)

2019-12-05 03:11:41 UTC MAIN commitmail json YAML

Remove SIOC[GS]IFMEDIA because ieee80211_ioctl() does the same thing.

(msaitoh)

2019-12-05 00:31:14 UTC MAIN commitmail json YAML

Remove unnecessary code.

(hkenken)

2019-12-04 23:35:36 UTC MAIN commitmail json YAML

Note that the size returned by modctl(2) and displayed by modstat(8) is
only for the module's text section, not for the entire size of the module.

Addresses PR kern-54737

(pgoyette)

2019-12-04 21:53:21 UTC MAIN commitmail json YAML

Make use of the pcidevs database by default.

(sevan)

2019-12-04 19:51:32 UTC MAIN commitmail json YAML

Finally fix problem discussed in this old thread:
http://mail-index.netbsd.org/tech-kern/2017/12/03/msg022661.html

Dell's radio hotkey sends a PMFE_RADIO_TOGGLE event, but nothing actually
listen to it.
Turn it into a PSWITCH_HK_WIRELESS_BUTTON hotkey, similar to
what thinkpad_acpi.c does.
Add type/subtypes seen on a Dell lattitude 5480 laptop.
XXX we need a PMFE_AUDIO_MICRO_TOGGLE, and something to handle it.

(bouyer)

2019-12-04 16:55:30 UTC MAIN commitmail json YAML

2019-12-04 16:54:03 UTC MAIN commitmail json YAML

dm: Comment out unused dm_dev fields documented in sys/dev/dm/doc

(tkusumi)

2019-12-04 16:46:50 UTC MAIN commitmail json YAML

Add missing rcvar=$name

(jmcneill)

2019-12-04 15:31:12 UTC MAIN commitmail json YAML

2019-12-04 14:09:47 UTC MAIN commitmail json YAML

Fix signed/unsigned comparison

(jmcneill)

2019-12-04 13:52:27 UTC MAIN commitmail json YAML

Register "PT_STOP" in ptrace PT_STRINGS

(kamil)