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

2024-05-10 21:43:45 UTC Now

2020-06-29 09:45:35 UTC MAIN commitmail json YAML

Update Spleen kernel fonts to version 1.8.0, bringing the following
improvements:

- Improve ampersand character, making it more consistent with other
  sizes (5x8 version)

(fcambus)

2020-06-29 09:24:07 UTC MAIN commitmail json YAML

Check the return value of iic_acquire_bus(). This function may fail.

One of the case is driver's detaching phase on shutdown. mutex_tryenter()
might fail and return with EBUSY. To avoid calling iic_release_bus() without
taking lock, check the return value of iic_acquire_bus().

(msaitoh)

2020-06-29 08:55:00 UTC MAIN commitmail json YAML

kyua-cli: fix build of .cpp files

Fix assignment of SRCS for C++ sources that use .cpp instead of .cc.

(lukem)

2020-06-29 08:34:17 UTC MAIN commitmail json YAML

Fix addition of C++ .cc source to SRCS

Fix assumption that all of the source files are .c, as some are .cc.

(lukem)

2020-06-29 08:30:42 UTC MAIN commitmail json YAML

use ggc-none.c not ggc-none.o in SRCS

(lukem)

2020-06-29 06:51:32 UTC MAIN commitmail json YAML

Remove evcnt(9) counter for tlbhit; there's no way to observe TLB hits
from kernel, and it just counted intersection b/w tlbmiss and tlbenter.

(rin)

2020-06-29 06:39:38 UTC MAIN commitmail json YAML

No longer depend on libl.

(rin)

2020-06-29 06:01:30 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2020-06-29 01:37:27 UTC MAIN commitmail json YAML

Allow kernel to compile by preventing "error: stack usage is ..."
too-large errors.  What was there previously was not correct and this
will need to be revisited for debugger to ever become functional
anyway.

(scole)

2020-06-28 21:37:05 UTC MAIN commitmail json YAML

Remove Xr to extattr(2) which we don't have.

(wiz)

2020-06-28 18:23:01 UTC MAIN commitmail json YAML

2020-06-28 14:37:53 UTC MAIN commitmail json YAML

Fix struct entry size (thanks kre@)

(christos)

2020-06-28 14:26:19 UTC MAIN commitmail json YAML

Add font files for Spleen, which can be loaded into the wsfont pool
or a wscons display device using wsfontload(8).

For example, Spleen 16x32 can be loaded and enabled as follow:

wsfontload -N spleen-16x32 -w 16 -h 32 spleen-16x32.fnt
wsconsctl -dw font=spleen-16x32

(fcambus)

2020-06-28 13:33:06 UTC MAIN commitmail json YAML

Fix mm_md_kernacc() for 64 bit kernels (including n32):
- FAULT for any physical address less than start of cached XKPHY address.
- Pass any remaining physical address less then end of RAM.
- Pass any remaining physical address within the KEGS0 kernel address range.
Ignore all remaining addresses and fall back to uvm_kernacc() for checking
virtual address ranges.

Fixes pmap(1) (and probably other kmem grovellers).

(simonb)

2020-06-28 12:43:00 UTC MAIN commitmail json YAML

Use prop_data_value (not prop_data_data_nocopy)

(skrll)

2020-06-28 11:39:50 UTC MAIN commitmail json YAML

2020-06-28 11:06:27 UTC MAIN commitmail json YAML

make(1): fix evaluation of unreachable conditions

Since 2015-10-11, make had evaluated unreachable conditions even though
the manual page said it didn't.

(rillig)

2020-06-28 09:42:41 UTC MAIN commitmail json YAML

2020-06-28 04:06:14 UTC MAIN commitmail json YAML

Protect against multiple inclusion.

(simonb)

2020-06-28 03:05:59 UTC MAIN commitmail json YAML

Fix /private/tmp mode to match etc/rc.d/perusertmp

(kim)

2020-06-28 02:16:19 UTC MAIN commitmail json YAML

nameser_compat.h: correct preprocessor error syntax

(gutteridge)

2020-06-28 01:38:40 UTC MAIN commitmail json YAML

Add missing debug entry for new t_mbtowc

XXX Please note that there are now TWO tests named t_mbtowc - this one in
XXX tests/lib/libc/stdlib/ and an older one in tests/lib/libc/locale
XXX I don't know if the functionality is duplicated or not.

(pgoyette)

2020-06-27 21:21:11 UTC MAIN commitmail json YAML

