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

2024-05-10 12:31:50 UTC Now

2020-10-17 10:47:28 UTC MAIN commitmail json YAML

mb (dsb sy) is not the same as membar_sync (dmb sy) on aarch64

(jmcneill)

2020-10-17 10:47:10 UTC MAIN commitmail json YAML

wmb (dsb ishst) is not the same as membar_producer (dmb ishst) on aarch64

(jmcneill)

2020-10-17 10:46:39 UTC MAIN commitmail json YAML

mb (dsb sy) is not the same as membar_sync (dmb sy) on aarch64

(jmcneill)

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

Correct KB_NEXT value. No impact since KB_NEXT isn't used anywhere.

(mlelstv)

2020-10-17 09:45:20 UTC MAIN commitmail json YAML

validate unix socker buffer size and truncate path to prevent overflow.

(mlelstv)

2020-10-17 09:42:36 UTC MAIN commitmail json YAML

Attach disk info even for zero sized disks.
Slight refactoring.

(mlelstv)

2020-10-17 09:36:45 UTC MAIN commitmail json YAML

Fix error message. No functional change, both commands use the same
bit to select read or write mode.

(mlelstv)

2020-10-17 09:20:33 UTC MAIN commitmail json YAML

Use Dv. Bump date for previous.

(wiz)

2020-10-17 09:06:15 UTC MAIN commitmail json YAML

Setting a socket buffer size stops autoscaling. Add a sysctl to
prevent this behaviour. The default is not changed.

(mlelstv)

2020-10-17 09:04:59 UTC MAIN commitmail json YAML

Use Fx and Nx. End Rs block. Remove trailing whitespace.
Remove unnecessary Pp.

(wiz)

2020-10-17 08:50:38 UTC MAIN commitmail json YAML

Fix RTT values reported by TCP_INFO.

(mlelstv)

2020-10-17 08:46:02 UTC MAIN commitmail json YAML

Print real maxrss value like other shells.

(mlelstv)

2020-10-17 08:29:48 UTC MAIN commitmail json YAML

Note update of tzdata from 2020b to 2020c

(kre)

2020-10-17 08:27:56 UTC MAIN commitmail json YAML

2020-10-17 08:10:31 UTC MAIN commitmail json YAML

Avoid declaring autoconf_debug twice when building with DEBUG.
Pointed out by palle@ - thanks!

(jdc)

2020-10-17 07:41:25 UTC MAIN commitmail json YAML

note about mips kernel modules breaking update builds

(mrg)

2020-10-17 07:40:21 UTC MAIN commitmail json YAML

turn off kernel modules on mips since they don't work yet, and
we build 2 or 3 versions of them.

(mrg)

2020-10-16 22:39:21 UTC MAIN commitmail json YAML

Fix mb/wmb/rmb on aarch64 to use dsb instead of dmb.

(jmcneill)

2020-10-16 20:51:54 UTC MAIN commitmail json YAML

ossaudio.3: note this is most/all of ossv3 and some of ossv4

(nia)

2020-10-16 20:24:35 UTC MAIN commitmail json YAML

ossaudio(3): Add SNDCTL_DSP_COOKEDMODE, SNDCTL_DSP_GETERROR

SNDCTL_DSP_COOKEDMODE simply always returns 1.
"Cooked mode" is a silly way the OSSv4 authors chose to refer to allowing
for reprocessed streams. The NetBSD kernel always performs format
conversion and it can't be turned off.

SNDCTL_DSP_GETERROR provides access to the read/write over/underrun
counters. There are other things it might return, but they don't make
sense for our implementation.

(nia)

2020-10-16 18:27:34 UTC MAIN commitmail json YAML

Remove trailing whitespace

(skrll)

2020-10-16 18:27:02 UTC MAIN commitmail json YAML

2020-10-16 17:59:46 UTC MAIN commitmail json YAML

config space accesses to device 15 function 7 cause a machine check exception
on my C200, so weed them out.
Now we can scan the PCI buses without crashing.

(macallan)

2020-10-16 17:50:44 UTC MAIN commitmail json YAML

2020-10-16 16:48:07 UTC MAIN commitmail json YAML

ossaudio.3: Sort sections.

(nia)

2020-10-16 16:30:53 UTC MAIN commitmail json YAML

ossaudio.3: More information about the history and status of this API

(nia)

2020-10-16 16:17:23 UTC MAIN commitmail json YAML

wg: Fix tests by sprinkling ifconfig -w 10

So protocols have time to finish setup.

(roy)

2020-10-16 15:40:40 UTC MAIN commitmail json YAML

in my previous commit, entries before the move must be obsolete rather than removed

pointed out by nonaka@, thanks

(ryo)

2020-10-16 15:40:16 UTC MAIN commitmail json YAML

ossaudio: Bump copyright date and improve description.

(nia)

2020-10-16 15:31:04 UTC MAIN commitmail json YAML

network: Update rtsol options

- Use "-6" instead of "--noipv4" as it seems more appropriate based on
  the dhcpcd(8) manual page.
- Remove "-f /dev/null" as it seems unnecessary with "-6".
- Remove "--persistent" as it is in the default /etc/dhcpcd.conf,
  and this way the user can change it, if they would like to (either
  through dhcpcd_flags or by editing /etc/dhcpcd.conf).

The "-b" (or "--background") option is needed to avoid a timeout error
message (and a delay in booting), so it is still left in place.

(kim)

2020-10-16 14:38:14 UTC netbsd-8 commitmail json YAML

2020-10-16 14:37:31 UTC netbsd-8 commitmail json YAML

Pull up the following revision, requested by kim in ticket #1603
and accidently lost during initial commit:

etc/defaults/rc.conf: revision 1.159

Add optional release info in /etc/motd.

(martin)

2020-10-16 12:36:01 UTC MAIN commitmail json YAML

ossaudio: Add comments for the more obscure parts of SNDCTL_AUDIOINFO

(nia)

2020-10-16 12:23:34 UTC MAIN commitmail json YAML

ossaudio: Various OSSv4 fixes for SNDCTL_AUDIOINFO

- Per OSSv4, make this ioctl work on the main mixer device.
  Since the native NetBSD API uses queries on individual audio devices,
  we have to reopen the correct audio device specified in the input to the
  ioctl and fetch information from that.
- Correctly return whether the device is for playback, capture, or both.
- Return the full name of the device in the name field.
- The "handle" has to be a globally unique identifier. The closest thing
  we have to that is device numbers, so use device numbers.
- Return reasonable values in min_rate/max_rate and min_channels/max_channels.

This should allow Mumble's device enumeration to work with a lot less
patching.

(nia)

2020-10-16 11:17:54 UTC MAIN commitmail json YAML

lua 5.3.6/5.4.1 out.

(wiz)

2020-10-16 11:09:33 UTC MAIN commitmail json YAML

Add missig t_convert_xmm_s87.debug to fix build with MKDEBUG=yes.

(rin)

2020-10-16 10:32:52 UTC MAIN commitmail json YAML

2020-10-16 08:51:12 UTC MAIN commitmail json YAML

Remove leftover commented out #if 0

(mgorny)

2020-10-16 08:28:17 UTC MAIN commitmail json YAML

2020-10-16 08:17:09 UTC netbsd-9 commitmail json YAML

2020-10-16 08:06:02 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.691

  Fixes a problem that the attach function reported
"wm_gmii_setup_phytype: Unknown PHY model. OUI=000000, model=0000" and
"PHY type is still unknown." Don't call wm_gmii_setup_phytype() three times if
the interface uses SGMII with internal MDIO.

  Tested with I354(Rangeley(SGMII(MDIO))) and I350(SERDES(SFP), SGMII(SFP)).

(martin)

2020-10-16 08:03:36 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.691

  Fixes a problem that the attach function reported
"wm_gmii_setup_phytype: Unknown PHY model. OUI=000000, model=0000" and
"PHY type is still unknown." Don't call wm_gmii_setup_phytype() three times if
the interface uses SGMII with internal MDIO.

  Tested with I354(Rangeley(SGMII(MDIO))) and I350(SERDES(SFP), SGMII(SFP)).

(martin)

2020-10-16 07:35:16 UTC MAIN commitmail json YAML

2020-10-16 07:12:26 UTC MAIN commitmail json YAML

Try to fix tests/sys/x86 again

