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

2024-05-10 09:12:28 UTC Now

2018-10-05 05:37:49 UTC MAIN commitmail json YAML

Use pci_intr_establish_xname().

(msaitoh)

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

Remove extra newline in SPMI table.

(msaitoh)

2018-10-05 05:06:48 UTC MAIN commitmail json YAML

s/conver_to/convert_to/. No functional change.

(msaitoh)

2018-10-05 01:54:10 UTC MAIN commitmail json YAML

fix build error without DDB

(ryo)

2018-10-05 01:53:54 UTC MAIN commitmail json YAML

for some reason my 6800 Ultra stalls when drawing *some* off-screen rectangles
as a workaround, draw them by software until I figure out what's going on

(macallan)

2018-10-05 01:25:38 UTC MAIN commitmail json YAML

Back out sftchg/fstcnt deadlock workaround

The change did prevent some system freeze, but caused spurious
unmount failures reporter by bouyer@.

hannken@ is working on the right fix, see kern/53624

(manu)

2018-10-04 23:53:14 UTC MAIN commitmail json YAML

cleanup locore, and changed the way to map memories during boot.
- add functions bootpage_enter() and bootpage_alloc() to adapt various layout
  of physical memory map. especially for 64bit physical memory layout.
  pmapboot_alloc() allocates pagetable pages from _end[].
- changed to map only the required amount for PA=VA identity mapping
  (kernel image, UART device, and FDT blob) with L2_BLOCK(2Mbyte).
- changing page permission for kernel image, and making KSEG mapping are done
  at cpu_kernel_vm_init() instead of at locore.
- optimize PTE entries with PTE Contiguous bit. it is enabled on devmap only for now.

reviewed by skrll@, thanks.

(ryo)

2018-10-04 19:42:01 UTC jdolecek-ncqfixes commitmail json YAML

relax the NOERROR + C_CHAOS, just rerun the xfer instead of panic, to handle
another variant of bad/missing AHCI error recovery, this time under Parallels

(jdolecek)

2018-10-04 19:11:09 UTC MAIN commitmail json YAML

curses: once __slk_init is called, reset slk_fmt

This allows soft label keys to be used on more than one terminal.

(roy)

2018-10-04 18:40:41 UTC MAIN commitmail json YAML

curses: declare SLK format as invalid until slk_init(3) called

If we don't, then when __slk_init with a valid format of 0 it sets
up labels to be drawn without a window.

(roy)

2018-10-04 17:59:35 UTC jdolecek-ncqfixes commitmail json YAML

2018-10-04 17:53:23 UTC jdolecek-ncqfixes commitmail json YAML

don't add +1 to retry on error

(jdolecek)

2018-10-04 15:21:23 UTC MAIN commitmail json YAML

2018-10-04 13:38:41 UTC MAIN commitmail json YAML

Add missing format string annotation.

(joerg)

2018-10-04 11:50:34 UTC MAIN commitmail json YAML

Fix an obvious botch in the previous rev, found by martin@

(kre)

2018-10-04 10:21:11 UTC netbsd-8 commitmail json YAML

2018-10-04 10:20:13 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #1047):

lib/libcurses/curses_private.h: revision 1.64
lib/libcurses/curses_private.h: revision 1.65
lib/libcurses/initscr.c: revision 1.33
lib/libcurses/curses_screen.3: revision 1.24
lib/libcurses/curses_screen.3: revision 1.25
lib/libcurses/newwin.c: revision 1.52
lib/libcurses/fileio.c: revision 1.6
lib/libcurses/ripoffline.c: revision 1.4
lib/libcurses/resize.c: revision 1.28
lib/libcurses/ripoffline.c: revision 1.5
lib/libcurses/resize.c: revision 1.29
lib/libcurses/screen.c: revision 1.34
lib/libcurses/setterm.c: revision 1.67

curses: fix ripoffline

When creating stdscr, ensure it's placed and sized in accordance with
lines ripped off.

LINES is no longer adjusted for lines ripped off.
POSIX makes no mention that it should be adjusted.
Bottom lines are now placed correctly.
Lines ripped off are now displayed after calling initscr.

ok kamil@

Fixes PR #53635

-

curses: resize ripped off windows
The application must still redraw them though.

-

Fix typos in curses_screen.3
Fn -> Ft in the resize_term(3) prototype
funcion -> function

(martin)

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

2018-10-04 08:58:13 UTC MAIN commitmail json YAML

fix to boot APs of RPI3 with GENERIC64.
if no psci, try other methods.

(ryo)

2018-10-04 07:43:12 UTC MAIN commitmail json YAML

Don't print extra newline if the PCI extended configuration space doesn't exist.

(msaitoh)

2018-10-04 07:40:09 UTC MAIN commitmail json YAML

disassemblable sha512 insns

(ryo)

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

remove XXX delay to attach cpus in order

(ryo)

2018-10-04 07:33:54 UTC MAIN commitmail json YAML

don't call plat->ap_early_putchar if not defined EARLYCONS

(ryo)

2018-10-04 02:24:26 UTC pgoyette-compat commitmail json YAML

Also in the UNSET_HOOK2 case, release the mutex before destroying it.

(pgoyette)

2018-10-04 02:20:29 UTC pgoyette-compat commitmail json YAML

2018-10-04 01:56:03 UTC pgoyette-compat commitmail json YAML

Grab the mutex for UNSET_HOOK2 (fixed previously for UNSET_HOOK)

(pgoyette)

2018-10-04 01:55:17 UTC pgoyette-compat commitmail json YAML

