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

2024-05-10 02:51:46 UTC Now

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

2020-06-01 14:41:25 UTC MAIN commitmail json YAML

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

Arrange to create an _pic.a library too.

(christos)

2020-06-01 14:39:14 UTC MAIN commitmail json YAML

1. if ${LIBISPRIVATE} == "pic", create _pic.a so that we can embed the library
  to another shared object
2. Don't compare ${LIBISPRIVATE} to "yes", because there are 3 places in
  Makefiles which set it to empty (this was a bug)
3. For private libraries, don't create .so* files

(christos)

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

lwp_thread_cleanup(): Remove overly-aggressive assertion.

(thorpej)

2020-06-01 13:30:52 UTC MAIN commitmail json YAML

Fix extra whitespace added by accident.

(uwe)

2020-06-01 11:44:59 UTC MAIN commitmail json YAML

2020-06-01 11:08:57 UTC MAIN commitmail json YAML

Adjust to "npfctl debug" command line changes, from rmind@.

(martin)

2020-06-01 10:25:01 UTC MAIN commitmail json YAML

Remove some unnecessary bit shifts by using appropriate read size

(skrll)

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

even if the line size of Icache and Dcache is different, it was fixed to work correctly.

- MAX(IcacheShift,DcacheShift) is wrong and should be MIN(IcacheShift,DcacheShift).
  Dcache and Icache are now done in independent loops instead of in the same loop.
- simplify the handling of cache_handle_range() macro arguments.
- cache_handle_range macro doesn't include "ret" anymore.

(ryo)

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

Add 0xa5 and 0xa6 for Comet Lake.

(msaitoh)

2020-06-01 08:32:39 UTC MAIN commitmail json YAML

Add some definitions from the latest Intel SDM plus small fix:

- Add CPUID leaf 6 %eax bit 19 for HW_FEEDBACK* and IA32_PACKAGE_TERM* MSRs.
- Add CPUID leaf 7 %ecx bit 31 for Protection Keys.
- Add definition of Load only TLB and Store only TLB.
- Add IF_PSCHANGE_MC_NO bit of IA32_ARCH_CAPABILITIES
- Fix HWP_IGNIDL.

(msaitoh)

2020-06-01 04:38:37 UTC MAIN commitmail json YAML

2020-06-01 03:37:40 UTC MAIN commitmail json YAML

Example of a kernel module that registers DDB commands.

(uwe)

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

Make -f description actually use the word "force" so that it can be
found when searched for.

(uwe)

2020-06-01 02:42:24 UTC MAIN commitmail json YAML

no need to make the PTE writable to do icache_sync, enough to accessible.

(ryo)

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

Use the default motd for stable builds

(jmcneill)

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

Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang specific.

(kamil)

2020-06-01 00:55:25 UTC MAIN commitmail json YAML

Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang/LLVM specific.

(kamil)

2020-06-01 00:34:25 UTC MAIN commitmail json YAML

Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang specific.

(kamil)

2020-06-01 00:00:37 UTC MAIN commitmail json YAML

Oops, missed a line in the last change.

(thorpej)

2020-05-31 23:55:18 UTC MAIN commitmail json YAML

Remove superfluous checking for a "disable" property in the device_t
properties dictionary.

(thorpej)

2020-05-31 23:52:19 UTC MAIN commitmail json YAML

Remove superfluous checking for a "disable" property in the device_t
properties dictionary.

(thorpej)

2020-05-31 23:34:34 UTC MAIN commitmail json YAML

Switch from kmem_intr_alloc(sz, KM_NOSLEEP) to kmem_alloc(sz, KM_SLEEP).

Clearly document these functions are *not* for DDB session, but for
permanent data storage when initializing DDB.

(rin)

2020-05-31 23:24:24 UTC MAIN commitmail json YAML

use strlcpy() instead of strncpy() for gcc happiness

(christos)

2020-05-31 23:24:20 UTC MAIN commitmail json YAML

Stop allocating buffers dynamically in a DDB session, in order not to
disturb on-going debugged state of kernel datastructures.

Since DDB is running on 1 CPU at a time, static buffers are enough.

Increase in BSS section is:
  52552 for amd64 (LP64)
  9152 for m68k  (ILP32)

Requested by thorpej@ and mrg@.
Also suggested by ryo@.
Thanks!

(rin)

2020-05-31 18:33:09 UTC MAIN commitmail json YAML

Reset ud_ifaces and ud_cdesc to NULL, to prevent use-after-free in
usb_free_device().

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

(maxv)

2020-05-31 18:20:24 UTC MAIN commitmail json YAML

also set ifc->ui_endpoints to NULL in usbd_free_iface_data() when the value
is freed, to make it impossible to re-enter this by mistake

very likely has no effect for the syzbot problem, but good to do nevetheless

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

(jdolecek)

