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

2024-05-10 06:29:16 UTC Now

2022-07-15 17:19:23 UTC netbsd-8 commitmail json YAML

Apply patch, requested by mrg in ticket #1752:

xsrc-9/external/mit/xorg-server/dist/xkb/xkb.c apply patch

Cherry-pick upstream fixes for
* CVE-2022-2319/ZDI-CAN-16062: X.Org Server ProcXkbSetGeometry Out-Of-Bounds
  Access
* CVE-2022-2320/ZDI-CAN-16070: X.Org Server ProcXkbSetDeviceInfo Out-Of-Bounds
  Access

(martin)

2022-07-15 17:18:23 UTC netbsd-9 commitmail json YAML

2022-07-15 17:17:02 UTC netbsd-9 commitmail json YAML

Apply patch, requested by mrg in ticket #1478:

xsrc-9/external/mit/xorg-server/dist/xkb/xkb.c apply patch

Cherry-pick upstream fixes for
* CVE-2022-2319/ZDI-CAN-16062: X.Org Server ProcXkbSetGeometry Out-Of-Bounds
  Access
* CVE-2022-2320/ZDI-CAN-16070: X.Org Server ProcXkbSetDeviceInfo Out-Of-Bounds
  Access

(martin)

2022-07-15 11:34:59 UTC MAIN commitmail json YAML

properly mark glint_drv has obsolete.

(mrg)

2022-07-15 10:44:21 UTC MAIN commitmail json YAML

2022-07-15 09:12:24 UTC MAIN commitmail json YAML

2022-07-15 09:11:02 UTC MAIN commitmail json YAML

update for xorg-server 21.1.4.

(mrg)

2022-07-15 09:10:38 UTC MAIN commitmail json YAML

2022-07-15 06:42:08 UTC MAIN commitmail json YAML

include the return value of rv770_restrict_performance_levels_before_switch()
in error messages.

(mrg)

2022-07-15 06:40:24 UTC MAIN commitmail json YAML

convert "ksyms: checking <symbol>" into KSYMS_DEBUG over normal DEBUG.

(mrg)

2022-07-15 06:39:06 UTC MAIN commitmail json YAML

add pool usage to the output, sharing the line with swap data.

looks like, eg:

Swap: 64G Total, 135M Used, 64G Free / Pools: 16G Used

future work:  figure out the utilisation percentage like vmstat -m

(mrg)

2022-07-15 06:03:39 UTC MAIN commitmail json YAML

2022-07-15 05:26:08 UTC MAIN commitmail json YAML

add a note about xorg-server possibly breaking builds.

(mrg)

2022-07-15 05:11:14 UTC MAIN commitmail json YAML

properly mark an obsolete file obsolete.

(mrg)

2022-07-15 05:08:56 UTC MAIN commitmail json YAML

2022-07-15 04:53:05 UTC MAIN commitmail json YAML

adjust the list of drivers per platform / xorg-server version for 21.1.3.

while here, remove x86 support for xorg-server 1.10.  the set lists were
out of date for ages, and have also been cleaned up.

the tga, trident, and s3 drivers are disabled for xorg-server 21.1.3, on
top of the various previously disabled for newer server drivers.

(mrg)

2022-07-15 04:51:29 UTC MAIN commitmail json YAML

update for xorg-server 21.1.3.

(mrg)

2022-07-15 04:47:56 UTC MAIN commitmail json YAML

2022-07-15 04:30:06 UTC MAIN commitmail json YAML

2022-07-15 04:18:56 UTC MAIN commitmail json YAML

src/external/mit/xorg/server/drivers/Makefile@1.106 / diff / nxr@1.106
src/external/mit/xorg/server/drivers/Makefile.xf86-driver@1.33 / diff / nxr@1.33
src/external/mit/xorg/server/xorg-server/Makefile.Xserver@1.24 / diff / nxr@1.24
src/external/mit/xorg/server/xorg-server/Makefile.serverlib@1.16 / diff / nxr@1.16
src/external/mit/xorg/server/xorg-server/Makefile.servermod@1.9 / diff / nxr@1.9
src/external/mit/xorg/server/xorg-server/config/Makefile@1.4 / diff / nxr@1.4
src/external/mit/xorg/server/xorg-server/dix/Makefile@1.19 / diff / nxr@1.19
src/external/mit/xorg/server/xorg-server/hw/xfree86/Makefile@1.41 / diff / nxr@1.41
src/external/mit/xorg/server/xorg-server/hw/xfree86/Xorg/Makefile@1.22 / diff / nxr@1.22
src/external/mit/xorg/server/xorg-server/hw/xfree86/common/Makefile@1.35 / diff / nxr@1.35
src/external/mit/xorg/server/xorg-server/hw/xfree86/dixmods/Makefile@1.16 / diff / nxr@1.16
src/external/mit/xorg/server/xorg-server/hw/xfree86/int10/Makefile@1.11 / diff / nxr@1.11
src/external/mit/xorg/server/xorg-server/hw/xfree86/ramdac/Makefile@1.9 / diff / nxr@1.9
src/external/mit/xorg/server/xorg-server/hw/xfree86/xf86modes/Makefile@1.8 / diff / nxr@1.8
src/external/mit/xorg/server/xorg-server/hw/xfree86/xorgos/Makefile@1.51 / diff / nxr@1.51
src/external/mit/xorg/server/xorg-server/include/Makefile@1.20 / diff / nxr@1.20
src/external/mit/xorg/server/xorg-server/os/Makefile@1.18 / diff / nxr@1.18
src/external/mit/xorg/server/xorg-server/present/Makefile@1.4 / diff / nxr@1.4
src/external/mit/xorg/server/xorg-server/xfixes/Makefile@1.6 / diff / nxr@1.6