Don't include common compat_80 code in the raid-speific module

(pgoyette)

2018-10-03 22:53:52 UTC pgoyette-compat commitmail json YAML

2018-10-03 22:50:51 UTC pgoyette-compat commitmail json YAML

There are version-specific raid modules so don't include their code in
the "generic" version-specific module.

(pgoyette)

2018-10-03 21:52:02 UTC pgoyette-compat commitmail json YAML

Don't define if_43_{init,fini}() in multiple .h files.

(pgoyette)

2018-10-03 21:27:14 UTC pgoyette-compat commitmail json YAML

Make if_43_{init,fini} return an int, for consistency with all the
related *_{init,fini} routines.

(pgoyette)

2018-10-03 19:20:48 UTC jdolecek-ncqfixes commitmail json YAML

change channel reset and drive reset for all ATA controllers to always
run via thread, and with channel lock held the whole time; the queue is
frozen while reset is pending

for this repurpose ata_reset_channel() into new ata_thread_run()

also adjust some device printfs to not leak xfer pointer, and avoid
aprint_* for non-autoconf messages

(jdolecek)

2018-10-03 18:08:28 UTC netbsd-8 commitmail json YAML

2018-10-03 17:57:39 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1046):

sys/net/if_bridge.c: revision 1.157
sys/net/if_bridge.c: revision 1.158
sys/net/if_bridge.c: revision 1.159

  Fix a bug that bridge_enqueue() incorrectly cleared outgoing packet's offload
flags. bridge_enqueue() is called from bridge_output() when a packet is
spontaneous. Clear csum_flags before calling brige_enqueue() in
bridge_forward() or bridge_broadcast() instead of in the beginning of
bridge_enqueue().

Note that this change doesn't fix a problem on the following configuration:

A bridge has two or more interfaces.
An address is assigned to an bridge member interface and
some offload flags are set.
Another interface has no address and has no any offload flag.

XXX pullup-[78]

- Fix bridge_enqueue() which was broken by last commit. Use correct mbuf
  pointer.
- Modify comment.

Micro optimization. m_copym(M_COPYALL) -> m_copypacket().

(martin)

2018-10-03 17:53:56 UTC netbsd-8 commitmail json YAML

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

sys/netinet/ip_reass.c: revision 1.19

Hold ip_off and ip_len in the fragment entry, instead of always reading
the associated mbuf (and converting to host order). This reduces the
cache/TLB misses when processing long lists.

(martin)

2018-10-03 17:50:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #1044):

sys/dev/pad/pad.c: revision 1.58

pad(4) mixer has only 1 channel, so return EINVAL in the case other than 1.

This fixes the following strange output of mixerctl(1):

        outputs.master=255,0
        inputs.dac=255,0

(martin)

2018-10-03 17:49:06 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #1043):

lib/libcurses/resize.c: revision 1.27
lib/libcurses/get_wch.c: revision 1.19
lib/libcurses/getch.c: revision 1.70

curses: resizeterm(3) should always send KEY_RESIZE

Fixes #53636

OK kamil@

(martin)

2018-10-03 13:59:31 UTC MAIN commitmail json YAML

Another space that hurts Jared's eyes.

(skrll)

2018-10-03 13:34:45 UTC MAIN commitmail json YAML

Add libpuffs (fixes sun2 build)

(jmcneill)

2018-10-03 13:22:29 UTC MAIN commitmail json YAML

curses: resize ripped off windows

The application must still redraw them though.

(roy)

2018-10-03 11:59:21 UTC pgoyette-compat commitmail json YAML

2018-10-03 10:02:08 UTC MAIN commitmail json YAML

Add support for Panasonic N5HBZ0000055, from David H. Gutteridge
in PR kern/53647.

(martin)

2018-10-03 10:00:30 UTC MAIN commitmail json YAML

2018-10-03 09:59:34 UTC MAIN commitmail json YAML

David H. Gutteridge in PR kern/53647: add Panasonic N5HBZ0000055
WiFi device.

(martin)

2018-10-03 09:59:05 UTC MAIN commitmail json YAML

Fix some product names and details as suggested by jmcneill

(skrll)

2018-10-03 09:52:59 UTC MAIN commitmail json YAML

- Decode DMAR's ANDD (ACPI Name Space).
- Add X2APIC_MODE flag of DMAR. Note that Intel's VT-d's document says the
  flag's name is DMA_CTRL_PLATFORM_OPT_IN but actbl1.h says it's
  DMAR_X2APIC_MODE.

(msaitoh)

2018-10-03 09:46:11 UTC MAIN commitmail json YAML

Add ACPI LPIT (Low Power Idle Table) from FreeBSD r336185.

(msaitoh)

2018-10-03 09:24:36 UTC MAIN commitmail json YAML

2018-10-03 07:03:17 UTC pgoyette-compat commitmail json YAML

2018-10-03 06:46:09 UTC MAIN commitmail json YAML

- Don't print TPH requester's ST Table Size if the ST table location field
  is not PCI_TPH_REQ_STTBLLOC_TPHREQ because the size field is only applicaple
  for PCI_TPH_REQ_STTBLLOC_TPHREQ case.
- Add comment.

(msaitoh)

2018-10-03 06:02:33 UTC MAIN commitmail json YAML

2018-10-03 05:49:53 UTC MAIN commitmail json YAML

Identify some Cavium ThunderX CPUs

(skrll)

2018-10-03 05:45:50 UTC MAIN commitmail json YAML

Add commented out Cavium CN88XX ThunderX EARLYCONS and CONSADDR