2020-05-31 17:52:59 UTC MAIN commitmail json YAML

If we failed because we didn't encounter an endpoint, do not attempt to
read 'ed', because its value is past the end of the buffer, and we thus
perform out-of-bounds accesses.

Detected thanks to vHCI+KASAN. First bug found by USB fuzzing.

Reported-by: syzbot+59e7f6b3f353584ac810@syzkaller.appspotmail.com

(maxv)

2020-05-31 17:45:02 UTC MAIN commitmail json YAML

sync with regular socket code (no effect)

(christos)

2020-05-31 16:36:07 UTC MAIN commitmail json YAML

Mask NULL + 0 LLVM UBSan reports in the ATF test: t_pslist.c

Pass -fno-delete-null-pointer-checks for Clang for the
MKSANITIZER/MKLIBCSANITIZER build

(kamil)

2020-05-31 16:32:07 UTC MAIN commitmail json YAML

npf-params.7: s/filer/filter/

(tnn)

2020-05-31 15:57:15 UTC MAIN commitmail json YAML

npf-params(7): fix the state.key defaults.

(rmind)

2020-05-31 14:05:21 UTC MAIN commitmail json YAML

Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).

(simonb)

2020-05-31 13:45:47 UTC MAIN commitmail json YAML

postinstall: Move files out of dhcpcd chroot

(roy)

2020-05-31 13:07:50 UTC MAIN commitmail json YAML

Revert prior - mark dirs as obsolete.

Thanks wiz@

(roy)

2020-05-31 13:00:48 UTC MAIN commitmail json YAML

We don't install any chroot subdirs for dhcpcd anymore

(roy)

2020-05-31 12:58:09 UTC MAIN commitmail json YAML

2020-05-31 12:52:11 UTC MAIN commitmail json YAML

2020-05-31 12:37:07 UTC MAIN commitmail json YAML

2020-05-31 11:43:38 UTC MAIN commitmail json YAML

Add m68k assembler version of __muldi3().

This is intended for 68060:
  - GCC does not emit __muldi3() for 68020-40, that have 32 * 32 --> 64 mulul
  - mulsl (and moveml), used in this code, are not implemented for 68010

In comparison with that from compiler_rt, this version saves:
  - 12% of processing time
  - 12 bytes of stack
  - 50 bytes of code size
Also, slightly faster, memory saving, and smaller than libgcc version.

By examining with evcnt(9), __muldi3() is invoked more than 1000 times per
sec by kernel, which should justify to introduce assembler version of this
function.

(rin)

2020-05-31 11:28:52 UTC MAIN commitmail json YAML

Avoid using excessive kernel stack.
XXX maybe we should unite all "static proc_t" and "static lwp_t" in ddb
into one global each?

(martin)

2020-05-31 11:12:36 UTC MAIN commitmail json YAML

make bwfm_usb_bus_ops static and const

(jdolecek)

2020-05-31 10:49:39 UTC MAIN commitmail json YAML

Stop returning while PMAP_LOCK() (= KERNEL_LOCK(1, NULL)) is held.

Kernel freeze with heavy load is significantly mitigated (fixed?),
in which I could not even enter DDB from console.

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

XXX
pullup to netbsd-[987]

(rin)

2020-05-31 10:48:27 UTC netbsd-8 commitmail json YAML

2020-05-31 10:47:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #1553):

usr.sbin/bta2dpd/bta2dpd/bta2dpd.c: revision 1.7

Avoid running of the end of the array if a file cannot be opened.
Found by plunky@.

(martin)

2020-05-31 10:46:21 UTC netbsd-9 commitmail json YAML

2020-05-31 10:45:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #937):

usr.sbin/bta2dpd/bta2dpd/bta2dpd.c: revision 1.7

Avoid running of the end of the array if a file cannot be opened.
Found by plunky@.

(martin)

2020-05-31 10:43:05 UTC netbsd-8 commitmail json YAML

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

lib/libterminfo/curterm.c: revision 1.14

terminfo: test strlcpy result against space free, not string length

riastradh@ yep, looks good.

(martin)

2020-05-31 10:41:40 UTC netbsd-9 commitmail json YAML

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

lib/libterminfo/curterm.c: revision 1.14

terminfo: test strlcpy result against space free, not string length

riastradh@ yep, looks good.

(martin)

2020-05-31 10:39:35 UTC netbsd-9 commitmail json YAML

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

sys/arch/xen/x86/x86_xpmap.c: revision 1.89
sys/arch/x86/include/pmap.h: revision 1.121
sys/arch/xen/xen/privcmd.c: revision 1.58
sys/external/mit/xen-include-public/dist/xen/include/public/memory.h: revision 1.2
sys/arch/xen/include/xenpmap.h: revision 1.44
sys/arch/xen/include/xenio.h: revision 1.12
sys/arch/x86/x86/pmap.c: revision 1.394
(all via patch)