fix bug introduced in conversion to kmem(9), passing address of the local
variable instead of pointer to allocated memory

should fix PR kern/55426 by Andreas Gustafsson

(jdolecek)

2020-06-27 19:18:58 UTC MAIN commitmail json YAML

eval: Make radix optional even if minimum result width is specified.
This is what GNU m4 does too.

(uwe)

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

Improve markup for better PostScript output.
Make sure quotes are right and copy-pastable even in UTF-8 output.

(uwe)

2020-06-27 18:52:24 UTC MAIN commitmail json YAML

command_version: print config file path

(jmcneill)

2020-06-27 18:44:02 UTC MAIN commitmail json YAML

Make sure we pass full pages to fdt_memory_remove_range

(jmcneill)

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

2020-06-27 17:29:19 UTC MAIN commitmail json YAML

2020-06-27 17:27:59 UTC MAIN commitmail json YAML

print the index of the problematic symbol

(christos)

2020-06-27 17:23:08 UTC MAIN commitmail json YAML

Load boot.cfg from the EFI system partition instead of the first FFS
partition on that device.

(jmcneill)

2020-06-27 17:22:12 UTC MAIN commitmail json YAML

Support loading boot.cfg from non file-system based devices.

(jmcneill)

2020-06-27 17:09:59 UTC MAIN commitmail json YAML

Use UXA (not SNA) by default on Intel Gen3/4/5 chipsets (except 915).

This works around PR/54995 (screen corruption on N455)
and PR/55198 (X freezes/hangs on 965GM).  Ok'ed by mrg@.

Should be pulled up to netbsd-9.

(tsutsui)

2020-06-27 17:07:49 UTC MAIN commitmail json YAML

2020-06-27 16:48:01 UTC MAIN commitmail json YAML

make sure to strip leading '$' from NetBSD rcs id so that it won't be
replaces by cvs, and regen the headers again

(jdolecek)

2020-06-27 16:32:46 UTC MAIN commitmail json YAML

2020-06-27 16:29:11 UTC MAIN commitmail json YAML

2020-06-27 16:19:39 UTC MAIN commitmail json YAML

2020-06-27 16:00:35 UTC MAIN commitmail json YAML

make this work with objdir, drop unused -ll

(jdolecek)

2020-06-27 15:49:30 UTC MAIN commitmail json YAML

Ignore the supplied size, and always use the argument size that we know.
Found by maxv@

(christos)

2020-06-27 14:34:45 UTC MAIN commitmail json YAML

mark several init-only functions as noinline to avoid bumping into the
stack limit

(jdolecek)

2020-06-27 14:04:17 UTC MAIN commitmail json YAML

2020-06-27 14:03:39 UTC MAIN commitmail json YAML

belately note the stackgap removals in 2007

(jdolecek)

2020-06-27 13:53:43 UTC MAIN commitmail json YAML

Add also a test that writes random garbage to every ifconfig(8) option that
takes parameters. Based on quick testing, iwn(4) and wm(4) pass, but
urtwn(4) panics. Use at your own risk; in some cases, it may be possible
that horrors are written directly to the hardware.

(jruoho)

2020-06-27 13:53:10 UTC MAIN commitmail json YAML

prop_dictionary_[sg]et_cstring{,_nocopy} -> prop_dictionary_[sg]et_string{,_nocopy}

(jmcneill)

2020-06-27 13:41:44 UTC MAIN commitmail json YAML

prop_data_create_data+prop_dictionary_set+prop_object_release -> prop_dictionary_set_data

(jmcneill)

2020-06-27 13:39:06 UTC MAIN commitmail json YAML

prop_dictionary_get_cstring -> prop_dictionary_get_string

(jmcneill)

2020-06-27 13:34:20 UTC MAIN commitmail json YAML

2020-06-27 13:33:26 UTC MAIN commitmail json YAML

prop_data_data_nocopy -> prop_data_value

(jmcneill)

2020-06-27 13:32:01 UTC MAIN commitmail json YAML

prop_data_data_nocopy -> prop_data_value

(jmcneill)

2020-06-27 11:06:43 UTC MAIN commitmail json YAML

citrus SUBDIR is gone

(mlelstv)

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

Add the default TNF copyright (2005), cf. PR misc/55419.

(jruoho)

2020-06-27 10:15:50 UTC MAIN commitmail json YAML

2020-06-27 10:14:10 UTC MAIN commitmail json YAML

2020-06-27 10:00:29 UTC MAIN commitmail json YAML