(skrll)

2018-10-03 05:43:37 UTC MAIN commitmail json YAML

Add some Cavium CPU_IDs (implementor and primary part number only aka
CPU_PARTMASK)

(skrll)

2018-10-03 00:13:17 UTC MAIN commitmail json YAML

2018-10-02 22:44:07 UTC MAIN commitmail json YAML

Don't treat mostly connection closed events as filtering events.
There a a failed to negotiate instance too, but I don't want to generate
more diff.

(christos)

2018-10-02 22:40:29 UTC MAIN commitmail json YAML

2018-10-02 22:00:47 UTC pgoyette-compat commitmail json YAML

2018-10-02 22:00:15 UTC pgoyette-compat commitmail json YAML

Remove conditional compilation based on COMPAT_SUNOS - just update the
sf_scp field regardless.  We've previously removed the comparison that
checks if a lwp's emul is emul_sunos, so now we can also remove the
include for "opt_sunos.h"

(pgoyette)

2018-10-02 18:49:24 UTC MAIN commitmail json YAML

PR/53646: Thomas Reim: Incorrect detection of the packet complete code in
fragment list check.

While the fix in https://launchpad.net/~rdratlos/+archive/ubuntu/racoon

- if (i > last_frag) /* It is complete */
+ if (i >= last_frag) /* It is complete */

has the correct behavior, it violates the test for successful
completion of the invariant of the loop:

    for (i = 1; i <= last_frag; i++) {
if (!check_fragment_index())
    break;
    }
    if (i > last_frag)
return ok;

It is better to move the check for NULL in the loop earlier, so that
the final iteration is done and the test is kept the same. It makes
the code easier to understand and preserves the original intent.

XXX: pullup-8

(christos)

2018-10-02 18:37:32 UTC MAIN commitmail json YAML

fix diagnostic build.

XXX: pullup-7, pullup-8.

(mrg)

2018-10-02 17:35:44 UTC MAIN commitmail json YAML

curses: fix ripoffline

When creating stdscr, ensure it's placed and sized in accordance with
lines ripped off.
LINES is no longer adjusted for lines ripped off.
POSIX makes no mention that it should be adjusted.
Bottom lines are now placed correctly.
Lines ripped off are now displayed after calling initscr.

ok kamil@

Fixes PR #53635

(roy)

2018-10-02 13:53:51 UTC MAIN commitmail json YAML

Use hex string syntax to prevent overflow warnings for character constants
>= 128.

(christos)

2018-10-02 01:43:53 UTC pgoyette-compat commitmail json YAML

2018-10-02 00:00:09 UTC pgoyette-compat commitmail json YAML

Revert most of previous.  Leave the original dependencies, but still
remove the duplicate attribute definition to make config(1) happier.

(pgoyette)

2018-10-01 21:19:16 UTC pgoyette-compat commitmail json YAML

Implement dummy netbsd32_compat_{13,16} routines.  aarch64 doesn't have
compat going that far back, but the build infrastructure expects to see
these sources and *_{init,fini} symbols.

(pgoyette)

2018-10-01 19:45:01 UTC MAIN commitmail json YAML

Comment out printing L2CTLR_EL1 as it is implementation specific.

OK ryo

(skrll)

2018-10-01 17:50:08 UTC MAIN commitmail json YAML

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

2018-10-01 11:16:04 UTC MAIN commitmail json YAML

Use more .Ql (quoted literal) for variable values.
Misc markup fixes.

(uwe)

2018-10-01 09:47:34 UTC MAIN commitmail json YAML

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.

(martin)

2018-10-01 09:39:20 UTC MAIN commitmail json YAML

Expand code covered by sc->sc_mtx, to make sure an interrupt would not be
handled before the cv_timedwait_sig() call, or while polling.
Seems to fix "sunxitwi0: send STOP failed" messages frequently seen related
to axp20x0 sensors.

(bouyer)

2018-10-01 08:23:53 UTC MAIN commitmail json YAML

2018-10-01 07:33:36 UTC pgoyette-compat commitmail json YAML

Sync with changes from HEAD: no more ATM

(pgoyette)

2018-10-01 07:11:27 UTC MAIN commitmail json YAML

2018-09-30 21:32:48 UTC pgoyette-compat commitmail json YAML

2018-09-30 19:23:13 UTC MAIN commitmail json YAML

2018-09-30 16:06:02 UTC MAIN commitmail json YAML

2018-09-30 16:01:09 UTC MAIN commitmail json YAML

Make more ld device nodes.

(jmcneill)

2018-09-30 15:56:47 UTC MAIN commitmail json YAML

2018-09-30 15:44:22 UTC MAIN commitmail json YAML

Suppress "not configured" message when no device is present

(jmcneill)

2018-09-30 15:31:05 UTC MAIN commitmail json YAML

2018-09-30 14:23:24 UTC MAIN commitmail json YAML

2018-09-30 14:09:35 UTC MAIN commitmail json YAML

Account APbus interrupts by evcnt(9).

(tsutsui)

2018-09-30 14:04:51 UTC MAIN commitmail json YAML

Enable DHCP boot for modern servers rather than ancient BOOTPARAM.

(tsutsui)

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

2018-09-30 13:53:26 UTC MAIN commitmail json YAML

Set NS access bit when writing ICC_PMR_EL1

(jmcneill)

2018-09-30 10:55:00 UTC MAIN commitmail json YAML

curses.h: Fix typo in a comment of the word 'handling'

No functional change intended.

(kamil)

