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

2024-05-10 14:32:21 UTC Now

2021-11-08 10:57:09 UTC MAIN commitmail json YAML

Fix (a kind of) violation of strict aliasing rule.

Due to the rule, "sin" and "sin6" can be treated as restrict pointers.
Compilers seem to be confused by structure copy for those pointed by
them before assignments.

For aarch64eb, GCC 9 and 10 compile t_tcp.c rev 1.11 into a code, where
fetch for "sin6->sin6_port" is preceding the structure copy "ss = bs".
This results in failure of connect(2) with EADDRNOOTAVAIL.

(rin)

2021-11-08 10:19:42 UTC MAIN commitmail json YAML

acpi_print_gicc_flags: print {en,dis}abled

(skrll)

2021-11-08 06:29:16 UTC MAIN commitmail json YAML

remove unused ioctl command named SIOCGLAGGPORT
to get status of l2tp(4) added to lagg

NOTE:
SIOCGLAGGPORT is based on FreeBSD implementation.
And, currently, it is not used in NetBSD kernel/userland.

(yamaguchi)

2021-11-08 06:24:11 UTC MAIN commitmail json YAML

Added tests for lagg(4) about MAC addresses

(yamaguchi)

2021-11-08 06:22:16 UTC MAIN commitmail json YAML

lagg: renew MAC addresses to change the value of interface type

The interface type(ifnet::if_type) is changed on adding to lagg(4)
and deleting from it.

(yamaguchi)

2021-11-08 06:17:05 UTC MAIN commitmail json YAML

Update the MAC address of all child interface
when that of lagg is changed.

(yamaguchi)

2021-11-07 20:31:10 UTC MAIN commitmail json YAML

2021-11-07 20:16:50 UTC MAIN commitmail json YAML

tests/indent: document quick-and-dirty approach of lex_number

(rillig)

2021-11-07 19:25:26 UTC MAIN commitmail json YAML

tests/indent: test identifiers containing '$'

(rillig)

2021-11-07 19:21:33 UTC MAIN commitmail json YAML

2021-11-07 19:18:57 UTC MAIN commitmail json YAML

2021-11-07 19:04:46 UTC MAIN commitmail json YAML

indent: demonstrate controlled buffer overflow in C99 comment

(rillig)

2021-11-07 18:49:02 UTC MAIN commitmail json YAML

2021-11-07 18:38:35 UTC MAIN commitmail json YAML

tests/indent: fix test for form feed

Previously, I had written a vertical tab instead of a form feed, which
had a different effect.

(rillig)

2021-11-07 18:26:17 UTC MAIN commitmail json YAML

indent: various cleanups

Make several comments more precise.

Rename process_end_of_file to process_eof to match the token name.

Change the order of assignments in analyze_comment to keep the com_ind
computations closer together.

In copy_comment_wrap, use pointer difference instead of pointer addition
to stay away from undefined behavior.

No functional change.

(rillig)

2021-11-07 18:09:56 UTC MAIN commitmail json YAML

2021-11-07 18:05:37 UTC MAIN commitmail json YAML

Fix linking for multi-source file tests, the second part of the tuple
needs to be the C source file (not the base name)

(martin)

2021-11-07 17:17:24 UTC MAIN commitmail json YAML

dts: Import dts files from Linux 5.15.

(jmcneill)

2021-11-07 17:16:19 UTC MAIN commitmail json YAML

dts updated to 5.15

(jmcneill)

2021-11-07 17:14:38 UTC MAIN commitmail json YAML

cwfg: update for dts-5.15 binding changes

(jmcneill)

2021-11-07 17:14:20 UTC MAIN commitmail json YAML

Look for child node by compat string snps,dwc3 instead of by name.

(jmcneill)

2021-11-07 17:14:09 UTC MAIN commitmail json YAML

pwm_backlight: pick defaults if none are provided

(jmcneill)

2021-11-07 17:13:53 UTC MAIN commitmail json YAML

fdt: add helper for finding intr parent phandle

(jmcneill)

2021-11-07 17:13:38 UTC MAIN commitmail json YAML

sunxi: nmi: add support for #interrupt-cells 3 bindings

(jmcneill)

2021-11-07 17:13:26 UTC MAIN commitmail json YAML

sunxi: sun50i-a64: add support for A64_CLK_CPUX clock

(jmcneill)

2021-11-07 17:13:12 UTC MAIN commitmail json YAML

2021-11-07 17:12:55 UTC MAIN commitmail json YAML

ti: cpsw: adapt to dts-5.15 bindings

(jmcneill)

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

2021-11-07 17:12:26 UTC MAIN commitmail json YAML

pinctrl-single: support #pinctrl-cells 2

(jmcneill)

2021-11-07 17:12:16 UTC MAIN commitmail json YAML

fdtbus: match simple-pm-bus

(jmcneill)

2021-11-07 17:11:58 UTC MAIN commitmail json YAML

2021-11-07 17:11:43 UTC MAIN commitmail json YAML

2021-11-07 17:11:05 UTC MAIN commitmail json YAML

2021-11-07 17:10:47 UTC MAIN commitmail json YAML

2021-11-07 17:10:23 UTC MAIN commitmail json YAML

CONFIG_ARCH_SOCFPGA has been renamed CONFIG_ARCH_INTEL_SOCFPGA

(jmcneill)

2021-11-07 16:57:40 UTC MAIN commitmail json YAML