2020-06-27 09:54:08 UTC MAIN commitmail json YAML

avoid excessive stack usage in mp_cpu_start(), this is called after VM
init so kmem(9) can be used

(jdolecek)

2020-06-27 09:45:57 UTC MAIN commitmail json YAML

2020-06-27 09:28:15 UTC MAIN commitmail json YAML

2020-06-27 09:03:15 UTC MAIN commitmail json YAML

mark ahc_loadseq()/ahd_loadseq() as __noinline to avoid 'stack usage
might get unbounded' - seems the variable-length array using const variable
is misinterpreted as unbounded when inlined

(jdolecek)

2020-06-27 08:50:46 UTC MAIN commitmail json YAML

Add a simple test case that writes random garbage to (almost) every sysctl node.
This test reproduced already at least five unique panics in a few quick runs.
The test is skipped by default as it is not likely safe even without the panics.

(jruoho)

2020-06-27 07:33:51 UTC MAIN commitmail json YAML

apply __HIDE_DELAY so zfs and friends at least compile

(macallan)

2020-06-27 07:29:11 UTC MAIN commitmail json YAML

Fix NULL deref on attach failure. Found via vHCI fuzzing.

Reported-by: syzbot+9fdcdc21799e5d6d75ee@syzkaller.appspotmail.com

(maxv)

2020-06-27 07:00:43 UTC MAIN commitmail json YAML

Yet another idiotic compat syscall that was developed with literally zero
test made. Simply invoking this syscall with _valid parameters_ triggers a
fatal fault, because the kernel tries to write to userland addresses.

With specially-crafted parameters it is easy to completely escalate
privileges into the kernel.

Also the size of the allocation is just obviously wrong, but it looks like
the callers are even more wrong, so not gonna fix it for now.

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

(maxv)

2020-06-27 06:57:44 UTC MAIN commitmail json YAML

Add a basic test for enabling/disabling network interface capabilities.

(jruoho)

2020-06-27 06:50:00 UTC MAIN commitmail json YAML

Rename module directory for ibm4xx from /stand/powerpc-4xx to
/stand/powerpc-ibm4xx to match with what we set in evbppc_machdep.c:

https://nxr.netbsd.org/xref/src/sys/arch/evbppc/evbppc/evbppc_machdep.c#86

(And we use ibm4xx not 4xx for directory in sys/arch/powerpc.)

Note that we had never enabled MODULAR for ibm4xx yet; kernel with
MODULAR option was unable to build. This should be why this discrepancy
had never been found until today...

(rin)

2020-06-27 05:39:07 UTC MAIN commitmail json YAML

Remove stale comments.

(rin)

2020-06-27 05:20:34 UTC MAIN commitmail json YAML

2020-06-27 05:07:08 UTC MAIN commitmail json YAML

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

fpu_dumpfpn(): Add KASSERT to check argument != NULL.

(rin)

2020-06-27 04:29:27 UTC MAIN commitmail json YAML

Return +INF without exception for +INF, as required by the architecture.
Also, avoid NULL dereference for fpu_dumpfpn() aka DUMPFPN().

Taken from (remaining part of) FreeBSD Revision 343078:
https://svnweb.freebsd.org/base?view=revision&revision=343078

(rin)

2020-06-27 04:24:08 UTC MAIN commitmail json YAML

Remove extra newline in DPRINTF().

(rin)

2020-06-27 04:18:57 UTC MAIN commitmail json YAML

fpu_dumpfpn(): Add missing \n in printf() format.

(rin)

2020-06-27 04:17:51 UTC MAIN commitmail json YAML

Fix typo in DPRINTF.

(rin)

2020-06-27 04:15:17 UTC MAIN commitmail json YAML

Use atf_pass to avoid test failure in case there are no suitable interfaces.

(jruoho)

2020-06-27 03:25:28 UTC MAIN commitmail json YAML

Set FPSCR[VXSQRT] for non-zero negative operand.

Taken from (a part of) FreeBSD Revision 343078:
https://svnweb.freebsd.org/base?view=revision&revision=343078

(rin)

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

2020-06-27 02:51:23 UTC MAIN commitmail json YAML

Restrict {MIN,MAX}_PAGE_SIZE for MODULAR || _MODULE, which makes
non-MODULAR kernel a little bit efficient.

They are also exposed to userland for jemalloc.

(rin)

2020-06-27 02:49:42 UTC MAIN commitmail json YAML

Add new file containing a couple of UART prototypes.