2018-09-30 10:38:05 UTC MAIN commitmail json YAML

Discussed some years ago but never commited: add an option to have a
single tmpfs (on /tmp) and use that for /var/shm as well (via a symlink
created after the tmpfs on /tmp has been mounted)

(martin)

2018-09-30 10:34:38 UTC MAIN commitmail json YAML

If we're going to allow pl0 to access virtual and physical counters then
we should allow it from all CPUs.

kern/53630 (openssl fallout on arm)

(skrll)

2018-09-30 10:08:13 UTC MAIN commitmail json YAML

Fix addchnstr() macro in curses.h

Add a missing argument 'n'.

(kamil)

2018-09-30 10:00:25 UTC MAIN commitmail json YAML

remove hardcoded bullshit, probably fixes PR/53644

(maxv)

2018-09-30 09:46:41 UTC MAIN commitmail json YAML

Newer gcc seems to use __ARM_ARCH_ISA_THUMB to tell use we have thumb
instructions available

(martin)

2018-09-30 06:14:23 UTC MAIN commitmail json YAML

Fix news5000 panic during boot on APbus attach. PR port-newsmips/53626

Discussed with ryo@ (the original author of news5000 support).
Should be pulled up to netbsd-8.

(tsutsui)

2018-09-30 01:57:41 UTC MAIN commitmail json YAML

mention  only the version with have in current.

(christos)

2018-09-30 01:48:27 UTC pgoyette-compat commitmail json YAML

Note issue with compat_sunos vs sparc64's compat_netbsd32

(pgoyette)

2018-09-30 01:46:02 UTC pgoyette-compat commitmail json YAML

Ssync with HEAD

(pgoyette)

2018-09-30 00:42:17 UTC MAIN commitmail json YAML

add gcc 4.5 files.  updating a m68k system gave me:

rmdir: /usr/include/gcc-4.5: Directory not empty
        Can't remove obsolete directory /usr/include/gcc-4.5

because these two files were still present.

(mrg)

2018-09-30 00:17:55 UTC pgoyette-compat commitmail json YAML

2018-09-29 22:04:58 UTC MAIN commitmail json YAML

Fix the documented function prototype of slk_attr_set(3)

Note the missing argument short pair.

(kamil)

2018-09-29 21:53:38 UTC MAIN commitmail json YAML

2018-09-29 21:52:35 UTC MAIN commitmail json YAML

2018-09-29 21:52:29 UTC MAIN commitmail json YAML

Fix function prototypes in curses_underscore.3

Correct function prototype of wunderscore(3) and wunderend(3).

(kamil)

2018-09-29 21:36:15 UTC pgoyette-compat commitmail json YAML

2018-09-29 20:58:31 UTC MAIN commitmail json YAML

If the total size of the DTB exceeds our static storage, attempt to pack
it in place to make it fit.

(jmcneill)

2018-09-29 19:45:18 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-armv4.S@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/arm64cpuid.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-mont.S@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4cpuid.S@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv8-mont.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/bsaes-armv7.S@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv4.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv8.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv4.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv8.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghash-armv4.S@1.6 / diff / nxr@1.6
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/keccak1600-armv4.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv8.S@1.2 / diff / nxr@1.2
      :
(more 4 files)
Regen

(martin)

2018-09-29 19:44:58 UTC MAIN commitmail json YAML

Upstream does not support armv4 any more - but it is trivial to add
add regen time. Make the "regen" target here do it.

(martin)

2018-09-29 19:40:58 UTC MAIN commitmail json YAML

2018-09-29 18:48:55 UTC MAIN commitmail json YAML

Mention that NPF was converted to use libnv.

(rmind)

2018-09-29 18:27:36 UTC MAIN commitmail json YAML

Stop searching for redistributors in a region after we find a redistributor
with the Last bit set in GICR_TYPER.

(jmcneill)

2018-09-29 18:00:36 UTC MAIN commitmail json YAML

npf_return_tcp: fix no-INET6 case.

(rmind)

2018-09-29 17:05:55 UTC MAIN commitmail json YAML

Set load offset to +2M to make room for QEMU's bootloader stub

(jmcneill)

2018-09-29 16:02:09 UTC MAIN commitmail json YAML

2018-09-29 15:56:25 UTC MAIN commitmail json YAML

2018-09-29 15:52:44 UTC MAIN commitmail json YAML

- re-enable lint (otherwise the sets break)
- no space after -I (for consistency)

(christos)

2018-09-29 15:50:29 UTC MAIN commitmail json YAML

Increase storage space for DTB (for QEMU)

(jmcneill)

2018-09-29 15:49:38 UTC MAIN commitmail json YAML

No need to cover boot ROM with devmap

(jmcneill)

2018-09-29 15:10:45 UTC MAIN commitmail json YAML

2018-09-29 14:41:37 UTC MAIN commitmail json YAML

NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@ for extra testing.

(rmind)

2018-09-29 13:19:38 UTC MAIN commitmail json YAML

For i386 XEN3PAE_DOM0, use the "native" idt registration
infrastructure by removing the #ifndef XEN clause.

This will hopefully be the last commit to "fix" boot
breakage of XEN3PAE_DOM0

Thanks to bouyer@ to focussed bug reports with

# xl dmesg
and relevant ddb> bt

(cherry)

2018-09-29 11:23:18 UTC MAIN commitmail json YAML

Correct function prototypes in curses_background(3)

Fix prototypes for: bkgdset(3), wbkgd(3) and wbkgdset(3).

(kamil)

2018-09-29 10:59:00 UTC pgoyette-compat commitmail json YAML