Ajust pmap_enter_ma() for upcoming new Xen privcmd ioctl:
pass flags to xpq_update_foreign()

Introduce a pmap MD flag: PMAP_MD_XEN_NOTR, which cause xpq_update_foreign()
to use the MMU_PT_UPDATE_NO_TRANSLATE flag.
make xpq_update_foreign() return the raw Xen error. This will cause
pmap_enter_ma() to return a negative error number in this case, but the
only user of this code path is privcmd.c and it can deal with it.

Add pmap_enter_gnt()m which maps a set of Xen grant entries at the
specified va in the specified pmap. Use the hooks implemented for EPT to
keep track of mapped grand entries in the pmap, and unmap them
when pmap_remove() is called. This requires pmap_remove() to be split
into a pmap_remove_locked(), to be called from pmap_remove_gnt().

Implement new ioctl, needed by Xen 4.13:
IOCTL_PRIVCMD_MMAPBATCH_V2
IOCTL_PRIVCMD_MMAP_RESOURCE
IOCTL_GNTDEV_MMAP_GRANT_REF
IOCTL_GNTDEV_ALLOC_GRANT_REF

Always enable declarations needed by privcmd.c

(martin)

2020-05-31 10:27:26 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/usb.c: revision 1.187

Don't allow open of /dev/usb if there are no attached busses.
PR kern/55303 mutex_vector_enter,512: uninitialized lock

(martin)

2020-05-31 10:25:58 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/usb.c: revision 1.187

Don't allow open of /dev/usb if there are no attached busses.
PR kern/55303 mutex_vector_enter,512: uninitialized lock

(martin)

2020-05-31 10:21:35 UTC netbsd-9 commitmail json YAML

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

distrib/amd64/uefi-installimage/spec.inst: file removal
distrib/amd64/uefi-installimage/etc.rc: file removal
distrib/amd64/uefi-installimage/Makefile.bootimage: file removal
distrib/amd64/uefi-installimage/Makefile.installimage: file removal
distrib/amd64/uefi-installimage/install.sh: file removal
distrib/amd64/uefi-installimage/etc.ttys: file removal
distrib/amd64/Makefile: revision 1.14
distrib/amd64/uefi-installimage/boot.cfg.in: file removal
distrib/amd64/uefi-installimage/Makefile: file removal
distrib/amd64/installimage/Makefile: revision 1.11

rename amd64 uefi-installimage to be just installimage.

Works for both purposes, no confusing name.

(martin)

2020-05-31 09:59:37 UTC MAIN commitmail json YAML

Switch to db_alloc() from kmem_intr_alloc(9).

Fix build failure as a part of crash(8).
Noticed by tnn@, thanks!

(rin)

2020-05-31 09:51:55 UTC MAIN commitmail json YAML

Revert introduction of db_alloc.h.

db_alloc() and friends are already provided in crash.c.
Sorry for confusing you...

(rin)

2020-05-31 09:42:46 UTC MAIN commitmail json YAML

XXX
DDB can be running in the interrupt context, e.g., when activated from
console. Therefore, we use kmem_intr_alloc(9) and friends in order to
avoid assertion failure.

(rin)

2020-05-31 09:40:09 UTC MAIN commitmail json YAML

Introduce db_alloc.h.

Provide db_alloc() and friends to userland, i.e., crash(8).

(rin)

2020-05-31 09:00:25 UTC MAIN commitmail json YAML

#ifdef out debug garbage.

(rin)

2020-05-31 08:59:40 UTC MAIN commitmail json YAML

For wdc_obio_match(), struct wdc_regs is too large for stack.
Use kmem_alloc(9) instead.

Frame size becomes:
    3088 --> 0

(rin)

2020-05-31 08:38:54 UTC MAIN commitmail json YAML

struct statvfs is too large for stack. Use malloc(9) instead.

XXX
Switch to kmem(9) for entire this file.

Frame size, e.g. for m68k, becomes:
    3292 --> 12

(rin)

2020-05-31 08:33:48 UTC MAIN commitmail json YAML

db_show_callout(): struct callout_cpu and cpu_info are too much for stack.

XXX
DDB can be running in the interrupt context, e.g., when activated from
console. Therefore, use kmem_intr_alloc(9) instead of kmem_alloc(9).

Frame size, e.g. for m68k, becomes:
    9212 (oops!) --> 0

(rin)

2020-05-31 08:05:31 UTC MAIN commitmail json YAML

sc_statuspend is allocated with kmem_zalloc, so no need to memset it.

(maxv)

2020-05-31 07:53:38 UTC MAIN commitmail json YAML

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

2020-05-31 06:23:49 UTC MAIN commitmail json YAML

Remove unused Timer Unit register definitions and stubs.  Can be
resurrected from the attic in the unlikely event we'll ever have
a driver for this device.

(simonb)