Missing file pointed out by rin@.  Thanks!

(simonb)

2020-06-27 02:40:24 UTC MAIN commitmail json YAML

Fix MODULAR support for ibm4xx by providing __nothing as VM_MDPAGE_INIT().

(rin)

2020-06-27 01:26:32 UTC MAIN commitmail json YAML

Stop allocating struct cpu_info in BSS; No need to db_read_bytes()
against cpu_info, just ci_data.cpu_callout is enough.

Save 1408 bytes of BSS for, e.g., aarch64.

(rin)

2020-06-27 00:46:37 UTC MAIN commitmail json YAML

Fix typo in name of evcnt(4) counter.

(rin)

2020-06-27 00:43:39 UTC MAIN commitmail json YAML

Fix build failure due to -Werror=stack-usage.

Use db_read_bytes() against particular member of structure in use,
by which we can avoid to have whole structure in the stack.

Now, stack usage shrinks: 4240 --> 1296

(rin)

2020-06-26 22:05:05 UTC MAIN commitmail json YAML

Drop redundant quoting in the nested printf example.

(uwe)

2020-06-26 21:03:56 UTC MAIN commitmail json YAML

Use ASCII single quote.

(uwe)

2020-06-26 20:16:56 UTC MAIN commitmail json YAML

Try to improve markup to get a nicer PostScript output.

While here edit slightly for consistency: get the octal character
ranges in order, use \num to refer to octal everywhere, etc.

(uwe)

2020-06-26 15:53:59 UTC MAIN commitmail json YAML

Adjust prior to enforce minimum socket length includes sa_family

Not that the code strictly needs it, but if the macro is ever used
elsewhere then it makes sense as every sockaddr must have it.
The rest of the structure is dictated by the family and in some cases,
truncated on purpose so this is fine.

(roy)

2020-06-26 15:46:28 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2020-06-26 15:45:18 UTC MAIN commitmail json YAML

Sort options and their descriptions.
Replace tab with space in table.
Make non-standard section subsections.
Comment out Xr to procsystime(1) which does not exist on NetBSD.

(wiz)

2020-06-26 10:14:32 UTC MAIN commitmail json YAML

Remove !cold KASSERT - it does not compile on all kernels, and it is not the
right thing to test for anyway. XXX should we panic instead? Are "compatible"
strings this long happening in real devices?

(martin)

2020-06-26 10:06:57 UTC MAIN commitmail json YAML

Avoid creating a full temporary softc struct on the stack.

(martin)

2020-06-26 08:42:27 UTC MAIN commitmail json YAML

Avoid unbounded stack usage warning

(skrll)

2020-06-26 08:42:01 UTC MAIN commitmail json YAML

Avoid large stack usage with kmem_alloc - we're in device_register so
there is no problem doing this.

(skrll)

2020-06-26 07:50:12 UTC MAIN commitmail json YAML

2020-06-26 06:08:37 UTC MAIN commitmail json YAML

Hack to get the "has ANSI C headers" check to pass on newer versions
of clang as bundled with Xcode.  If someone really cares about ensuring
NetBSD's host tools build on a system without <stdlib.h>, then I'm sure
that enterprising individual will also find a super #correct fix for this
specific problem.

(thorpej)

2020-06-26 03:23:04 UTC MAIN commitmail json YAML

Add dtoverlay command to specify device tree overlays from the boot
loader command line.  Add support for specifying device tree overlays
in boot.cfg, with the syntax:

dtoverlay=/path/to/overlay.dtbo
dtoverlay=hd0e:/overlays/example.dtbo

Multiple overlays can be specified, and they are loaded in the order
they appear in boot.cfg.

Remove support for efiboot.plist.

(thorpej)

2020-06-25 22:50:56 UTC MAIN commitmail json YAML

Fix fallout from migration from alloca() to malloc() in the previous.

of_compatible() is used at least for macppc in very early boot stage
where malloc() is still not available.

Therefore, for small (<= OFW_MAX_STACK_BUF_SIZE = 256) buffer, use
statically allocated one in the stack. For larger one, we continue to
use malloc() but KASSERT(!cold) is added for sure.

Fix boot failure for macppc reported by martin:
http://mail-index.netbsd.org/port-macppc/2020/06/25/msg002756.html

(rin)

2020-06-25 18:30:42 UTC MAIN commitmail json YAML

Test creating thousands of bridge(4)'s.  Unlike with tap(4) (PR kern/55417),
this test succeeeds. It is even possible to have the ultimate ifconfig(8)
output with more than 65,000 devices.