various updates to build with xorg-server 21.1.3.

- the s3, tga, and trident drivers use old functionality and are disabled
- dixmods/fb is removed, main fb has all these now (we retain our revert
  of an upstream change here.)
- adjust source lists as necessary
- remove vbe module, now part of int10
- use -lxcvt
- misc clean up
- ramdac loses IBM, BT and TI support (this is one of the problems for
  the disabled drivers, but also some structures in RamDac.h are gone
  entirely, not copied anywhere.)
- old apm code is gone, all bsd uses pm_noop. now

this probably require a clean build in at least xorg-server and the
drivers, and perhaps the DESTDIR as well.  will update src/UPDATING with
details when they are fully known.

(mrg)

2022-07-15 04:13:16 UTC MAIN commitmail json YAML

2022-07-15 04:10:54 UTC MAIN commitmail json YAML

2022-07-15 04:10:41 UTC MAIN commitmail json YAML

2022-07-15 02:19:02 UTC MAIN commitmail json YAML

2022-07-15 00:16:04 UTC MAIN commitmail json YAML

2022-07-14 23:55:54 UTC MAIN commitmail json YAML

2022-07-14 20:13:21 UTC MAIN commitmail json YAML

Misc KNF and cosmetics.

(tsutsui)

2022-07-14 19:55:56 UTC MAIN commitmail json YAML

2022-07-14 18:52:23 UTC MAIN commitmail json YAML

2022-07-14 11:10:02 UTC MAIN commitmail json YAML

default to apple layout for both adb and usb keyboards

(macallan)

2022-07-14 07:42:11 UTC MAIN commitmail json YAML

2022-07-14 07:41:50 UTC MAIN commitmail json YAML

2022-07-14 07:40:48 UTC MAIN commitmail json YAML

enable thread safety constructor.

(mrg)

2022-07-14 06:53:40 UTC MAIN commitmail json YAML

2022-07-14 03:48:49 UTC MAIN commitmail json YAML

2022-07-14 03:48:34 UTC MAIN commitmail json YAML

build framework for libxcvt (needed for xorg-server 21.x).

doesn't work quite yet.  lib/libxcvt can't find sources for
some odd reason.

(mrg)

2022-07-13 19:57:49 UTC MAIN commitmail json YAML

2022-07-13 19:02:09 UTC MAIN commitmail json YAML

2022-07-13 18:51:03 UTC MAIN commitmail json YAML

Check for right sysctl node to make live image work OOTB on OpenStack:

  machdep.dmi.system-product = OpenStack Compute

(hgutch)

2022-07-13 14:11:46 UTC MAIN commitmail json YAML

Move klist_{init,fini,insert,remove}() into kern_event.c.  NFC.

(thorpej)

2022-07-13 03:23:07 UTC MAIN commitmail json YAML

Funnel knote alloc/free into a single pair of functions.  NFCI.

(thorpej)

2022-07-13 00:12:20 UTC MAIN commitmail json YAML

x86: Move lfence into _bus_dmamap_sync and comment it.

No functional change intended.  This just keeps the bus_dma_* and
_bus_dma_* functions organized more consistently.

(riastradh)

2022-07-12 23:47:00 UTC MAIN commitmail json YAML

make.1: fix markup for variable modifiers, add italic correction

(rillig)

2022-07-12 23:19:53 UTC MAIN commitmail json YAML

2022-07-12 23:03:52 UTC MAIN commitmail json YAML

make.1: fix markup for options, they are not arguments

(rillig)

2022-07-12 22:59:43 UTC MAIN commitmail json YAML

make.1: fix ugly line break in PostScript output

(rillig)

2022-07-12 22:51:12 UTC MAIN commitmail json YAML

make.1: fix markup

Not all square brackets are options, some are wildcards.

(rillig)

2022-07-12 22:45:05 UTC MAIN commitmail json YAML

make.1: replace redundant .Ql with .Sq

(rillig)

2022-07-12 17:45:11 UTC MAIN commitmail json YAML

make: describe variable assignment and evaluation more precisely

Variables in make are not "much like variables in the shell", they only
look that way.  Their behavior is more similar to C preprocessor macros.

The spaces around a variable value are removed when parsing the variable
assignment, not after evaluating it.

Before describing the variable assignment operators, introduce the
general syntax of a variable assignment.