2020-05-31 06:17:24 UTC MAIN commitmail json YAML

Avoid running of the end of the array if a file cannot be opened.

Found by plunky@.

(nat)

2020-05-31 04:56:35 UTC MAIN commitmail json YAML

2020-05-31 01:39:33 UTC MAIN commitmail json YAML

Disable read of the ACPI timer during idle, fixing performance degradation
observed with acpicpu.  C1 (MWAIT) is the deepest sleep currently enabled so
there should be no functional change.  Also, the computed nap time is run
through hztoms() which seems incorrect as the ACPI timer is running in the
MHz range.

(ad)

2020-05-30 23:52:10 UTC MAIN commitmail json YAML

Don't define psl as common symbol, move it into the only file using it.

(joerg)

2020-05-30 22:39:41 UTC MAIN commitmail json YAML

Use device_xname() to access dv_xname

(sevan)

2020-05-30 22:27:55 UTC MAIN commitmail json YAML

Use device_t for sc_dev

(sevan)

2020-05-30 22:01:05 UTC MAIN commitmail json YAML

Switch from printf to aprintf_error/normal

(sevan)

2020-05-30 21:39:49 UTC MAIN commitmail json YAML

Initialise sc->sc_dev, otherwise unnamed interfaces show up and things go
downhill from there.

(sevan)

2020-05-30 21:00:31 UTC MAIN commitmail json YAML

npftest -- npf_test_init(): add a workaround for NetBSD.

(rmind)

2020-05-30 20:54:54 UTC MAIN commitmail json YAML

npf_worker_sys{init,fini}: initialize/destroy the exit_cv condvar.

(rmind)

2020-05-30 20:54:46 UTC MAIN commitmail json YAML

Create pic lib and don't install pkgconfig file.

(christos)

2020-05-30 20:47:59 UTC MAIN commitmail json YAML

2020-05-30 20:23:25 UTC MAIN commitmail json YAML

Fix merge error - adjust assertions.

(ad)

2020-05-30 20:16:34 UTC MAIN commitmail json YAML

2020-05-30 20:16:14 UTC MAIN commitmail json YAML

A couple of small changes to lookup that cut 5-10% system time from
"build.sh release" on my test system:

- Crossing mount points during lookup is slow because the set up for, and
  act of doing VFS_ROOT() is quite involved.  Use the name cache to help
  with this.  Cache an "impossible" zero-length name with covered vnodes,
  that points to the root of the file system mounted there.  Use it to cross
  mounts.  When cache_purge() is called on either of the vnodes involved the
  cache entry will disappear.  All of the needed calls for that are already
  in place (vnode reclaim, unmount, etc).

- In lookup_fastforward(), if the the last component has been found and the
  parent directory (searchdir) is not going to be returned, then don't get a
  reference to it.

(ad)

2020-05-30 19:51:32 UTC MAIN commitmail json YAML

Allow LIBISPRIVATE to build a pic version of itself for embedding into
other shared libraries.

(christos)

2020-05-30 19:23:25 UTC MAIN commitmail json YAML

catch up with changes - need bwfmreg.h before bwfmvar.h

(jdolecek)

2020-05-30 19:16:53 UTC MAIN commitmail json YAML

Fix a lock order reversal that caused hangs.

(ad)

2020-05-30 18:40:28 UTC MAIN commitmail json YAML

Merge updates from upstream to reduce stack usage of SHA3_Selftest.

(riastradh)

2020-05-30 18:06:17 UTC MAIN commitmail json YAML

cache_lookup_linked():

- If the lookup fails return with the same lock held.  There's no bug here
  because either parent or child's lock is sufficient to prevent both from
  disappearing into thin air, but may as well be correct.

- if FSCRED is passed in then skip the auth check.

(ad)

2020-05-30 17:50:39 UTC MAIN commitmail json YAML

sctlr_el1 and ctr_el0 are 64-bit registers

(jmcneill)

2020-05-30 17:19:45 UTC MAIN commitmail json YAML

aubtfwl(4): Use kmem_asprintf() for firmware file name creation.

A MAXPATHLEN+1 array of char on stack is "too much".

(jakllsch)

2020-05-30 17:18:22 UTC MAIN commitmail json YAML

slightly improve sentence, no need to 'Note' when in NOTES section

(jdolecek)

2020-05-30 17:12:01 UTC MAIN commitmail json YAML

remove M_SOFTDEP from list of supported malloc types, it's long gone

also remove M_PCB - while it is used by SCTP, it's actually not defined
anywhere

in fact add new NOTES section explaining that the malloc types are
actually not used on NetBSD

(jdolecek)

2020-05-30 16:35:02 UTC MAIN commitmail json YAML

gem_pci_attach(): avoid allocating a 2K buffer on the stack.

(thorpej)

2020-05-30 16:12:56 UTC MAIN commitmail json YAML