(jruoho)

2020-06-25 18:20:18 UTC MAIN commitmail json YAML

uvm_emap_size was removed a while ago

(jdolecek)

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

rearrange code to remove need for the scratch space variable, simply put
the data to destination bootinfo buffer directly

XXX compile tested only, needs confirmation that it still works

(jdolecek)

2020-06-25 17:08:33 UTC MAIN commitmail json YAML

2020-06-25 17:01:20 UTC MAIN commitmail json YAML

Register NVMM as an actual pseudo-device. Without PMF handler, to
explicitly disallow ACPI suspend if NVMM is running.

Should fix PR/55406.

(maxv)

2020-06-25 16:57:00 UTC MAIN commitmail json YAML

Instead of UINT_MAX + 2, test what is claimed.

(jruoho)

2020-06-25 16:52:50 UTC MAIN commitmail json YAML

Actually create the tap(4) with a negative device number. Doh.

(jruoho)

2020-06-25 16:40:40 UTC MAIN commitmail json YAML

Include all necessary letters in the word "Cryptographic".

(thorpej)

2020-06-25 16:36:43 UTC MAIN commitmail json YAML

If ubc_winshift gets constified, the extern declaration must be too.

(mlelstv)

2020-06-25 16:34:49 UTC MAIN commitmail json YAML

2020-06-25 16:19:07 UTC MAIN commitmail json YAML

Fix NULL deref. The original code before Jaromir's cleanup had an #ifndef
block that wrongly contained the 'else' statement, causing the NULL check
to have no effect.

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

(maxv)

2020-06-25 16:16:49 UTC MAIN commitmail json YAML

2020-06-25 15:45:37 UTC MAIN commitmail json YAML

filemon_read: report error if lseek fails

Reviewed by: riastradh

(sjg)

2020-06-25 15:43:27 UTC MAIN commitmail json YAML

2020-06-25 15:41:40 UTC MAIN commitmail json YAML

2020-06-25 15:21:57 UTC MAIN commitmail json YAML

2020-06-25 15:01:36 UTC MAIN commitmail json YAML

2020-06-25 14:59:51 UTC MAIN commitmail json YAML

2020-06-25 14:52:26 UTC MAIN commitmail json YAML

enable gcc stack usage limit for kernel functions, set to 3.5 KiB for now
as that seems to be enough to accomodate the current biggest stack usages

there are about six functions which use over 3KiB local stack, and
about a dozen between 2-3 KiB, so pushing this further needs more work
if desired

compile tested on amd64, i386, sparc64, sparc, powerpc (evbppc - BookE),
m68k (mac68k)

(jdolecek)

2020-06-25 14:52:00 UTC MAIN commitmail json YAML

avoid variable-length array

(jdolecek)

2020-06-25 14:24:46 UTC MAIN commitmail json YAML

2020-06-25 14:22:19 UTC MAIN commitmail json YAML

remove experimental direct pipe code (using uvm_loan()) I added in 2001 - it's
slower than the non-direct variant on MP systems, if anybody wants
to hack on this further it's available in Attic

(jdolecek)

2020-06-25 14:08:48 UTC MAIN commitmail json YAML

2020-06-25 14:04:30 UTC MAIN commitmail json YAML

make ubc_winshift / ubc_winsize constant, and based on whatever is bigger
of (1 << UBC_WINSHIFT, MAX_PAGE_SIZE)

given that default UBC_WINSHIFT is 13, this changes behaviour only
for mips and powerpc (BookE/OEA), which will now have twice as much
memory used for UBC windows; if this ever becomes a problem, it's
possible to reduce ubc_nwins in MD code similar to what is done on sparc

this eliminates variable-length arrays in ubc_fault(),
ubc_uiomove(), and ubc_zerorange() so that the stack usage can be
determined and checked in compile time

(jdolecek)

2020-06-25 11:48:40 UTC MAIN commitmail json YAML

Fix a tyop in a comment.

(simonb)

2020-06-25 11:31:45 UTC MAIN commitmail json YAML

no need for alloca() in of_compatible(), malloc() is fine

(jdolecek)

2020-06-25 11:26:05 UTC MAIN commitmail json YAML

2020-06-25 11:12:03 UTC MAIN commitmail json YAML

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

2020-06-25 09:58:44 UTC MAIN commitmail json YAML