Thank to Martin Husemann for the suggestion.

(mgorny)

2020-10-16 06:55:36 UTC MAIN commitmail json YAML

2020-10-16 05:53:40 UTC MAIN commitmail json YAML

Fixes a problem that the attach function reported
"wm_gmii_setup_phytype: Unknown PHY model. OUI=000000, model=0000" and
"PHY type is still unknown." Don't call wm_gmii_setup_phytype() three times if
the interface uses SGMII with internal MDIO.

Tested with I354(Rangeley(SGMII(MDIO))) and I350(SERDES(SFP), SGMII(SFP)).

(msaitoh)

2020-10-15 23:15:36 UTC MAIN commitmail json YAML

Byte-swapping instructions for arm and thumb on aarch64eb;
instructions are stored in little-endian byte-order for BE8,
an only valid binary format for ILP32BE executables.

XXX
Apply similar fixes to armv7{,hf}eb.

(rin)

2020-10-15 23:10:06 UTC MAIN commitmail json YAML

Call netbsd32_adjust_limits() in netbsd32_setregs() for sure,
as done for amd64 and sparc64.

(rin)

2020-10-15 23:06:06 UTC MAIN commitmail json YAML

wait4(2): make error paths match with that of native wait4(2):

https://nxr.netbsd.org/xref/src/sys/kern/kern_exit.c#720

(rin)

2020-10-15 22:59:50 UTC MAIN commitmail json YAML

Apply fix in rev 1.2 for core_dump_procinfo to aarch64 and arm:

http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/lib/libc/sys/t_ptrace_core_wait.h#rev1.2

> 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.

This statement is true for aarch64 and arm.

Also, use PTRACE_BREAKPOINT_SIZE instead of hard-coded 4 to address
instruction next to PC.

OK ryo

(rin)

2020-10-15 22:52:08 UTC MAIN commitmail json YAML

Fix clone(2) for COMPAT_NETBSD32.

(1) Set r13 (sp for arm32 processes) appropriately when stack is
    specified to fork1().

(2) For arm32 processes, align stack to 8-byte boundary, instead of
    16-byte for native aarch64 processes, to match our 32-bit ABI:

https://nxr.netbsd.org/xref/src/sys/arch/arm/arm32/vm_machdep.c#150

Note that sp alignment checking is disabled in aarch32 mode, and
this works fine with AARCH64_EL0_STACK_ALIGNMENT_CHECK option.

OK ryo

(rin)

2020-10-15 22:41:02 UTC MAIN commitmail json YAML

For rev 1.14 and before, netbsd32_process_write_regs() returns EINVAL
if non-modifiable bits are set in CPSR.

Instead, mask out non-modifiable bits and make this function success
regardless of value in CPSR. New behavior matches that of arm:

https://nxr.netbsd.org/xref/src/sys/arch/arm/arm/process_machdep.c#187

This fixes lib/libc/sys/t_ptrace_wait*:access_regs6 tests, in which
register contents retrieved by PT_GETREGS are set back by PT_SETREGS.

No new regression is observed in full ATF run.

OK ryo

(rin)

2020-10-15 22:30:34 UTC MAIN commitmail json YAML

For cpu_jump_onfault() in data_abort_handler(), stop returning
hard-coded EFAULT and use return value from uvm_fault() instead.

There are some paths that do not call uvm_fault():

(1) For fatalabort case, use EFAULT as before.
(2) When va range is invalid, use EFAULT instead of EINVAL.

These change fixes bytes_transfer_eof_* tests in
sys/lib/libc/sys/t_ptrace_wait*.

Note that without (2) above, some tests like
sys/lib/libc/sys/t_wait:write_error become newly failing.

I've confirmed that there's no new regression in full ATF run.

OK ryo

(rin)

2020-10-15 22:15:08 UTC MAIN commitmail json YAML

2020-10-15 21:14:15 UTC MAIN commitmail json YAML

Reduce scope of memory barriers use in bus_space_barrier() implementation.

Instead of always "dsb sy", use "dsb ishld" for reads, "dsb ishst" for
writes, and "dsh ish" for reads and writes.

Ok skrll@

(jmcneill)

2020-10-15 19:39:03 UTC netbsd-9 commitmail json YAML