src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/at91-kizboxmini.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/atlas6-evb.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/atlas6.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/atlas7-evb.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/atlas7.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-common.dtsi@1.4 / diff / nxr@1.4
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts@1.3 / diff / nxr@1.3
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi@1.8 / diff / nxr@1.8
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm283x.dtsi@1.10 / diff / nxr@1.10
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/efm32gg-dk3750.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/efm32gg.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/imx6q-dhcom-som.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/mt8135-pinfunc.h deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/picoxcell-pc3x2.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/picoxcell-pc3x3.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/picoxcell-pc7302-pc3x2.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/picoxcell-pc7302-pc3x3.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/prima2-evb.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/prima2.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ste-href-ab8505.dtsi deleted
      :
(more 67 files)
Merge conflicts.

(jmcneill)

2021-11-07 15:54:01 UTC MAIN commitmail json YAML

tests/indent: test lenient option parsing

(rillig)

2021-11-07 15:46:20 UTC MAIN commitmail json YAML

2021-11-07 15:44:28 UTC MAIN commitmail json YAML

2021-11-07 15:18:25 UTC MAIN commitmail json YAML

indent: rename ps.decl_nest to decl_level

This better matches the comment.

No functional change.

(rillig)

2021-11-07 15:01:50 UTC MAIN commitmail json YAML

tests/indent: test options without '-' in profile files

(rillig)

2021-11-07 14:34:30 UTC MAIN commitmail json YAML

Commit the userland portion of the posix_spawn_chdir project by Piyush Sachdeva

(christos)

2021-11-07 14:04:35 UTC MAIN commitmail json YAML

indent: move ps.p_l_follow closer to lsym_type_outside_parentheses

This makes it easier to see the relation between these two.

No functional change.

(rillig)

2021-11-07 14:00:35 UTC MAIN commitmail json YAML

indent: reduce negations in process_else, clean up comments

No functional change.

(rillig)

2021-11-07 13:47:50 UTC MAIN commitmail json YAML

Merge the kernel portion of the posix-spawn-chdir project by Piyush Sachdeva.

(christos)

2021-11-07 13:43:11 UTC MAIN commitmail json YAML

indent: document the comment buffer more accurately

(rillig)

2021-11-07 13:38:32 UTC MAIN commitmail json YAML

indent: remove code that accessed out-of-bounds data from buffer

Saving and restoring the exact buffer position had been necessary before
NetBSD pr_comment.c 1.114. The code accessed the buffer data out of the
bounds of [com.s, com.e), which was rather surprising. More
specifically, it accessed com.e[-1] in a case where com.e == com.s,
relying on com.e[-1] being ' ' in most cases and '*' in the case where
the comment delimiter was written to a separate output line.

Make the code easier understandable by only ever accessing the buffer
data in the bounds [buf.s, buf.e).

No functional change.

(rillig)

2021-11-07 13:30:15 UTC MAIN commitmail json YAML

indent: only access buffer data in the range [buf.s, buf.e)

No functional change.

(rillig)

2021-11-07 12:29:58 UTC MAIN commitmail json YAML

indent: do not expand comment buffer unnecessarily

This may have been a simple typo or a really tricky optimization that
isn't obvious even after studying the code for several months. Either of
these is bad, so use the standard form of resetting the buffer.

No functional change.

(rillig)

2021-11-07 12:26:22 UTC MAIN commitmail json YAML

tests/indent: improve code coverage for processing comments

(rillig)

2021-11-07 11:30:45 UTC MAIN commitmail json YAML

indent: remove dead code in analyze_comment

The case of an otherwise empty line is already handled further above.

(rillig)

2021-11-07 11:08:25 UTC MAIN commitmail json YAML

indent: remove dead code from copy_comment_wrap

C99 comments are not wrapped, therefore there is no need to check for
them in copy_comment_wrap.

No functional change.

(rillig)

2021-11-07 10:56:06 UTC MAIN commitmail json YAML

indent: move documentation from process_comment to copy_comment_wrap

(rillig)

2021-11-07 10:49:31 UTC MAIN commitmail json YAML

indent: clean up process_comment

The assignments to the variables were redundant, they are already done
by analyze_comment.

No functional change.

(rillig)

2021-11-07 10:42:58 UTC MAIN commitmail json YAML

indent: remove redundant assignment

At that point, ps.next_col_1 is already false.

No functional change.

(rillig)

2021-11-07 10:34:03 UTC MAIN commitmail json YAML

indent: make end of comment detection of nowrap comments simpler

No functional change.

(rillig)

2021-11-07 10:31:13 UTC MAIN commitmail json YAML

indent: clean up overcomplicated conditions in copy_comment_nowrap

No functional change.

(rillig)

2021-11-07 10:26:43 UTC MAIN commitmail json YAML

indent: skip redundant conditions in copy_comment_nowrap

No functional change.

(rillig)

2021-11-07 10:17:39 UTC MAIN commitmail json YAML

indent: clean up copy_comment_nowrap

The action for '\f' was the same as the default action.

Replacing 'switch' with 'if' makes the code shorter.

No functional change.

(rillig)

2021-11-07 10:13:26 UTC MAIN commitmail json YAML

indent: make copy_comment_nowrap simpler

Since a nowrap comment is copied unmodified, it need not depend on any
maximum line length.

No functional change.

(rillig)

2021-11-07 09:48:08 UTC MAIN commitmail json YAML