use maximum-size fixed size array instead of variable-length array
in uvm_aio_aiodone() so that the stack usage can be determined and
checked in compile time; this is not called recursively not
particularly deep in call stack, so there is no need to save every
last drop of stack space here

(jdolecek)

2020-06-25 09:48:29 UTC MAIN commitmail json YAML

2020-06-25 09:39:19 UTC MAIN commitmail json YAML

2020-06-25 09:39:15 UTC MAIN commitmail json YAML

Don't assume everything is a wedge and has a parent device. On non-wedges
this crashes.

Instead, just talk to the referenced device and rely on the dk driver
to pass requests correctly.

(mlelstv)

2020-06-25 08:00:49 UTC MAIN commitmail json YAML

Fix tyop in an acient comment.

(simonb)

2020-06-25 07:53:02 UTC MAIN commitmail json YAML

Reduce ixgbe's busy loop using with workqueue and kpause.

- Use workqueue instead of softint to make some functions sleepable.
- Use new workqueue and enqueue it in ixgbe_local_timer() and
  ixgbe_recovery_mode_timer() to make them sleepable.
- Make new ixgbe_delay() and use it. This functions sleeps if the time is
  more than equals 1 tick. If it's not, do delay().

(msaitoh)

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

Use unsigned to avoid undefined behavior in ixgbe_fc_enable_generic().
Same as ixgbe_common.c rev. 1.24. Found by KUBSan.

(msaitoh)

2020-06-25 02:59:20 UTC MAIN commitmail json YAML

Use a date that is actually a real date.

(uwe)

2020-06-25 02:58:16 UTC MAIN commitmail json YAML

Bump date for previous.

(uwe)

2020-06-25 02:54:50 UTC MAIN commitmail json YAML

Fix --error-output to be more like GNU m4.  It's a long version of -o.

(uwe)

2020-06-25 02:25:53 UTC MAIN commitmail json YAML

Fix --error-output to be more like GNU m4.

GNU m4 --error-output is the same as -o despite the name.  It does NOT
affect warnings, error messages, and 'errprint' output so drop the
misguided bit of code that tried to freopen stderr without closing it
on failure.  Drop -e (which was our local invention) and make merge
--error-output with -o so that both set traceout.  Make trace_file()
preserve the old traceout on error and return error status so that the
caller can emit appropriate warning.

Do not yet support disabling tracing with an empty name, the rest of
the code is not ready, we don't do -o positionally and we don't have
`debugfile'.

(uwe)

2020-06-24 22:28:08 UTC MAIN commitmail json YAML

don't try allocating 16KB of scratch space on stack

it's too early for kmem_alloc(), so use static variable in BSS; it's used
post reloc, so don't need to use the RELOC() macros

XXX compile-tested only on i386

(jdolecek)

2020-06-24 21:54:57 UTC MAIN commitmail json YAML

reduce stack usage in ipf_nat_ioctl()

also, in SIOCADNAT, make sure to not leak kernel data

(jdolecek)

2020-06-24 21:06:39 UTC MAIN commitmail json YAML

disable inlining for couple functions which allocate usb_device_request_t
on stack to reduce total run_init() stack usage from 7KB to 2KB

(jdolecek)

2020-06-24 20:17:55 UTC MAIN commitmail json YAML

actually stop using the stack variable

(jdolecek)

2020-06-24 19:55:25 UTC MAIN commitmail json YAML

avoid allocating almost 5k struct ibm561data on stack in ibm561_cninit();
it's too early for kmem_alloc(), so use static variable in BSS

(jdolecek)

2020-06-24 19:24:44 UTC MAIN commitmail json YAML

rearrange to avoid allocating softc on stack in ug_isa_match()

(jdolecek)

2020-06-24 19:11:49 UTC MAIN commitmail json YAML

2020-06-24 18:49:01 UTC MAIN commitmail json YAML

2020-06-24 18:43:38 UTC MAIN commitmail json YAML

2020-06-24 18:09:37 UTC MAIN commitmail json YAML

2020-06-24 18:06:01 UTC MAIN commitmail json YAML

2020-06-24 17:47:52 UTC MAIN commitmail json YAML

reduce stack usage in compat_60_ptmget_ioctl() - allocate struct ptmget
via kmem_alloc()

(jdolecek)

2020-06-24 17:00:58 UTC MAIN commitmail json YAML

Note that -h is an extension to POSIX.  Bump date.

(riastradh)

2020-06-24 16:58:12 UTC MAIN commitmail json YAML

New mv -h option.

`mv -h source target' just issues rename(source, target) without
discriminating on whether target resolves to a directory; this way
you can atomically replace a symlink to a directory.