2020-10-15 19:36:55 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1113):
usr.sbin/sysinst/bsddisklabel.c: revision 1.46
usr.sbin/sysinst/bsddisklabel.c: revision 1.47
usr.sbin/sysinst/disklabel.c: revision 1.40
usr.sbin/sysinst/arch/cobalt/md.c: revision 1.13
usr.sbin/sysinst/bsddisklabel.c: revision 1.48
usr.sbin/sysinst/disklabel.c: revision 1.41
usr.sbin/sysinst/arch/cobalt/md.c: revision 1.14
usr.sbin/sysinst/bsddisklabel.c: revision 1.49
usr.sbin/sysinst/disklabel.c: revision 1.42
usr.sbin/sysinst/Makefile.inc: revision 1.34
usr.sbin/sysinst/disks.c: revision 1.70
usr.sbin/sysinst/arch/hp300/md.c: revision 1.11
usr.sbin/sysinst/disks.c: revision 1.71
usr.sbin/sysinst/arch/i386/md.h: revision 1.8
usr.sbin/sysinst/arch/arc/md.c: revision 1.13
usr.sbin/sysinst/mbr.h: revision 1.5
usr.sbin/sysinst/mbr.h: revision 1.6
usr.sbin/sysinst/arch/mac68k/md.c: revision 1.10
usr.sbin/sysinst/bsddisklabel.c: revision 1.50
usr.sbin/sysinst/arch/acorn32/md.c: revision 1.7
usr.sbin/sysinst/bsddisklabel.c: revision 1.51
usr.sbin/sysinst/bsddisklabel.c: revision 1.52
usr.sbin/sysinst/bsddisklabel.c: revision 1.53
usr.sbin/sysinst/bsddisklabel.c: revision 1.54
usr.sbin/sysinst/bsddisklabel.c: revision 1.55
usr.sbin/sysinst/bsddisklabel.c: revision 1.56
usr.sbin/sysinst/arch/dummy/md.c: revision 1.6
usr.sbin/sysinst/arch/amd64/md.h: revision 1.9
usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.6
usr.sbin/sysinst/arch/sparc/md.c: revision 1.6
usr.sbin/sysinst/arch/zaurus/md.c: revision 1.10
usr.sbin/sysinst/arch/x68k/md.c: revision 1.11
usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.9
usr.sbin/sysinst/arch/vax/md.c: revision 1.7
usr.sbin/sysinst/arch/luna68k/md.c: revision 1.9
usr.sbin/sysinst/gpt.c: revision 1.19
usr.sbin/sysinst/arch/i386/md.c: revision 1.31
usr.sbin/sysinst/arch/i386/md.c: revision 1.32
usr.sbin/sysinst/arch/evbarm/md.c: revision 1.17
usr.sbin/sysinst/arch/evbarm/md.c: revision 1.18
usr.sbin/sysinst/arch/evbarm/md.c: revision 1.19
usr.sbin/sysinst/arch/shark/md.c: revision 1.6
usr.sbin/sysinst/arch/landisk/md.c: revision 1.14
usr.sbin/sysinst/util.c: revision 1.43
usr.sbin/sysinst/gpt.c: revision 1.20
usr.sbin/sysinst/util.c: revision 1.44
usr.sbin/sysinst/gpt.c: revision 1.21
usr.sbin/sysinst/gpt.c: revision 1.22
usr.sbin/sysinst/arch/evbarm/msg.md.en: revision 1.2
usr.sbin/sysinst/arch/ofppc/md.c: revision 1.11
usr.sbin/sysinst/util.c: revision 1.46
usr.sbin/sysinst/arch/ofppc/md.c: revision 1.12
usr.sbin/sysinst/util.c: revision 1.47
usr.sbin/sysinst/arch/evbarm/md.h: revision 1.6
usr.sbin/sysinst/util.c: revision 1.48
usr.sbin/sysinst/arch/evbarm/md.h: revision 1.7
usr.sbin/sysinst/arch/evbmips/md.c: revision 1.9
usr.sbin/sysinst/msg.mi.fr: revision 1.28
usr.sbin/sysinst/msg.mi.fr: revision 1.29
usr.sbin/sysinst/arch/sgimips/md.c: revision 1.9
usr.sbin/sysinst/arch/evbarm/Makefile: revision 1.3
usr.sbin/sysinst/msg.mi.de: revision 1.23
usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.10
usr.sbin/sysinst/msg.mi.de: revision 1.24
usr.sbin/sysinst/install.c: revision 1.15
usr.sbin/sysinst/install.c: revision 1.16
usr.sbin/sysinst/arch/sparc64/md.c: revision 1.6
usr.sbin/sysinst/install.c: revision 1.17
usr.sbin/sysinst/install.c: revision 1.18
usr.sbin/sysinst/partitions.h: revision 1.16
usr.sbin/sysinst/install.c: revision 1.19
usr.sbin/sysinst/partitions.h: revision 1.17
usr.sbin/sysinst/arch/evbppc/md.c: revision 1.9
usr.sbin/sysinst/arch/playstation2/md.c: revision 1.9
usr.sbin/sysinst/partitions.h: revision 1.18
usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.9
usr.sbin/sysinst/partitions.h: revision 1.19
usr.sbin/sysinst/msg.mi.es: revision 1.24
usr.sbin/sysinst/msg.mi.es: revision 1.25
usr.sbin/sysinst/msg.mi.es: revision 1.26
usr.sbin/sysinst/arch/zaurus/md.c: revision 1.9
usr.sbin/sysinst/target.c: revision 1.13
usr.sbin/sysinst/target.c: revision 1.14
usr.sbin/sysinst/part_edit.c: revision 1.17
usr.sbin/sysinst/part_edit.c: revision 1.18
usr.sbin/sysinst/msg.mi.fr: revision 1.30
usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.11
usr.sbin/sysinst/part_edit.c: revision 1.19
usr.sbin/sysinst/msg.mi.fr: revision 1.31
usr.sbin/sysinst/arch/alpha/md.c: revision 1.9
usr.sbin/sysinst/msg.mi.en: revision 1.30
usr.sbin/sysinst/defs.h: revision 1.56
usr.sbin/sysinst/msg.mi.en: revision 1.31
usr.sbin/sysinst/defs.h: revision 1.57
usr.sbin/sysinst/msg.mi.en: revision 1.32
usr.sbin/sysinst/arch/amiga/md.c: revision 1.6
usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.9
usr.sbin/sysinst/defs.h: revision 1.58
usr.sbin/sysinst/arch/cats/md.c: revision 1.5
usr.sbin/sysinst/defs.h: revision 1.59
usr.sbin/sysinst/arch/newsmips/md.c: revision 1.6
usr.sbin/sysinst/arch/pmax/md.c: revision 1.8
usr.sbin/sysinst/arch/mipsco/md.c: revision 1.8
usr.sbin/sysinst/part_edit.c: revision 1.20
usr.sbin/sysinst/part_edit.c: revision 1.21
usr.sbin/sysinst/arch/macppc/md.c: revision 1.6
usr.sbin/sysinst/part_edit.c: revision 1.22
usr.sbin/sysinst/part_edit.c: revision 1.23
usr.sbin/sysinst/part_edit.c: revision 1.24
usr.sbin/sysinst/defs.h: revision 1.60
usr.sbin/sysinst/arch/mac68k/Makefile: revision 1.3
usr.sbin/sysinst/defs.h: revision 1.61
usr.sbin/sysinst/defs.h: revision 1.63
usr.sbin/sysinst/defs.h: revision 1.64
usr.sbin/sysinst/defs.h: revision 1.65
usr.sbin/sysinst/label.c: revision 1.21
usr.sbin/sysinst/defs.h: revision 1.66
usr.sbin/sysinst/label.c: revision 1.22
usr.sbin/sysinst/defs.h: revision 1.67
usr.sbin/sysinst/label.c: revision 1.23
usr.sbin/sysinst/label.c: revision 1.24
usr.sbin/sysinst/label.c: revision 1.25
usr.sbin/sysinst/label.c: revision 1.26
usr.sbin/sysinst/label.c: revision 1.27
usr.sbin/sysinst/msg.mi.pl: revision 1.31
usr.sbin/sysinst/label.c: revision 1.28
usr.sbin/sysinst/msg.mi.pl: revision 1.32
usr.sbin/sysinst/label.c: revision 1.29
usr.sbin/sysinst/arch/atari/md.c: revision 1.7
usr.sbin/sysinst/disklabel.c: revision 1.36
usr.sbin/sysinst/disklabel.c: revision 1.37
usr.sbin/sysinst/disklabel.c: revision 1.38
usr.sbin/sysinst/disklabel.c: revision 1.39
usr.sbin/sysinst/arch/bebox/md.c: revision 1.9
usr.sbin/sysinst/mbr.c: revision 1.32
usr.sbin/sysinst/disks.c: revision 1.66
usr.sbin/sysinst/mbr.c: revision 1.33
usr.sbin/sysinst/disks.c: revision 1.67
usr.sbin/sysinst/mbr.c: revision 1.34
usr.sbin/sysinst/arch/emips/md.c: revision 1.9
usr.sbin/sysinst/disks.c: revision 1.68
usr.sbin/sysinst/partitions.c: revision 1.11
usr.sbin/sysinst/mbr.c: revision 1.35
usr.sbin/sysinst/disks.c: revision 1.69
usr.sbin/sysinst/mbr.c: revision 1.36
usr.sbin/sysinst/arch/hppa/md.c: revision 1.8
usr.sbin/sysinst/arch/prep/md.c: revision 1.13
usr.sbin/sysinst/label.c: revision 1.30
usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.7
usr.sbin/sysinst/main.c: revision 1.21
usr.sbin/sysinst/main.c: revision 1.22
usr.sbin/sysinst/main.c: revision 1.23
usr.sbin/sysinst/bsddisklabel.c: revision 1.40
usr.sbin/sysinst/main.c: revision 1.24
usr.sbin/sysinst/arch/cobalt/md.h: revision 1.6
usr.sbin/sysinst/bsddisklabel.c: revision 1.41
usr.sbin/sysinst/main.c: revision 1.25
usr.sbin/sysinst/arch/news68k/md.c: revision 1.7
usr.sbin/sysinst/bsddisklabel.c: revision 1.42
usr.sbin/sysinst/bsddisklabel.c: revision 1.43
usr.sbin/sysinst/bsddisklabel.c: revision 1.44
usr.sbin/sysinst/bsddisklabel.c: revision 1.45
Use strlcpy in a few places to guarnatee 0-terminated strings
Rever previous: the d_packname in struct disklabel is not NUL terminated.
Disable the warning instead.
Do not force -Os optimization (unless SMALLPROG)
Remove unused "rel" global variable and make the -r option a no-op.
PR 55045: strlcpy(NULL, ..., 0) considered harmfull in some implementations.
PR misc/54886: bump threshold for automatic/default creation of a tmpfs /tmp
up slightly (to 384 MB ram). This will make sure the default install has
a > 64 MB /tmp available (number pulled out of thin air, 64 MB is the minimum
required by the ZFS tests).
Don't depend on common symbol definitions.
boardype should not be common.
Redo the root-size-limit check again after we grew the root partition
for kernel dumps. Auto-enable the /usr partition if it overflows.
For all non-root partitions, default to FFSv2.
When extending a partition (to fill the total disk size) do respect
size limits.
Do not suggest a size limited partition for extension by default.
Minor tweak to previous: when forcing a /usr partition just to have an
arbitrary extendable partition, still use its default size initially.
At the end of a new installation save entropy.
Ooops, backout previous - twice the entropy saving is not needed.
Instead slightly improve the (slightly) hidden other code that already
did it.
PR 55202: disable swapping if we started it due to low ram
it's "its"
Remove "If you booted from a floppy" message
Set HAVE_INSTALL_IMAGE for evbarm
Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.
Should be pulled up to netbsd-9, with fixes of PR/55060.
MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12.
Silence -Wstringop-truncation for ``name'' in disp_selected_part().
This variable is used only for display, and truncation seems harmless.
PR 55572: avoid crash when answering the mount point prompt for a previously
empty mount point with an emptry sting.
When adding a new partition in the concrete partition editor, make sure
to set a pointer to the partition table interface in the new entry.
Otherwise we may end up not writing back the partitions at all, leading
to further fallout later.
Receipe to reproduce the issue from Frederic Fauberteau, thanks!
In the concrete partitions editor, after deleting the last partition move
the menu selection to the "add a partition" entry (instead of the sentinel
line which is not an active menu entry).
Typo in comment
Keep a list of all partition tables from which we have deleted partitions
and make sure we update those partition tables when writing partitions,
even if no install related partition remains on them.
Fix display of timezone selection menu
If there is no current partitioning manager assume we are editing the
current system and make target_already_root() return true.
Fixes various fallout when using sysinst post installation.
PR 55377: mark boot partitions in the partition size display, as suggested
by Izumi Tsutsui (minor modifications + all bugs by me)
PR 55378: do not assume RAW_PART to be either 2 or 3
PR 55379: avoid creating bogus /etc/fstab lines for /dev/cd* if no
cdrom is available.
PR 55381: try to deal with moved (but not yet saved) partitions when
calculating free space
Apply patch provided by Izumi Tsutsui in PR 55382: make ext2 partitions
show up in the outer (MBR) partition table, needed for example on Cobalt
where firmware boots from that partition.
PR 55384: detangle pm->ptstart from the "install" flag (selecting a
target partition). Instead introduce a new PTI_INSTALL_TARGET per partition
flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be
the first sector usable by NetBSD.
If we have no explicitly marke target root partition, make sure to set
the proper flag on the implicit one.
When merging existing partitions with desired target system layout
information, only force the "mount" flag if the existing partitions
has a valid mount point.
Add a heuristic to detect and properly mark EFI system partitions
when re-using pre-existing partitions.
When MD code requests a reserved area (at the start of the disk)
make sure to properly account for the "lost" space during all calculations
and especially when expanding the main partition to fill the disk.
Avoid using the global "pm" or a passed device descriptons when we are
passing disk limits explicitly anyway.
Simplify/fix a few rounding calculations.
When creating new partitions for "full disk" use, pass a install target
hint to the partitioning backend (for the outer NetBSD partition).
Use an install target hint to mark a new partition active.
When compiled with BOOTSEL support, also name the new partition "NetBSD".
Remove more pm->ptstart abuse - calculate values localy where needed
instead.
Fix editing start and size of not yet existing outer partitions.
Previously we abused pm->ptstart / pm->ptsize to pass the bounds of the
NetBSD outer partition to the inner partition editor - but now this is
not a valid assumption any more, so explicitly fix the bounds if an
outer partition exists.
Remove very strange code that special-cased MSDOS file systems and refused
to newfs the partition (despite explicit request to do so) if it was
mountable.
Accidently carried over from a dim and distant past, before we had
fsck_newfs.
PR 55536: when we find existing partition tables and have alternative
formats available, offer to delete partitions and create new ones from
scratch (in some other or the same on-disk format).
Minor fix to previous: fix condition when we offer the partition type
switch - it makes sense even if the disk is partitioned but has no valid
partitions.
Before forcing MBR partitions into our disklabel, make sure they are not
there yet - could happen in various paths when reusing existing partitions
(or parts of that) - previously we would blindly duplicate identical
partitions.
Ooops, part of previous was not meant to be included yet
When renumbering partitions (after deletions) be slightly more lax
in matching, to cope with differences between MBR EFI partitions and
disklabel MSDOS partitions.
PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT
partition via "gpt type" - not "gpt label".
Fix copy & pasto (missing "again" label)
Remove dead code
Move MBR writing (if any) post disklabel writing, otherwise strange
interactions happen.
Properly convert partition default sizes in MB to number of sectors

