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 12:03:30 UTC Now

2021-11-28 16:05:59 UTC MAIN commitmail json YAML

2021-11-28 15:49:36 UTC MAIN commitmail json YAML

When we build against DESTDIR, add the lint library path for DESTDIR during
the link phase for lint.

(christos)

2021-11-28 15:47:33 UTC MAIN commitmail json YAML

For private and module libraries, build lint but do not install the lint
libraries. We want to lint the private library code and we want to be able
to link against the lint libraries, for example llib-largon2 from cgdconfig
which is accessed via PROGDPLIBS.

(christos)

2021-11-28 15:26:22 UTC MAIN commitmail json YAML

tests/indent: migrate token_comma to lsym_comma

The section on initializer values is new.

(rillig)

2021-11-28 14:49:28 UTC MAIN commitmail json YAML

2021-11-28 14:29:03 UTC MAIN commitmail json YAML

indent: treat L"string" as a single token

There is never whitespace between the 'L' and the string literal or the
character constant. There might be a backslash-newline between them, but
that case was not handled before either.

No functional change.

(rillig)

2021-11-28 11:49:11 UTC MAIN commitmail json YAML

indent: clean up and document input handling

The transformation of moving comments from after an 'if (expr)' after
the following brace has a large implementation cost (about 300 lines of
code) and makes input handling quite complicated. Document the overall
idea to save future readers some time.

No functional change.

(rillig)

2021-11-28 10:11:15 UTC MAIN commitmail json YAML

tests/lint: update history of exporting unnamed objects

(rillig)

2021-11-28 10:01:37 UTC MAIN commitmail json YAML

lint: do not export unnamed objects to the .ln file

Since these objects are unnamed, they cannot be referenced by other
files or even create name clashes.

Seen in usr.sbin/cpuctl/aarch64.c, reported by Christos.

(rillig)

2021-11-28 09:59:59 UTC MAIN commitmail json YAML

lint: allow Bison debug functions to be unused

The grammar is only compiled using Bison during development time. In the
official builds, it is built with byacc.

No functional change.

(rillig)

2021-11-28 09:47:18 UTC MAIN commitmail json YAML

tests/lint1: reproduce parse error for accidentally exported name

Seen in usr.sbin/cpuctl/aarch64.c line 118.

error: aarch64.ln:857:
    not alnum or _:  (for '118d-1.0d1200000000_tmpA16PcC')

The name 00000000_tmp was not supposed to be exported.

(rillig)

2021-11-28 09:16:46 UTC MAIN commitmail json YAML

lint2: in case of parse errors, output the offending line

This provides more of a clue than a simple '(not alnum or _: )',
especially in the output of build.sh.

While here, change the format of the error message to the standard
'%s:%d'. Since these are internal errors, they are not supposed to occur
often, so no need to change error(1).

(rillig)

2021-11-28 09:14:21 UTC MAIN commitmail json YAML

sqlite3-3.37.0 out

(wiz)

2021-11-28 09:10:36 UTC MAIN commitmail json YAML

tests/lint2: fix regular expressions containing backslash

In regular expressions, a backslash must be doubled. In this case, ATF
didn't complain because the single backslashes were used in the pattern
'\($2\)', where they produced '\(...\\)'. Omitting the backslash for the
closing parenthesis was apparently OK; other regex implementations
complain about this.

(rillig)

2021-11-28 08:21:50 UTC MAIN commitmail json YAML

lint: move fgetln peculiarities out of read_ln_line

This allows the function parameter to be a pointer to const.

No functional change.

(rillig)

2021-11-28 02:54:26 UTC MAIN commitmail json YAML

2021-11-28 02:07:02 UTC MAIN commitmail json YAML

Explain the usage errors.

(christos)

2021-11-28 02:01:30 UTC MAIN commitmail json YAML

-lpthread to LDADD (fixes lint build)

(christos)

2021-11-28 00:21:12 UTC MAIN commitmail json YAML

sys.mk: fix duplicate character in character class of LINTFLAGS

The character class contained two times U+0020, which makes one of them
redundant, so remove the character class. PR toolchain/18248 already
contained these two spaces.

Apparently there is no need to support tabs in this place, otherwise
someone would have noticed it in the 17 years since this pattern had
been added in sys.mk 1.83 from 2004-01-27.

No functional change.

(rillig)

2021-11-28 00:02:07 UTC MAIN commitmail json YAML

make: with the option -de in jobs mode, output expanded commands

This helps tracking down the actual cause of build failures in build
systems like NetBSD's build.sh that use highly abstracted commands that
are mainly defined in terms of variables.

(rillig)

2021-11-27 23:56:11 UTC MAIN commitmail json YAML

tests/make: demonstrate unhelpful debug log in case of errors

The releng build job that runs lint fails.  It outputs the usage message
of lint, which doesn't include the failing option.  After that, make
outputs:

*** Failed target: lint-cgdconfig
*** Failed commands:
${LINT} ${LINTFLAGS} \
    ${_LDFLAGS.${:Ucgdconfig}:C/-L[  ]*/-L/Wg:M-L*} \
    ${LOBJS.${:Ucgdconfig}} ${_LDADD.${:Ucgdconfig}}

Make doesn't output the expanded command, therefore the log doesn't show
the offending option '-pthread' that leads to the usage message.