coredump_note_elf{32,64}(): avoid allcating register state buffers on
the stack; they could be large.

(thorpej)

2020-05-30 16:03:58 UTC MAIN commitmail json YAML

terminfo: test strlcpy result against space free, not string length

riastradh@ yep, looks good.

(roy)

2020-05-30 15:55:47 UTC MAIN commitmail json YAML

discussed with thorpej@, and it seems it's better to allocate the bss
alignment buffer statically (as part of softc) just to be sure to not
affect performance

(jdolecek)

2020-05-30 14:16:57 UTC MAIN commitmail json YAML

Major NPF improvements (merge from upstream):

- Switch to the C11-style atomic primitives using atomic_loadstore(9).

- npfkern: introduce the 'state.key.interface' and 'state.key.direction'
  settings.  Users can now choose whether the connection state should be
  strictly per-interface or global at the configuration level.  Keep NAT
  logic to be always per-interface, though.

- npfkern: rewrite the G/C worker logic and make it self-tuning.

- npfkern and libnpf: multiple bug fixes; add param exporting; introduce
  more parameters.  Remove npf_nvlist_{copyin,copyout}() functions and
  refactor npfctl_load_nvlist() with others; add npfctl_run_op() to have
  a single entry point for operations.  Introduce npf_flow_t and clean up
  some code.

- npfctl: lots of fixes for the 'npfctl show' logic; make 'npfctl list'
  more informative; misc usability improvements and more user-friendly
  error messages.

- Amend and improve the manual pages.

(rmind)

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

reduce stack usage in genfb_calc_hsize()

(jdolecek)

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

reduce stack usage in bwfm_rx_event_cb(), can use KM_SLEEP because
this is called from workqueue handler (i.e. thread context)

(jdolecek)

2020-05-30 13:41:58 UTC MAIN commitmail json YAML

2020-05-30 13:35:31 UTC MAIN commitmail json YAML

add bwfm* at pci?, which is present in GENERIC

(jdolecek)

2020-05-30 13:23:14 UTC MAIN commitmail json YAML

fix wdcprobe_with_reset() to avoid allocating big structures on stack

(jdolecek)

2020-05-30 13:15:10 UTC MAIN commitmail json YAML

allocate memory for dtv_ts_section using kmem_alloc() in dtv_demux_read(),
instead of on-stack

XXX compile-tested only

(jdolecek)

2020-05-30 12:36:37 UTC MAIN commitmail json YAML

2020-05-30 10:43:46 UTC MAIN commitmail json YAML

change pci_conf_print() to allocate memory for the regs dynamically
instead of on-stack

(jdolecek)

2020-05-30 10:27:29 UTC MAIN commitmail json YAML

remove #if 0'ed pci_conf_print() call

(jdolecek)

2020-05-30 08:50:31 UTC MAIN commitmail json YAML

Avoid passing file paths in panic strings, this results in extra long
output that is annoying and that syzbot classifies as independent reports
due to the instances having different build paths.

(maxv)

2020-05-30 08:41:23 UTC MAIN commitmail json YAML

Introduce PTRACE_REGS_ALIGN, and on x86, enforce a 16-byte alignment, due
to fpregs having fxsave which requires 16-byte alignment.

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

(maxv)

2020-05-30 04:11:22 UTC MAIN commitmail json YAML

Revert 0(sp) -> CALLFRAME_S0(sp) changes in rev 1.4.

0(sp) is safe here even on O32 because the only callee function
mips_cp0_cause_read() doesn't take arguments, but it's caller's
responsibility to choose proper stackframe region and the name
of CALLFRAME_S0 is just confusing.  No binary change.

(tsutsui)

2020-05-30 03:16:32 UTC MAIN commitmail json YAML

Avoid use of CALLFRAME_S0 on calling ARC BIOS functions.

On O32 and O64, 0(sp) could be clobbered by callee functions
to save argument a0, so we can't use it to save caller registers.
Use CALLFRAME_SP instead because a frame pointer is not used here.
Maybe all other references of CALLFRAME_S0 might also be problematic
on O32.  Discussed with soda@.

(tsutsui)

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

CN70XX iobdma limit appears to be 128 words, so gather that many samples
as a time.
Gather the full 512 bytes of samples and process in a single call to
rnd_add_data_sync() - about 10% faster than 4 calls to rnd_add_data_sync().
Put sample buffer in the softc to save some stack usage.

(simonb)

2020-05-30 02:56:55 UTC MAIN commitmail json YAML

Explicitly use MIPS_CURLWP macro.  No binary change.

(tsutsui)

2020-05-30 02:53:30 UTC MAIN commitmail json YAML