Add a separate subsection "Expansion of variables", since assignment and
expansion are unrelated.  Illustrate how variable expansions look
instead of describing it in many words.

Describe how variables are expanded in conditionals, since that is
different from everywhere else.

(rillig)

2022-07-12 02:53:11 UTC MAIN commitmail json YAML

don't build newly obsolete xf86vidmode.h.

(mrg)

2022-07-12 02:51:33 UTC MAIN commitmail json YAML

2022-07-12 02:44:43 UTC MAIN commitmail json YAML

updates for xcb-proto 1.15.2.

(mrg)

2022-07-12 02:44:09 UTC MAIN commitmail json YAML

2022-07-12 02:43:46 UTC MAIN commitmail json YAML

2022-07-12 02:42:41 UTC MAIN commitmail json YAML

2022-07-12 02:33:36 UTC MAIN commitmail json YAML

2022-07-12 02:12:26 UTC MAIN commitmail json YAML

Remove unneeded bus_space_barrier() calls.

(thorpej)

2022-07-12 02:10:16 UTC MAIN commitmail json YAML

Remove unneeded bus_space_barrier() calls.

(thorpej)

2022-07-12 02:06:08 UTC MAIN commitmail json YAML

Remove uneeded bus_space_barrier() calls.

(thorpej)

2022-07-12 02:03:57 UTC MAIN commitmail json YAML

2022-07-12 01:51:05 UTC MAIN commitmail json YAML

2022-07-12 01:26:29 UTC MAIN commitmail json YAML

2022-07-12 01:23:01 UTC MAIN commitmail json YAML

2022-07-12 01:13:15 UTC MAIN commitmail json YAML

2022-07-12 01:11:37 UTC MAIN commitmail json YAML

2022-07-11 19:41:09 UTC MAIN commitmail json YAML

2022-07-11 19:35:42 UTC MAIN commitmail json YAML

2022-07-11 19:33:33 UTC MAIN commitmail json YAML

2022-07-11 19:27:31 UTC MAIN commitmail json YAML

2022-07-11 19:26:45 UTC MAIN commitmail json YAML

2022-07-11 19:24:56 UTC MAIN commitmail json YAML

p2k(3): drop reference to rump_smbfs(8).

(andvar)

2022-07-11 18:56:00 UTC MAIN commitmail json YAML

i915: Defer destroying waitqueue until after callback is removed.

Candidate fix for PR kern/56561.

(riastradh)

2022-07-11 15:12:24 UTC MAIN commitmail json YAML

Avoid C++-isms (stupid muscle memory) to fix the build.

(martin)

2022-07-11 14:17:49 UTC netbsd-8 commitmail json YAML

2022-07-11 14:15:58 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #1751:

sys/dev/pci/if_wmreg.h 1.122-1.125 via patch
sys/dev/pci/if_wmvar.h 1.48
sys/dev/pci/if_wm.c 1.719-1.720,1.722-1.725,
1.727-1.740 via patch

- wm_tick: Add missing splx(s) when not WM_MPSAFE.
- Print DMA range info if the system is booting in the verbose mode.
- Micro optimization:
  - Call m_freem(m) only if m0 == NULL.
  - Call wm_xxeof() only when limit > 0.
  - Don't set the more flag when there is no packet to process.
- No functional changes:
  - Call txeof first, then rxeof for the consistency.
  - Remove duplicated break.
  - Remove stray semicolons from struct declaration.
  - Fix value return from void function.
  - Use macros.
  - Modify comment.
  - KNF.

(martin)

2022-07-11 14:13:46 UTC netbsd-9 commitmail json YAML

2022-07-11 14:10:18 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #1477:

sys/dev/pci/if_wmreg.h 1.122-1.125
sys/dev/pci/if_wmvar.h 1.48
sys/dev/pci/if_wm.c 1.719-1.720,
1.722-1.725,
1.727-1.740 via patch

- wm_tick: Add missing splx(s) when not WM_MPSAFE.
- Print DMA range info if the system is booting in the verbose mode.
- Micro optimization:
  - Call m_freem(m) only if m0 == NULL.
  - Call wm_xxeof() only when limit > 0.
  - Don't set the more flag when there is no packet to process.
- No functional changes:
  - Call txeof first, then rxeof for the consistency.
  - Remove duplicated break.
  - Remove stray semicolons from struct declaration.
  - Fix value return from void function.
  - Use macros.
  - Modify comment.
  - KNF.

(martin)

2022-07-11 09:39:10 UTC MAIN commitmail json YAML

PR 56922: disabel fast softints for powerpc for now.

(martin)

2022-07-11 09:16:06 UTC MAIN commitmail json YAML

updates for twm 1.0.12.

(mrg)

2022-07-11 09:13:32 UTC MAIN commitmail json YAML

2022-07-11 08:51:22 UTC MAIN commitmail json YAML

2022-07-11 08:49:36 UTC MAIN commitmail json YAML

2022-07-11 08:42:43 UTC MAIN commitmail json YAML

2022-07-11 08:05:08 UTC MAIN commitmail json YAML