Remove redundant definition of machine_arch32 and machine32

(pgoyette)

2018-09-29 10:54:35 UTC MAIN commitmail json YAML

A timeout of 480 seconds is not enough for the t_pubkey:ec test case
on qemu/sparc.

(gson)

2018-09-29 10:50:33 UTC MAIN commitmail json YAML

The default timeout of 300 seconds is not enough for the t_ciphers:evp
test case on qemu/sparc since the import of openssl 1.1.0i on 2018-08-18.

(gson)

2018-09-29 10:22:36 UTC pgoyette-compat commitmail json YAML

Make netbsd32_sendsig_sigino() non-static since we need to call it from
the _md_16 code.

While here, use __func__ in a diagnostic message rather than hardcoding
the function name.

(pgoyette)

2018-09-29 10:18:29 UTC pgoyette-compat commitmail json YAML

Use proper names for netbsd32_machdep_md_16_{init,fini}() routines

(pgoyette)

2018-09-29 10:11:34 UTC pgoyette-compat commitmail json YAML

Add prototype for the default netbsd32_sendsig_siginfo()

(pgoyette)

2018-09-29 10:02:37 UTC pgoyette-compat commitmail json YAML

Here there is no 32-bit specific sendsig_sigcontext() so just use the
native one.

(pgoyette)

2018-09-29 09:45:51 UTC pgoyette-compat commitmail json YAML

Put netbsd32_sendsig_siginfo() here, where it belongs.

(pgoyette)

2018-09-29 09:44:53 UTC pgoyette-compat commitmail json YAML

Remove netbsd32_sendsig_sigcontext() - it belongs in netbsd32_machdep.c

(pgoyette)

2018-09-29 08:38:45 UTC pgoyette-compat commitmail json YAML

Define the netbsd32_sendsig_hook and create its accessor function.

(pgoyette)

2018-09-29 08:25:36 UTC pgoyette-compat commitmail json YAML

Add a routine to actually invoke the hook for netbsd32_sendsig()

(pgoyette)

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

Keep only one copy of the netbsd32_compat_16 code.

Remove unnecessary #ifdef COMPAT_13 since the source file will only be
processed if COMPAT_13 is already defined.

(pgoyette)

2018-09-29 07:52:39 UTC pgoyette-compat commitmail json YAML

Make sure that the netbsd32_compat_16 code is available to compat_netbsd_13

(pgoyette)

2018-09-29 07:47:46 UTC pgoyette-compat commitmail json YAML

Don't fall off the end of a non-void function.  (It used to be void,
but now returns an int to conform with requirements of the MP-safe
module_hook stuff.)

(pgoyette)

2018-09-29 07:36:44 UTC pgoyette-compat commitmail json YAML

Remove unnecesasry #ifdef COMPAT_16 (this file won't get selected unless
COMPAT_16 is defined).

Rename some functions for consistency with other architectures' machdep
code.

Provide some prototypes/declarations.

Use __func__ in a diagnostic message rather than hardcoding it in the
message string.

(pgoyette)

2018-09-29 07:34:12 UTC pgoyette-compat commitmail json YAML

Allocate the netbsd32_sendsig_hook in the main compat_netbsd32 code
(where it call be called) and not in a subsidiary module which may
not even exist.

(pgoyette)

2018-09-29 07:13:01 UTC pgoyette-compat commitmail json YAML

2018-09-29 07:00:20 UTC MAIN commitmail json YAML

Fix "use before init" of *idt.
This should fix boot time pagefaulting and panic(9)
on XEN kernels due to the boottime idt API reorg.

(cherry)

2018-09-29 06:55:33 UTC pgoyette-compat commitmail json YAML

#include the module hook stuff
add prototype for netbsd32_sendsig_sigcontext

(pgoyette)

2018-09-29 06:48:22 UTC MAIN commitmail json YAML

Add defaults and documentation for USE_XZ_SETS - a new variable
controlling whether an architecture will use .tgz or tar.xz
sets.

(martin)

2018-09-29 06:36:29 UTC MAIN commitmail json YAML

Another USE_XZ_SETS which probably should be fixed elsewhere
in a better way

(kre)

2018-09-29 06:31:02 UTC pgoyette-compat commitmail json YAML

2018-09-29 06:19:42 UTC pgoyette-compat commitmail json YAML

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

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.

(martin)

2018-09-29 04:24:02 UTC pgoyette-compat commitmail json YAML

2018-09-29 04:22:31 UTC pgoyette-compat commitmail json YAML

Only keep the compat syscall entry;  the main entry needs to remain
conditional.

(pgoyette)

2018-09-29 04:11:45 UTC pgoyette-compat commitmail json YAML

2018-09-29 04:11:07 UTC pgoyette-compat commitmail json YAML

Don't #ifdef out the NTP compat calls.

The syscall number needs to be defined (for the autoload table) whether
or not the compat code is built in.  The compat code will be included
in the module in all cases, but it makes explicit checks to ensure that
NTP code exists before executing.

(pgoyette)

2018-09-29 02:30:10 UTC pgoyette-compat commitmail json YAML

2018-09-29 02:29:42 UTC pgoyette-compat commitmail json YAML

Conditionalize the compat_10 sysv ipc syscalls on both the COMPAT_10
and SYSVxxx attributes

(pgoyette)

2018-09-29 02:06:46 UTC pgoyette-compat commitmail json YAML

2018-09-29 02:06:14 UTC pgoyette-compat commitmail json YAML

Conditionalize compat_09 syscalls