(bouyer)

2020-10-15 18:58:59 UTC MAIN commitmail json YAML

Add missing 'error' declaration

(martin)

2020-10-15 18:57:16 UTC MAIN commitmail json YAML

Add missing 'error' declaration

(martin)

2020-10-15 17:44:45 UTC MAIN commitmail json YAML

2020-10-15 17:43:30 UTC MAIN commitmail json YAML

Remove unnecessary <sys/systm.h> include

(mgorny)

2020-10-15 17:43:09 UTC MAIN commitmail json YAML

Fix s87_tw reconstruction to correctly indicate register states

Fix the code reconstructing s87_tw (full tag word) from fx_sw (abridged
tag word) to correctly represent all register states.  The previous code
only distinguished between empty/non-empty registers, and assigned
'regular value' to all non-empty registers.  The new code explicitly
distinguishes the two other tag word values: empty and special.

(mgorny)

2020-10-15 17:42:31 UTC MAIN commitmail json YAML

Revert "Merge convert_xmm_s87.c into fpu.c"

I am going to add ATF tests for these two functions, and having them
in a separate file will make it more convenient to build and run them
in userspace.

(mgorny)

2020-10-15 17:40:14 UTC MAIN commitmail json YAML

Revert "Merge convert_xmm_s87.c into fpu.c"

I am going to add ATF tests for these two functions, and having them
in a separate file will make it more convenient to build and run them
in userspace.

(mgorny)

2020-10-15 17:38:41 UTC MAIN commitmail json YAML

9.99.74 changes ptrace_machdep_dorequest() to fix LWP support

(mgorny)

2020-10-15 17:37:36 UTC MAIN commitmail json YAML

Fix the machine-dependent ptrace requests to respect LWP number

Fix the machine-dependent ptrace register-related requests (e.g.
PT_GETXMMREGS, PT_GETXSTATE on x86) to correctly respect the LWP number
passed as the data argument.  Before this change, these requests
did not operate on the requested LWP of a multithreaded program.

This change required moving ptrace_update_lwp() out of unit scope,
and changing ptrace_machdep_dorequest() function to take a pointer
to pointer as the second argument, consistently with ptrace_regs().

I am planning to extend the ATF ptrace() register tests in the future
to check for regressions in multithreaded programs, as time permits.

Reviewed by kamil.

(mgorny)

2020-10-15 12:07:11 UTC netbsd-9 commitmail json YAML

2020-10-15 12:05:46 UTC netbsd-9 commitmail json YAML

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

external/mit/xf86-input-mouse/dist/src/bsd_mouse.c: revision 1.6
external/mit/xf86-input-mouse/dist/src/mouse.h: revision 1.7

If we get an absolute pointer event and we can query the min/max X and Y
values reported and it is in raw mode, use the screen dimensions to scale
the coordinates to fit the screen before feeding the event to the X server.

(martin)

2020-10-15 12:03:23 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/ums.c: revision 1.94
sys/dev/usb/ums.c: revision 1.99

Initialize tcpalib for ums devices.

In r1.3 of src/sys/dev/hid/hidms.c, tpcalib is used for any hidms
device reporting absolute coordinates. So ums devices reporting
absolute coordinates also need to initialize tcpalib - do it for
all ums devices. An uninitialized tcpalib stops a mouse with
absolute coordinates from "moving".

For absolute pointers, report min/max X and Y values using
WSMOUSEIO_[SG]CALIBCOORDS ioctl.

(martin)

2020-10-15 10:20:44 UTC MAIN commitmail json YAML

net: remove IFEF_NO_LINK_STATE_CHANGE

This flag was only set for virtual interfaces.
All virtual interfaces have a means of knowing if they are going to work
or not and as such now support link state changes.

If we want this flag back, it should be used as an indicator that
the interfaces does not support link state changes that userland can use
so it can make a decision on what to do when the link state is UNKNOWN.

(roy)

2020-10-15 10:09:50 UTC MAIN commitmail json YAML

wg: with no peers, the link status is DOWN, otherwise UP

This mirrors the recent changes to gif(4) where the link is UP when a
tunnel is set, otherwise DOWN.

(roy)

2020-10-15 09:54:22 UTC MAIN commitmail json YAML

New sentence, new line. Fix xref.

(wiz)

2020-10-15 09:37:41 UTC MAIN commitmail json YAML

Rename xhci_op_barrier to xhci_barrier and remove offset/length parameters.
Barriers will be applied to the entire XHCI register space.

(jmcneill)

2020-10-15 09:33:44 UTC MAIN commitmail json YAML

Initialise xhci_softc sc_ios

(jmcneill)

2020-10-15 09:33:17 UTC MAIN commitmail json YAML

Initialise xhci_softc sc_ios

(jmcneill)

2020-10-15 09:32:40 UTC MAIN commitmail json YAML

