tests/sys/libkern: Add tests for sign extension and bitfield extraction
In order to avoid name collisions with standard library functions, wrap
everything but the functions to test in a !LIBKERN_TESTING section, so
that when LIBKERN_TESTING is defined, all untested parts are not
defined. Leave a comment there suggesting selective namespacing when
adding tests to string functions having same name in the standard
library.
Reviewed by: fuz
MFC with: a6e81841486a ("libkern: Bitfield extraction: Stick to standard, separate sign extension")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61963
tests/sys: Move libkern's tests in a separate directory
Use 'sys/libkern', to mimick the source hierarchy.
Reviewed by: emaste
MFC with: a6e81841486a ("libkern: Bitfield extraction: Stick to standard, separate sign extension")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61961
chinese/taipeisanstc: Install fonts directly from DISTDIR
Skip the extract phase and install the fonts from DISTDIR instead,
to avoid copy to WRKSRC and only copying link because of our origional `cp -a`.
(cherry picked from commit ac470cff7fc1517bc46921554f8f03f53327f8dd)
chinese/taipeisanstc: Install fonts directly from DISTDIR
Skip the extract phase and install the fonts from DISTDIR instead,
to avoid copy to WRKSRC and only copying link because of our origional `cp -a`.
netlink/tests: Add permanent flag to test_add_6_flags
Now IFA_F_PERMANENT is reported, add test for it and expect
IFA_F_PERMANENT in nl_flags during tests.
Reported by: llm-postcr
Fixes: 10b94e406444 ("netlink: add support for adding/deleting interface addresses")
MFC after: 3 days
*/*: Add CPE declaration to 617 ports
Improve CPE coverage in the ports tree to help security scanners match
software with vulnerability reports.
Matched project and download URLs from port metadata against references
in the official NVD CPE dictionary. Reviewed product identities to
distinguish applications from related components and similarly named
projects.
Sponsored by: OTTRIA
Differential Revision: https://reviews.freebsd.org/D61941
tcp: improve ISS checking for ghost ACKs
The check in tcp_adapt_iss_check() depends on SND.UNA and therefore
should be performed whenever SND.UNA is incremented.
PR: 298560
Reviewed by: Peter Lei
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D61749
(cherry picked from commit 9e345ca583f702e7472f836136e766d3346c049d)
tcp: improve ISS checking for ghost ACKs
The check in tcp_adapt_iss_check() depends on SND.UNA and therefore
should be performed whenever SND.UNA is incremented.
PR: 298560
Reviewed by: Peter Lei
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D61749
(cherry picked from commit 9e345ca583f702e7472f836136e766d3346c049d)
nd6: Keep addresses tentative in in6_if_up
in6_if_up() runs from the IFNET_EVENT_UP handler on every
IFF_UP 0->1 transition, whether or not the interface is ifdisabled.
Ignore state transitions in in6_if_up() for now.
Reported by: llm-postcr
Fixes: f0ce2ae67f9f ("nd6: Do not make SLAAC addresses usable with ifdisabled")
sysrc: Restore the ability to pin default value
Fix 1 issue identified in post-commit review of eaf7113:
POSTCR-1: "unchanged" short-circuit counts a value that only comes
from RC_DEFAULTS, so `sysrc -f file var=<default>` writes nothing.
Add an ATF test to ensure we preserve this functionality.
Reported by: llm-postcr
Fixes: eaf7113bef8f ("sysrc: Add "unchanged" messages")
lualoader: don't run a failed command twice from the prompt
interp_run() hands each command line to cli_execute, which runs
builtins through loader.command. If that returned an error, it then
ran the command again with interp_builtin_cmd(), as a fallback for when
lua couldn't run the command at all. A command that simply failed thus
ran twice, printing any errors twice and repeating whatever it did
before it failed.
Only fall back when the lua call itself failed, and otherwise take the
command's own result.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D61845