find new bitmaps location.

(mrg)

2022-07-11 08:03:31 UTC MAIN commitmail json YAML

2022-07-11 07:40:58 UTC MAIN commitmail json YAML

KNF two comments.

(skrll)

2022-07-11 07:36:56 UTC MAIN commitmail json YAML

Grammar in a comment.

(skrll)

2022-07-11 07:32:19 UTC MAIN commitmail json YAML

2022-07-11 06:16:23 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2022-07-11 06:15:27 UTC MAIN commitmail json YAML

Consistently use semicolon. No functional change.

(msaitoh)

2022-07-10 23:12:12 UTC MAIN commitmail json YAML

readv(2), writev(2): Avoid arithmetic overflow in bounds check.

(riastradh)

2022-07-10 23:11:55 UTC MAIN commitmail json YAML

physio(9): Avoid left shift of negative in alignment check.

Reported-by: syzbot+426b1db52f91ad2b994f@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=f2456661792789db6d1c20e9d7e48db5c151d56d

(riastradh)

2022-07-10 21:32:10 UTC MAIN commitmail json YAML

bsd.subdir.mk: replace obscure indirection with direct condition

Since 2008, when make generates the body of a .for loop, it does not
copy the items as raw strings but as expressions of the form ${:U...}.
This prevents syntactical changes from code injection in the body of the
.for loop.

Since then, using .for loop variables in conditions works.  Since the
same time, the variable assignment operator '+=' doesn't need to be
protected by a leading space anymore.  Even if the item from the .for
loop is 'libc++', the trailing '+' is not parsed as part of the variable
assignment operator, and it never had been parsed this way.  The space
probably has been cargo cult programming.  The only ambiguous case had
been in a variable assignment, when the variable name ended with a
variable from the .for loop, and the assignment operator was '='.  Only
in this case could the parser be tricked into parsing the variable
assignment as 'libc+ +=' instead of the intended 'libc++ ='.

(rillig)

2022-07-10 21:16:58 UTC MAIN commitmail json YAML

bsd.subdir.mk: remove practically dead code

The condition '${dir:H} != ""' is almost always satisfied, since 2001 at
least.  The only input for the modifier ':H' that leads to an empty
string is "/".  It doesn't make sense though to specify the root
directory as a subdirectory.

While here, remove quotes around the left-hand side of comparisons in
conditions.  The quotes have become redundant in 2008, when the .for
loop stopped inserting raw text into the .for loop body.

If the special case for "/" had actually been intended, it should have
been written as the equivalent '.if ${dir} == "/"' instead of hiding
this feature behind an edge case behavior of the modifier ':H'.

Based on the comments, the condition should have been '${dir:M/*}', but
it hadn't been written that way.

(rillig)

2022-07-10 21:11:49 UTC MAIN commitmail json YAML

2022-07-10 19:49:24 UTC MAIN commitmail json YAML

2022-07-10 19:28:00 UTC MAIN commitmail json YAML

usr.sbin/installboot: Add a command line option (-u) to set U-Boot search paths

Installboot can install U-Boot boot blocks directly into a system
image.  Normally, the U-Boot files are searched for in
/usr/pkg/share/u-boot, under the expectation that most people will
build them with pkgsrc.  However, it is also possible to set an
environment variable (INSTALLBOOT_UBOOT_PATHS) to a colon-separated
search path to accommodate other situations.  This commit adds a
command line option (-u) to set the search path; if present, it
overrides the environment and default.

(brook)

2022-07-10 18:52:34 UTC MAIN commitmail json YAML

drop reference to smbfs, which was removed in 2020.

while here, s/file-system/file system/

(snj)

2022-07-10 17:47:58 UTC MAIN commitmail json YAML

ptrace(PT_LWPSTATUS): Fix lid=0 case.

Make ptrace_read_lwpstatus always overwrite the whole struct
ptrace_lwpstatus so the caller doesn't have to make sure pl_lwpid is
initialized correctly -- ptrace_lwpstatus was missing that
reinitialization after ptrace_update_lwp, but it's less work for all
the callers if we just make the assertion an assignment instead.

(riastradh)

2022-07-10 14:18:27 UTC MAIN commitmail json YAML

Fix order of hi / lo halves in the ofw_address_cells == 2 case.

(thorpej)

2022-07-10 14:07:55 UTC MAIN commitmail json YAML

kern/sys_ptrace.c: Nix trailing whitespace.

(riastradh)

2022-07-10 13:57:14 UTC MAIN commitmail json YAML

tty_43: Do unsigned arithmetic to avoid shift into sign bits.

Omit input validation -- it's not a great idea for compatibility with
historical kernels, since they ignored the bits instead of rejecting
them if set.  With unsigned arithmetic, we get the same semantics as
was previously assumed (discarding bits that get shifted into the
sign bit or off into oblivion) without the formal undefined
behaviour.

Reported-by: syzbot+e408764cdd8c0c0ff535@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=8318f0039e68187cd8d27b2c520816fff3f7266a