2021-11-07 09:22:58 UTC MAIN commitmail json YAML

Libtsan intercepts the pthread exported functions with
dlsym(RTLD_NEXT, func_name).  This fails for pthread_join() as it
is present both as a stub in libc and as real operation in libpthread
and the search order is "libtsan.so libc.so libpthread.so".

Force the order "libtsan.so libpthread.so libc.so" so symbols
get intercepted from libpthread first.

Ok: Matthew Green <mrg@netbsd.org>

(hannken)

2021-11-07 08:41:13 UTC MAIN commitmail json YAML

indent: remove dead code from process_comment_nowrap

In comments that are preserved, no additional leading ' * ' is inserted.

No functional change.

(rillig)

2021-11-07 08:38:27 UTC MAIN commitmail json YAML

indent: remove dead code from copy_comment_wrap

No functional change.

(rillig)

2021-11-07 08:31:46 UTC MAIN commitmail json YAML

indent: remove dead code from copy_comment_nowrap

No functional change.

(rillig)

2021-11-07 08:24:50 UTC MAIN commitmail json YAML

indent: split copy_comment into wrapping and non-wrapping

These two cases are processed in an almost entirely different way. In
particular, copy_comment_nowrap should copy the comment verbatim, which
is not obvious from the current code, due to the many conditions and the
complex control flow.

No functional change.

(rillig)

2021-11-07 08:03:15 UTC MAIN commitmail json YAML

tests/indent: demonstrate buggy combination of '-eei' and '-nlp'

Seen in indent.c.

(rillig)

2021-11-07 07:45:00 UTC MAIN commitmail json YAML

indent: rename type_at_paren_level_0 to type_outside_parentheses

For symmetry with type_in_parentheses.

No functional change.

(rillig)

2021-11-07 07:35:06 UTC MAIN commitmail json YAML

indent: distinguish between typename in parentheses and other words

This gets rid of two members of parser_state. No functional change for
well-formed programs. The sequence of '++int' or '--size_t' may be
formatted differently than before, but no program is expected to contain
that sequence.

Rename lsym_ident to lsym_word since 'ident' was too specific. This
token type is used for constants and string literals as well. Strictly
speaking, a string literal is not a word, but at least it's better than
before.

(rillig)

2021-11-07 07:06:00 UTC MAIN commitmail json YAML

indent: rename 'inbuf' functions to 'inp'

The variable 'inp' used to be named 'inbuf'. Make the function names
correspond to the variable name again.

No functional change.

(rillig)

2021-11-07 01:51:56 UTC MAIN commitmail json YAML

Add a comment describing why we give carte blanche to processes
marked as PK_32.  NFC.

(thorpej)

2021-11-06 23:29:04 UTC MAIN commitmail json YAML

pslist(9): No need to serialize pserialize_perform any more.

So take it out of the mutex section.

(riastradh)

2021-11-06 23:11:43 UTC MAIN commitmail json YAML

Set the path unconditionally to what rc sets it to, so that when running
individual scripts like 'env - /etc/rc.d/syslogd restart' programs like
rcorder are found.

(christos)

2021-11-06 22:11:39 UTC MAIN commitmail json YAML

s/invlaid/invalid/

(andvar)

2021-11-06 20:42:57 UTC MAIN commitmail json YAML

COMPAT_NETBSD32 is all about running the 32-bit flavor of native
binaries on a 64-bit platform[*], as such:
- Make the logic about which "sendsig" flavor to call MI (as it is in the
  native 64-bit environment) and follow the same rules as the native 32-bit
  environment.
- Make COMPAT_NETBSD32 x COMPAT_16 work the same as it would in the
  native 32-bit environment by providing a netbsd32_sendsig_sigcontext_16_hook,
  rather than overriding the entire sendsig logic with a netbsd32_sendsig_hook.
- In netbsd32___sigaction_sigtramp(), make sure the compat_netbsd32_16
  module is loaded if the trampoline version specifies a sigcontext style
  handler, otherwise return EINVAL so that libc can try again with siginfo
  style.

[*] ...except for arm32, which uses it to mean "run 32-bit OABI binaries
from the 32-bit EABI environment".  Doing it this way was arguably a mistake,
but we are stuck with it for now, so support it by providing a machine-
dependent override for netbsd32_sendsig() that also disables the corresponding
logic in netbsd32___sigaction_sigtramp().

Fixes PR kern/56487.

(thorpej)

2021-11-06 19:44:22 UTC MAIN commitmail json YAML

Revert part of previous commit that broke DT booting.

(jmcneill)

2021-11-06 19:36:12 UTC MAIN commitmail json YAML

New sentence, new line; remove trailing whitespace.

(wiz)

2021-11-06 13:43:17 UTC netbsd-9 commitmail json YAML

2021-11-06 13:42:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1372):

bin/sh/sh.1: revision 1.236 (patch)
bin/sh/cd.c: revision 1.51

PR bin/45390 - fix for folly four

In the pwd builtin, verify that curdir names '.' before
simply printing it.  Never alter PWD or OLDPWD in the
pwd command.

Also while here, implement the (new: coming in POSIX, but has existed
for a while in several other shells) -e option to cd (with -e, cd -P
will exit(1) if the chdir() succeeds, but PWD cannot be discovered).
cd now prints the directory name used (if different from that given,
or cdprint is on) if interactive or (the new bit)in posix mode.

Some additional/changed comments added, and a DEBUG mode trace call
that was accidentally put inside an #if 0 block moved to where it
can do some good.