Initialise xhci_softc sc_ios

(jmcneill)

2020-10-15 08:59:57 UTC MAIN commitmail json YAML

Only add iso_image target for aarch64

(jmcneill)

2020-10-15 08:37:20 UTC MAIN commitmail json YAML

slightly optimized loop for trap_doast() calls

(ryo)

2020-10-15 07:05:27 UTC MAIN commitmail json YAML

Update "rtsol" keyword: leave IPv6 autoconf on

There is no need to turn off ipv6_autoconf or dhcp6 in dhcpcd to match
the previous behaviour with in-kernel RA processing.

(kim)

2020-10-15 05:50:15 UTC MAIN commitmail json YAML

2020-10-15 05:43:38 UTC MAIN commitmail json YAML

Remove '_OFFSETOF' prefix for genassm(1) generate CPP identifers for
consistency with other arches.

NFCI and libc.so is the same before and after.

(skrll)

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

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

2020-10-15 04:39:25 UTC MAIN commitmail json YAML

add vmx(4) driver. tested on ESXi-Arm

(ryo)

2020-10-15 04:37:48 UTC MAIN commitmail json YAML

Reduces useless "vmxnet3_read_cmd(sc, VMXNET3_CMD_GET_LINK)" calls

(ryo)

2020-10-15 04:33:24 UTC MAIN commitmail json YAML

Fixed a bug where 'ifconfig vmx0 down up' caused a failure to send.
This procedure was leaving sc->vmx_link_active = 0.

ok nakahara@

(ryo)

2020-10-15 04:21:53 UTC MAIN commitmail json YAML

various updates from <henrik@gulbra.net> / freebsd.  the list from Henrik:

bozohttpd.8:
    o Added -d flag to the man page
    o Moved -E flag in man page to keep alphabetic order
    o Grammar fix for description of -E flag in man page
    o Moved a word in the man description for the -f flag
    o Made -f imply -b as a backwards-compatible shortcut
    o Updated man description of -n to mention Lua scripts
    o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
    o Removed obsolete comment about ~user missing cgi-bin support
    o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
    o Added USE_ARG macro call for sig, which was otherwise not used
    o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
    o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
    o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
    o Added USE_ARG macro call for signo, which was otherwise not used
    o Made -f imply -b as a backwards-compatible shortcut

main.c:
    o Simplified -b text to be symmetric with that for the -f option
    o Updated -C text to make "suffix" explicit; it's better than "arg"
    o Changed to only show the -E description if have_user is true
    o Always show the -e option, which incorrectly used the -E logic
    o Renamed have_all to have_core; it didn't mean "all" options
    o Added three missing tabs for the description of the -G option
    o Updated -L text to make "prefix" explicit; it's better than "arg"
    o Updated -M text to make "suffix" explicit; it's slightly better
    o Added a previously missing description for the -n option
    o Documented the otherwise obscure valid types for the -T option
    o Shortened "username" to "user" to match the actual help text
    o Moved handling of -c below that for -C to standardize the order
    o Broke the enabling test for -C into two lines for consistency
    o Inverted the enabling test for -E; this is what was meant, right?
    o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
    o Added USE_ARG for httpd, which is not used if SSL has been excluded

(mrg)

2020-10-15 02:54:10 UTC MAIN commitmail json YAML

l2tp: Set the link state UP if we have a tunnel, otherwise DOWN.

(roy)

2020-10-15 02:19:24 UTC MAIN commitmail json YAML

set -D_GNU_SOURCE in Makefile.boot.  from hadrien.lacour@posteo.net.
also match %2F as well as %2f.  from leah@vuxu.org.
introduce defines for "80" and "443".  copyright maint.

(mrg)

2020-10-15 01:00:01 UTC MAIN commitmail json YAML

Expose a bunch of CPU details, including implementation version and
architecture extensions, via sysctl:

hw.cpu0.model = 21264A-0 (EV67)
hw.cpu0.major = 11
hw.cpu0.minor = 0
hw.cpu0.implver = 2
hw.cpu0.amask = 0x1307
hw.cpu0.bwx = 1
hw.cpu0.fix = 1
hw.cpu0.cix = 1
hw.cpu0.mvi = 1
hw.cpu0.pat = 1
hw.cpu0.pmi = 1
hw.cpu0.vax_fp = 1
hw.cpu0.ieee_fp = 1
hw.cpu0.primary_eligible = 1
hw.cpu0.primary = 1
hw.cpu0.cpu_id = 0
hw.cpu0.pcc_freq = 239990688

as well as some potentially interesting system-level variables:

machdep.cctr = 0
machdep.is_qemu = 1

Should address the basic concern in PR port-alpha/15835.

(thorpej)

2020-10-15 00:55:09 UTC MAIN commitmail json YAML

Fix the bit position for the PMI bit in ALPHA_AMASK_BITS.

(thorpej)

2020-10-14 18:48:05 UTC MAIN commitmail json YAML

ipsecif: Set the link state UP if we have a tunnel, otherwise DOWN.

(roy)

2020-10-14 18:32:04 UTC MAIN commitmail json YAML

rain(6): Make the default delay useful for modern terminals

(nia)

2020-10-14 16:10:32 UTC MAIN commitmail json YAML

loop: set LINK_STATE_UP a touch earlier

(roy)

2020-10-14 15:55:49 UTC MAIN commitmail json YAML

loop: this interface's link state cannot be anything other than UP

Let's not pretend it's UNKNOWN anymore.

(roy)

2020-10-14 15:22:17 UTC MAIN commitmail json YAML

gif: Set the link state UP if we have a tunnel, otherwise DOWN.

(roy)

2020-10-14 15:09:10 UTC MAIN commitmail json YAML

Properly convert partition default sizes in MB to number of sectors

(martin)

2020-10-14 14:37:59 UTC MAIN commitmail json YAML

Move MBR writing (if any) post disklabel writing, otherwise strange
interactions happen.

(martin)

2020-10-14 14:02:43 UTC MAIN commitmail json YAML

Limit the switch_to_thread() calls in startup_inferior()

Do not jump over the threads during the startup unless we encounter
TARGET_WAITKIND_STOPPED with SIGTRAP or TARGET_WAITKIND_EXECD.

Otherwise whenever a startup-with-shell processes signals on the
startup stage, it might indicate to switch to a non-existing
thread or a special-thread number (target lwp=0 on NetBSD means
that a signal was directed to all threads within a process).

This caused a crash with tcsh on NetBSD, where the tcsh shell
runs startup detection of the hostname. This action involves
spwaning a new process through fork.