(rillig)

2021-11-27 23:22:25 UTC MAIN commitmail json YAML

Amend the comment about UsePAM; the ChallengeResponseAuthentication
setting is deprecated, replaced by KbdInteractiveAuthentication,
confirmed both by man page and code.

(he)

2021-11-27 22:30:26 UTC MAIN commitmail json YAML

usr.sbin: remove unnecessary CONSTCOND, lint no longer needs it

Since 2021-01-31, lint no longer requires a CONSTCOND comment in a
do-while-0 statement since this is a common code pattern, especially in
statement-like macros.

sed -i -E 's,} while \(/\* ?CONSTCOND ?\*/ ?0\),} while (0),' */*.[ch]

(rillig)

2021-11-27 22:16:42 UTC MAIN commitmail json YAML

usr.bin: remove unnecessary CONSTCOND, lint no longer needs it

Since 2021-01-31, lint no longer requires a CONSTCOND comment in a
do-while-0 statement since this is a common code pattern, especially in
statement-like macros.

(rillig)

2021-11-27 22:04:02 UTC MAIN commitmail json YAML

make: remove CONSTCOND comments, lint no longer needs them

(rillig)

2021-11-27 21:23:23 UTC MAIN commitmail json YAML

indent: reword README

(rillig)

2021-11-27 21:15:58 UTC MAIN commitmail json YAML

indent: accept a few formatting suggestions from indent

The remaining issues are still that the conditions look ambiguous even
with -eei, and that __attribute__ is broken into a separate line.

No functional change.

(rillig)

2021-11-27 21:15:53 UTC MAIN commitmail json YAML

2021-11-27 21:15:07 UTC MAIN commitmail json YAML

2021-11-27 20:58:16 UTC MAIN commitmail json YAML

indent: illustrate probably_looking_at_definition with examples

No functional change.

(rillig)

2021-11-27 20:33:39 UTC MAIN commitmail json YAML

indent: fix out of bounds memory access (since 2021-11-25)

(rillig)

2021-11-27 20:13:48 UTC MAIN commitmail json YAML

2021-11-27 19:55:21 UTC MAIN commitmail json YAML

add options COMPAT_LINUX32 (commented out)

(ryo)

2021-11-27 19:21:42 UTC MAIN commitmail json YAML

tests/indent: demonstrate strange formatting (since 2021-11-25)

(rillig)

2021-11-27 18:39:15 UTC MAIN commitmail json YAML

/etc/shells - Add tmux.

We ship tmux in base and tmux can be used as user's default shell.

(uwe)

2021-11-27 18:37:17 UTC MAIN commitmail json YAML

2021-11-27 18:29:29 UTC MAIN commitmail json YAML

indent: inline switch_buffer

The function name was not accurate all the time. Now that
inp_from_comment is a separate function, it doesn't make sense anymore
to offload the 3 simple statements to a separate function.

No functional change.

(rillig)

2021-11-27 18:26:48 UTC MAIN commitmail json YAML

indent: add assertions for input handling

Just to document the invariants; the code is already OK.

(rillig)

2021-11-27 15:23:33 UTC MAIN commitmail json YAML

Force failure of the nfs_renamerace_cycle, p2k_ffs_renamerace_cycle,
and puffs_renamerace_cycle test cases as they fail only randomly or
only on some systems.

(gson)

2021-11-27 14:11:14 UTC MAIN commitmail json YAML

kern: Add debug.crashme.null_jump.

(riastradh)

2021-11-27 14:11:04 UTC MAIN commitmail json YAML

aarch64: Fix stack traces from jump-to-null.

(riastradh)

2021-11-27 10:00:01 UTC MAIN commitmail json YAML

2021-11-27 08:51:01 UTC MAIN commitmail json YAML

Apply some errata workarounds for Cortex A17

(skrll)

2021-11-27 08:25:18 UTC MAIN commitmail json YAML

Add the Cortex A17 Diagnostic control registers

(skrll)

2021-11-27 06:47:43 UTC MAIN commitmail json YAML

Drive-by trailing whitespace removal.

(skrll)

2021-11-27 06:44:17 UTC MAIN commitmail json YAML

Remove unnecessary #include

(skrll)

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

2021-11-26 22:37:31 UTC MAIN commitmail json YAML

Add "Gearmo USA-FTDI4X" (a 4-port USB serial adapter) to the list of
devices supported by uftdi(4).

(thorpej)

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

The wg_handshake_timeout test case was failing because it contained
atf_fail "failed to trigger PR kern/56252" without a corresponding
atf_expect_fail "PR kern/56252", which makes no sense.  Since the
test case does occasionally fail on real hardware, fix this by adding
the atf_expect_fail rather than by removing the atf_fail.

(gson)

2021-11-26 19:39:58 UTC MAIN commitmail json YAML

Mask the bottom 5 bits in the standard pic way. NFC.

(skrll)

2021-11-26 19:36:17 UTC MAIN commitmail json YAML

2021-11-26 19:28:37 UTC MAIN commitmail json YAML

The changes on compat/linux/common/linux_termios.c should also
be applied to compat/linux32/common/linux_termios.c, and reduce diff.

- remove duplicate fd_putfile(). This will be done after "goto out;".
- catch up from compat/linux/common/linux_termios.c r1.26  TIOCSPTLCK
- catch up from compat/linux/common/linux_termios.c r1.37  (TCOOFF/TCOON) of the TCXONC
- catch up from compat/linux/common/linux_termios.c r1.39  FIOCLEX and FIONCLEX

(ryo)

2021-11-26 18:10:37 UTC netbsd-9 commitmail json YAML

ticket #1373 has not been removed, it was ticket #1377 (oops)

(martin)

2021-11-26 18:08:30 UTC netbsd-9 commitmail json YAML

Remove ticket #1373 (which has been undone)

(martin)

2021-11-26 18:04:09 UTC netbsd-9 commitmail json YAML

Backout previous pullup from ticket #1377:

etc/rc.d/npf_boot: revision 1.5
etc/rc.d/pf_boot: revision 1.8

(martin)

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

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

use MNT_NFS4ACLS instead of MNT_ACLS (which was changed before to mean
MNT_POSIX1EACLS)

(christos)

2021-11-26 16:51:15 UTC netbsd-9 commitmail json YAML

2021-11-26 16:50:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sborrill in ticket #1377):

etc/rc.d/npf_boot: revision 1.5
etc/rc.d/pf_boot: revision 1.8

Load rc configuration based on rcvar, not name, so that correct settings
in /etc/rc.conf.d are loaded.

Usually this does not matter as rcvar and name are set to the same value.

For pf_boot and npf_boot, rcvar is set to pf and npf respectively.

Prior to the change, if:
rc.conf contains nfp=YES
rc.conf.d/npf does not exist
Then:
/etc/rc.d/npf_boot rcvar
outputs:
$npf=YES

If:
rc.conf contains npf=NO (or is not set)
rc.conf.d/npf contains npf=YES
Then:
/etc/rc.d/npf_boot rcvar
outputs:
$npf=NO

This means that in the latter case, at boot time the npfctl start command
is never run and the firewall is not operational.

(martin)

2021-11-26 15:45:52 UTC MAIN commitmail json YAML

Delete trailing whitespace

(gson)

2021-11-26 15:21:38 UTC MAIN commitmail json YAML

indent: enhance debug logging for input handling

(rillig)

2021-11-26 15:18:19 UTC MAIN commitmail json YAML

indent: add buf_add_range for adding characters to a buffer

No functional change.

(rillig)

2021-11-26 15:08:48 UTC MAIN commitmail json YAML

indent: replace inp_enlarge with inp_add

Previously, inbuf.inp.s was only updated at the very end of reading a
line from the input file, which meant that during debugging, it pointed
to invalid memory. Updating all fields in inbuf.inp after every
reallocation makes the code less tricky to understand.

No functional change.

(rillig)

2021-11-26 14:48:03 UTC MAIN commitmail json YAML

indent: split inp_read_line into smaller functions

No functional change.

(rillig)

2021-11-26 14:33:13 UTC MAIN commitmail json YAML

indent: extract inp_from_file from inp_read_line

No functional change.

(rillig)

2021-11-26 14:27:19 UTC MAIN commitmail json YAML

indent: remove code that fixes malformed preprocessor directives

(rillig)

2021-11-26 14:17:01 UTC MAIN commitmail json YAML

indent: move ind_add from io.c to indent.c

It's a general-purpose function that is not directly related to input or
output.

(rillig)

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

Remove #error, fixes the build. I don't understand why this would not work
on big endian. We use this construct to convert pointers everywhere else.

(christos)

2021-11-26 13:24:28 UTC MAIN commitmail json YAML

2021-11-26 13:11:36 UTC MAIN commitmail json YAML

Load rc configuration based on rcvar, not name, so that correct settings
in /etc/rc.conf.d are loaded.

Usually this does not matter as rcvar and name are set to the same value.
For pf_boot and npf_boot, rcvar is set to pf and npf respectively.

Prior to the change, if:
rc.conf contains nfp=YES
rc.conf.d/npf does not exist

Then:
/etc/rc.d/npf_boot rcvar
outputs:
# npf_boot
$npf=YES

If:
rc.conf contains npf=NO (or is not set)
rc.conf.d/npf contains npf=YES

Then:
/etc/rc.d/npf_boot rcvar
outputs:
# npf_boot
$npf=NO

This means that in the latter case, at boot time the npfctl start command
is never run and the firewall is not operational.

(sborrill)

2021-11-26 12:51:24 UTC MAIN commitmail json YAML

Use rcvar=$name syntax consistently in rc.d scripts which makes it easier to
search for rc.d scripts where rcvar differs from name. No functional change.

(sborrill)

2021-11-26 09:05:06 UTC MAIN commitmail json YAML

The internal architecture name of golang is "arm" or "arm64", which has
different naming conventions from netbsd's machine[] or machine_arch[]
("earmv7", "aarch64", etc.) and cannot be used as is.
Instead, use define LINUX_GO_RT0_SIGNATURE_ARCH{32,64}.

(ryo)

2021-11-26 08:56:29 UTC MAIN commitmail json YAML

2021-11-26 08:06:12 UTC MAIN commitmail json YAML

Fix anonymous memory object leak for sigcode.

- Repeating "modload compat_linux && /emul/linux/bin/ls && modunload compat_linux"
  will reproduce this problem.
- It cause in exec_sigcode_map(), anon-object for sigcode was created at
  first exec, but it remained even after exec_remove.
- Fixed that the anon-object for sigcode is created at exec_add(), and the
  anon-object reference is removed at exec_remove().
- sigobject_lock is no longer needed since it is locked by exec_lock.
- The compat_16 module rewrites the e_sigcode entry in emul_netbsd directly and
  does not use exec_add()/exec_remove(), so it needs to call
  sigcode_alloc()/sigcode_free() on its own.

(ryo)

2021-11-25 21:59:40 UTC MAIN commitmail json YAML

indent: prevent undefined behavior in inp_line_start

No functional change.

(rillig)

2021-11-25 21:48:23 UTC MAIN commitmail json YAML

indent: make error message for missing command line arguments clearer

(rillig)

2021-11-25 21:45:28 UTC MAIN commitmail json YAML

tests/indent: use escape sequence for newline characters

No functional change.

(rillig)

2021-11-25 21:39:21 UTC MAIN commitmail json YAML

tests/indent: test in-place formatting with parse errors

The file gets formatted until the end, despite the parse error. This may
destroy layout details of the code but usually preserves the overall
structure. Since all source code is supposed to be under version
control, this is not a problem.

(rillig)

2021-11-25 21:01:32 UTC MAIN commitmail json YAML

indent: make fits_in_one_line independent of ps

This makes it easier to understand the function. Having the dependency
to the input line handling is already complicated enough.

No functional change.

(rillig)

2021-11-25 20:44:10 UTC MAIN commitmail json YAML

indent: fix accidentally joined and broken comments (since 2019-04-04)

The fixed version is not perfect as it gets the indentation of the last
line of the first comment wrong, but at least indent doesn't generate
malformed output anymore.

(rillig)

2021-11-25 20:14:00 UTC MAIN commitmail json YAML

tests/indent: demonstrate bugs in comment processing

(rillig)

2021-11-25 20:02:06 UTC MAIN commitmail json YAML

tests/indent: fix misleading typedef name

(rillig)

2021-11-25 20:00:31 UTC MAIN commitmail json YAML

indent: update cross-reference comments for bug in comment handling

The function was renamed in io.c 1.122 from 2021-11-19.

(rillig)

2021-11-25 19:56:03 UTC MAIN commitmail json YAML

tests/indent: rename ps.in_parameter_declaration in test as well

(rillig)

2021-11-25 18:48:38 UTC MAIN commitmail json YAML

indent: rename ps.in_function_parameters to match reality

This flag is only set while parsing the parameters of a function
definition, but not for a function declaration. See buffer_add in the
test fmt_decl.

No functional change.

(rillig)

2021-11-25 18:36:30 UTC MAIN commitmail json YAML

2021-11-25 18:20:21 UTC MAIN commitmail json YAML

tests/indent: demonstrate more example for broken '*' in declarations

Since indent-2021.11.25.16.41.33.

(rillig)

2021-11-25 18:10:23 UTC MAIN commitmail json YAML

tests/indent: demonstrate 'sizeof(int) *expr' (since 2021-11-25)

Broken in indent-2021.11.25.16.41.33, while fixing the spacing around
'*' in declarations.

(rillig)

2021-11-25 17:50:25 UTC netbsd-9 commitmail json YAML

2021-11-25 17:50:01 UTC MAIN commitmail json YAML

indent: eliminate 3 negations in tokenizer

No functional change.

(rillig)

2021-11-25 17:49:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by gutteridge in ticket #1376):

distrib/notes/common/main: revision 1.566
distrib/notes/common/main: revision 1.567

main: add note about amd64 now having a "bios" image, too

main: add .gz extension to .img references for consistency

(martin)

2021-11-25 17:46:51 UTC MAIN commitmail json YAML

indent: extract lex_asterisk_unary into separate function

No functional change.

(rillig)

2021-11-25 17:35:46 UTC MAIN commitmail json YAML

indent: condense code for building tokens from characters

No functional change.

(rillig)

2021-11-25 17:28:13 UTC MAIN commitmail json YAML

indent: in lexi, assign lsym and next_unary in consistent order

No functional change.

(rillig)

2021-11-25 17:10:53 UTC MAIN commitmail json YAML

indent: fix heuristic for declaration/definition to post-1990 reality

(rillig)

2021-11-25 16:56:02 UTC MAIN commitmail json YAML

tests/indent: remove unnecessary option for testing '-pcs'

Before lexi.c 1.157 from 2021-11-25, the option '-npsl' had been
necessary to prevent a wrong line break, as indent wrongly interpreted
the function declaration as a function definition, just because the
first ')' in the declaration line was not immediately followed by a ','
or ';'.

(rillig)

2021-11-25 16:51:24 UTC MAIN commitmail json YAML

indent: fix space after function name for option '-pcs'

(rillig)

2021-11-25 16:41:33 UTC MAIN commitmail json YAML

indent: fix spacing for unknown type names in declarations

(rillig)

2021-11-25 16:09:02 UTC MAIN commitmail json YAML

indent: extract probably_looking_at_definition to separate function

This heuristic guesses wrong in many cases and will some cleanups.

No functional change.

(rillig)

2021-11-25 16:05:07 UTC MAIN commitmail json YAML

tests/indent: test '*' in function declarations

(rillig)

2021-11-25 14:17:22 UTC MAIN commitmail json YAML

Consistently use "drvctl -l qemufwcfg0" to check if
running under qemu in general.

(hannken)

2021-11-25 10:31:50 UTC MAIN commitmail json YAML

Reverte my previous changes kern_exec.c r1.512. It panics.

This changes was insufficient because es_emul is referenced by multiple execsw.

(ryo)

2021-11-25 09:40:45 UTC MAIN commitmail json YAML

More / improved debug

(skrll)

2021-11-25 09:36:21 UTC MAIN commitmail json YAML

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

indent: merge duplicate code for parsing 'struct s *'

No functional change.

(rillig)

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

indent: fix formatting of a few declarations involving unknown types

(rillig)

2021-11-25 07:47:55 UTC MAIN commitmail json YAML

indent: fix comment for ps.in_decl

In C, there are no declaration statements. There are declarations and
statements, but no combination thereof.

(rillig)

2021-11-25 07:45:32 UTC MAIN commitmail json YAML

indent: rename ps.in_stmt to in_stmt_or_decl

The previous name didn't match reality.

No functional change.

(rillig)

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

indent: rename ps.ind_stmt to in_stmt_cont

This makes a comment redundant.

No functional change.

(rillig)

2021-11-25 07:30:54 UTC MAIN commitmail json YAML

indent: clean up style

No functional change.

(rillig)

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

Add support COMPAT_LINUX32 for aarch64

(ryo)

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

2021-11-25 02:48:00 UTC MAIN commitmail json YAML

Extra arguments for AT_HWCAP and AT_PLATFORM are now passed when executing linux32 binaries.

AT_SYSINFO (vsyscall) feature seems to be broken, so leave it commented out.

(ryo)

2021-11-25 02:38:56 UTC MAIN commitmail json YAML

The default name of the `exec_setup_stack' function for linux32 should be `linux32_exec_setup_stack',
and it should be defined in each arch.
declaration of linux32_exec_setup_stack() in linux32/amd64 has been removed because it does not exist.

NFC.

(ryo)

2021-11-25 02:37:38 UTC MAIN commitmail json YAML

Fix anonymous memory object leak for sigcode.

- Repeating "modload compat_linux && /emul/linux/bin/ls && modunload compat_linux"
  will reproduce this problem.
- It cause in exec_sigcode_map(), anon-object for sigcode was created at
  first exec, but it remained even after exec_remove.
- Fixed that the anon-object for sigcode is created at exec_add(), and the
  anon-object reference is removed at exec_remove().
- sigobject_lock is no longer needed since it is locked by exec_lock.

(ryo)

2021-11-25 02:36:35 UTC MAIN commitmail json YAML

add missing options EXEC_ELF32

(ryo)

2021-11-25 02:35:00 UTC MAIN commitmail json YAML

- Use LINUX32_F_xxx instead of LINUX_F_xxx for compat_linux32.
  aarch64 and arm have different values.
- Compile linux32_sys_fadvise64() only if the syscall is required.

(ryo)

2021-11-25 02:32:24 UTC MAIN commitmail json YAML

2021-11-25 02:29:33 UTC MAIN commitmail json YAML

2021-11-25 02:27:09 UTC MAIN commitmail json YAML

- Add compat_linux statx(2) syscall.
- The AT_EMPTY_PATH processing from the modification of
  sys/compat/linux/common/linux_file64.c r1.63 has been separated, and made
  common to linux_statat(), so that it can be used not only by
  linux32_sys_fstatat64() but also by other *statat() variants.

(ryo)

2021-11-25 02:09:23 UTC MAIN commitmail json YAML

rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion.
There is a static function with the same name in linux/common/linux_file.c.

NFC.

(ryo)

2021-11-25 02:08:55 UTC MAIN commitmail json YAML

rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion.
There is a static function with the same name in linux/common/linux_file.c.

NFC.

(ryo)

2021-11-25 00:49:34 UTC MAIN commitmail json YAML

Better counting for ierrors, iqdrops and noproto in ether_input().

- Use if_noproto for unknown or unsupported protocols.
- Use if_ierrors for wrong mbuf or oversized frame.

(msaitoh)

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

tests/indent: demonstrate several real-life formatting bugs

Collected by indenting usr.bin/make with the default profile.

The heuristic for distinguishing between type names and other
identifiers is way too primitive, it seems to have stopped evolving
somewhere before function prototypes were standardized in C90, at least
it handles function prototypes poorly.

indent-2014.09.04.04.06.07 added seemingly random spaces to
declarations, which were fixed in indent-2019.04.04.15.27.35, which came
5 years later. The latter commit introduced many new bugs, but it also
fixed this one.

The wrongly indented struct member declaration for HashTable has been
there since at least indent-2000.10.11.14.46.04.

The wrongly indented initializer expression was added in
indent-2019.04.04.15.27.35 (see above).

(rillig)

2021-11-24 18:57:25 UTC MAIN commitmail json YAML

2021-11-24 18:52:13 UTC MAIN commitmail json YAML

2021-11-24 18:50:28 UTC MAIN commitmail json YAML

add missing SUBDIR aarch64

(ryo)

2021-11-24 16:35:33 UTC MAIN commitmail json YAML

Fix "restart" semantics -- restart is terminal, so don't clear the
condition when previous waiters have drained.  ("restart" is a bad
name for that this function does, fwiw.)

This should address a kernel assertion failure reported by Chavdar Ivanov
on current-users.

(thorpej)

2021-11-24 15:05:16 UTC MAIN commitmail json YAML

Decorate the VAX signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.

N.B. This is currently disabled, as these .cfi directives cause
linker warnings about incompatible TEXTREL relocations in .eh_frame.

(thorpej)

2021-11-24 14:34:51 UTC MAIN commitmail json YAML

wsmoused: support absolute mouse position events

Tested with VirtualBox Guest Addtions.

(uwe)

2021-11-24 10:01:24 UTC MAIN commitmail json YAML

arm64: acpi: Set capacity_dmips_mhz for CPUs

The GICC structure describes a relative power efficiency for each
processor. Use this value as-is for the capacity_dmips_mhz value of a
cpu. This makes the assumption that "more efficient" means "slower".

(jmcneill)

2021-11-24 02:01:15 UTC MAIN commitmail json YAML

Decorate the SuperH signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.

(thorpej)

2021-11-24 00:22:00 UTC MAIN commitmail json YAML

Teach the LLVM-derived unwinder about the DWARF pseudo-registers defined
by GCC for SuperH for GBR, MACH, MACL, and SR.

(thorpej)

2021-11-23 23:29:55 UTC MAIN commitmail json YAML

Temporary hack to work around incorrect/missing unwind info for
the t_sig_backtrace test case on ARM when compiled with optimization.

(thorpej)

2021-11-23 18:45:53 UTC MAIN commitmail json YAML

Decorate the ARM signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.

(thorpej)

2021-11-23 17:54:08 UTC MAIN commitmail json YAML

Make LINUX_FIOCLEX and LINUX_FIONCLEX work

These ioctls were declared in linux_termios.h but were not actually
handled.

(pho)

2021-11-23 02:49:56 UTC MAIN commitmail json YAML

Because the PC is not a general purpose register on aarch64, we need
to use DWARF pseudo-register for the signal trampoline return address.

Adjust the style to match other platforms.

(thorpej)

2021-11-22 21:25:25 UTC MAIN commitmail json YAML

Don't waste time setting the dirty flag multiple times.

(blymn)

2021-11-22 17:06:25 UTC netbsd-9 commitmail json YAML

2021-11-22 17:05:32 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1375):

usr.sbin/cpuctl/arch/i386.c: revision 1.123
sys/arch/x86/x86/cpu_topology.c: revision 1.20

decode SMT parts for AMD family >= 0x17, not just 0x17.

now zen3 systems are properly identified by cpu topology for the
scheduler and cpuctl identify.

(martin)

2021-11-22 16:41:32 UTC MAIN commitmail json YAML

Revert unintended commit.

(thorpej)

2021-11-22 16:41:00 UTC MAIN commitmail json YAML

2021-11-22 16:40:01 UTC MAIN commitmail json YAML

Teach the LLVM-derived unwinder about the DWARF pseudo-register defined
by GCC for AArch64 to hold the return address where the signal trampoline
will resume.

(thorpej)

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

doc: new key generation method for cgdconfig(8)

(nia)

2021-11-22 16:04:03 UTC MAIN commitmail json YAML

cgdconfig(8): add some console feedback when calculating the number
of pkcs5_pbkdf2 iterations

(nia)

2021-11-22 15:09:16 UTC MAIN commitmail json YAML

2021-11-22 14:34:35 UTC MAIN commitmail json YAML

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@

(nia)

2021-11-22 14:30:25 UTC MAIN commitmail json YAML

crypt(3): document some of the memory units we're dealing with

(nia)

2021-11-22 12:30:34 UTC MAIN commitmail json YAML

Fix typo. Pointed out by bch - thanks!

(martin)

2021-11-22 05:57:25 UTC MAIN commitmail json YAML

Add LLDP and MACSec.

(msaitoh)

2021-11-22 05:50:29 UTC MAIN commitmail json YAML

Modify comment:

s/Netbios/NetBIOS/
s/PPPOE/PPPoE/

(msaitoh)

2021-11-22 05:33:57 UTC MAIN commitmail json YAML

2021-11-22 05:21:54 UTC MAIN commitmail json YAML

PR bin/53550

/bin/sh's processing of here doc expansions has changed.  Now it happens
in the context of the parent shell, so side effects are visible there,
just like all other redirection expansions.

We need to stop testing that that doesn't happen, and instead test
that it does.  This is that change.

Add another test case which is testing exactly the example from the PR
(well, with a different exit status, 1 is too generic and could happen
by accident) to make sure we don't reintroduce that bug sometime.

(kre)

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

PR bin/53550

Here we go again...  One more time to redo how here docs are
processed (it has been a few years since the last time!)

This is actually a relatively minor change, mostly to timimg
(to just when things happen).  Now here docs are expanded at the
same time the "filename" word in a redirect is expanded, rather than
later when the heredoc was being sent to its process.  This actually
makes things more consistent - but does break one of the ATF tests
which was testing that we were (effectively) internally inconsistent
in this area.

Not all shells agree on the context in which redirection expansions
should happen, some make any side effects visible to the parent shell
(the majority do) others do the redirection expansions in a subshell
so any side effcts are lost.  We used to have a foot in each camp,
with the majority for everything but here docs, and the minority for
here docs.  Now we're all the way with LBJ ... (or something like that).

(kre)

2021-11-22 05:07:15 UTC MAIN commitmail json YAML

More tests that were doing  ... | atf_check ...

which allows the atf_check to fail without causing the test to fail
(unless this is the (very) last command in the test case, in which case it
will fail with what can be interpreted as an internal error)/

Check for this failing and explicitly atf_fail whwn it does.

(kre)

2021-11-21 23:58:09 UTC MAIN commitmail json YAML

Decorate the m68k signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.

(thorpej)

2021-11-21 23:34:44 UTC MAIN commitmail json YAML

Teach the LLVM-derived unwinder about the alternate DWARF pseudo-register
that GCC defines for the PC / return address.  This is simply an alias for
the same internal PC register number.

(thorpej)

2021-11-21 21:52:59 UTC MAIN commitmail json YAML

wsReadInput: fix pasto, wsTranslate absolute y position to screen height,
not width.  While here, use consistent layout for both calls.

(uwe)

2021-11-21 21:31:25 UTC MAIN commitmail json YAML

Decorate the powerpc signal trampoline with the appropriate .cfi
directives to allow exception unwind / backtrace across a signal
handler.

(thorpej)

2021-11-21 21:15:17 UTC MAIN commitmail json YAML

Teach the LLVM-derived unwinder about the DWARF pseudo-register defined
by GCC for PPC32 to hold the return address where the signal trampoline
will resume, as well as for the CTR and XER registers.

(thorpej)

2021-11-21 20:50:35 UTC MAIN commitmail json YAML

Deal with a lot more pipes into atf_check missed last time.

(kre)

2021-11-21 16:23:20 UTC MAIN commitmail json YAML

Improve the however-many-negatives wording even more.

(kre)

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

tests/indent: demonstrate wrong formatting of type names in declarations

(rillig)

2021-11-21 10:53:01 UTC MAIN commitmail json YAML

2021-11-21 10:39:47 UTC MAIN commitmail json YAML

lint: rename list_add to list_add_ref and list_add_copy to list_add

The function for copying the string is used more often, so use the
simpler name for it.

No functional change.

(rillig)

2021-11-21 10:08:10 UTC MAIN commitmail json YAML

lint: remove redundant function prototypes

(rillig)

2021-11-21 09:35:39 UTC MAIN commitmail json YAML

Test kernel/kqueue/t_timer, subtests abstime, basic_timer and timer_units
often fail when run on QEMU because QEMU misses clock interrupts.

Always check timespec against expected "tv_sec" and use an "4 * tv_sec"
upper bound when run under QEMU.

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

(hannken)

2021-11-21 08:44:28 UTC MAIN commitmail json YAML

PR port-evbarm/40307 options KGDB doesn't work for some evbarm hosts

Apply patch from Lloyd Parkes with some KNF tweaks from me.

(skrll)

2021-11-21 08:25:27 UTC MAIN commitmail json YAML

2021-11-21 05:09:15 UTC MAIN commitmail json YAML

Add some { } around an if body that is followed by an "else {".

(simonb)

2021-11-20 19:26:20 UTC MAIN commitmail json YAML

Use the DWARF pseudo-register for the signal trampoline return address.

(thorpej)

2021-11-20 19:06:21 UTC MAIN commitmail json YAML

Teach the LLVM-derived unwinder about the DWARF pseudo-register defined
by GCC for Alpha to hold the return address where the signal trampoline
will resume.

(thorpej)

2021-11-20 18:19:18 UTC MAIN commitmail json YAML

- Teach the LLVM-derived unwinder about the DWARF pseudo-registers defined
  by GCC for MIPS64 to hold the MDHI and MDLO registers, as well as the return
  address where the signal trampoline will resume.
- In the MIPS64 validFloatVectorRegister(), compare against the internal
  register numbers, not the DWARF register numbers.

(thorpej)

2021-11-20 17:51:48 UTC MAIN commitmail json YAML

2021-11-20 17:47:33 UTC MAIN commitmail json YAML

tests/make: finish a previously unfinished sentence in a comment

(rillig)

2021-11-20 17:27:46 UTC MAIN commitmail json YAML

2021-11-20 17:18:31 UTC MAIN commitmail json YAML

sh.1: replace triple negation with single negation, fix typo

(rillig)

2021-11-20 16:54:18 UTC MAIN commitmail json YAML

2021-11-20 16:18:18 UTC MAIN commitmail json YAML

Note that USE_FORT changes for xorg require a clean build.

(martin)

2021-11-20 15:22:36 UTC netbsd-8 commitmail json YAML

2021-11-20 15:21:32 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.h 1.81-1.83
sys/dev/pci/ixgbe/ixgbe.c 1.291-1.292 via patch
sys/dev/pci/ixgbe/ixgbe_type.h 1.50
sys/dev/pci/ixgbe/ixv.c 1.167-1.168 via patch
sys/dev/pci/ixgbe/ix_txrx.c 1.94

- Fix a bug that a near 64KB TSO segment can't send.
- Reduce bus_dmamap_sync() cost.
- Use macro. Fix typos in comment.

(martin)

2021-11-20 15:18:41 UTC netbsd-9 commitmail json YAML

2021-11-20 15:16:53 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.h 1.81-1.83
sys/dev/pci/ixgbe/ixgbe.c 1.291-1.292 via patch
sys/dev/pci/ixgbe/ixgbe_type.h 1.50
sys/dev/pci/ixgbe/ixv.c 1.167-1.168 via patch
sys/dev/pci/ixgbe/ix_txrx.c 1.94

- Fix a bug that a near 64KB TSO segment can't send.
- Reduce bus_dmamap_sync() cost.
- Use macro. Fix typos in comment.

(martin)

2021-11-20 15:11:32 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c 1.716-1.718 via patch
sys/dev/pci/if_wmreg.h 1.121
sys/dev/mii/ihphy.c 1.20

- Fix a bug that device timeout still happens when the link is down
  on ICH/PCH. Fixes PR kern/56478.
- Add some sysctl info for debugging.
- ihphy(4): Don't power down the PHY when the interface goes down.
- Use macro. Fix comment.

(martin)

2021-11-20 14:59:04 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_wm.c 1.716-1.718 via patch
sys/dev/pci/if_wmreg.h 1.121
sys/dev/mii/ihphy.c 1.20

- Fix a bug that device timeout still happens when the link is down
  on ICH/PCH. Fixes PR kern/56478.
- Add some sysctl info for debugging.
- ihphy(4): Don't power down the PHY when the interface goes down.
- Use macro. Fix comment.

(martin)

2021-11-20 14:52:22 UTC MAIN commitmail json YAML

    Almost all terminals now support hardware tabs so default to OXTABS off.

    This makes three changes: adds the ht capability to the standard lines
    in gettytab(5); removes OXTABS from TTYDEF_OFLAG in ttydefaults.h (the
    defaults used by pty(4) - diff from martijn); and only sets OXTABS on
    terminals which lack hts and tbc in tset(1) (from Thomas Dickey
    upstream).

    Addresses problems reported by tedu.

    ok millert

(christos)

2021-11-20 14:28:29 UTC MAIN commitmail json YAML

Merge common code for the chdir cases (Piyush Sachdeva)
I also deduplicated some more code

(christos)

2021-11-20 13:14:34 UTC MAIN commitmail json YAML

indent/tests: remove outdated comment

This task was resolved in the previous commit.

(rillig)

2021-11-20 13:07:57 UTC MAIN commitmail json YAML

indent/tests: make warning for empty lines more helpful

(rillig)

2021-11-20 11:13:18 UTC MAIN commitmail json YAML

2021-11-20 10:24:30 UTC MAIN commitmail json YAML

tests/indent: clean up test for the options '-cdb' and '-ncdb'

(rillig)

2021-11-20 09:59:53 UTC MAIN commitmail json YAML

2021-11-20 09:43:03 UTC MAIN commitmail json YAML

indent: fix tokenizing of word-like tokens (since 2019-04-04)

After a backslash-newline, the first character of the next line is only
part of the identifier if it is an identifier character.

indent-2000.10.11.14.46.04
| int            var \
|                +name = 4;
indent-2012.11.20.03.02.57

indent-2014.09.04.04.06.07
| int var \
|                +name = 4;
indent-2019.02.03.03.19.29

indent-2019.04.04.15.27.35
| int var+name = 4;
indent-2021.11.19.20.23.17

indent
| int var + name = 4;

(rillig)

2021-11-20 09:27:18 UTC MAIN commitmail json YAML

tests/indent: demonstrate wrong identifier token (since 2019-04-04)

No matter how simple a piece of code is, without proper automated tests
there is always the chance of breaking it.

(rillig)

2021-11-20 08:48:55 UTC MAIN commitmail json YAML

Fix build with VERBOSE_INIT_ARM.

(rin)

2021-11-20 08:16:30 UTC MAIN commitmail json YAML

Oops, forgot to commit builtin_fonts[] parts for Droid_Sans_Mono_10x20.

Noticed by RVP, thanks!

(rin)

2021-11-20 01:52:51 UTC MAIN commitmail json YAML

Improve the wording of the "Argument List Processing" section (where
all the sh options, also used with "set", are listed) in response to
a discussion on icb conveyed to me by Darrin B. Jewell.
A few improvements to the description of the "set" built-in as well.

Bump Dd to cover all of this month's changes (so far).

(kre)

2021-11-20 00:23:51 UTC MAIN commitmail json YAML

Add commented out FONT_DROID_SANS_MONO10x20 option. This enables 80x24
terminal on WVGA models, which is slightly easier on the eyes ;)

(rin)

2021-11-20 00:17:10 UTC MAIN commitmail json YAML

- Accept anti-aliased fonts.
- Clear garbage from screen when attach.

(rin)

2021-11-20 00:15:04 UTC MAIN commitmail json YAML

Accept anti-aliased fonts; they are supported by rotated screen found on
hpcarm/WZERO3 and PXA270-based zaurus.

(rin)