XXX pullup -9

PR bin/45390

Be explicit about what happens to PWD after a successful cd command.
Also be very clear  that "cd" and "cd -P" are the same thing, and
the only cd variant implemented.
Also, when it is appropriate to print the new directory after a cd
command, note that it happens if interactive (as it always has here)
and also if the posix option is set (for POSIX compat, where "interactive"
is irrelevant).  Mention that "cd -" is a case where the new directory
is printed (along with paths relative to a non-empty CDPATH entry,
and where the "cd old new" (string replacement in curdir) is used.

While here document the new -e option to cd.

XXX pullup -9

(martin)

2021-11-06 13:39:06 UTC MAIN commitmail json YAML

Mention sht3xtemp(4)

(brad)

2021-11-06 13:36:34 UTC MAIN commitmail json YAML

Mention sht3xtemp(4)

(brad)

2021-11-06 13:35:43 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1371):

bin/sh/main.c: revision 1.87
bin/sh/main.c: revision 1.88
bin/sh/memalloc.h: revision 1.20
bin/sh/sh.1: revision 1.235
bin/sh/memalloc.c: revision 1.34
bin/sh/memalloc.c: revision 1.35
bin/sh/memalloc.h: revision 1.19
bin/sh/shell.h: revision 1.31
bin/sh/options.c: revision 1.56

PR bin/56464