GDB crashes this way:
$ SHELL=tcsh /usr/bin/gdb echo
(gdb) r
Starting program: /bin/echo
/usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/thread.c:1309:
internal-error: void switch_to_thread(thread_info*):
Assertion `thr != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

This patch has been submitted upstream for review:

https://sourceware.org/pipermail/gdb-patches/2020-October/172558.html

(kamil)

2020-10-14 13:43:56 UTC MAIN commitmail json YAML

carp: Don't set a link level address if vhid == -1

Link level address for carp is dervied from vhid.
Until vhid is set, carp is useless, so don't give it a link level address
until a vhid is set.

This fixes recent test case breakage where carp was fixed to actually
print the ethernet address set by default. Note that neither carp nor
the test case itself was actually broken as the error is the common
ATF net code assuming that a cloned interface's link level address is
unique upon creation.

(roy)

2020-10-14 13:37:14 UTC MAIN commitmail json YAML

ifconfig: go back to using direct ioctls rather than data from getifaddrs

AF_LINK may not be the first address returned for the interface.
Technically, it *might* not even exist on the interface even though
other families do.
This is likely a driver bug if this really is the case though.

As such it's just easier to use direct ioctls rather than thump around
getifaddrs results. As it stands, the code makes a lot of getifaddrs
calls anyway, so an extra ioctl or two won't break the bank.

(roy)

2020-10-14 13:20:27 UTC MAIN commitmail json YAML

2020-10-14 12:30:39 UTC MAIN commitmail json YAML

2020-10-14 10:26:59 UTC MAIN commitmail json YAML

2020-10-14 10:19:11 UTC MAIN commitmail json YAML

2020-10-14 08:49:04 UTC MAIN commitmail json YAML

2020-10-14 07:32:53 UTC MAIN commitmail json YAML

worms(6): Use a reasonable default delay for non-1980s terminals.

This is still fast, but not unreasonably fast.

(nia)

2020-10-14 05:19:41 UTC MAIN commitmail json YAML

2020-10-14 04:17:43 UTC MAIN commitmail json YAML

Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT
partition via "gpt type" - not "gpt label".

(martin)

2020-10-14 00:59:50 UTC MAIN commitmail json YAML

Add a mechanism to allow a platform to optionally shelter some region
of physical memory from random allocations from the default VM page
free list.  Use this hook to shelter regions within 0-16MB of physical
RAM on Jensen and Irongate systems; those platforms do not have SGMAP
DMA, and so we need to shelter this range so that devices using ISA DMA
(e.g. floppy controller) have an opportunity to allocate DMA-safe memory.

PR port-alpha/27087

(thorpej)

2020-10-13 21:27:18 UTC MAIN commitmail json YAML

Use load-acquire exclusive and store-release exclusive (and remove the
barrier instructions) as suggested by riastradh a little while ago.

(skrll)

2020-10-13 21:24:22 UTC MAIN commitmail json YAML

Use corrcet membar_exit barrier

(skrll)

2020-10-13 21:22:12 UTC MAIN commitmail json YAML

Use the correct barriers - all of membar_{sync,producer,consumer} have
less scope than before.

LGTM from riastradh

(skrll)

2020-10-13 21:17:35 UTC MAIN commitmail json YAML

Remove memory barriers from the atomic ops macros in the same way as was
done for the other atomic ops earlier.

(skrll)

2020-10-13 21:06:18 UTC MAIN commitmail json YAML

2020-10-13 17:26:28 UTC MAIN commitmail json YAML

2020-10-13 13:56:34 UTC MAIN commitmail json YAML

Convert the CIRCLEQ (from sys/queue.h) usage to TAILQ

The CIRCLEQ API from sys/queue.h is deprecated since NetBSD 7 and is
already gone from FreeBSD and OpenBSD.

(kamil)

2020-10-13 13:15:39 UTC MAIN commitmail json YAML

Suspend file system before unmounting in mount_domount() error path
to prevent diagnostic assertions from unmount/flush.

Reported-by: syzbot+8d557f49c8b7888182eb@syzkaller.appspotmail.com
Reported-by: syzbot+e87fe1e769a3426d9bf3@syzkaller.appspotmail.com
Reported-by: syzbot+9c5b86e651e98c5bf438@syzkaller.appspotmail.com
Reported-by: syzbot+610b614af0d66179ca78@syzkaller.appspotmail.com
Reported-by: syzbot+7818ff113a1535ebc724@syzkaller.appspotmail.com

(hannken)

2020-10-13 11:28:32 UTC MAIN commitmail json YAML

When renumbering partitions (after deletions) be slightly more lax
in matching, to cope with differences between MBR EFI partitions and
disklabel MSDOS partitions.

(martin)

2020-10-13 10:44:25 UTC MAIN commitmail json YAML

Ooops, part of previous was not meant to be included yet

(martin)

2020-10-13 10:43:23 UTC MAIN commitmail json YAML

Before forcing MBR partitions into our disklabel, make sure they are not
there yet - could happen in various paths when reusing existing partitions
(or parts of that) - previously we would blindly duplicate identical
partitions.

(martin)

2020-10-13 09:10:38 UTC MAIN commitmail json YAML

Fix previous; do not override SCRIPTS so that ctwm_app_menu gets installed.

(rin)

2020-10-13 09:00:17 UTC MAIN commitmail json YAML

Argument for AUDIO_WSEEK ioctl is u_long, not int.

Fix false positive for aarch64eb (LP64BE):
AUDIO_WSEEK, failed, Line 4467: n expects 4 but 0

(rin)

2020-10-13 07:12:00 UTC MAIN commitmail json YAML

Reduce diff with upstream a bit.
No functional changes.

(rin)

2020-10-13 07:04:49 UTC MAIN commitmail json YAML

BE32 binaries are no longer supported for ARMv7 and later, and
therefore for aarch64eb.

Reject them with ENOEXEC, rather than causing illegal instruction
exceptions due to unexpected binary format.

(rin)

2020-10-13 06:58:57 UTC MAIN commitmail json YAML

Bump soft/hard limits for stack to 6MB for aarch64{,eb}, where old value
(~4MB) is too small to be accepted.

(rin)

2020-10-13 06:55:25 UTC MAIN commitmail json YAML

For aarch64eb, no SIGBUS signal for unaligned accesses.
Convert to preprocessor directives.

(rin)

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

2020-10-13 01:59:55 UTC MAIN commitmail json YAML

Decorate the aarch64 signal trampoline with CFI attributes easing unwinding

Now, the unwinders (in backtrace(3) and similar) can unwind properly
the stack from a signal handler.

(kamil)

2020-10-13 01:59:32 UTC MAIN commitmail json YAML

Document CPUFLAGS here (it's already documented in share/mk/bsd.README).
This will address the initial concern in PR port-alpha/55545.

(thorpej)

2020-10-12 23:58:14 UTC MAIN commitmail json YAML

2020-10-12 23:56:08 UTC MAIN commitmail json YAML

Decorate the i386 signal trampoline with CFI attributes easing unwinding

Now, the unwinders (in backtrace(3) and similar) can unwind properly
the stack from a signal handler.

(kamil)

2020-10-12 21:33:46 UTC MAIN commitmail json YAML

2020-10-12 21:14:37 UTC MAIN commitmail json YAML

Mention HOST_CFLAGS and HOST_CXXFLAGS.

(uwe)

2020-10-12 21:12:34 UTC MAIN commitmail json YAML

If this file is processed with real roff (doc.tmac) tweak things to
make ascii output as close to the mandoc output as possible.
There are only two diffs:
- groff renders em-dash as -- in the NAME section
- mandoc misses "NetBSD" in the "NetBSD System Manager's Manual"
  section header

(uwe)

2020-10-12 21:05:54 UTC MAIN commitmail json YAML

Bump date and regen for BUILDING.mdoc revision 1.127
that introduced build.sh -c <compiler> option.

(uwe)

2020-10-12 17:55:54 UTC MAIN commitmail json YAML

Decorate the x86_64 signal trampoline with CFI attributes easing unwinding

Combine the approach provided by Nikhil Benesch and Andrew Cagney.

Now, the unwinders (in gccgo, backtrace(3), etc) can unwind properly
the stack from a signal handler.

Fixes lib/55719 by Nikhil Benesch

(kamil)

2020-10-12 16:54:43 UTC MAIN commitmail json YAML

powerd: Stop crashing if entries are not found in the dictionary

If the first three are not found, log a diagnostic and do nothing.
If the latter two are not found, set them to NULL rather than garbage.

(roy)

2020-10-12 16:27:24 UTC MAIN commitmail json YAML

Minor fix to previous: fix condition when we offer the partition type
switch - it makes sense even if the disk is partitioned but has no valid
partitions.

(martin)

2020-10-12 16:14:37 UTC MAIN commitmail json YAML

2020-10-12 15:24:16 UTC MAIN commitmail json YAML

xclock also gets AlwaysOnTop

(nia)

2020-10-12 15:18:48 UTC MAIN commitmail json YAML

carp: link state is DOWN until it becomes a MASTER

This is consitent with other BSD's handling of CARP and means
we don't have to carry a custom flag for it.

(roy)

2020-10-12 14:29:41 UTC MAIN commitmail json YAML

Remove very strange code that special-cased MSDOS file systems and refused
to newfs the partition (despite explicit request to do so) if it was
mountable.
Accidently carried over from a dim and distant past, before we had
fsck_newfs.

(martin)

2020-10-12 14:10:38 UTC MAIN commitmail json YAML

Note update to dhcpcd-9.3.1

(roy)

2020-10-12 14:09:03 UTC MAIN commitmail json YAML

2020-10-12 13:54:51 UTC MAIN commitmail json YAML

- remove duplicate comment
- flush after printing the number
(from kre@)

(christos)

2020-10-12 13:53:43 UTC MAIN commitmail json YAML

more clarifications.

(christos)

2020-10-12 12:17:29 UTC MAIN commitmail json YAML

Previously we abused pm->ptstart / pm->ptsize to pass the bounds of the
NetBSD outer partition to the inner partition editor - but now this is
not a valid assumption any more, so explicitly fix the bounds if an
outer partition exists.

(martin)

2020-10-12 12:11:55 UTC MAIN commitmail json YAML

Scale XTerm and other X11 apps using the same DPI detection as ctwm

(nia)

2020-10-12 12:11:03 UTC MAIN commitmail json YAML

Fix typo in comment

(ryoon)

2020-10-12 11:46:17 UTC MAIN commitmail json YAML

2020-10-12 11:43:11 UTC MAIN commitmail json YAML

define xsetroot in the right place

(nia)

2020-10-12 11:23:46 UTC MAIN commitmail json YAML

Fix editing start and size of not yet existing outer partitions.

(martin)

2020-10-12 11:07:27 UTC MAIN commitmail json YAML

carp: Set ethernet address just before interface registation

Otherwise ifconfig reports SIOCGLIFADDR errors.

(roy)

2020-10-12 11:07:24 UTC MAIN commitmail json YAML

Automatic font scaling based on screen size in the default ctwm config.

Based on a shell script which gets the DPI from the X server, and if this
fails, attempts to guess based on resolution. Taking advantage of M4 macros
in the ctwmrc, we can also scale the workspace manager and window list.

The following sizes are supported: 6x12 (<800x600) 8x16 12x24 (4k and higher)
16x32 32x64

Also makes Spleen the default font in ctwm

(nia)

2020-10-12 10:27:57 UTC netbsd-9 commitmail json YAML

2020-10-12 10:26:59 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1111):

external/cddl/osnet/sys/sys/cred.h: revision 1.8

Stub groupmember() has to test both group list and current group id.

Fixes kern/55675: ZFS mounts do not work with setuid programs

(martin)

2020-10-12 10:25:09 UTC netbsd-8 commitmail json YAML

2020-10-12 10:23:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1616):

external/bsd/ntp/bin/ntpq/ntpq.8: file removal
external/bsd/ntp/bin/Makefile.inc: revision 1.4
external/bsd/ntp/bin/ntpd/ntpd.8: file removal
external/bsd/ntp/bin/ntpq/Makefile: revision 1.9 (patch)
external/bsd/ntp/bin/ntpd/Makefile: revision 1.28 (patch)
external/bsd/ntp/bin/sntp/sntp.1: file removal
external/bsd/ntp/bin/ntpd/ntp.keys.5: file removal
external/bsd/ntp/bin/ntpd/ntp.conf.5: file removal
external/bsd/ntp/Makefile.inc: revision 1.20
external/bsd/ntp/Makefile.inc: revision 1.21
external/bsd/ntp/bin/sntp/Makefile: revision 1.8
external/bsd/ntp/bin/ntp-keygen/Makefile: revision 1.7 (patch)
external/bsd/ntp/bin/sntp/Makefile: revision 1.9 (patch)
external/bsd/ntp/bin/ntp-keygen/ntp-keygen.8: file removal
external/bsd/ntp/bin/ntpdc/ntpdc.8: file removal
external/bsd/ntp/bin/ntpdc/Makefile: revision 1.7 (patch)

Fix build; clean manpages only if they are generated automatically.
include bsd.own.mk so that ../../Makefile.inc does not do it...

Add rules for manual pages builds, remove including Makefile.inc

Use .PARSEDIR

PR/55710: Kimmo Suominen: Delete manual pages so that they get copy from the
imported, already generated ones.

(martin)

2020-10-12 10:17:33 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1109):

external/bsd/ntp/bin/ntpq/ntpq.8: file removal
external/bsd/ntp/bin/Makefile.inc: revision 1.4
external/bsd/ntp/bin/ntpd/ntpd.8: file removal
external/bsd/ntp/bin/ntpq/Makefile: revision 1.9 (patch)
external/bsd/ntp/bin/ntpd/Makefile: revision 1.28 (patch)
external/bsd/ntp/bin/sntp/sntp.1: file removal
external/bsd/ntp/bin/ntpd/ntp.keys.5: file removal
external/bsd/ntp/bin/ntpd/ntp.conf.5: file removal
external/bsd/ntp/Makefile.inc: revision 1.20
external/bsd/ntp/Makefile.inc: revision 1.21
external/bsd/ntp/bin/sntp/Makefile: revision 1.8
external/bsd/ntp/bin/ntp-keygen/Makefile: revision 1.7 (patch)
external/bsd/ntp/bin/sntp/Makefile: revision 1.9 (patch)
external/bsd/ntp/bin/ntp-keygen/ntp-keygen.8: file removal
external/bsd/ntp/bin/ntpdc/ntpdc.8: file removal
external/bsd/ntp/bin/ntpdc/Makefile: revision 1.7 (patch)

Fix build; clean manpages only if they are generated automatically.
include bsd.own.mk so that ../../Makefile.inc does not do it...

Add rules for manual pages builds, remove including Makefile.inc

Use .PARSEDIR

PR/55710: Kimmo Suominen: Delete manual pages so that they get copy from the
imported, already generated ones.

(martin)

2020-10-12 08:21:21 UTC MAIN commitmail json YAML

Stub groupmember() has to test both group list and current group id.

Fixes kern/55675: ZFS mounts do not work with setuid programs

(hannken)

2020-10-11 22:46:25 UTC MAIN commitmail json YAML

2020-10-11 22:38:48 UTC MAIN commitmail json YAML

2020-10-11 22:14:55 UTC MAIN commitmail json YAML

Also edns-udp-size.

(jnemeth)

2020-10-11 22:11:37 UTC MAIN commitmail json YAML

Set max-udp-size as per DNS flag day 2020, see
https://www.isc.org/blogs/dns-flag-day-2020-2/ .

(jnemeth)

2020-10-11 21:41:57 UTC MAIN commitmail json YAML

Handle EDID:N entries, where N is the port number, so that we can set up
the display on port1 when port0 has no EDID information.
Try harder not to return NULL from radeonfb_modelookup() because we use
the result without checking later.
While here, adjust RADEONFB_DEBUG output:
  don't print RADEON_PIXCLKS_CNTL (fixes a crash on sparc64 because it's
  not aligned)
  don't ignore the bottom 200 lines of the display (for no apparent reason))

(jdc)

2020-10-11 21:32:37 UTC MAIN commitmail json YAML

ifconfig: if SIOCGLIFADDR fails, continue to the next address

(roy)

2020-10-11 19:39:23 UTC MAIN commitmail json YAML

2020-10-11 18:48:20 UTC MAIN commitmail json YAML

mention hex numbers

(christos)

2020-10-11 18:46:21 UTC MAIN commitmail json YAML

Remove is_hex_str() (trying to guess if a number was hex or not). It is not
documented and can lead to unexpected behavior.

(christos)

2020-10-11 18:43:51 UTC MAIN commitmail json YAML

simplify: use two arguments again, suggested by kre@

(christos)

2020-10-11 18:39:48 UTC MAIN commitmail json YAML

initclocks() now fixes up tick and tickadj if hz changes, so we no
longer need to do it.

(thorpej)

2020-10-11 18:39:09 UTC MAIN commitmail json YAML

Call cpu_initclocks() before registering the default timecounter,
in case it updates hz.  If hz changes, recalculate tick and tickadj.

(thorpej)

2020-10-11 17:49:08 UTC MAIN commitmail json YAML

Generate oldschool Latin-1 variants of Spleen fonts.

Needed so ctwm can load them. ctwm uses XCreateFontSet which for some
reason seems adverse to returning UTF-8 fonts...

(nia)

2020-10-11 17:18:34 UTC MAIN commitmail json YAML

>From gson@
- don't assume -h is always on for large factors
- fix saved large factors printing when -h

(christos)

2020-10-11 17:17:39 UTC MAIN commitmail json YAML

Add tests for h and x flags

(christos)

2020-10-11 16:22:03 UTC MAIN commitmail json YAML

Define _ARM_ARCH_8 when __ARM_ARCH_8A (no trailing double underscore) as
it is defined by gcc.

__ARM_ARCH_8A__ (with trailing double underscore) seems to be a typo (or
maybe historical)

(skrll)

2020-10-11 15:33:18 UTC MAIN commitmail json YAML

rk3399_pci: support for PCI express switches / bridges / multiple buses

There were two isses that prevented this from working:

1. We must use type 1 configuration cycles when accessing bus 2 and
beyond, but type 0 configuration cycles for bus 0 and 1.

2. The hardware address decoder cannot be used to decode the bus portion
of the ECAM address. Due to the physical SoC address of the remote device
region not having sufficient alignment the wrong bus address would go out
on the wire. Also the mapped region is too small to address busses
beyond bus31.

Fix: Reduce the number of ECAM translated bits to dev+func only.
For each configuration space access, acquire an exclusive lock
and reprogram the translator with the correct bus number and access type.
Config space is accessed sufficiently infrequent for this to not cause
any performance problems.

(tnn)

2020-10-11 14:54:08 UTC MAIN commitmail json YAML

Exclude live images from install media

(jmcneill)

2020-10-11 14:24:50 UTC MAIN commitmail json YAML

2020-10-11 14:24:31 UTC MAIN commitmail json YAML

2020-10-11 14:10:34 UTC MAIN commitmail json YAML

2020-10-11 14:10:04 UTC MAIN commitmail json YAML

Copy release to /${RELEASEMACHINEDIR} instead of /${MACHINE} to match
sysinst expectations.

(jmcneill)

2020-10-11 14:03:33 UTC MAIN commitmail json YAML

2020-10-11 12:36:14 UTC netbsd-9 commitmail json YAML

2020-10-11 12:34:30 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1110):

sys/dev/dkwedge/dk.c: revision 1.102
sys/dev/ccd.c: revision 1.185
sbin/ccdconfig/ccdconfig.c: revision 1.58

Use raw device for configuring units. This is necessary as
having a block device opened prevents autodiscovery of wedges.

Fix ioctl locking. Add dkdriver.

Check dkdriver before calling a driver function.

(martin)

2020-10-11 12:31:49 UTC netbsd-8 commitmail json YAML

2020-10-11 11:26:25 UTC netbsd-9 commitmail json YAML

src/distrib/sets/lists/base/mi@1.1209.2.6 / diff / nxr@1.1209.2.6
src/doc/3RDPARTY@1.1640.2.18 / diff / nxr@1.1640.2.18
src/external/public-domain/tz/dist/Makefile@1.1.1.24.2.3 / diff / nxr@1.1.1.24.2.3
src/external/public-domain/tz/dist/NEWS@1.1.1.27.2.3 / diff / nxr@1.1.1.27.2.3
src/external/public-domain/tz/dist/README@1.1.1.8.2.1 / diff / nxr@1.1.1.8.2.1
src/external/public-domain/tz/dist/TZDATA_VERSION@1.17.2.3 / diff / nxr@1.17.2.3
src/external/public-domain/tz/dist/africa@1.1.1.20.2.3 / diff / nxr@1.1.1.20.2.3
src/external/public-domain/tz/dist/antarctica@1.1.1.11.2.2 / diff / nxr@1.1.1.11.2.2
src/external/public-domain/tz/dist/asia@1.1.1.23.2.3 / diff / nxr@1.1.1.23.2.3
src/external/public-domain/tz/dist/australasia@1.1.1.17.2.2 / diff / nxr@1.1.1.17.2.2
src/external/public-domain/tz/dist/backzone@1.1.1.16.2.3 / diff / nxr@1.1.1.16.2.3
src/external/public-domain/tz/dist/europe@1.1.1.24.2.3 / diff / nxr@1.1.1.24.2.3
src/external/public-domain/tz/dist/leap-seconds.list@1.1.1.11.2.3 / diff / nxr@1.1.1.11.2.3
src/external/public-domain/tz/dist/leapseconds@1.1.1.13.2.3 / diff / nxr@1.1.1.13.2.3
src/external/public-domain/tz/dist/leapseconds.awk@1.1.1.8.2.3 / diff / nxr@1.1.1.8.2.3
src/external/public-domain/tz/dist/northamerica@1.1.1.23.2.3 / diff / nxr@1.1.1.23.2.3
src/external/public-domain/tz/dist/pacificnew deleted
src/external/public-domain/tz/dist/southamerica@1.1.1.15.2.2 / diff / nxr@1.1.1.15.2.2
src/external/public-domain/tz/dist/systemv deleted
src/external/public-domain/tz/dist/theory.html@1.1.1.8.2.3 / diff / nxr@1.1.1.8.2.3
      :
(more 5 files)
Pull up the following, requested by kre in #1108:

external/public-domain/tz/dist/systemv          delete
external/public-domain/tz/dist/pacificnew      delete
external/public-domain/tz/dist/yearistype.sh    delete
external/public-domain/tz/dist/Makefile        up to 1.1.1.27
external/public-domain/tz/dist/NEWS            up to 1.1.1.30
external/public-domain/tz/dist/README          up to 1.1.1.9
external/public-domain/tz/dist/TZDATA_VERSION  up to 1.20
external/public-domain/tz/dist/africa          up to 1.1.1.23
external/public-domain/tz/dist/antarctica      up to 1.1.1.13
external/public-domain/tz/dist/asia            up to 1.1.1.26
external/public-domain/tz/dist/australasia      up to 1.1.1.19
external/public-domain/tz/dist/backzone        up to 1.1.1.19
external/public-domain/tz/dist/europe          up to 1.1.1.27
external/public-domain/tz/dist/leap-seconds.list up to 1.1.1.14
external/public-domain/tz/dist/leapseconds      up to 1.1.1.16
external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.11
external/public-domain/tz/dist/northamerica    up to 1.1.1.26
external/public-domain/tz/dist/southamerica    up to 1.1.1.17
external/public-domain/tz/dist/theory.html      up to 1.1.1.11
external/public-domain/tz/dist/version          up to 1.1.1.17
external/public-domain/tz/dist/zishrink.awk    up to 1.1.1.7
external/public-domain/tz/dist/zoneinfo2tdf.pl  up to 1.1.1.4
external/public-domain/tz/share/zoneinfo/Makefile 1.4
distrib/sets/lists/base/mi 1.1266
doc/3RDPARTY 1.1750 (patch)

Import tzdata2020b:
  Revised predictions for Morocco's changes starting in 2023.
  Canada's Yukon changes to -07 on 2020-11-01, not 2020-03-08.
  Macquarie Island has stayed in sync with Tasmania since 2011.
  Casey, Antarctica is at +08 in winter and +11 in summer.

(martin)

2020-10-11 10:53:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1615):

external/bsd/ntp/dist/libntp/work_fork.c: revision 1.15

Wait for the asynchronous dns resolver child to be done (and close the
socket descriptors) before returning. Otherwise we might get bind errors.

Reported by kim@, fixed by mlelstv@.

(martin)

2020-10-11 10:51:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1107):

external/bsd/ntp/dist/libntp/work_fork.c: revision 1.15

Wait for the asynchronous dns resolver child to be done (and close the
socket descriptors) before returning. Otherwise we might get bind errors.

Reported by kim@, fixed by mlelstv@.

(martin)

2020-10-11 10:12:53 UTC MAIN commitmail json YAML

slightly lower workspace manager size

this works nicely on a 12.5" FHD screen

(nia)

2020-10-11 10:09:09 UTC MAIN commitmail json YAML

2020-10-11 10:08:26 UTC MAIN commitmail json YAML

allow xsetroot to be used in default xinitrc

(nia)

2020-10-11 10:02:51 UTC MAIN commitmail json YAML

allow the root window to be freely painted with e.g. xsetroot

it came up during initial review that it may be confusing that xsetroot
doesn't work by default

(nia)

2020-10-11 07:08:29 UTC MAIN commitmail json YAML

mute binding is annoying when there's hardware mute

(nia)

2020-10-11 07:07:32 UTC MAIN commitmail json YAML

2020-10-11 00:33:31 UTC MAIN commitmail json YAML

2020-10-10 21:59:04 UTC MAIN commitmail json YAML

2020-10-10 21:50:53 UTC MAIN commitmail json YAML

If we get an absolute pointer event and we can query the min/max X and Y
values reported and it is in raw mode, use the screen dimensions to scale
the coordinates to fit the screen before feeding the event to the X server.

(jmcneill)

2020-10-10 21:47:43 UTC MAIN commitmail json YAML

For absolute pointers, report min/max X and Y values using
WSMOUSEIO_[SG]CALIBCOORDS ioctl.

(jmcneill)