(riastradh)

2020-06-24 16:49:30 UTC MAIN commitmail json YAML

Try not to lose error output with --error-output.

Try to avoid the trap we set up ourselves while avoiding freopen(3).
When exit flushes and closes open streams it may close sfp first and
when it comes about to flush and close stderr, the descriptor is
already gone and we lose any buffered error output.  This actually
happens on some hosts, breaking --trace output used by autoconf.

(uwe)

2020-06-24 16:29:34 UTC MAIN commitmail json YAML

reduce stack usage in dsl_scan_recurse() - allocate memory for
temporary zbookmark_phys_t using kmem_alloc() rather than stack;
this recuses several times usually, and this saves 2x
sizeof(zbookmark_phys_t) == 64 bytes per recursion

part of fix for PR kern/55402 by Frank Kardel

(jdolecek)

2020-06-24 16:23:16 UTC MAIN commitmail json YAML

change dsl_scan_visitbp() to allocate blkptr_t dynamically rather than
on-stack - this function is called recursively, and the 120 bytes per call
add up; also remove unused variable

part of fix for PR kern/55402 by Frank Kardel

(jdolecek)

2020-06-24 16:16:01 UTC MAIN commitmail json YAML

reduce stack usage in vdev_queue_io_to_issue() - zio_t is about 1KB, and
the function potentially recurses into itself

part of fix for PR kern/55402 by Frank Kardel

(jdolecek)

2020-06-24 15:05:45 UTC MAIN commitmail json YAML

2020-06-24 14:48:47 UTC MAIN commitmail json YAML

2020-06-24 14:44:44 UTC MAIN commitmail json YAML

Regen: Add AC_MSG_RESULT yes/no to the uio checks.

(uwe)

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

Add AC_MSG_RESULT yes/no to the uio checks.

(uwe)

2020-06-24 14:33:08 UTC MAIN commitmail json YAML

fix tyop in KASSERT() condition which made it an assignment rather than a check

the field indeed is supposed to be set to GRANT_INVALID_REF at this moment,
the grant must be already revoked by this time

pointed out by Taylor R Campbell

(jdolecek)

2020-06-24 14:28:10 UTC MAIN commitmail json YAML

Fix pasto; use {,U}LLONG{MIN,MAX} correctly in the {u,}llong{min,max}
range checks.

PR lib/55414

(thorpej)

2020-06-24 12:43:40 UTC MAIN commitmail json YAML

Redo cnmac attachments - cnmacM @ gmxN @ pip0 @ iobus

Missed one file - thanks martin@.

(simonb)

2020-06-24 12:31:26 UTC MAIN commitmail json YAML

2020-06-24 12:27:51 UTC MAIN commitmail json YAML

Ensure sockaddrs have valid lengths for RO_MISSFILTER.

Thanks to maxv@ for spotting this.

(roy)

2020-06-24 10:30:43 UTC MAIN commitmail json YAML

As bin/55344 was fixed, note the flags also in rc.conf(5).

(jruoho)

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

remove special handling for symbolic links for COMPAT_43 lstat, it's
not necessary; this removes the only places in kernel which did namei
LOOKUP with LOCKPARENT

fixes diagnostic KASSERT() in namei() code

Reported-by: syzbot+628382ecf1438e53d08d@syzkaller.appspotmail.com

(jdolecek)

2020-06-24 10:07:13 UTC MAIN commitmail json YAML

2020-06-24 10:05:08 UTC MAIN commitmail json YAML

2020-06-24 09:47:18 UTC MAIN commitmail json YAML

2020-06-24 09:32:41 UTC MAIN commitmail json YAML

Add few basic tests for cpuctl(8). These cover PR kern/45117 and PR bin/54220.
Though, the former is not explicitly tested as it hangs the system.

(jruoho)

2020-06-24 09:21:43 UTC MAIN commitmail json YAML

2020-06-24 09:11:26 UTC MAIN commitmail json YAML

2020-06-24 08:27:47 UTC MAIN commitmail json YAML

Fix bug with incorrect range calculation when doing icache sync.
This is called by sysarch(ARM_SYNC_ICACHE) from aarch32 (compat_netbsd32) emul process.

pointed out by rin@, thanks.

XXX pullup-9

(ryo)

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

New sentence, new line. Fix macro arguments. Improve Nd.
Remove superfluous Pp. Other minor cleanups.