After almost 30 years, finally do the right thing and read $HOME/.profile
rather than .profile in the initial directory (it was that way in version
1.1 ...)  All other ash descendants seem to have fixed this long ago.
While here, copy a feature from FreeBSD which allows "set +p" (if a
shell run by a setuid process with the -p flag is privileged) to reset
the privileges.  Once done (the set +p) it cannot be undone (a later
set -p sets the 'p' flag, but that's all it does) - that just becomes a
one bit storage location.

We do this, as (also copying from FreeBSD, and because it is the right
thing to do) we don't run .profile in a privileged shell - FreeBSD run
/etc/suid_profile in that case (not a good name, it also applies to setgid
shells) but I see no real need for that, we run /etc/profile in any case,
anything that would go in /etc/suid_profile can just go in /etc/profile
instead (with suitable guards so the commands only run in priv'd shells).

One or two minor DEBUG mode changes (notably having priv'd shells identify
themselves in the DEBUG trace) and sh.1 changes with doc of the "set +p"
change, the effect that has on $PSc and a few other wording tweaks.

XXX pullup -9  (not -8, this isn't worth it for the short lifetime
that has left - if it took 28+ years for anyone to notice this, it
cannot be having all that much effect).

Use a type-correct end marker for strstrcat() rather than NULL, as
for a function with unknown number & types of args, the compiler isn't
able to automatically convert to the correct type.  Issue pointed out
in off list e-mail by Rolland Illig ... Thanks.

The first arg (pointer to where to put length of result) is of a known
type, so doesn't have the same issue - we can keep using NULL for that
one when the length isn't needed.
Also, make sure to return a correctly null terminated null string in
the (absurd) case that there are no non-null args to strstrcat() (though
there are much better ways to generate "" on the stack).  Since there is
currently just one call in the code, and it has real string args, this
isn't an issue for now, but who knows, some day.

NFCI - if there is any real change, then it is a change that is required.

XXX pullup -9 (together with the previous changes)

(martin)

2021-11-06 13:34:40 UTC MAIN commitmail json YAML

2021-11-06 06:52:48 UTC MAIN commitmail json YAML

2021-11-06 06:49:02 UTC MAIN commitmail json YAML

Fix typo in comment. s/phyiscally/physically/

(msaitoh)

2021-11-06 06:44:42 UTC MAIN commitmail json YAML

2021-11-06 06:44:41 UTC MAIN commitmail json YAML

Fix typo in comment. s/notifcation/notification/

(msaitoh)

2021-11-06 06:41:02 UTC MAIN commitmail json YAML

config_pending_incr doesn't need KERNEL_LOCK protection

(skrll)

2021-11-06 06:40:33 UTC MAIN commitmail json YAML

2021-11-06 06:38:03 UTC MAIN commitmail json YAML

s/maxiumum/maximum/

(msaitoh)

2021-11-06 01:19:19 UTC MAIN commitmail json YAML

pax.1: minor grammar fixes

(gutteridge)

2021-11-05 23:39:47 UTC MAIN commitmail json YAML

mcx(4): ensure that RQT size is always a power of two.
Fixes PR kern/56484.
Thanks riastradh for the power of two patch :). OK: mrg, jmcneill, riastradh.

(andvar)

2021-11-05 22:39:36 UTC MAIN commitmail json YAML

Rework ilog2(3) man page.

- Tweak title.
- Clarify semantics -- round down, not any other way.
- xref ffs(3)
- Fix return type: int.
- Fix language about input type.
  . Any unsigned type is fine.
  . Types smaller than uint32_t will be safely converted to uint32_t.
- Note that it is a constant expression if x is constant.

(riastradh)

2021-11-05 22:06:43 UTC MAIN commitmail json YAML

indent: consistently use token.e[-1] for the last added character

No functional change.

(rillig)

2021-11-05 21:52:17 UTC MAIN commitmail json YAML

indent: clean up argument parsing

In struct pro, place the dependent member below its dependency.

In load_profile, consistently use -1 when outside a comment.

No functional change.

(rillig)

2021-11-05 21:39:12 UTC MAIN commitmail json YAML

indent: the '+ 1' in dump_line_code is not an off-by-one error

(rillig)

2021-11-05 21:08:04 UTC MAIN commitmail json YAML

indent: add debug output for remaining members of parser_status

(rillig)

2021-11-05 19:42:48 UTC MAIN commitmail json YAML

indent: rename process_keyword_do to process_do, same for 'else'

Before the symbols from the tokenizer had the prefix 'lsym', the symbols
could not be simply called 'else' and 'do'. The functions for processing
the tokens followed that naming scheme.

When the prefix 'lsym' was introduced, the word 'keyword' was no longer
needed, neither in the constants nor in the function names.

No functional change.

(rillig)

2021-11-05 19:33:29 UTC MAIN commitmail json YAML

2021-11-05 15:18:18 UTC MAIN commitmail json YAML

Normally, to support COMPAT_NETBSD32 we need to define
__HAVE_STRUCT_SIGCONTEXT in order to support the old
"sigcontext" style of handlers for 32-bit binaries.
However, we only support 32-bit EABI binaries on AArch64,
and by happy accident (due to a libc bug introduced in
2006), 32-bit NetBSD EABI binaries never used "sigcontext"
style handlers.  So, we don't need to carry any of this
baggage forward.

This addresses the AArch64 case of PR kern/56487.

(thorpej)

2021-11-05 07:39:23 UTC MAIN commitmail json YAML

Apply patch from PR port-evbarm/52209

Gumstix: KDASSERT in pxa2x0_gpio if no PCMCIA  bushead given but present

(skrll)

2021-11-05 06:15:42 UTC MAIN commitmail json YAML

Fix comment. No functional change.

(msaitoh)

2021-11-05 05:52:49 UTC MAIN commitmail json YAML

Fix a bug that device timeout still happens on ICH/PCH. Fixes PR kern/56478.

- if_wm.c rev. 1.695 for PR kern/40981 still had a problem. The workaround
  flag was unexpectedly cleared when a cable is not connected, SIOCINITIFADDR
  was called, or if_init was called. Fix it.
- Add debug printf()s.

(msaitoh)

2021-11-05 01:53:30 UTC MAIN commitmail json YAML

Don't power down the PHY when the interface goes down.

- All of other PHY drivers don't power down the PHY. Do the same way.
- At least, keeping the link is required for Intel AMT and WoL.

(msaitoh)

2021-11-05 01:49:15 UTC MAIN commitmail json YAML

Use macro. No functional change.

(msaitoh)

2021-11-04 21:31:30 UTC MAIN commitmail json YAML

make compilable at NPCI==0

(jakllsch)

2021-11-04 20:31:05 UTC MAIN commitmail json YAML

indent: split process_comment_in_code into separate functions

No functional change.

(rillig)

2021-11-04 19:23:57 UTC MAIN commitmail json YAML

indent: do not discard former error comments anymore

Since io.c 1.20 from 2019-10-19, indent has not placed error comments in
the code anymore. Since these comments are supposed to be cleaned up
immediately, there is no point in having code for handling them.

(rillig)

2021-11-04 18:38:37 UTC MAIN commitmail json YAML

indent: fix parsing of C99 comments containing '*/'

(rillig)

2021-11-04 18:31:23 UTC MAIN commitmail json YAML

tests/indent: demonstrate wrong edge case in C99 comments

(rillig)

2021-11-04 17:37:03 UTC MAIN commitmail json YAML

indent: split process_comments into separate functions

No functional change.

(rillig)

2021-11-04 17:12:12 UTC MAIN commitmail json YAML

2021-11-04 17:10:37 UTC MAIN commitmail json YAML

indent: extract compute_code_indent_lineup into separate function

Having 9 different paths in a single function made it more complicated
to understand than necessary.

No functional change.

(rillig)

2021-11-04 17:08:50 UTC MAIN commitmail json YAML

indent: fix off-by-one confusion in paren_indent

The variable was called 'indent' but actually contained a 'column',
which was off by one.

No functional change.

(rillig)

2021-11-04 17:07:02 UTC MAIN commitmail json YAML

indent: replace column computation with indentation computation

No functional change.

(rillig)

2021-11-04 12:40:01 UTC MAIN commitmail json YAML

Recognize argon2 passwords as valid in daily security reports.

from RVP in misc/56486

(nia)

2021-11-04 12:25:05 UTC MAIN commitmail json YAML

Add some sysctl info for debugging.

(msaitoh)

2021-11-04 07:28:34 UTC MAIN commitmail json YAML

Fix non-ACPI builds.

(skrll)

2021-11-04 06:57:51 UTC MAIN commitmail json YAML

Remove unnecessary duplicate bit define in mask

PR port-arm/50687

(skrll)

2021-11-04 00:13:57 UTC MAIN commitmail json YAML

indent: group conditions in compute_code_indent by topic

No functional change.

(rillig)

2021-11-03 22:02:36 UTC MAIN commitmail json YAML

Provide the ablity to ignore ACPI with an 'acpi' command:

acpi [{on|off}]

(skrll)

2021-11-03 21:47:35 UTC MAIN commitmail json YAML

indent: inline indentation_after, shorten function name to ind_add

There were only few calls to indentation_after, so inlining it spares
the need to look at yet another function definition. Another effect is
that code.s and code.e appear in the code as a pair now, instead of a
single code.s, making the scope of the function call obvious.

In ind_add, there is no need to check for '\0' anymore since none of the
buffers can ever contain a null character, these are filtered out by
inbuf_read_line.

No functional change.

(rillig)

2021-11-03 16:18:09 UTC MAIN commitmail json YAML

usbhid(3): use reallocarr

(nia)

2021-11-03 15:10:12 UTC MAIN commitmail json YAML

2021-11-03 15:09:42 UTC MAIN commitmail json YAML

- Rename EHL_TRACE* macros
- Update Jasper Lake's Processor Transaction Routers.

(msaitoh)

2021-11-03 14:49:21 UTC MAIN commitmail json YAML

futex_release_all_lwp(): No need to pass the "tid" argument separately; that
is a vestige of an older version of the code.  Also, move a KASSERT() that
both futex_release_all_lwp() call sites had inside of futex_release_all_lwp()
itself.

...so make this easier to test this sys_futex.c with trunk.

(thorpej)

2021-11-03 14:30:04 UTC MAIN commitmail json YAML

fdisk(8): Convert realloc(x * y) to reallocarr. Eliminate temp variables.

(nia)

2021-11-03 14:25:39 UTC MAIN commitmail json YAML

disklabel(8): convert malloc(x * y) to reallocarr

(nia)

2021-11-03 08:05:39 UTC MAIN commitmail json YAML

Add MIPSSIM{,64} as appropriate

(skrll)

2021-11-03 07:53:56 UTC MAIN commitmail json YAML

Catch up with member renaming

(skrll)

2021-11-03 04:52:51 UTC MAIN commitmail json YAML

CFI: Saved RA needs to point to the PC slot in the ucontext_t.

(thorpej)

2021-11-03 03:58:31 UTC MAIN commitmail json YAML

Set up the CFI in a slightly more rational way.

(thorpej)

2021-11-02 22:13:14 UTC MAIN commitmail json YAML

Update glob example from X11R6 to X11R7

(abs)

2021-11-02 22:09:17 UTC MAIN commitmail json YAML

Update Makefile comment from X11R6 to X11R7

(abs)

2021-11-02 22:07:43 UTC MAIN commitmail json YAML

Update x11-ssh-askman manpage app-defaults paths to X11R7

Now matches actual code

(abs)

2021-11-02 22:02:42 UTC MAIN commitmail json YAML

Update some distrib X11R6 references to X11R7

Some of these scripts and notes may no longer be relevant, but now
they are at least not relevant while referring to the current X
installation directory

(abs)

2021-11-02 21:55:38 UTC MAIN commitmail json YAML

Adjust example path to kde/sounds

Wherever sounds may be on a current NetBSD system, /usr/X11R6 is
unlikely to be in that set...

(abs)

2021-11-02 20:35:51 UTC MAIN commitmail json YAML

unconditionally define sockaddr_storage; this is what linux and FreeBSD do
and it has been there since Issue 6:
https://pubs.opengroup.org/onlinepubs/009604599/basedefs/sys/socket.h.html

(christos)

2021-11-02 20:12:26 UTC MAIN commitmail json YAML

2021-11-02 11:26:05 UTC MAIN commitmail json YAML

2021-11-02 11:22:03 UTC MAIN commitmail json YAML

fix profiling kernel build

(ryo)

2021-11-02 11:21:24 UTC MAIN commitmail json YAML

2021-11-02 10:38:26 UTC MAIN commitmail json YAML

2021-11-02 10:05:49 UTC MAIN commitmail json YAML

join(1): convert realloc(x * y) to reallocarr and eliminate temporary
variables

(nia)

2021-11-02 08:39:20 UTC MAIN commitmail json YAML

fts(3): Use reallocarr instead of realloc(x * y), eliminate a temporary
variable.

(nia)

2021-11-02 08:04:20 UTC MAIN commitmail json YAML

ed(1): use reallocarr instead of realloc(x * y)

(nia)

2021-11-02 06:54:10 UTC MAIN commitmail json YAML

2021-11-02 01:57:16 UTC MAIN commitmail json YAML

Added tests of combination of lagg(4), vlan(4), and l2tp(4)

(yamaguchi)

2021-11-02 01:42:26 UTC MAIN commitmail json YAML

Use IPv6 addresses, not IPv4, in combination test of IPv6, lagg and vlan

(yamaguchi)

2021-11-01 23:44:08 UTC MAIN commitmail json YAML

indent: fix missing blank after 'return' (since 2021-10-31)

In indent.c 1.200 from 2021-10-31, the subtypes of identifier tokens
were removed since they were redundant. An unintended side effect was
that a parenthesized expression after 'return' was no longer separated
by a blank.

Before that change, 'return' was tokenized as an lsym_ident with subtype
kw_other, and want_space_before_lparen handled this case in the last
line. After the change, 'return' was treated as an ordinary identifier,
and unless the option '-pcs' (blank after function call) was given, the
blank was removed.

The other keywords that had kw_other are not affected since they do not
expect a '(' afterwards. These keywords are 'break', 'continue', 'goto',
'inline' and 'restrict'.

Curiously, there was not a single test case that covered 'return(expr)'.

While here, remove the trailing ',' from the enum lexer_symbol, which is
not allowed in standard C, it is a GNU extension. Lint doesn't complain
about this since the default LINTFLAGS include '-g' for GCC mode.

(rillig)

2021-11-01 22:48:56 UTC MAIN commitmail json YAML

tests/indent: test option '-ci'

There are quite a few tricky special cases, but as they are all listed
in the manual page, they are not surprising.

(rillig)

2021-11-01 21:37:34 UTC MAIN commitmail json YAML

2021-11-01 21:28:03 UTC MAIN commitmail json YAML

2021-11-01 20:40:08 UTC MAIN commitmail json YAML

mail.1: fix duplicate word

(rillig)

2021-11-01 19:48:51 UTC MAIN commitmail json YAML

lint: enter full C90 compatibility mode

The C99 comment in tree.c:3468 has been there since 2017-03-06, without
anyone complaining that their compiler would not handle it.

Strangely, running GCC 10.3.0 in '-std=c90' mode does not complain about
declarations after statements, '-Wdeclaration-after-statement' is needed
separately.

No functional change.

(rillig)

2021-11-01 19:37:33 UTC MAIN commitmail json YAML

Use libhack and the non-widechar hacked version of curses for
the ramdisk image to save some space.

(martin)

2021-11-01 19:10:07 UTC MAIN commitmail json YAML

lint: move all declarations above statements

All code that is used by src/tools is supposed to be compatible with C90.

No functional change.

(rillig)

2021-11-01 18:11:26 UTC MAIN commitmail json YAML

lint: do not warn about array size mismatch in array[(int)enum]

The cast to 'int' explicitly converts the type away from being an enum.

(rillig)

2021-11-01 17:03:53 UTC MAIN commitmail json YAML

2021-11-01 15:56:53 UTC MAIN commitmail json YAML

Remove workaround, @rillig fixed the issue.

(christos)

2021-11-01 14:45:24 UTC MAIN commitmail json YAML

2021-11-01 14:33:42 UTC MAIN commitmail json YAML

Test lib/libc/sys/t_timerfd often fails when run on QEMU because
QEMU misses clock interrupts.

Always check values against [ lower, upper ] bounds and use "4 * upper"
when run under QEMU.

Now becomes part of PR kern/43997 "Kernel timer discrepancies".

(hannken)

2021-11-01 13:30:11 UTC MAIN commitmail json YAML

2021-11-01 12:26:18 UTC MAIN commitmail json YAML

2021-11-01 11:46:50 UTC MAIN commitmail json YAML

lint: in the check for array[enum], allow enum constant NUM

When an enum type defines a constant NUM_VALUES, this constant is
usually not part of the enum values available to the application but
rather a handy place for defining the number of other enum values. Don't
warn about this case.

Seen in openpam_impl.h and several other places.

(rillig)

2021-11-01 10:05:19 UTC MAIN commitmail json YAML

2021-11-01 08:53:40 UTC MAIN commitmail json YAML

Fix a last minute rebase/merge botch so that the cpu_hatch commit actually
works.

(skrll)

2021-11-01 08:40:16 UTC thorpej-futex2 commitmail json YAML

merge rev. 1.15 from HEAD:
fix a typo in compare_futex_key().

(chs)

2021-11-01 08:35:17 UTC MAIN commitmail json YAML

fix a typo in compare_futex_key().

(chs)

2021-11-01 05:53:46 UTC MAIN commitmail json YAML

2021-11-01 05:29:35 UTC MAIN commitmail json YAML

Don't mention the "struct sigaltstack" name of "stack_t".

(thorpej)

2021-11-01 05:26:28 UTC MAIN commitmail json YAML

2021-11-01 05:07:17 UTC MAIN commitmail json YAML

2021-11-01 03:09:59 UTC MAIN commitmail json YAML

Remove the

COPTS.*+=      -Wno-error=.*

lines for building argon2 sources, by fixing the problems at source.

Addresses Rin Okuyama's concerns on tech-userlevel/tech-crypto in

Message-ID: <f1eab199-3607-bb05-15cc-033e38721ba4@gmail.com>

(agc)

2021-10-31 23:33:13 UTC MAIN commitmail json YAML

tests/indent: test formatting of 'CPU_INFO_FOREACH(cii, ci)'

(rillig)

2021-10-31 23:15:44 UTC MAIN commitmail json YAML

lint: fix invalid memory access in array[enum] check

Lint checks whether in an expression 'array[enum]', the array size
matches the value of the maximum enum constant.

The previous tests for this check were missing the case where an enum
name was explicitly cast to an integer type and then used as an array
index. In this situation, the resulting type of the array index is a
plain 'int' without any information about its previous 'enum' history.

An entirely different case is when the 'enum' is implicitly converted to
an integer type, as in the test color_name_too_many. There, for the
final type of the array index, rn->tn_type->t_is_enum is true, which
means that rn->tn_type->t_enum is properly filled.

The bug was a simple typo, I had forgotten a tn_left indirection, which
is necessary to get the type before the implicit conversion.

Found and reported by Christos, triggered by src/lib/libperfuse/ops.c
1.89 line 1226 expression 'VTTOIF(vap->va_type)'.

(rillig)

2021-10-31 22:38:12 UTC MAIN commitmail json YAML

indent: clean up

Initialize buffers in reading order, make comments more expressive,
rename add_typename to register_typename, remove unused macro.

No functional change.

(rillig)

2021-10-31 22:24:36 UTC MAIN commitmail json YAML

2021-10-31 22:06:32 UTC MAIN commitmail json YAML

2021-10-31 21:43:43 UTC MAIN commitmail json YAML

indent: for '-pcs', add blank between function and '('

Before indent-2021.09.30.21.48.12, the blank had always been added, even
in '-npcs' mode. Since then, the blank had never been added.

Now, add the blank in '-pcs' mode and omit it in '-npcs' mode.

(rillig)

2021-10-31 21:31:55 UTC MAIN commitmail json YAML

tests/indent: test function declaration with '-pcs' and '-npcs'

The conditions in want_blank_before_lparen are not ordered correctly.
opt.proc_calls_space should override ')('.

(rillig)

2021-10-31 21:06:56 UTC MAIN commitmail json YAML

tests/indent: test indirect function call with '-pcs' and '-npcs'

(rillig)

2021-10-31 20:59:26 UTC MAIN commitmail json YAML

indent: remove redundant keyword.is_type

It is still confusing that not all type keywords end up as lsym_type.
Those that occur inside parentheses end up as identifiers instead. To
see whether an identifier is a typename, query ps.curr_is_type and
ps.prev_is_type.

No functional change.

(rillig)

2021-10-31 20:40:42 UTC MAIN commitmail json YAML

indent: replace kw_tag with lsym_tag

This leaves only one special type of token, which is lsym_ident, which
in some cases represents a type name and in other cases an identifier,
constant or string literal.

No functional change.

(rillig)

2021-10-31 19:57:44 UTC MAIN commitmail json YAML

indent: replace simple cases of keyword_kind with lexer_symbol

The remaining keyword kinds 'tag' and 'type' require a bit more thought,
so do them in a separate step.

No functional change.

(rillig)

2021-10-31 19:20:53 UTC MAIN commitmail json YAML

indent: rename lsym_type to better reflect reality

Type names that occur in parentheses are parsed as lsym_ident having the
subtype kw_type instead.

No functional change.

(rillig)

2021-10-31 19:13:41 UTC MAIN commitmail json YAML

2021-10-31 19:08:39 UTC MAIN commitmail json YAML

tests/indent: test support for ancient initialization without '='

(rillig)

2021-10-31 18:06:42 UTC MAIN commitmail json YAML

2021-10-31 17:50:35 UTC MAIN commitmail json YAML

USE CPPFLAGS instead of CFLAGS for -D !

(christos)

2021-10-31 17:24:11 UTC MAIN commitmail json YAML

Fix non-DIAGNOSTIC builds (hopefully). No idea why this didn't fail to
build for me without DIAGNOSTIC.

(skrll)

2021-10-31 17:22:48 UTC MAIN commitmail json YAML

indent: in debug log, print token subtype in same line

The keyword 'void' is parsed as lsym_type in some cases and lsym_ident
in others. Its corresponding keyword is always kw_type though. Put the
subtype into the same line as the other token information.

(rillig)

2021-10-31 16:42:16 UTC MAIN commitmail json YAML

Avoid null pointer exception hpcmips/mipsel src/lib/libperfuse/ops.c

(christos)

2021-10-31 16:29:18 UTC MAIN commitmail json YAML

Only perform pic_unblock_percpu if all of the following are true
- mp_online, i.e. APs are running.
- is_mpsafe, i.e. the interrupt handler is MP safe
- is_percpu, i.e. the interrupt actually requires it!

The last one (is_percpu) is true for GIC PPI+SGI only.

(skrll)

2021-10-31 16:26:26 UTC MAIN commitmail json YAML

Revert the 2015 change I made that allowed sleeping in the idle lwp
if it wasn't running yet, e.g. in cpu_hatch
---
sys/kern/kern_lock.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 40557427de86..c0c9d8adaf9e 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -89,8 +89,7 @@ assert_sleepable(void)
} while (pctr != lwp_pctr());