(pgoyette)

2018-09-29 01:45:32 UTC pgoyette-compat commitmail json YAML

2018-09-29 01:45:05 UTC pgoyette-compat commitmail json YAML

Conditionalize compat_09_sys_{get,set}domainname syscalls appropriately.

(pgoyette)

2018-09-29 01:38:32 UTC pgoyette-compat commitmail json YAML

2018-09-29 01:37:26 UTC pgoyette-compat commitmail json YAML

Conditionalize some compat_30 syscalls appropriately

(pgoyette)

2018-09-29 01:12:22 UTC MAIN commitmail json YAML

Only test USE_XZ_SETS if it is defined.  This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.

(kre)

2018-09-28 23:40:45 UTC MAIN commitmail json YAML

Force libcrypto to be loaded after libcryptotest for the benefit of sun2

(christos)

2018-09-28 21:51:42 UTC MAIN commitmail json YAML

Revert the recent support for enhanced descriptors until a viable solution is
found.

It broke at least Cubietruck, Orange Pi One, and maybe Rock64 ethernets in
different ways. Unfortunately it works on my Olinuxino Micro and Lime 2 so I
can't reproduce the bugs for now.

Should fix PR#53637

(aymeric)

2018-09-28 17:28:01 UTC MAIN commitmail json YAML

2018-09-28 15:11:36 UTC MAIN commitmail json YAML

Prepare for .tar.xz sets

(martin)

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

2018-09-28 15:04:20 UTC MAIN commitmail json YAML

2018-09-28 15:03:48 UTC MAIN commitmail json YAML

curses: resizeterm(3) should always send KEY_RESIZE

Fixes #53636

OK kamil@

(roy)

2018-09-28 15:03:34 UTC MAIN commitmail json YAML

Fix stupid typo (=+ instead of +=).
Remove hard coded debug sets removal, now that the configurable
variant works.
Prepare for .tar.xz sets.

(martin)

2018-09-28 14:45:16 UTC MAIN commitmail json YAML

force disable seccomp, in case it gets detected.

the configuration in this version of file is non-functional and results
in build failure if detected. The next version should be fine, but let's
ensure nobody runs into this build failure until it's imported.

reported by e3ef13f4ff44 on freenode.

(maya)

2018-09-28 13:24:02 UTC MAIN commitmail json YAML

Fix previous; follow the binding spec for this device when decoding
interrupt specifiers.

(jmcneill)

2018-09-28 13:21:37 UTC MAIN commitmail json YAML

Don't include nbtool_config.h too early.  It pulls in system headers
and so #define _GNU_SOURCE afterwards doesn't have any effect on them.

PR bin/53634

(uwe)

2018-09-28 09:36:20 UTC pgoyette-compat commitmail json YAML

Add a note to revisit the compat_utils stuff, find and document all of
its dependencies.

(pgoyette)

2018-09-28 08:42:01 UTC pgoyette-compat commitmail json YAML

Use the correct attribute - compat_utils vs compat_util

(pgoyette)

2018-09-28 08:33:43 UTC netbsd-8 commitmail json YAML

2018-09-28 08:11:34 UTC MAIN commitmail json YAML

Fix typos in curses_screen.3

Fn -> Ft in the resize_term(3) prototype
funcion -> function

(kamil)

2018-09-28 08:08:56 UTC pgoyette-compat commitmail json YAML

Revert previous commit.  There are still random unidentified references
to these utility routings.

(pgoyette)

2018-09-28 04:34:02 UTC MAIN commitmail json YAML

Improve codes.  No functional changes intended.
Confirmed on LUNA-I.  OK'ed by tsutsui@.

(isaki)

2018-09-28 04:13:24 UTC MAIN commitmail json YAML

Remove unused variable.
OK'ed by tsutsui@.

(isaki)

2018-09-28 03:53:59 UTC MAIN commitmail json YAML

2018-09-28 03:51:34 UTC MAIN commitmail json YAML

2018-09-27 23:48:58 UTC pgoyette-compat commitmail json YAML

Add dependencies to ensure that the utility routines get included
as built-in module when needed.

(pgoyette)

2018-09-27 21:35:54 UTC pgoyette-compat commitmail json YAML

Add empty init/fini routines so MI code can call them.

(pgoyette)

2018-09-27 21:34:57 UTC pgoyette-compat commitmail json YAML

EXEC_ELF32 does not depend on COMPAT_NETBSD32

(pgoyette)

2018-09-27 18:18:53 UTC MAIN commitmail json YAML

Remove debugging accidentally left in! Noticed by Tobias Ulmer

(christos)

2018-09-27 17:34:28 UTC MAIN commitmail json YAML

2018-09-27 16:34:08 UTC MAIN commitmail json YAML

2018-09-27 16:33:14 UTC MAIN commitmail json YAML

2018-09-27 15:57:07 UTC netbsd-8 commitmail json YAML

Additional change needed for ticket #1041:

sys/netinet6/ip6_var.h (apply patch)

When reassembling IPv4/IPv6 packets, ensure each fragment has been subject
to the same IPsec processing. That is to say, that all fragments are ESP,
or AH, or AH+ESP, or none.

Add ipsec flags to struct ip6q.

(martin)

2018-09-27 15:54:21 UTC netbsd-8 commitmail json YAML

Ammend #1041 for additional changes

(martin)

2018-09-27 15:15:59 UTC netbsd-8 commitmail json YAML

