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 (1h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 13:31:18 UTC Now

2018-07-11 16:50:46 UTC netbsd-8 commitmail json YAML

Additionally pullup src/sys/net/if_llatbl.c r1.30 to fix build fallout
from previous, requested by both ozaki-r (ticket #918) and kre (ticket #920):

Update previous so that there is no unused (but assigned) variable
left when there is no ARP.  Thanks gcc!

(martin)

2018-07-11 14:51:34 UTC MAIN commitmail json YAML

it is not xx but nn that we want. also add missing dependencies.

(christos)

2018-07-11 13:52:35 UTC MAIN commitmail json YAML

2018-07-11 13:49:06 UTC MAIN commitmail json YAML

.Fl prepends a dash, no need to specify another one for qemu -fw_cfg option

(jmcneill)

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

Add another elfxx conversion.

(christos)

2018-07-11 13:41:23 UTC MAIN commitmail json YAML

Add qemufwcfg* at fdt? to synopsis

(jmcneill)

2018-07-11 13:34:27 UTC MAIN commitmail json YAML

src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd-in3.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd_stdint.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfdver.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/targmatch.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/gstdint.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/build-gnulib/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/init.c@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/jit-reader.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/observer.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/observer.inc@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/version.c@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/xml-builtin.c@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libiberty/arch/aarch64/config.h@1.1 / diff / nxr@1.1
      :
(more 5 files)
new config files for aarch64 but no progress in getting it to work.

(christos)

2018-07-11 12:48:42 UTC MAIN commitmail json YAML

Add missing <netinet/in_offload.h> include.

(martin)

2018-07-11 11:13:17 UTC MAIN commitmail json YAML

Fix build.  pf_ioctl.c needs netinet/in_offload.h (after previous change).
Because this is in a module, apparently, that means that netinet_in_offload.h
needs to get installed in /usr/include, so do that as well.

Feel free to fix this in a better way...

(kre)

2018-07-11 07:46:21 UTC MAIN commitmail json YAML

Print iqdrops, too. This change also fixes a bug that Odrops prints
iqdrops when kvm read failed.

(msaitoh)

2018-07-11 06:25:05 UTC MAIN commitmail json YAML

Add KASSERTs in in_undefer_cksum_tcpudp.

(maxv)

2018-07-11 06:00:34 UTC MAIN commitmail json YAML

Style, rename 'iph' -> 'ip', and reduce the diff between
in_undefer_cksum_tcpudp and the last part of in_undefer_cksum.

(maxv)

2018-07-11 05:38:55 UTC MAIN commitmail json YAML

Remove the callback, localify, and add a comment.

(maxv)

2018-07-11 05:25:46 UTC MAIN commitmail json YAML

2018-07-11 03:36:32 UTC MAIN commitmail json YAML

- Detect and set Atom's Tj(max) to 90 if it's not the 45nm D400/D500/N400
  series (90 for Diamondville and 100 for Pineview). From FreeBSD r221509.
- Reducde diff a little against FreeBSD.

(msaitoh)

2018-07-11 03:10:48 UTC MAIN commitmail json YAML

arp: warn if failed to delete a specified arp entry

This restores the original behavior of arp in NetBSD 7.

(ozaki-r)

2018-07-11 00:46:40 UTC MAIN commitmail json YAML

Build fix:  Supply missing symbol definition.
Value taken from OpenBSD (and confirmed with FreeBSD)
(Feel free to fix/reformat as appropriate...)

(kre)

2018-07-10 23:25:27 UTC MAIN commitmail json YAML

Back to always using just the list of sources for the hash. Hopefully this
is reproducible now.

(christos)

2018-07-10 22:52:38 UTC MAIN commitmail json YAML

Whitespace fixes.  NFC.

(kre)

2018-07-10 22:12:08 UTC MAIN commitmail json YAML

Amend whitelisted filesystem paths ssh-agent will look for PKCS11 related
libraries so that things work out of the box with pkgsrc without having to
explicitly whitelist things.

ok christos

(sevan)

2018-07-10 20:48:55 UTC MAIN commitmail json YAML

replace code using SK_WA_4109 workaround flag by explicit conditional
on affected type ids and revisions, so it's properly applied whenever
new types are added; taken with FreeBSD

contrary to FreeBSD, keep the IWM workaround for all XL revs - my XL rev. A3
seems to consistently have slightly (~2%) better Rx performance with the 0x04
value

(jdolecek)

2018-07-10 19:58:13 UTC MAIN commitmail json YAML

2018-07-10 19:55:05 UTC MAIN commitmail json YAML

Remove unused macro.

(maya)

2018-07-10 19:30:37 UTC MAIN commitmail json YAML

UPdate previous so that there is no unused (but assigned) variable
left when there is no ARP.  Thanks gcc!

(kre)

2018-07-10 18:43:20 UTC MAIN commitmail json YAML

minor fix for earlier sync with OpenBSD if_msk.c; remove duplicit
COMA handling, add also workaround code for Yukon EC Ultra and EX, and
remove a write-only assignment

(jdolecek)

2018-07-10 18:42:37 UTC MAIN commitmail json YAML

add the RX refill callout (forgot to commit with if_msk.c change)

(jdolecek)

2018-07-10 18:34:42 UTC MAIN commitmail json YAML

2018-07-10 18:32:25 UTC MAIN commitmail json YAML

add callout for re-filling RX ring - it's invoked when the RX refill
code can't get enough buffers; fixes possible stall when the RXSTAT
interrupt arrives while no buffers are available

idea from OpenBSD if_msk.c rev. 1.131

as part of this remove the confusingly commented re-fill code from
msk_jfree() and instead just invoke the callout if needed; also
refill in msk_intr() only when running low instead of every RX intr;
this simplifies the code, and gives small RX performance boost on
my hardware (6%: ~38 MB/s -> ~40 MB/s)

tested on SK-9E22 (Yukon-2 XL rev. A3) by me, and 88E8071 (Yukon-2
Extreme rev. B0) by Jogn Halfpenny; unfortunately still doesn't
resolve the PR kern/53301 stall

(jdolecek)

2018-07-10 17:36:38 UTC MAIN commitmail json YAML

Add missing file to openchrome driver.

Prior to this commit, startx failed with a missing symbol.

(maya)

2018-07-10 17:01:44 UTC MAIN commitmail json YAML

2018-07-10 16:53:16 UTC MAIN commitmail json YAML

Build seed fixes:
    - use MKREPRO_TIMESTAMP as the seed if available.
    - skip relative paths that cannot be normalized if it is not
XXX: pullup-8

(christos)

2018-07-10 16:49:09 UTC MAIN commitmail json YAML

Modify the logic in npf_reassembly. Don't call nbuf_reset, we don't need
it since we don't read the IPv4 header anymore.

If ip{6}_reass_packet fails, always free 'm', and always clear the nbuf.

We want to avoid the case where

'm' was reallocated
the nbuf pointer was not updated accordingly
the caller tried to use the nbuf pointer

This case doesn't happen right now, but the code is fragile, so strengthen
it.

(maxv)

2018-07-10 15:46:58 UTC MAIN commitmail json YAML

Remove the second argument from ip_reass_packet(). We want the IP header
on the mbuf, not elsewhere. Simplifies the NPF reassembly code a little.
No real functional change.

(maxv)

2018-07-10 15:37:42 UTC netbsd-8 commitmail json YAML

2018-07-10 15:35:26 UTC netbsd-8 commitmail json YAML

Pull up the following, requested by maxv in ticket #910:

sys/arch/amd64/amd64/locore.S r1.167 (patch)
sys/arch/i386/i386/locore.S r1.158 (patch)
sys/arch/x86/x86/fpu.c r1.44 (patch)

Don't switch the FPU when leaving a softint. This fixes
several problems when EagerFPU is enabled.

(martin)

2018-07-10 15:32:28 UTC netbsd-8 commitmail json YAML

Ammend ticket #918 with additional pullups

(martin)

2018-07-10 15:31:33 UTC netbsd-8 commitmail json YAML

Additionally pull up the following, requested by ozaki-r in ticket #918:

src/sys/net/if_llatbl.c 1.29

Avoid attempting to call arp related functions if there is no
arp in the kernel.

(martin)

2018-07-10 15:25:01 UTC MAIN commitmail json YAML

Simplify the pointer handling. Set *mp = NULL at the beginning of the
function. In npf_reassembly, pass a simple boolean instead of a ** mbuf
pointer. Add a KASSERT for IPv4, we don't want (error && !m). Remove
the 'fastout' label, use 'out'.

(maxv)

2018-07-10 15:12:29 UTC MAIN commitmail json YAML

Don't mention options that don't appear in kernel code.

(maya)

2018-07-10 15:08:34 UTC netbsd-8 commitmail json YAML

2018-07-10 15:06:25 UTC netbsd-8 commitmail json YAML

Additionally pull up the following, requested by maya in ticket #892:

src/tests/lib/librt/t_sched.c 1.6

fix priority tests for SCHED_OTHER

(martin)

2018-07-10 14:44:05 UTC netbsd-8 commitmail json YAML

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

sys/net/npf/npf_handler.c: revision 1.41

Update the pointer when fast-kicking, because it may have been freed.

Before my changes the nonsensical pointer ininitialization held, but
when I started introducing sanity checks the whole thing collapsed.

Need pullup-8.

(martin)

2018-07-10 14:41:31 UTC netbsd-8 commitmail json YAML

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

sys/net/if_llatbl.c: revision 1.28

Don't overwrite an existing llentry on RTM_ADD to avoid race conditions
Reported and tested by christos@

(martin)

2018-07-10 14:04:07 UTC MAIN commitmail json YAML

Update the pointer when fast-kicking, because it may have been freed.
Before my changes the nonsensical pointer ininitialization held, but
when I started introducing sanity checks the whole thing collapsed.

Need pullup-8.

(maxv)

2018-07-10 13:36:51 UTC MAIN commitmail json YAML

regenerated (now with correct reference id)

(spz)

2018-07-10 13:32:38 UTC MAIN commitmail json YAML

change handling hint to point to the full instructions
(comment change only)

(spz)

2018-07-10 13:22:22 UTC MAIN commitmail json YAML

Drop output for MAKECONF MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE
in MKREPRO=yes builds.

(martin)

2018-07-10 13:17:36 UTC MAIN commitmail json YAML

Explicit heimbase dependency (similar to other recent MKREPRO fixes)

(martin)

2018-07-10 12:31:46 UTC MAIN commitmail json YAML

Set con = NULL just once, instead of doing it in each branch.

(maxv)

2018-07-10 11:21:34 UTC MAIN commitmail json YAML

add Yubikey ids, this time more complete (thanks for the reminders)

(spz)

2018-07-10 11:00:40 UTC MAIN commitmail json YAML

Avoid attempting to call arp related functions if there is no
arp in the kernel.

(kre)

2018-07-10 08:35:58 UTC MAIN commitmail json YAML

2018-07-10 08:20:29 UTC MAIN commitmail json YAML

allow to execute wfi/wfe instruction on EL0. some userland program use them.

(ryo)

2018-07-10 07:40:42 UTC MAIN commitmail json YAML

We need to make ISSET/SET/CLR available for bootloaders too.

(martin)

2018-07-10 06:49:30 UTC MAIN commitmail json YAML

Add tests for pattern matching (filename expansion (glob), case statement
patterns, and variable expansion substring matching)

Currently (2018-07-10) all 3 sub-tests fail (sh bugs...)
Expect to see 14 (of 261) case matching sub-tests fail, 11 (of 167) filename
expansion (glob) sub-tests fail, and 6 (of 87) var substring sub-tests fail.

Also expect those numbers to reduce as sh bugs are fixed.

(kre)

2018-07-10 06:44:49 UTC MAIN commitmail json YAML

Fix bug, SPINOUT() is not supposed to take the value given to BACKOFF().
Here the exponential backoff is wrecked.

(maxv)

2018-07-10 01:44:30 UTC MAIN commitmail json YAML

add quirk to find the native resolution on certain Iiyama monitors
tested by MOCHIDA Shuji

(macallan)

2018-07-10 01:23:13 UTC MAIN commitmail json YAML

Don't overwrite an existing llentry on RTM_ADD to avoid race conditions

Reported and tested by christos@

(ozaki-r)

2018-07-09 18:52:04 UTC MAIN commitmail json YAML

Don't push/pop %rdx, we don't care about preserving its value.

(maxv)

2018-07-09 18:43:05 UTC MAIN commitmail json YAML

Small optimization: don't execute the Meltdown/SpectreV2 cswitch code if
we're leaving a softint. We were executing the softint with the LWP's
context, so no need to switch the SVS/IBRS contexts, we already are in
the desired contexts.

(maxv)

2018-07-09 14:54:01 UTC MAIN commitmail json YAML

Calling rtinit(sa_family = AF_LINK, RTM_DELETE, 0) is guaranteed not to
work. Remove bogus call leaving a KASSERT behind.

(christos)

2018-07-09 14:07:37 UTC MAIN commitmail json YAML

2018-07-09 12:15:31 UTC MAIN commitmail json YAML

FIx reproducible builds for EFI boot blocks (from HEAD)

(christos)

2018-07-09 11:55:45 UTC MAIN commitmail json YAML

Apply the change made to binutils:

  Committed By:  christos
  Date:          Sun Jul  8 16:53:56 UTC 2018

  Modified Files:
        src/external/gpl3/binutils/dist/bfd: config.bfd
        src/external/gpl3/binutils/lib/libbfd/arch/i386: defs.mk

  Log Message:
  enable coff/pe executable vectors for i386 for the efi bootblocks.
  XXX: pullup-8

to binutils.old (which is what i386 is using).  Should unbreak the build.

(kre)

2018-07-09 10:44:44 UTC MAIN commitmail json YAML

Avoid undefined behavior of signedness bit shift in ahcisata_core.c

sys/dev/ic/ahcisata_core.c:365:31, left shift of 1 by 31 places cannot be represented in type 'int'
sys/dev/ic/ahcisata_core.c:558:16, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

This code could be refactored in future and switched to ISSET(9) API,
instead of reinventing the common functionality.

(kamil)

2018-07-09 10:36:30 UTC MAIN commitmail json YAML

Try to bring this man page up to NetBSD standards.

This page is bad and we should feel bad about it. But perhaps now it is
considerably less bad.

(rkujawa)

2018-07-09 10:24:44 UTC MAIN commitmail json YAML

Put RSB controller into known state at the start of every transfer.

(jmcneill)

2018-07-09 10:08:35 UTC MAIN commitmail json YAML

SMP support for aarch64

(ryo)

2018-07-09 10:07:42 UTC MAIN commitmail json YAML

Make brightness-levels available in increments of 10% from 0 to 100, and set the default brightness level to match the one used by U-Boot (30%)

(jmcneill)

2018-07-09 09:58:15 UTC MAIN commitmail json YAML

2018-07-09 09:55:59 UTC MAIN commitmail json YAML

enable options MULTIPROCESSOR

(ryo)

2018-07-09 09:22:55 UTC MAIN commitmail json YAML

Debug hack: print out full random-seed for C++ compile/link.

(martin)

2018-07-09 09:13:50 UTC MAIN commitmail json YAML

Enable options MULTIPROCESSOR

(jmcneill)

2018-07-09 09:13:20 UTC MAIN commitmail json YAML

2018-07-09 09:11:21 UTC MAIN commitmail json YAML

Use PSCI to spinup secondary CPUs on sun50i family SoCs.

(jmcneill)

2018-07-09 09:10:29 UTC MAIN commitmail json YAML

2018-07-09 09:09:47 UTC MAIN commitmail json YAML

Include aarch64/machdep.h for arm32 compat.

(jmcneill)

2018-07-09 08:51:19 UTC MAIN commitmail json YAML

Avoid redefining SET/CLR/ISSET (which in the kernel are normally
defined in <sys/types.h>).  These redefinitions (when they are,
that is, when types.h is included) were sneaking through because
they were defined identically ... until CLR in <sys/types.h> was
changed...    Avoid that issue arising again.

(kre)

2018-07-09 08:45:42 UTC pgoyette-compat commitmail json YAML

Put the checks back in the original order, and remove extra ')'

Thanks to soda for finding the real error.

(pgoyette)

2018-07-09 08:26:29 UTC pgoyette-compat commitmail json YAML

Reverse order of flags checking to appease compiler.  It seems
that gcc doesn't like

if (expr && !ISSET(t, f)) ...

(pgoyette)

2018-07-09 08:24:33 UTC MAIN commitmail json YAML

Remove debug hack (revert previous)

(martin)

2018-07-09 06:33:08 UTC MAIN commitmail json YAML

2018-07-09 06:21:46 UTC MAIN commitmail json YAML

hatch secondary processors (aarch64)

(ryo)

2018-07-09 06:19:53 UTC MAIN commitmail json YAML

2018-07-09 06:14:38 UTC MAIN commitmail json YAML

need locks in pmap_kremove() and pmap_fault_fixup()

(ryo)

2018-07-09 06:11:12 UTC MAIN commitmail json YAML

2018-07-09 06:10:21 UTC MAIN commitmail json YAML

keep stack pointer when changing from EL2 to EL1.

(ryo)

2018-07-09 06:08:42 UTC MAIN commitmail json YAML

fix false positive KASSERT.
the case that secondary processors failed to hatch, and not attached.

when "cpu1 at cpus0: disabled (unresponsive)"

(ryo)

2018-07-09 06:07:06 UTC MAIN commitmail json YAML

avoid reading from out of range that may cause access fault.

(ryo)

2018-07-09 05:43:35 UTC MAIN commitmail json YAML

2018-07-09 00:47:48 UTC MAIN commitmail json YAML

revert previous now that MAP_ALIGNED has been fixed.

(christos)

2018-07-09 00:46:19 UTC MAIN commitmail json YAML

cast align result to int, since the flags argument is expected to be an int.
From Kamil

(christos)

2018-07-08 21:59:12 UTC MAIN commitmail json YAML

Revert previous as requested.  Leaving it to dholland@ (who originally
proposed this on IRC) to raise any necessary discussion on tech-kern.

(pgoyette)

2018-07-08 21:01:21 UTC MAIN commitmail json YAML

New arp code needs RTF_LLDATA for DELETE to work!
XXX: pullup-8

(christos)

2018-07-08 20:29:08 UTC MAIN commitmail json YAML

mention Oxford Semiconductor OXPCIe954 4-port PCIe serial card

(jnemeth)

2018-07-08 17:58:39 UTC MAIN commitmail json YAML

Enable executing linux go binaries by using a special probe function for them.

(christos)

2018-07-08 17:58:26 UTC MAIN commitmail json YAML

2018-07-08 17:54:42 UTC MAIN commitmail json YAML

2018-07-08 17:53:42 UTC MAIN commitmail json YAML

switch to FreeBSD's memmem

(christos)

2018-07-08 17:53:13 UTC MAIN commitmail json YAML

switch to FreeBSD's memmem (faster)

(christos)

2018-07-08 17:48:42 UTC MAIN commitmail json YAML

2018-07-08 17:01:02 UTC MAIN commitmail json YAML

2018-07-08 16:55:37 UTC MAIN commitmail json YAML

add the efi boot blocks
XXX: pullup-8

(christos)

2018-07-08 16:53:56 UTC MAIN commitmail json YAML

enable coff/pe executable vectors for i386 for the efi bootblocks.
XXX: pullup-8

(christos)

2018-07-08 16:50:28 UTC MAIN commitmail json YAML

2018-07-08 16:48:47 UTC MAIN commitmail json YAML

correct previous cast.

(christos)

2018-07-08 16:39:27 UTC MAIN commitmail json YAML

2018-07-08 14:46:23 UTC MAIN commitmail json YAML

Revert previous

Misalignment access handling patches are now discussed on tech-kern.

Requested by <martin> and <christos>.

(kamil)

2018-07-08 14:42:52 UTC MAIN commitmail json YAML

Try to avoid signed integer overflow in callout_softclock()

The delta operation (c->c_time - ticks) is documented as safe, however it
still can cause overflow in narrow case scenarios.

Try to avoid overflow/underflow or at least make it less frequent with
a direct comparison of c->c_time and tics. Perform the operation of
subtraction only when c->c_time > ticks.

sys/kern/kern_timeout.c:720:9, signed integer overflow: -2147410738 - 72912 cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Patch suggested by <Riastradh>

(kamil)

2018-07-08 11:37:50 UTC MAIN commitmail json YAML

2018-07-08 08:32:53 UTC MAIN commitmail json YAML

add identification for some Yubikeys

(spz)

2018-07-08 07:33:14 UTC pgoyette-compat commitmail json YAML

2018-07-08 06:21:42 UTC MAIN commitmail json YAML

Use a different, type-insensitive idiom for CLR().

As discussed on IRC and proposed by dholland@, the existing idiom is
type-sensitive, and will likely fail silently when the flags variable
is a 64-bit type.

No functional change intended.  If anything breaks, it was probably
already broken.

(pgoyette)

2018-07-08 04:50:15 UTC MAIN commitmail json YAML

prompted by dh's latest PR, add a missing word: academia

(snj)

2018-07-07 23:05:50 UTC MAIN commitmail json YAML

Remove unaligned access to mpbios_page[]

Replace unaligned pointer dereference with a more portable construct that
is free from Undefined Behavior semantics.

sys/arch/x86/x86/mpbios.c:308:11, load of misaligned address 0xffff800031c7a413 for type 'const __uint16_t' which requires 2 byte alignment

Detected with Kernel Undefined Behavior Sanitizer

(kamil)

2018-07-07 21:35:16 UTC MAIN commitmail json YAML

Correct unportable signed integer left shift in i386/amd64 tss code

Change the type of IOMAP_INVALOFF to unsigned int.

sys/arch/amd64/amd64/machdep.c:518:42, left shift of 65535 by 16 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

(kamil)

2018-07-07 20:16:16 UTC MAIN commitmail json YAML

Use arm_generic_bs_tag instead of armv7_generic_bs_tag and conditionally
define SOC platform support (so we don't try to build 32-bit support into
64-bit kernels).

(jmcneill)

2018-07-07 15:44:27 UTC MAIN commitmail json YAML

Fix the logic for the non auto case

(christos)

2018-07-07 15:11:07 UTC MAIN commitmail json YAML

Switch to PSCI 0.1 mode only if the first compatible string listed on /psci is "arm,psci"

(jmcneill)

2018-07-06 14:58:22 UTC MAIN commitmail json YAML

2018-07-06 14:46:27 UTC MAIN commitmail json YAML

Add Western Digital (Sandisk)  WD Black NVMe SSD as per suggestion
from thorpej@

(prlw1)

2018-07-06 12:19:56 UTC MAIN commitmail json YAML

Remove UB from definition of symbols in i915_reg.h

Kernel Undefined Behavior Sanitizer enforces more warnings in build time.
This makes the build fatal in the drm/i915 code in:
- intel_ddi_put_crtc_pll(),
- intel_ddi_clock_get(),
- intel_ddi_pll_enable(),
- intel_ddi_setup_hw_pll_state().

The error message in all the cases says:

  error: case label does not reduce to an integer constant

Set the type of the value left shifted to unsigned.

This change is required to build NetBSD/amd64 with KUBSan.

(kamil)

2018-07-06 08:54:30 UTC MAIN commitmail json YAML

Explicit libheimbase dependency, similar to Christos' change to
libheimntlm/Makefile, hopefully fixing another MKREPRO fallout.
XXX pullup 8

(martin)

2018-07-06 08:31:43 UTC MAIN commitmail json YAML

Add explicit path to libwind - patch from Christos, may fix some MKREPRO
fallout. XXX pullup 8

(martin)

2018-07-06 02:36:35 UTC MAIN commitmail json YAML

Add force_10_100_autonego sysctl. The default vaule is 0(false).
This sysctl is only for 550EM_a with PHY firmware for a while.

(msaitoh)

2018-07-06 01:58:12 UTC MAIN commitmail json YAML

Add PMA/PDM control 2 register bit definitions.

(msaitoh)

2018-07-06 00:50:05 UTC MAIN commitmail json YAML

Add an "auto" keyword to auto-determine the link address from the inet addr.

(christos)

2018-07-05 19:46:58 UTC MAIN commitmail json YAML

Print USB_SPEED_SUPER_PLUS capability if present

(jmcneill)

2018-07-05 15:52:27 UTC MAIN commitmail json YAML

Temporary hack to get MKREPRO debug info out of the build cluster. XXX revert!

(martin)

2018-07-05 13:11:58 UTC MAIN commitmail json YAML

2018-07-05 13:11:03 UTC MAIN commitmail json YAML

Use KERNEL_IO_VBASE instead of magic number

(jmcneill)

2018-07-05 05:41:17 UTC MAIN commitmail json YAML

Fix an inconsistency that showed /var/db/duid in the man page while the
binary opened /var/db/dhcpcd/duid.

(triaxx)

2018-07-04 23:10:06 UTC MAIN commitmail json YAML

Enable booting of netbsd-EXYNOS kernel

(jmcneill)

2018-07-04 23:08:29 UTC MAIN commitmail json YAML

2018-07-04 23:08:06 UTC MAIN commitmail json YAML

Add basic pwm-fan driver. This doesn't have any smarts yet other than
turning the fan on at 100% duty cycle.

(jmcneill)

2018-07-04 23:06:55 UTC MAIN commitmail json YAML

2018-07-04 23:06:28 UTC MAIN commitmail json YAML

2018-07-04 23:06:05 UTC MAIN commitmail json YAML

Align AUDIOCORE size to 1M, and add definition for SYSRAM

(jmcneill)

2018-07-04 22:16:43 UTC MAIN commitmail json YAML

2018-07-04 19:37:10 UTC MAIN commitmail json YAML

sync SK_IMTIMER_TICKS_YUKON value with OpenBSD (likely pasto)

(jdolecek)

2018-07-04 19:26:09 UTC MAIN commitmail json YAML

2018-07-04 19:20:25 UTC MAIN commitmail json YAML

merge duplicated code, more informative debugging.

(christos)

2018-07-04 18:15:28 UTC MAIN commitmail json YAML

Avoid undefined behavior in lwp_ctl_free()

Do not left shift signed integer in a way that the signedness bit is
changed.

sys/kern/kern_lwp.c:1892:29, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 18:13:01 UTC MAIN commitmail json YAML

Avoid undefined behavior in lwp_ctl_alloc()

Do not left shift signed integer in a way that the signedness bit is
changed.

sys/kern/kern_lwp.c:1849:27, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

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

Avoid undefined behavior in mq_send1()

Do not shift a signed integer causing change of the signed bit.

sys/kern/sys_mqueue.c:881:23, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 17:39:12 UTC MAIN commitmail json YAML

Avoid undefined behavior in mq_recv1()

Do not shift a signed integer causing change of the signed bit.

sys/kern/sys_mqueue.c:712:24, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 15:38:46 UTC MAIN commitmail json YAML

2018-07-04 13:32:01 UTC MAIN commitmail json YAML

RPI: remove commented-out pseudodevices

Remove a number of commented out pseudodevice lines that are
duplicative with GENERIC.common.  Othewise, someone might think it
reasonable to uncomment or add them.

For now, a number of pseudodevices that are not in GENERIC.common
remain, pending comments on the larger-scale rototill.

(gdt)

2018-07-04 13:14:51 UTC MAIN commitmail json YAML

2018-07-04 12:25:49 UTC MAIN commitmail json YAML

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

Disable MWAIT/MONITOR on Apollo Lake CPUs to workaround APL30 errata.

We use MWAIT/MONITOR to hatch secondary CPUs. The errata means that
the wakeup may not happen, so SMP boot fails.
Use wrmsr to disable it in hardware too, for extra paranoia.

PR port-amd64/53420,
also reported on netbsd-users by joern clausen and ssartor.

(maya)

2018-07-04 07:38:38 UTC MAIN commitmail json YAML

2018-07-04 07:25:47 UTC MAIN commitmail json YAML

Don't allocate memory and return EFTYPE if sc->sc_blobsize==0 to prevent
panic in firmware_malloc().

(msaitoh)

2018-07-04 03:17:01 UTC MAIN commitmail json YAML

Avoid undefined behavior in scsipiconf.h in _4ltol() and _4btol()

Do not shift (through integer promotion) a signed value in an operation
than can change the bit of signedness.

sys/dev/scsipi/scsipiconf.h:808:17, left shift of 255 by 24 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 03:00:46 UTC MAIN commitmail json YAML

Avoid undefined behavior in pciiide macros

Cast the 'bytes' argument in PIIX_IDETIM_SET() and PIIX_IDETIM_CLEAR()
to unsigned int. This prevents UB because of shifting the bits and changing
the bit of signedness.

sys/dev/pci/piixide.c:714:11, left shift of 65535 by 16 places cannot be represented in type 'int'
sys/dev/pci/piixide.c:720:11, left shift of 32768 by 16 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 02:19:02 UTC MAIN commitmail json YAML

Avoid undefined behavior in pr_item_notouch_put()

Do not left shift a signed integer changing its signedness bit.

sys/kern/subr_pool.c:251:30, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 02:02:15 UTC MAIN commitmail json YAML

Avoid Undefined Behavior in ffs_clusteracct()

Change the type of 'bit' variable from int to unsigned int and use unsigned
values consistently.

sys/ufs/ffs/ffs_subr.c:336:10, shift exponent -1 is negative

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 01:42:37 UTC MAIN commitmail json YAML

Avoid Undefined Behavior in pr_item_notouch_get()

Change the type of left shifted integer from signed to unsigned.

sys/kern/subr_pool.c:274:13, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 01:17:32 UTC MAIN commitmail json YAML

Avoid undefined operation in signed integer shift in MAP_ALIGNED()

Cast the shifted byte to unsigned int.

sys/uvm/uvm_mmap.c:914:19, left shift of 255 by 24 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-04 00:35:34 UTC MAIN commitmail json YAML

Paper over Undefined Behavior in in6_control1()

Replace calculation of maxexpire (TIME_MAX) with a construct that triggers
UB with a one that uses implementation defined semantics.

No functional change intended.

An attempt to appease KUBSAn.

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-03 23:14:57 UTC MAIN commitmail json YAML

Avoid unportable signed integer left shift in fd_unused()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least a single place reported, for consistency fix all the
left bit shift operations.
sys/kern/kern_descrip.c:345:2, left shift of 1 by 31 places cannot be represented in type 'int'
sys/kern/kern_descrip.c:346:28, left shift of 1 by 31 places cannot be represented in type 'int'

Reported by <Harry Pantazis>

(kamil)

2018-07-03 23:11:06 UTC MAIN commitmail json YAML

Avoid unportable signed integer left shift in fd_copy()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least a single place reported, for consistency fix all the
left bit shift operations.
sys/kern/kern_descrip.c:1492:3, left shift of 1 by 31 places cannot be represented in type 'int'
sys/kern/kern_descrip.c:1493:28, left shift of 1 by 31 places cannot be represented in type 'int'

Reported by <Harry Pantazis>

(kamil)

2018-07-03 22:49:51 UTC MAIN commitmail json YAML

Avoid unportable signed integer left shift in fd_isused()

Detected with Kernel Undefined Behavior Sanitizer.

sys/kern/kern_descrip.c:188:34, left shift of 1 by 31 places cannot be represented in type 'int'

Reported by <Harry Pantazis>

(kamil)

2018-07-03 22:38:34 UTC MAIN commitmail json YAML

Try to appease KUBSan in sys/sys/wait.h in W_EXITCODE()

Cast return value that is stored as int to unsigned int in order to
appease the << 8 operation. In case of a ret=-1, this cast is papering
things over or replacing UB with an implementation specific behavior.

There is a reverse operation with the same papering things over:
WEXITSTATUS(x) ((int)(((unsigned int)_W_INT(x)) >> 8) & 0xff)

No functional change intended.

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

(kamil)

2018-07-03 21:12:10 UTC MAIN commitmail json YAML

Use the fonts from our installed directory not the system when we are a tool!
Martin found it.
XXX pullup-8

(christos)

2018-07-03 19:56:02 UTC MAIN commitmail json YAML

fix detach code and do it on shutdown

(jdolecek)

2018-07-03 18:09:28 UTC MAIN commitmail json YAML

add DIAGNOSTIC check for rnd_attach_source() being called twice for same
rnd source; it's driver error, and it breaks rnd source list pointers

(jdolecek)

2018-07-03 18:07:36 UTC MAIN commitmail json YAML

2018-07-03 16:30:13 UTC MAIN commitmail json YAML

Dump clock tree with aprint_debug instead of printf

(jmcneill)

2018-07-03 16:22:48 UTC MAIN commitmail json YAML

Fix value of PHY_CLK_RST_FSEL_24M, USB2 on XHCI works now.

(jmcneill)

2018-07-03 16:09:40 UTC MAIN commitmail json YAML

Enable Exynos USB support

(jmcneill)

2018-07-03 16:09:04 UTC MAIN commitmail json YAML

2018-07-03 16:06:41 UTC MAIN commitmail json YAML

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

Add support for Samsung Exynos USB3 DRD.

(jmcneill)

2018-07-03 12:17:54 UTC MAIN commitmail json YAML

Avoid unportable signed integer left shift in fd_used()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least a single place reported, for consistency fix all the
left bit shift operations.
sys/kern/kern_descrip.c:302:26, left shift of 1 by 31 places cannot be represented in type 'int'

Reported by <Harry Pantazis>

(kamil)

2018-07-03 12:12:03 UTC MAIN commitmail json YAML

Make IRQ sharing work again

(jmcneill)

2018-07-03 11:45:54 UTC MAIN commitmail json YAML

Avoid unportable signed integer left shift in intr_calculatemasks()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least two places reported, for consistency fix all the
left shift bit shift.

src/sys/arch/x86/x86/intr.c:339:22, left shift of 1 by 31 places cannot be represented in type 'int'
src/sys/arch/x86/x86/intr.c:347:15, left shift of 1 by 31 places cannot be represented in type 'int'

Reported by <Harry Pantazis>

(kamil)

2018-07-03 09:39:32 UTC MAIN commitmail json YAML

Add USB clocks and missing MMC biu clocks

(jmcneill)

2018-07-03 08:52:36 UTC MAIN commitmail json YAML

Fix name of snps,dis_u2_susphy_quirk property

(jmcneill)

2018-07-03 07:13:41 UTC netbsd-8 commitmail json YAML

Note NetBSD.org fixes in release docs

(martin)

2018-07-03 07:11:48 UTC netbsd-8 commitmail json YAML

2018-07-03 04:56:59 UTC MAIN commitmail json YAML

- Print Power Management Control/status register in 32bit.
- Simplify.

(msaitoh)

2018-07-03 04:02:07 UTC MAIN commitmail json YAML

Remove nmbclusters check. We don't use the mbuf cluster. The old code also had
a bug that ixgbe_total_ports adds two every port and never decrement in
the detach path. Found by hikaru@.

The code was removed in FreeBSD when it switched to use iflib and OpenBSD
removed the code 8 years ago.

(msaitoh)

2018-07-03 03:41:24 UTC MAIN commitmail json YAML

Not all things that write to the disk do something that dk(4) will
be interested in.  Let individual commands decide if ioctl(DIOCMWEDGES)
should be done.  I was conservative and set the flag on any command
that might create/modify/delete partitions in any way.

(jnemeth)

2018-07-03 03:37:04 UTC MAIN commitmail json YAML

Fix net.inet6.ip6.ifq node doesn't exist

The node (and child nodes) is initialized in sysctl_net_pktq_setup, but the call
of sysctl_net_pktq_setup is skipped unexpectedly.

sysctl_net_pktq_setup is skipped if in6_present is false that indicates the
netinet6 component isn't loaded on rump kernels.  However the flag is
accidentally always false because the flag is turned on in in6_dom_init that is
called after if_sysctl_setup on both normal and rump kernels.

Fix the issue by moving if_sysctl_setup after in6_dom_init (domaininit on normal
kernels).  This fix is ad-hoc but good enough for netbsd-8.  We should refine
the initialization order of network components in the future.

Pointed out by hikaru@

(ozaki-r)

2018-07-03 01:56:39 UTC MAIN commitmail json YAML

Avoid printing error messages twice when an invalid
escape sequence (\ sequence) is present in an arg to a %b
conversion.

(kre)

2018-07-03 01:54:42 UTC MAIN commitmail json YAML

From leot@ on tech-userlevel:

Avoid running off into oblivion when a format string,
or arg to a %b conversion ends in an unescaped backslash.

Patch from Leo slightly modified by me.

(kre)

2018-07-02 23:54:53 UTC MAIN commitmail json YAML

2018-07-02 23:52:54 UTC MAIN commitmail json YAML

No need to use hold reg when updating clocks, and auto-discover some values.

(jmcneill)

2018-07-02 20:28:24 UTC MAIN commitmail json YAML

Set module clock on rate changes

(jmcneill)

2018-07-02 20:24:55 UTC MAIN commitmail json YAML

2018-07-02 17:50:02 UTC MAIN commitmail json YAML

When searching for interrupt parent, stop as soon as we see an
interrupt-controller property on a node other than the starting node.

(jmcneill)

2018-07-02 17:13:16 UTC MAIN commitmail json YAML

catch up to upstream dts changes/additions

(jakllsch)

2018-07-02 16:36:50 UTC MAIN commitmail json YAML

Attach cpufreq scaling provider to ourself, as cpus doesn't do this anymore

(jmcneill)

2018-07-02 16:06:50 UTC MAIN commitmail json YAML

Fix a regression with interrupt-map handling in previous.

(jmcneill)

2018-07-02 15:10:43 UTC MAIN commitmail json YAML

Remove dhclient references.

(roy)

2018-07-02 14:40:25 UTC netbsd-6-0 commitmail json YAML

2018-07-02 14:39:53 UTC netbsd-6-0 commitmail json YAML

Apply patch, requested by mrg in ticket #1551:

Avoid redefining functions.

(martin)

2018-07-02 14:39:15 UTC netbsd-6-1 commitmail json YAML

2018-07-02 14:38:41 UTC netbsd-6-1 commitmail json YAML

Apply patch, requested by mrg in ticket #1551:

Avoid redefining functions.

(martin)