(riastradh)

2022-07-10 13:56:44 UTC MAIN commitmail json YAML

linux/hdmi: Fix size of product id.

(riastradh)

2022-07-10 12:49:05 UTC MAIN commitmail json YAML

We may try to extract the "last mounted on" field from EFI partitions
too.

(martin)

2022-07-10 12:32:31 UTC MAIN commitmail json YAML

linux/hdmi: Fix return value in unpack.

(riastradh)

2022-07-10 10:52:41 UTC MAIN commitmail json YAML

Preparations to make the extended partitioning during normal installation
more usefull - pass an optional install_description to partman().

(martin)

2022-07-10 09:59:22 UTC MAIN commitmail json YAML

cpuio.h: Use uint8_t, not bool.

In principle bool can only store two values, 0 and 1, but occupies
eight bits of storage (on all NetBSD platforms to my knowledge),
meaning there are 254 other values which might be trap
representations which would be undefined behaviour to use but which
userland can control the bits of.

To placate ubsan, just use uint8_t here instead of bool.  No bump or
anything because the ABI is the same: one-byte field with one-byte
alignment.

Reported-by: syzbot+3bc3d6837da151448e87@syzkaller.appspotmail.com

(riastradh)

2022-07-10 08:17:02 UTC MAIN commitmail json YAML

pci(4): mention gtp(4) in the man page

(nia)

2022-07-10 04:01:07 UTC MAIN commitmail json YAML

include bsd.own.mk to ensure that USE_XZ_SETS is set properly before using it.

this should fix PR#56919.

(mrg)

2022-07-09 21:19:44 UTC MAIN commitmail json YAML

csh(1): fix punctuation at the end of an .Xr line

(uwe)

2022-07-09 20:11:00 UTC MAIN commitmail json YAML

s/desciption/description/

(andvar)

2022-07-09 19:53:00 UTC MAIN commitmail json YAML

linux/hdmi: Fix hdmi_infoframe_unpack to record the unpacked header.

(riastradh)

2022-07-09 19:31:34 UTC MAIN commitmail json YAML

s/wokstations/workstations/ in rs6000 description.

(andvar)

2022-07-09 18:41:23 UTC MAIN commitmail json YAML

linux/hdmi: Handle audio infoframes in hdmi_infoframe_pack.

Sort cases by type number.

(riastradh)

2022-07-09 18:21:23 UTC MAIN commitmail json YAML

linux/hdmi: Convert failure branch to kassert for internal invariant.

(riastradh)

2022-07-09 18:18:36 UTC MAIN commitmail json YAML

linux/hdmi: Use ssize_t for all hdmi_*_infoframe_pack functions.

(riastradh)

2022-07-09 18:11:47 UTC MAIN commitmail json YAML

linux/hdmi: Zero entire union hdmi_infoframe on unpack.

Don't just zero the part that we're about to initialize -- i915 does
memcmp on the whole structure.

(riastradh)

2022-07-09 18:11:36 UTC MAIN commitmail json YAML

linux/hdmi: Handle unpacking audio frames too.  Sort by number.

(riastradh)

2022-07-09 18:11:23 UTC MAIN commitmail json YAML

2022-07-09 18:06:45 UTC MAIN commitmail json YAML

linux/hdmi: Fix missing hdmi_avi_infoframe_init namespacing.

(riastradh)

2022-07-09 17:59:28 UTC MAIN commitmail json YAML

2022-07-09 17:13:04 UTC MAIN commitmail json YAML

linux/hdmi.h: Implement hdmi_infoframe_log.

(riastradh)

2022-07-09 15:24:42 UTC MAIN commitmail json YAML

linux/hdmi.h: Fix spd infoframe header version.

Possibly relevant to PR kern/56740.

(riastradh)

2022-07-09 13:37:13 UTC MAIN commitmail json YAML

Fix GENFB_GLYPHCACHE with shadow fb.

(rin)

2022-07-09 11:44:57 UTC MAIN commitmail json YAML

Add preliminary support for Aero.

- Aero supports 32bit descriptor.
- Even if the Aero card supports 32bit descriptor, 64bit descriptor
  access is required for MFI_CMD_INIT.
- Add quirk for Aero to retry register read.
- The PCI ID table for Aero is disabled. Even if it's enabled, any logical
  volumes are not found. Perhaps the reason is that our mfii driver is
  currently not supports more than 64 logical volumes and MR_DCMD_LD_GET_LIST
  returns incorrect value. Tested by Mark Daies' H750.

(msaitoh)

2022-07-09 11:41:56 UTC MAIN commitmail json YAML

Use bus_space_write_8() if available.

(msaitoh)

2022-07-09 11:41:18 UTC MAIN commitmail json YAML

Modify strange bus_space_barrier().

(msaitoh)

2022-07-09 10:30:27 UTC MAIN commitmail json YAML

devsw(9): Forbid extant linked autoconf instances in devsw_detach.

(riastradh)

2022-07-09 09:43:52 UTC MAIN commitmail json YAML