2018-09-27 15:12:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #1042):
lib/libcurses/getch.c: revision 1.68
lib/libcurses/getch.c: revision 1.69
lib/libcurses/get_wch.c: revision 1.17
lib/libcurses/get_wch.c: revision 1.18
lib/libcurses/curses_private.h: revision 1.63
curses: unify resize handling in getch
Instead of testing each fgetc call for resize event, add the wrapper
__fgetc_resize to simplify the logic.
While here, ensure that get_wch uses the correct input stream which
may or may not be stdin.
curses: call resizeterm if getch issues KEY_RESIZE
This fixes PR #53633.

(martin)

2018-09-27 15:07:35 UTC netbsd-8 commitmail json YAML

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

sys/netinet/ip_reass.c: revision 1.17 (patch)
sys/netinet6/frag6.c: revision 1.74 (patch)

When reassembling IPv4/IPv6 packets, ensure each fragment has been subject
to the same IPsec processing. That is to say, that all fragments are ESP,
or AH, or AH+ESP, or none.

The reassembly mechanism can be used both on the wire and inside an IPsec
tunnel, so we need to make sure all fragments of a packet were received
on only one side.

Even though I haven't tried, I believe there are configurations where it
would be possible for an attacker to inject an unencrypted fragment into a
legitimate stream of already-decrypted-and-authenticated fragments.

Typically on IPsec gateways with ESP tunnels, where we can encapsulate
fragments (as opposed to the general case, where we fragment encapsulated
data).

Note, for the record: a funnier thing, under IPv4, would be to send a
zero-sized !MFF fragment at the head of the packet, and manage to trigger
an ICMP error; M_DECRYPTED gets lost by the reassembly, and ICMP will reply
with the packet in clear (not encrypted).

(martin)

2018-09-27 15:02:26 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #1040):

lib/libcurses/move.c: revision 1.19

According to POSIX moving the cursor in curses(3) touches the window

Mark the old and new lines as dirty, so they will be refreshed upon next
call to getch(3)-like routine.

This also matches the ncurses behavior.
Reviewed by <roy>

(martin)

2018-09-27 14:59:43 UTC MAIN commitmail json YAML

Improve a bit, no real functional change.

(maxv)

2018-09-27 14:59:28 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #1039):

lib/libcurses/getch.c: revision 1.66
lib/libcurses/getch.c: revision 1.67
lib/libcurses/tstp.c: revision 1.43
lib/libcurses/get_wch.c: revision 1.15
lib/libcurses/get_wch.c: revision 1.16

PR lib/53615
getch() and get_wch() should return KEY_RESIZE when interrupted by SIGWIN=
CH.

OK roy

-

PR lib/53615
Before invoking a previous signal handler, make sure it is not SIG_*.
Fix potential crash with SIGWINCH.

OK roy

-

Correct detecting of terminal resize in curses(3) with keypad(,TRUE)
A previous change fixed only keypad(,FALSE) scenarios.

-

Handle catching terminal resize in INKEY_NORM and INKEY_ASSEMBLING (in the
middle of assembling a key code from passed codes) as both accept keys with
fgetc(3) and both can be in theory interrupted with a resize.

PR lib/53615

(martin)

2018-09-27 14:52:27 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/uhub.c: revision 1.139
sys/external/bsd/dwc2/dwc2.c: revision 1.55
sys/ddb/db_output.c: revision 1.34
sys/ddb/db_command.c: revision 1.160
sys/dev/usb/ehci.c: revision 1.264
sys/dev/usb/xhci.c: revision 1.99
sys/dev/usb/ehci.c: revision 1.265
sys/kern/subr_userconf.c: revision 1.27
sys/dev/usb/ehcivar.h: revision 1.46
sys/dev/usb/ohci.c: revision 1.287
sys/dev/usb/uhci.c: revision 1.284
sys/dev/usb/usbdi.c: revision 1.178
sys/dev/usb/usb.c: revision 1.172
sys/dev/pci/xhci_pci.c: revision 1.14
sys/dev/usb/usb.c: revision 1.173
sys/dev/usb/usb.c: revision 1.174
share/man/man4/usb.4: revision 1.110
sys/ddb/db_command.c: revision 1.159
sys/dev/usb/usb_subr.c: revision 1.227
sys/dev/usb/uhcivar.h: revision 1.56
(all via patch)

consolidate the handling of polling across HC drivers, and generic USB:
- don't take mutexes if polling
- normalise the code across all drivers
- add some not yet code to block discovery to/from polling
- minor CSE
- adjust comment for usbd_set_polling() to reality now i properly
  understand what it is used for and why.

this, with a hack to make RB_ASKNAME to wait 5 seconds allows boot -a
work with USB keyboards.  there are still multiple issues remaining:
- discovery and polling need to be mutually exclusive
- attachment of ukbd and wskbd is not handled by config_pending, and
  the 5 second delay isn't going to always be enough.

call cnpollc(1) and cnpollc(0) around cngetc().
(christos has a good idea to add a function that does all 3,
and we should switch all the callers in this sequence to use
it (and fix the MD ones missing it still).  not all can, as
eg, line-grabbing functions can use cngetsn(), which only
calls cnpollc() twice.)

When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.

reorder some struct members to remove holes.

add config_pending usage to uhub and general USB device attachment.
- call config_pending_incr() and config_pending_decr() around attaching
  devices against "usbdevif" attribute.

uhub:
- convert sc_explorepending and sc_running to bool.  add new sc_first_explore.
- call config_pending_incr() at the start of uhub_attach().  dropped in
  uhub_explore(), if this is the first explore.