Initialize puffs9p::server (though it's not used anywhere).

(uwe)

2020-05-30 02:46:07 UTC MAIN commitmail json YAML

Don't forget to save MIPS_CURLWP (t8) register before restoring it.

Maybe harmless because the only ARC BIOS function that takes
more than four arguments is currently unused.

(tsutsui)

2020-05-30 00:00:35 UTC MAIN commitmail json YAML

Provide list of options for ease of reference.

(uwe)

2020-05-29 23:49:09 UTC MAIN commitmail json YAML

Fix vio9p device name in a comment.

(uwe)

2020-05-29 23:24:39 UTC MAIN commitmail json YAML

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

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

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

Tested by installing using sysinst on RAMDISK kernel on netbsd-9.

Should be pulled up to netbsd-9.

(tsutsui)

2020-05-29 23:12:12 UTC MAIN commitmail json YAML

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

(tsutsui)

2020-05-29 23:02:51 UTC MAIN commitmail json YAML

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

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

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

Should be pulled up to at least netbsd-9.

(tsutsui)

2020-05-29 22:40:16 UTC MAIN commitmail json YAML

Reported-by: syzbot+fd9be59aa613bbf4eba8@syzkaller.appspotmail.com
Reported-by: syzbot+15dd4dbac6ed159faa4a@syzkaller.appspotmail.com
Reported-by: syzbot+38fa02d3b0e46e57c156@syzkaller.appspotmail.com

pmap_remove_all(): need to drain PV pages only after the PTEs are unmapped,
otherwise there can be a context switch with them mapped in.  XXX amd64
should use the direct map.

(ad)

2020-05-29 20:56:27 UTC MAIN commitmail json YAML

2020-05-29 20:54:16 UTC MAIN commitmail json YAML

2020-05-29 20:16:08 UTC MAIN commitmail json YAML

2020-05-29 20:15:38 UTC MAIN commitmail json YAML

2020-05-29 20:15:14 UTC MAIN commitmail json YAML

2020-05-29 12:30:41 UTC MAIN commitmail json YAML

2020-05-29 12:15:30 UTC MAIN commitmail json YAML

delete previous and fix bug instead.

(christos)

2020-05-29 12:14:49 UTC MAIN commitmail json YAML

2020-05-29 11:01:53 UTC MAIN commitmail json YAML

2020-05-29 10:53:02 UTC MAIN commitmail json YAML

Fix the ntpd build with Clang/LLVM

Set -Wno-format-nonliteral for ntp_refclock.c

(kamil)

2020-05-29 10:50:36 UTC MAIN commitmail json YAML

2020-05-29 10:47:37 UTC MAIN commitmail json YAML

Fix the libntp build with Clang/LLVM

Set -Wno-error=implicit-int-float-conversion

(kamil)

2020-05-29 10:25:06 UTC MAIN commitmail json YAML

DTB are no longer part of kernel set

(jmcneill)

2020-05-29 10:01:23 UTC MAIN commitmail json YAML

Specify -Wno-format-nonlitera for scp.c (OpenSSH)

Fixes build with Clang/LLVM.

(kamil)

2020-05-29 09:05:20 UTC MAIN commitmail json YAML

Make this compile again. Not tested.

(rin)

2020-05-29 06:53:40 UTC MAIN commitmail json YAML

Use __BITS consistently and inline with specification. NFCI.

(skrll)

2020-05-29 05:35:47 UTC MAIN commitmail json YAML

For clk_timecounter:
- Use C99 initializer.
- Leave .tc_name NULL initially.
No functional changes.

(rin)

2020-05-29 05:29:24 UTC MAIN commitmail json YAML

u_int64_t --> uint64_t. No binary changes.

(rin)

2020-05-29 03:09:14 UTC MAIN commitmail json YAML

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

(isaki)

2020-05-29 01:20:43 UTC MAIN commitmail json YAML

remove useless MACHINE_ARCH == sh3 check for GCC 8.

(mrg)

2020-05-29 01:18:50 UTC MAIN commitmail json YAML

alpha, vax, and sh3 have switched.  (sh3 swithed a month ago by
accident when i wrote ${MACHINE_ARCH} != "sh3", but this should
have been MACHINE_CPU.)  this means m68k is the only one left.

update various other parts and note some of the m68k issues.

(mrg)

2020-05-29 00:14:07 UTC MAIN commitmail json YAML

switch vax to GCC 8.  testing in simh shows the same set of bugs.

(mrg)

2020-05-29 00:05:26 UTC MAIN commitmail json YAML

Set -fno-delete-null-pointer-checks for RUMP/MKSANITIZER with Clang

NULL + 0 arithmetic raises LLVM UBSan warnings, specially in sys/pslist.h
in the type-safe macros _PSLIST_VALIDATE_PTRS and _PSLIST_VALIDATE_CONTAINER.

Proposes on <tech-userlevel> without objections.

(kamil)

2020-05-28 23:25:17 UTC MAIN commitmail json YAML

Allocate proper storage for the event counter group names.

Can't use a stack buffer for these because the evcnt remembers the
pointer!

(riastradh)

2020-05-28 23:17:25 UTC MAIN commitmail json YAML

Accept ioctl(RNDADDDATA) estimates at securelevel 1 (but not 2).

securelevel=1 is supposed to be a reasonable default for normal
computers.  This got in the way of ever getting entropy from a seed
on a machine with no HWRNG -- e.g., from another machine, or by
making the executive decision that what has been sampled is good
enough and issuing `head -c 32 < /dev/urandom > /dev/random'.

(riastradh)

2020-05-28 20:29:22 UTC MAIN commitmail json YAML

evbarm: Add install media for earmv7hf and aarch64.

(jmcneill)

2020-05-28 20:29:18 UTC MAIN commitmail json YAML

At least panic with a useful message if there are too many CPUs.

(ad)

2020-05-28 20:27:41 UTC MAIN commitmail json YAML

Remove "write a BSD-licensed web browser" from the list of suggested smaller projects.

(jmcneill)

2020-05-28 20:03:19 UTC MAIN commitmail json YAML

PR port-i386/55314: i386 no longer boots

Oops, EDI and ESI are callee saved on i386.

(ad)

2020-05-28 19:20:57 UTC MAIN commitmail json YAML

Shrink the evbarm install image by not including the live images on the install media

(jmcneill)

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

Set HAVE_INSTALL_IMAGE for evbarm

(jmcneill)

2020-05-28 19:00:52 UTC MAIN commitmail json YAML

Remove "If you booted from a floppy" message

(jmcneill)

2020-05-28 17:07:27 UTC MAIN commitmail json YAML

2020-05-28 17:06:24 UTC MAIN commitmail json YAML

2020-05-28 17:05:50 UTC MAIN commitmail json YAML

2020-05-28 15:27:59 UTC MAIN commitmail json YAML

Remove support for evbarm cdrom images. Not sure that any of them can even
be used.

(jmcneill)

2020-05-28 15:23:43 UTC MAIN commitmail json YAML

2020-05-28 15:13:21 UTC MAIN commitmail json YAML

2020-05-28 15:12:03 UTC MAIN commitmail json YAML

2020-05-28 14:00:05 UTC MAIN commitmail json YAML

Do not send dummy Tauth, it's completely unnecessary.

The best way to not use authentication is to not use authentication.
Cf. http://man.cat-v.org/plan_9/5/attach

(uwe)

2020-05-28 12:41:15 UTC MAIN commitmail json YAML

Add some new CTR_EL0 bits

(skrll)

2020-05-28 10:22:49 UTC MAIN commitmail json YAML

Create a separate Arm64 image that uses MBR partitioning. Amlogic SoCs
require the bootloader to be installed on SD cards at LBA1 which makes
them incompatible with GPT images.

(jmcneill)

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

Allow config file to override hostname

(jmcneill)

2020-05-28 07:59:38 UTC MAIN commitmail json YAML

Add AMD MSR_DE_CFG's bit 1 as DE_CFG_LFENCE_SERIALIZE.
This bit makes lfence instruction serializing.

(msaitoh)

2020-05-28 04:51:44 UTC MAIN commitmail json YAML

- make AP{IB,DA,DB}Key are also enabled when ARMV83_PAC.
- If no ARMV83_PAC, clearly disable SCTLR_En{IA,IB,DA,DB}

(ryo)

2020-05-27 23:52:20 UTC MAIN commitmail json YAML

2020-05-27 22:27:58 UTC MAIN commitmail json YAML

2020-05-27 21:53:04 UTC MAIN commitmail json YAML

Move back to MBR based images for armv7 because Amlogic's bootloader (for
Amlogic S805 based boards) needs to be installed to sector 1, which
conflicts with the GPT header.

(jmcneill)

2020-05-27 20:49:14 UTC MAIN commitmail json YAML

mismatched END pointed out by maxv@

(ad)

2020-05-27 20:48:43 UTC MAIN commitmail json YAML

- mismatched END pointed out by maxv@
- ditch the frame, tracer should be able to deal without it in leaf on x86_64

(ad)

2020-05-27 19:49:37 UTC MAIN commitmail json YAML

don't use x8 (caller-saved register) across functions

fix llvm+EARLYCONS kernel doesn't boot. it was working luckily with gcc.

(ryo)

2020-05-27 19:40:30 UTC MAIN commitmail json YAML

svs_pdir_switch(): Use MOVS to copy the PTES.

(ad)

2020-05-27 19:33:40 UTC MAIN commitmail json YAML

- Add a couple of wrapper functions around STOS and MOVS and use them to zero
  and copy PTEs in preference to memset()/memcpy().

- Remove related SSE / pageidlezero stuff.

(ad)

2020-05-27 19:26:43 UTC MAIN commitmail json YAML

Reported-by: syzbot+c1770938bb3fa7c085f2@syzkaller.appspotmail.com
Reported-by: syzbot+ae26209c7d7f06e0b29f@syzkaller.appspotmail.com

Can't defer freeing PV entries for the kernel's pmap until pmap_update(),
as that means taking locks and potentially recursing, and pmap_update()
for the kernel is used in all sorts of sensitive places.

(ad)

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

svs_pmap_sync(): Fast-path the curcpu case.  Could be improved further
with a kcpuset iterator thing.

(ad)

2020-05-27 18:55:36 UTC MAIN commitmail json YAML

Add pathconf and lpathconf (fixes lib/librumphijack/nfs test which uses ls
which now uses lpathconf)

(christos)

2020-05-27 18:47:13 UTC MAIN commitmail json YAML

tsc_get_timecount(): fix 64-bit return

(ad)

2020-05-27 18:46:15 UTC MAIN commitmail json YAML

tsc_delay(): use tsc_freq in preference to cpu_frequency().

(ad)

2020-05-27 18:26:29 UTC MAIN commitmail json YAML

2020-05-27 13:51:05 UTC MAIN commitmail json YAML

Briefly explain how to pkgsrc u-boot. Pointed out by maya.

(nia)

2020-05-27 13:49:16 UTC MAIN commitmail json YAML

Remove extremely outdated list of supported devices.

Since this man page will likely be read on a running system, I don't
think providing a list of very old devices that might work is
necessarily useful.

(nia)

2020-05-27 12:47:47 UTC MAIN commitmail json YAML

2020-05-27 12:45:07 UTC MAIN commitmail json YAML

First attempt at modernising the evbarm install guide and hardware lists

- Install instructions mostly based on wiki pages
- Supported hardware lists mostly based on GENERIC and GENERIC64 kernels

(nia)

2020-05-27 11:24:31 UTC MAIN commitmail json YAML

Fix to allocate resources actuall used around interrupts

(yamaguchi)

2020-05-27 11:02:52 UTC MAIN commitmail json YAML

Fix kernel= order, add pi0w conditional and comments

(jmcneill)

2020-05-27 10:56:59 UTC MAIN commitmail json YAML

Conditionally boot kernel.img or kernel7.img depending on board

(jmcneill)

2020-05-27 10:53:18 UTC MAIN commitmail json YAML

Set MKDTB=yes for armv6

(jmcneill)

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

- remove #ifdef __FreeBSD__
- return (x) --> return x

No binary changes this time, trust me ;).

(rin)

2020-05-27 08:55:18 UTC MAIN commitmail json YAML

Oops, put back opt_ntp.h for options PPS_{SYNC,DEBUG}.

(rin)

2020-05-27 08:51:03 UTC MAIN commitmail json YAML

- kern_tc.c does not depend on "options NTP"
- u_int64_t --> uint64_t

No binary changes.

(rin)

2020-05-27 08:47:15 UTC MAIN commitmail json YAML

Tiny optimization; timecounters should not go bad ~ every ticktock.

(rin)

2020-05-27 07:17:45 UTC MAIN commitmail json YAML

Don't allow open of /dev/usb if there are no attached busses.

PR kern/55303 mutex_vector_enter,512: uninitialized lock

(skrll)

2020-05-27 06:43:22 UTC MAIN commitmail json YAML

2020-05-27 06:41:58 UTC MAIN commitmail json YAML

Remove duplicate #include

(skrll)

2020-05-27 06:17:45 UTC MAIN commitmail json YAML

openssh 8.3 out.

(wiz)

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

switch alpha to GCC 8.  tested by rin@, same atf result as with GCC 7.

thanks rin!  only vax, sh3 and m68k left.

(mrg)

2020-05-27 05:59:16 UTC MAIN commitmail json YAML

Update sysctl key in netstat(1)

(yamaguchi)

2020-05-27 03:25:13 UTC MAIN commitmail json YAML

puffs9p_node_rename - 9P rename is done with Twstat and can only
change the last pathname component.  Return EXDEV for attempts to move
a file to a different directory to make mv(1) fall back to copying.

(uwe)

2020-05-27 02:04:38 UTC MAIN commitmail json YAML

2020-05-27 02:03:30 UTC MAIN commitmail json YAML

2020-05-27 00:36:08 UTC MAIN commitmail json YAML

noderemove - do not call puffs_setback here.  noderemove is called
from rename (for existing target) and calling setback is not
appropriate in that context.  Do that call instead directly in the
callers (remove, rmdir).

From Nicola Girardi, part of PR/54829.

(uwe)

2020-05-27 00:05:22 UTC MAIN commitmail json YAML

puffs9p_node_rename - noderename takes puffs_node, not p9pnode, but
this goes undetected b/c pn_data we pass is a pointer to void.

From Nicola Girardi, part of PR/54829.

(uwe)