If /rescue is at the head of $PATH (which is how it starts out in /rescue/sh
unless changed by something - and has been since NetBSD 3) don't blindly
simply change it to a PATH that doesn't have /rescue in it at all.

This doesn't solve the "/rescue/tar execs /usr/bin/gzip" problem completely,
as if PATH is in the environment when /rescue/sh is started, that one will
override the shell's built in PATH, but this is better than nothing.

(kre)

2022-07-09 08:27:35 UTC MAIN commitmail json YAML

mk.conf(5): we default to USE_SSP=yes these days.

(nia)

2022-07-09 01:24:32 UTC MAIN commitmail json YAML

Remove redundant ``devsw_ok = false;''

Thanks mrg@

(pgoyette)

2022-07-08 21:51:24 UTC MAIN commitmail json YAML

Prevent crashes as shown in PR 56918.

(mlelstv)

2022-07-08 21:19:07 UTC MAIN commitmail json YAML

lint: fix edge cases in the query for redundant cast before assignment

Casting from and to _Bool is only allowed outside strict bool mode.
Outside strict bool mode, _Bool is an integer type, therefore return
early if any of the operands has type _Bool.  In strict bool mode, even
casting from _Bool to _Bool is not allowed, as it is not needed in
practice.

Handle _Complex types before real floating-point types.  Return early
for _Complex types, as these are floating-point types as well.

For pointer casts, not only flag casts to or from 'pointer to void', but
also casts between the same types.

In debug mode, when constructing the type '_Complex float', the type
name of '_Complex' occurs in the debug log.  Outside of debug mode,
printing this type name is an error since this type keyword only occurs
internally, when constructing a type.  At that point, it is not supposed
to occur in any user-visible message.

(rillig)

2022-07-08 20:27:36 UTC MAIN commitmail json YAML

lint: fix query for redundant cast before assignment

Previously, 'i = (int)dbl' was marked as redundant, even though it
performs a value conversion.

(rillig)

2022-07-08 17:47:47 UTC MAIN commitmail json YAML

2022-07-08 17:32:19 UTC MAIN commitmail json YAML

devsw_ok needs to survive across invocations of nvme_modcmd() so
allocate it statically.

Should address remaining issues with kern/56914

(pgoyette)

2022-07-08 16:50:11 UTC MAIN commitmail json YAML

2022-07-08 16:10:34 UTC MAIN commitmail json YAML

Initialize cmajor & bmajor so the devsw_attach() has a chance of
succeeding.

Record the success of devsw_attach(), and do not try later to
devsw_detach() unless the attach succeeded.

Partial fix for kern/56914

(pgoyette)

2022-07-08 09:00:00 UTC MAIN commitmail json YAML

Update the usb(4) manual page with some missing devices

(nia)

2022-07-08 08:59:34 UTC MAIN commitmail json YAML

2022-07-08 07:44:18 UTC MAIN commitmail json YAML

Make dead vfs ops "vfs_statvfs" and "vfs_vptofh" return EOPNOTSUPP.
Both operations may originate from (possible dead) vnodes.

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

(hannken)

2022-07-08 07:43:48 UTC MAIN commitmail json YAML

Don't use LK_RETRY as we need an active vnode here.

(hannken)

2022-07-08 07:43:19 UTC MAIN commitmail json YAML

Suspend file system after VFS_MOUNT() and before taking mnt_updating.
Prevents deadlock against concurrent unmounts of layered file systems.

(hannken)

2022-07-08 07:42:47 UTC MAIN commitmail json YAML

While one thread runs vgone() it is possible for another thread to grab
a "v_mount" that will be freed before it uses this mount for fstrans_start().

Add a hashtab to lookup our private mount data "fstrans_mount_info" and
use "mp" as an opaque key for lookup.

Reported-by: syzbot+54dc9ac0804a97b59bc6@syzkaller.appspotmail.com

(hannken)

2022-07-08 07:42:06 UTC MAIN commitmail json YAML

Handle IMNT_GONE on the file system we want suspended not its
lowest mount we really suspend.

(hannken)

2022-07-08 07:02:47 UTC MAIN commitmail json YAML

2022-07-07 23:54:17 UTC MAIN commitmail json YAML

Add errno tto message when fail to attach the devsw

(pgoyette)

2022-07-07 23:50:34 UTC MAIN commitmail json YAML

Only detach the cfdriver if we just attached it.

Report errno in message when fail to attach cdevsw

(pgoyette)

2022-07-07 20:22:03 UTC MAIN commitmail json YAML

fix reference to magma(4) by pointing to sparc/magma 4 and update the date.

(andvar)

2022-07-07 20:07:47 UTC MAIN commitmail json YAML

remove reference to tb(4), which was removed back in 2005.

(andvar)

2022-07-07 18:17:33 UTC MAIN commitmail json YAML

ifioctl(9): Don't touch ifconf or ifreq until command is validated.

sys_ioctl validates the data pointer according to the command's size
and direction.  But userland may ioctl commands other than
OSIOCGIFCONF or OOSIOCGIFCONF -- and if userland passes an IOC_VOID
command, the argument is passed through verbatim and may be null.