reason = NULL;
- if (idle && !cold &&
-     kcpuset_isset(kcpuset_running, cpu_index(curcpu()))) {
+ if (idle && !cold) {
reason = "idle";
}
if (cpu_intr_p()) {
--
2.25.1

(skrll)

2021-10-31 16:24:47 UTC MAIN commitmail json YAML

Assert we can sleep in pic_add

(skrll)

2021-10-31 16:23:48 UTC MAIN commitmail json YAML

Rework Arm (32bit and 64bit) AP startup so that cpu_hatch doesn't sleep.

The AP initialisation code in cpu_init_secondary_processor will read and
initialise the required system registers and state for the BP to attach
and report.

Rework the interrupt handler code for this new sequence. Thankfully,
this removes a bunch of code for bcm2836mp.

The VFP detection handler on <= armv7 relies on the global undefined
handler being in place until the BP attaches vfp. That is, after the
APs have been spun up.

gicv3_its.c has a serialisation issue which is protected against in
the gicv3_its_cpu_init, which is called from cpu_hatch, with a spin
lock. The serialisation issue needs addressing more completely.

Tested on RPI3, Apple M1, QEMU, and lx2k

Fixes PR port-arm/56264:
  diagnostic assertion "l->l_stat == LSONPROC" failed on RPI3

(skrll)

2021-10-31 15:32:14 UTC MAIN commitmail json YAML

Reload tpidr_el1 into x3 and re-test newipl vs cpl on restart.

(jmcneill)

2021-10-31 14:49:33 UTC netbsd-8 commitmail json YAML

2021-10-31 14:48:42 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1705):

lib/libcrypt/crypt-sha1.c: revision 1.10

libcrypt: Fix a floating point exception when a low number of HMAC-SHA1
iterations are specified.

(martin)