implement a gross hack to fix "boot -a" on systems with usb keyboards on
systems with ehci handover to uhci (and maybe ohci), and fix a similar
problem for "boot -s".

there is effort to ensure that all devices attached via USB are probed
before RB_ASKNAME or RB_SINGLE attempts to ask any questions on the console,
and largely this works, often by chance, today, for USB disks and root.
i've recently pushed this more into uhub and general USB device attachment
as well, and kept a config_pending reference across the first explore of
a bus.  these fix many issues with directly attached hubs.

however, on systems where devices connected to ehci ports are handed over
to a companion uhci or ohci port, it may not be the first, or even second,
bus explore that finds the device finally before attachment, and at this
point all config_pending references are dropped.

there is no direct communication between drivers, the potentials are
looked up but their device_t is only used for generic things like the name,
so informing the correct companion to expect a device and deal with the
config_pending references is not possible without some fairly ugly layer
violations or multi-level callbacks (eg, we have "ehci0", and usually an
the relevant companion, eg, "uhci2", but it is the uhub that uhci2 has
attached that will deal with the device attachment.)

with the above fixes to generic USB code, the disown happens during the
first explore.  the hack works by, at this point, checking if (a) root
is not mounted, (b) single user or ask name are set, and (c) if the hack
as not been triggered already.  if all 3 conditions are true, then a
config_pending_incr() is called and a callback is triggered for (default)
5 seconds to call config_pending_decr().  ehci detach pauses waiting for
this callback if scheduled.

this allows enough time for the uhub and the ukbd/wskbd to attach before
the RK_ASKROOT prompts appear.  testing shows it takes between 1.5 and
2 seconds for the keyboard to appear after the disown occurs.

Index: dev/usb/ehcivar.c
- new sc_compcallout, sc_compcallout, sc_complock, and a state for th
  handover hack.

Index: dev/usb/ehci.c
ehci_init():
- use aprint_normal_dev() instead of manual device_xname().
- initialise sc_compcallout, sc_compcallout, sc_complock, and sc_comp_state.
ehci_detach():
- if there are companion controllers, tear own the above, including waiting
  if there is a callback scheduled.
ehci_disown_callback():
- new callout to call config_pending_decr() in the the future.
  schedule this ca
ehci_disown_sched_callback():
- if booting to single user or asking names, call config_pending_incr() and
  schedule the callout above, default 5 second delay.
ehci_disown():
- if disowning a port call ehci_disown_sched_callback().
deal with partial attach failures in usb_attach vs usb_detach aka PR 53598.
- make sure xhci's sc->sc_ios is NULL if failure happens.
- rearrange usb_attach() / usb_doattach() to make it simpler to clean up.
- move usb_async_intr softint into usb_once_init().  previously, each USB
  controller would start a new one, and leave the old one leaked.
- handle controller interrupts without a bus attached

remove usb(4)'s "flags 1" code.  it has been dead for a while,
as it runs during the interrupts part of configuration now,
and all the devices try attach as early as possible, including
any root or boot required disk or keyboard device, which is
what this flag was for.

(martin)

2018-09-27 14:38:56 UTC netbsd-8 commitmail json YAML

Apply patch, requested by mrg in ticket #1036:

sys/external/bsd/drm2/linux/linux_ww_mutex.c (apply patch)

Fix LOCKDEBUG build error. Change not needed in -current.

(martin)

2018-09-27 14:33:30 UTC netbsd-8 commitmail json YAML

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

usr.sbin/npf/npfctl/npf.conf.5 1.71-1.79 (patch)

npf.conf(5): fix some of the previous incorrect or inaccurate changes.
The TCP flags option is not only for the stateful tracking.  Dynamic NAT
implies NAPT; algorithms, at least for now, are for static NAT mappings.
Mention that ALG ICMP is also for traceroute behind NAT; also mention
"MSS clamping" (some users might search for this term, so keeping the
terminology is helpful).

--------------------------------------------------------------------------------

Remove superfluous Pp.

--------------------------------------------------------------------------------

Be clearer about the difference between static vs dynamic interface list,
and slightly improve wording.

My understanding is that when none of inet4/inet6/ifaddrs is passed, NPF
assumes ifaddrs.

--------------------------------------------------------------------------------

New sentence, new line. Use Fn for functions.

--------------------------------------------------------------------------------

Fix the "Interfaces" section, I understood wrong. Talk about inference,
because it was not mentioned before, and it plays an important role.
Discussed with rmind. Probably not the last pass.

--------------------------------------------------------------------------------

Switch back to tabs, it was nicer this way.

--------------------------------------------------------------------------------

Wrap long lines, so that nothing overflows.

--------------------------------------------------------------------------------

Improve markup.

--------------------------------------------------------------------------------

According to the grammar and examples the static table is defined with
"file" keyword, not "static".

(martin)

2018-09-27 14:07:55 UTC MAIN commitmail json YAML

curses: call resizeterm if getch issues KEY_RESIZE

This fixes PR #53633.

(roy)

2018-09-27 14:05:26 UTC MAIN commitmail json YAML

curses: unify resize handling in getch

Instead of testing each fgetc call for resize event, add the wrapper
__fgetc_resize to simplify the logic.
While here, ensure that get_wch uses the correct input stream which
may or may not be stdin.

(roy)

2018-09-27 13:04:22 UTC MAIN commitmail json YAML

Export x86_dbregs_{save/restore}, will be used outside. Reproduce some
internal dbregs logic in them.

(maxv)

2018-09-27 08:20:44 UTC pgoyette-compat commitmail json YAML

This should no longer be needed

(pgoyette)