Reported-by: syzbot+19b1bf83e5481273eafc@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=f4c91a7dcd31901c80d91af6ed01456faf0a7286

Reported-by: syzbot+442c033feb784d055185@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=4a3a4b92dbe9695046ff17a5474cef52aed23e0b

Reported-by: syzbot+4c87d0cdf7025741ea7a@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=3e5f42c998e43ad42da40dec3c7873e6aae187e4

(riastradh)

2022-07-07 18:11:30 UTC MAIN commitmail json YAML

tests/lint: document why in ic_expr, '&' does not need before_conversion

(rillig)

2022-07-07 13:51:06 UTC MAIN commitmail json YAML

For xorg-server 1.10, do not require shadowUpdateAfb8() as
a runtime dependency.

(rin)

2022-07-07 13:27:02 UTC MAIN commitmail json YAML

uvm: CTASSERT about MIN_PAGE_SIZE, which is constant.

(riastradh)

2022-07-07 12:56:01 UTC MAIN commitmail json YAML

Fix build for xorg-server 1.10, which doesn't have shadowUpdateAfb8().

For amiga, fall back to 1-bpp on xorg-server 1.10.

NFC for xorg-server 1.20 and higher.

(rin)

2022-07-07 11:48:17 UTC MAIN commitmail json YAML

For WSDISPLAY_TYPE_AMIGACC, no need to check ifdef __NetBSD__.

Note that similar block for WSDISPLAY_TYPE_LUNA should be guarded by
``#if defined(__NetBSD__) && defined(WSDISPLAY_TYPE_LUNA)'' on the
other hand; this is intended to distinguish NetBSD and OpenBSD.

(rin)

2022-07-07 11:42:28 UTC MAIN commitmail json YAML

2022-07-07 11:29:18 UTC MAIN commitmail json YAML

Convert CTASSERT(9) for PAGE_{SIZE,MASK} into KASSERT(9).

They are not compile-time constants for sparc.

(rin)

2022-07-07 10:06:02 UTC MAIN commitmail json YAML

2022-07-07 06:11:28 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2022-07-07 06:11:19 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2022-07-07 06:11:08 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2022-07-06 22:26:31 UTC MAIN commitmail json YAML

lint: do not warn about 'may lose accuracy' in safe cases of '%'

The possible values of the expression 'a % b' for unsigned integers lie
between 0 and (b - 1).  For signed integers, it's more complicated, so
ignore them for now.

(rillig)

2022-07-06 21:59:07 UTC MAIN commitmail json YAML

tests/lint: test 'may lose accuracy' for '%'

For unsigned integers, the possible range of the result can be narrowed
down by looking at the right operand of the '%'.  Right now, lint
doesn't do this though.

(rillig)

2022-07-06 21:13:13 UTC MAIN commitmail json YAML

tests/lint: add test for 'assignment in conditional context'

(rillig)

2022-07-06 17:35:20 UTC MAIN commitmail json YAML

Fix copy & pasto: DTPREL relocations do not need to allocate a static
TLS index. Patch from joerg@

(martin)

2022-07-06 15:41:47 UTC MAIN commitmail json YAML

s/ponters/pointers/

(andvar)

2022-07-06 15:24:58 UTC MAIN commitmail json YAML

Tegra TX2 dtb files are build for big endian aarch64 too.

(martin)

2022-07-06 15:24:14 UTC MAIN commitmail json YAML

Add missing brace.

(hannken)

2022-07-06 14:34:13 UTC MAIN commitmail json YAML

Return display depth correctly from WSDISPLAYIO_GET_FBINFO.
(previous workaround to always return 1 no longer needed with latest wsfb)

(jandberg)

2022-07-06 14:27:50 UTC MAIN commitmail json YAML

Add support for 8bpp with Amiga native graphics.

Conversion to bitplane format is done in shadowfb update proc.

(jandberg)

2022-07-06 13:52:24 UTC MAIN commitmail json YAML

kern: Work around spurious -Wtype-limits warnings.

This useless garbage warning is apparently designed to make it
painful to write portable safe arithmetic and I think we ought to
just disable it.

(riastradh)

2022-07-06 13:10:49 UTC MAIN commitmail json YAML

nvmm(4): Fix typo in previous.

Didn't trip over this in my test build because nvmm is a module,
oops.

(riastradh)

2022-07-06 12:33:42 UTC MAIN commitmail json YAML

2022-07-06 08:07:23 UTC MAIN commitmail json YAML

net/if_ppp.c: Avoid user-controlled overrun in PPPIOCSCOMPRESS.

Reported-by: syzbot+2c7bda7dc2b6c0d4f279@syzkaller.appspotmail.com

(riastradh)

2022-07-06 08:06:59 UTC MAIN commitmail json YAML

net/if_ppp.c: Sprinkle KNF.  No functional change intended.

(riastradh)

2022-07-06 06:33:49 UTC MAIN commitmail json YAML

Call txeof first, then rxeof for the consistency.