(wiz)

2020-06-24 07:02:57 UTC MAIN commitmail json YAML

errno is irrelevant here.

(rin)

2020-06-24 06:15:40 UTC MAIN commitmail json YAML

Fix random failures for pty_queue test.

Setting queue size by TIOCSQSIZE ioctl does not guarantee that data of
that size can be read by single shot of read(2).

Remove assertion based on this assertion, while total amount of data
read from child process is still checked appropriately.

(rin)

2020-06-24 05:59:18 UTC MAIN commitmail json YAML

Turn err() into atf_tc_fail_errno() for parent process, so that
atf can catch failures correctly.

(rin)

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

PR bin/55411 (Akihiko HAYASHI)

Remove stray ``&&'' introduced in the previous revision, so that
host tools are correctly passed to configure script.

No similar problem for gcc.old. No release branches are affected.

(rin)

2020-06-24 04:47:10 UTC MAIN commitmail json YAML

Fix core_dump_procinfo tests for powerpc, for which child process was
stalled indefinitely in trap instruction even after PT_CONTINUE.

For powerpc, program counter is not automatically incremented by trap
instruction. We cannot increment PC in the trap handler, which breaks
applications depending on this behavior, e.g., GDB.

Therefore, we need to pass (PC + 4) instead of (void *)1 (== PC) to
PT_CONTINUE when child process traps itself.

(rin)

2020-06-24 03:38:55 UTC MAIN commitmail json YAML

2020-06-24 03:38:01 UTC MAIN commitmail json YAML

Add a PCI front-end for the "amdccp" (AMD Cryptographic Coprocessor)
driver.

(thorpej)

2020-06-24 03:35:30 UTC MAIN commitmail json YAML

2020-06-24 03:35:07 UTC MAIN commitmail json YAML

Add a couple of additional device IDs for the AMD Cryptographic Coprocessor.

(thorpej)

2020-06-23 21:34:44 UTC MAIN commitmail json YAML

Fix prefix for previous.

(rin)

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

Hum. Fix NULL deref triggerable with just write(0).

Reported-by: syzbot+45b31355bf880e175b73@syzkaller.appspotmail.com

(maxv)

2020-06-23 17:21:55 UTC MAIN commitmail json YAML

Rename __MD_CANONICAL_BASE -> __MD_KERNMEM_BASE for clarity.

(maxv)

2020-06-23 16:08:46 UTC MAIN commitmail json YAML

2020-06-23 14:36:00 UTC MAIN commitmail json YAML

2020-06-23 14:35:37 UTC MAIN commitmail json YAML

Add some Microsemi (Vitesse) devices.

(msaitoh)

2020-06-23 14:08:01 UTC MAIN commitmail json YAML

2020-06-23 13:23:56 UTC MAIN commitmail json YAML

cgdconfig.8: remove references to using cgd for swap

this is potentially misleading now that the kernel does swap encryption

(nia)

2020-06-23 13:20:14 UTC MAIN commitmail json YAML

cgdconfig.8: Reflect actual behaviour of /dev/(u)random

(nia)

2020-06-23 10:09:33 UTC MAIN commitmail json YAML

Make this work on big endian machines

(martin)

2020-06-23 06:28:02 UTC MAIN commitmail json YAML

Pass the name of the compressor actually used for sets to groff and use
it in the content description (XXX need to adapt a few more copies in,
as of now, unaffected architectures)

(martin)

2020-06-23 05:50:01 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2020-06-23 05:19:12 UTC MAIN commitmail json YAML

Support EdgeRouter 4.
Only set RGMII timing params on boards with RGMII.

(simonb)

2020-06-23 05:18:43 UTC MAIN commitmail json YAML

Add support for a very simple output-only console so early printf() can work.
Minor tweaks, remove some unused code.

(simonb)

2020-06-23 05:18:28 UTC MAIN commitmail json YAML

Make sure we only attach to CN3xxx/CN5xxx.
Cleanup - mostly removing unused code.

(simonb)

2020-06-23 05:18:02 UTC MAIN commitmail json YAML

2020-06-23 05:17:13 UTC MAIN commitmail json YAML

Redo cnmac attachments - cnmacM @ gmxN @ pip0 @ iobus
Support SGMII mode used on CN70XX.
Most functional changes from OpenBSD octeon port.  Still more to come from
the OpenBSD driver.

(simonb)

2020-06-23 05:15:33 UTC MAIN commitmail json YAML