There are three functions where the txeof and rxeof are called. The MSI-X
interrupt function and the workqueue function call rxeof first, then rxeof.
For legacy interrupt. rxeof is called first. Modify it to match with other
two.

(msaitoh)

2022-07-06 06:32:50 UTC MAIN commitmail json YAML

Call txeof first, then rxeof for the consistency.

There are three functions where the txeof and rxeof are called. The MSI-X
interrupt function and the workqueue function call rxeof first, then rxeof.
For legacy interrupt. rxeof is called first. Modify it to match with other
two.

(msaitoh)

2022-07-06 06:31:47 UTC MAIN commitmail json YAML

Call txeof first, then rxeof for the consistency.

There are three functions where the txeof and rxeof are called. The legacy
interrupt function and MSI-X function call rxeof first, then rxeof.
For the workqueue function. rxeof is called first. Modify it to match with
other two.

(msaitoh)

2022-07-06 06:25:24 UTC MAIN commitmail json YAML

Cosmetic changes.  No functional change intended.

(nat)

2022-07-06 06:00:40 UTC MAIN commitmail json YAML

Add support for HXN variants from openbsd.

(nat)

2022-07-06 05:49:47 UTC MAIN commitmail json YAML

Fix compile error if WM_DEBUG is set.

(msaitoh)

2022-07-06 01:16:36 UTC MAIN commitmail json YAML

mmap(2): Guarantee two's-complement wraparound for D_NEGOFFSAFE.

XXX Not sure this should be allowed at all, but this way we don't
change the semantics of the existing code which was written under
essentially the assumption of -fwrapv.

(riastradh)

2022-07-06 01:15:51 UTC MAIN commitmail json YAML

uvm/uvm_device.c: Sprinkle KNF.

(riastradh)

2022-07-06 01:15:32 UTC MAIN commitmail json YAML

kern/vfs_vnops.c: Fix missing semicolon in previous.

Neglected to build and amend commit, oops.

(riastradh)

2022-07-06 01:13:30 UTC MAIN commitmail json YAML

mmap(2): Prohibit overflowing offsets for non-D_NEGOFFSAFE devices.

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

(riastradh)

2022-07-06 01:13:18 UTC MAIN commitmail json YAML

kern/vfs_vnops.c: Sprinkle KNF.

No functional change intended.

(riastradh)

2022-07-06 01:13:06 UTC MAIN commitmail json YAML

mmap(2): Avoid overflow in overflow check in vn_mmap.

(riastradh)

2022-07-06 01:12:46 UTC MAIN commitmail json YAML

2022-07-06 00:40:28 UTC MAIN commitmail json YAML

mmap(2): Assert size != 0 in non-anonymous case.

This is guaranteed by a test earlier; adding the assertion just makes
it clearer that it applies to the branch where we call fo_mmap -- no
functional change intended.

(riastradh)

2022-07-06 00:40:16 UTC MAIN commitmail json YAML

mmap(2): Avoid overflow in rounding and checking size.

(riastradh)

2022-07-05 22:50:43 UTC MAIN commitmail json YAML

awk(1): Fix incomplete edit.  Bump date.

(uwe)

2022-07-05 22:50:42 UTC MAIN commitmail json YAML

lint: add additional queries that are not enabled by default

In the last 18 months, several lint warnings have been made adjusted to
allow common usage patterns.  For example, lint no longer warns about a
constant condition in the statement 'do { ... } while (false)' (message
161), as this pattern is well-known in statement-like macros, making it
unlikely that the 'false' is a mistake.  Another example is casts
between unequal pointer types (message 247) for a few well-known
patterns that are unlikely to be bugs.

Occasionally, it is useful to query the code for patterns or events that
would not justify a warning.  These patterns are modeled as predefined
queries that can be selected individually, in addition to and
independently of the existing warnings and errors.

New queries can be added as needed, in the same way as new warnings.
Queries that are deemed no longer used can be deactivated in the same
way as warnings that are no longer used.

As long as none of the queries is enabled, they produce a minimal
overhead of querying a single global variable.  Computations that are
more expensive than a few machine instructions should be guarded by
any_query_enabled.

https://mail-index.netbsd.org/source-changes-d/2022/06/28/msg013716.html

ok christos@

(rillig)

2022-07-05 22:20:55 UTC MAIN commitmail json YAML

awk.1: add articles, remove 'shall'

(rillig)

2022-07-05 22:07:20 UTC MAIN commitmail json YAML

2022-07-05 20:15:40 UTC MAIN commitmail json YAML

2022-07-05 19:31:04 UTC MAIN commitmail json YAML

2022-07-05 19:21:26 UTC MAIN commitmail json YAML

2022-07-05 18:40:03 UTC MAIN commitmail json YAML

awk(1): consistent Capitalization.

(uwe)

2022-07-05 18:18:48 UTC MAIN commitmail json YAML

awk(1): Empty parens of length() be omitted.

Mark up length[([string])] description accordingly (like POSIX does).
Adjust the length example to demonstrate this.

(uwe)