Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge FreeBSD 2024-08-16 #2250

Merged
merged 180 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
aea42e1
zdb: fix BRT dump (#16335)
robn Jul 18, 2024
37275fd
ZTS: Change cp_stress to fit timings (#16369)
mcmilk Jul 22, 2024
9dfc5c4
Fix long_free_dirty accounting for small files (#16264)
tuxoko Jul 23, 2024
6657f89
AUTHORS: refresh with recent new contributors (#16362)
robn Jul 23, 2024
fb6d8cf
Add some missing vdev properties (#16346)
Jul 23, 2024
dbe0792
Add support for multiple lines to the sharenfs property for FreeBSD (…
rmacklem Jul 23, 2024
a1be921
Linux 6.9: Fix UBSAN errors in sa.c (#16380)
tonyhutter Jul 24, 2024
82f281a
ZTS: Make do_vol_test() more deterministic (#16379)
amotin Jul 24, 2024
c7ada64
ddt: dedup table quota enforcement
allanjude Jul 25, 2024
55427ad
Several improvements to ARC shrinking (#16197)
amotin Jul 25, 2024
2fc6461
Replace goo.gl style link (#16373)
amotin Jul 25, 2024
7ddc1f7
zil: add stats for commit failure/fallback (#16315)
robn Jul 25, 2024
2ed1aeb
Fix ZDB to dump projid for projectquota enabled (#16291)
jsai20 Jul 26, 2024
62e7d3c
ddt: add support for prefetching tables into the ARC
allanjude Jul 26, 2024
1a3e32e
Cleanup DB_DNODE() macros usage
amotin Jul 22, 2024
ed87d45
Skip dnode handles use when not needed
amotin Jul 22, 2024
e26b377
spa_preferred_class: pass the entire zio
robn Jun 27, 2023
d54d0ff
dnode: allow storage class to be overridden by object type
robn Jun 27, 2023
d4b5517
Linux: Report reclaimable memory to kernel as such (#16385)
amotin Jul 30, 2024
ec580bc
zfs: add bounds checking to zil_parse (#16308)
XDTG Aug 1, 2024
c21dc56
Fix zdb_dump_block for little endian (#16310)
tuxoko Aug 1, 2024
d60debb
Fix sa_add_projid to lookup and update SA_ZPL_DXATTR (avoid DXATTR lo…
jsai20 Aug 1, 2024
c092bdd
Fix sa.c to build on FreeBSD again. (#16403)
mcmilk Aug 1, 2024
c8184d7
Block cloning conditionally destroy ARC buffer
bwatkinson Aug 2, 2024
cdd53fe
FreeBSD: Add missing memory reclamation accounting
amotin Aug 1, 2024
1fdcb65
Once more refactor arc_summary output
amotin Aug 1, 2024
46ebd0a
contrib: link zpool to zfs in bash-completion (#16376)
Harry-Chen Aug 5, 2024
8d4ad5a
ZTS: fix history_007_pos test on Ubuntu 24.04 (#16410)
mcmilk Aug 5, 2024
e9f51eb
ZTS: fix zfs_copies_006_pos test on Ubuntu 20.04 (#16409)
mcmilk Aug 5, 2024
6c82951
FreeBSD: remove support for FreeBSD < 13.0-RELEASE (#16372)
robn Aug 5, 2024
9b9a393
zvol_impl: document and tidy flags
robn Jul 18, 2024
88aab1d
linux/zvol_os: fix SET_ERROR with negative return codes
robn Jul 18, 2024
670147b
zvol: ensure device minors are properly cleaned up
robn Jul 18, 2024
6c7d41a
ZTS: remove skips for zvol_misc tests
robn Jul 18, 2024
aa15b60
JSON output support for zfs version and zfs get
usaleem-ix Apr 5, 2024
443abfc
JSON output support for zfs list
usaleem-ix Apr 18, 2024
cad4c0e
JSON output support zfs mount
usaleem-ix Apr 18, 2024
5cbdd5e
JSON output support for zpool version
usaleem-ix Apr 22, 2024
eb2b824
JSON output support for zpool get
usaleem-ix Apr 24, 2024
4e6b3f7
JSON output support for zpool list
usaleem-ix Apr 25, 2024
959e963
JSON output support for zpool status
usaleem-ix May 9, 2024
dab8100
ZTS: Add zfs/zpool JSON sanity tests
tonyhutter Jul 10, 2024
02a9f7f
JSON: Fix class values for mirrored special vdevs
tonyhutter Jul 11, 2024
90a02d7
ZTS: fix io_uring test on RHEL 9 variants (#16411)
mcmilk Aug 6, 2024
cbcb522
Fix the names of some FreeBSD sysctls in include/tunables.cfg (#16395)
allanjude Aug 6, 2024
bd949b1
ZTS: small fix for SEEK_DATA/SEEK_HOLE tests (#16413)
mcmilk Aug 7, 2024
1f5bf91
Fix memory corruption during parallel zpool import with -o cachefile …
asomers Aug 7, 2024
dea8fab
FreeBSD: Fix RLIMIT_FSIZE handling for block cloning
markjdb Jul 23, 2024
0ccd4b9
ZTS: Add a test to verify that copy_file_range obeys RLIMIT_FSIZE
markjdb Aug 5, 2024
5536c0d
Sync AUX label during pool import
ixhamza Aug 8, 2024
b38fccc
tests: user_property: Clarify comments
0mp May 31, 2024
7ceb9ad
tests: user_property_001_pos: Remove unnecessary evals
0mp Jun 3, 2024
2558518
zpoolprops.7: Fix max length of name of user property
0mp Jun 3, 2024
24e6585
libzfs.h: Set ZFS_MAXPROPLEN and ZPOOL_MAXPROPLEN to ZAP_MAXVALUELEN
0mp Jun 5, 2024
aef452f
Improve zfs_blkptr_verify()
amotin Aug 8, 2024
5b9f3b7
Soften pruning threshold on not evictable metadata
amotin Aug 8, 2024
3ae05e3
Linux: Make zfs_prune() fair on NUMA systems
amotin Aug 8, 2024
8041b2f
contrib: bash_completion.d: force zpool symlink recreation
robn Aug 8, 2024
f87fe67
Updating bash completion build file
bwatkinson Aug 8, 2024
b0bf14c
abd: lift ABD zero scan from zio_compress_data() to abd_cmp_zero()
robn Aug 9, 2024
cf6e8b2
zstream: remove duplicate highbit64 definition
robn Aug 9, 2024
ed0db1c
Make txg_wait_synced conditional in zfsvfs_teardown, for FreeBSD
asomers Aug 9, 2024
6caff84
config: don't force shared linkage on FreeBSD
robn Aug 9, 2024
9c56b8e
Github workflow: fix typo in `zloop` artifact
ixhamza Aug 9, 2024
ce4dcb9
zfs: merge openzfs/zfs@9c56b8ec7
mmatuska Aug 10, 2024
aea9dba
turnstile: Mention the lock name when panicking due to a sleeping thread
markjdb Aug 10, 2024
7a8d05b
Merge commit d2353ae00c3b from llvm git (by Argyrios Kyrtzidis):
DimitryAndric Aug 10, 2024
5ab6ed9
faccessat(2): Honor AT_SYMLINK_NOFOLLOW
fernape Aug 11, 2024
6ea4d95
Move support of Realtek 8156/8156B from cdce(4) to ure(4)
lwhsu Aug 12, 2024
f5ce3f4
Fix EFI loader reproducibility with lld
DimitryAndric Aug 11, 2024
ccb0365
stale symlinks: configurable obj dir prefix
wosch Aug 12, 2024
b70247d
axgbe: use bit_foreach
Aug 12, 2024
97c31cc
kldxref: Clarify ambiguous comment
jrtc27 Aug 12, 2024
5cf7054
jail: only chdir to user's home directory when user is specified
Aug 12, 2024
0a8e5aa
socket: Add macros to assert that the caller holds a socket I/O lock
markjdb Jul 22, 2024
07f2ed5
socket: Make the sopt_rights field a pointer to const
markjdb Jul 11, 2024
fc43658
socket: Fix handling of listening sockets in sotoxsocket()
markjdb Jul 9, 2024
27211b7
mlx5: Remove a less than helpful debug print
markjdb Aug 12, 2024
8805377
dtraceall: Make dtaudit a dependency
markjdb Aug 12, 2024
6df36de
boot: update lua linter for recent module additions
kevans91 Aug 13, 2024
82e0214
pf: cope with SCTP port re-use
kprovost Aug 12, 2024
2da98ee
pf: fix icmp-in-icmp state lookup
kprovost Aug 12, 2024
34063cb
pf tests: ensure that traceroutes using ICMP work
kprovost Aug 12, 2024
d1deb68
pf tests: Make if_enc.sh stick to utils.subr interface
ihoro Aug 13, 2024
d3b05d0
Add smbus and i2c device IDs for Meteor Lake
aokblast Aug 13, 2024
2777a32
iommu: disable dma by default
emaste Aug 13, 2024
3192fc3
x86: Enable Intel DMAR by default
emaste Sep 30, 2022
d40fc35
nvme: Make is_initialized a bool
bsdimp Aug 13, 2024
8c44df3
nvme: Add a clarifying comment
bsdimp Aug 13, 2024
767b370
linux/zvol_os: tidy and document queue limit/config setup
robn Jul 31, 2024
e95b732
Linux 6.11: enable queue flush through queue limits
robn Jul 30, 2024
7e98d30
Linux 6.11: get backing_dev_info through queue gendisk
robn Jul 30, 2024
2261952
Linux 6.11: first arg to proc_handler is now const
robn Jul 31, 2024
0b741a0
Linux 6.11: IO stats is now a queue feature flag
robn Jul 31, 2024
f5236fe
Linux 6.11: add more queue_limit fields with removed setters
robn Jul 31, 2024
3abffc8
Linux 6.11: add compat macro for page_mapping()
robn Jul 31, 2024
2633075
Linux 6.11: avoid passing "end" sentinel to register_sysctl()
robn Jul 31, 2024
89f6723
pf: invert direction for inner icmp state lookups
kprovost Aug 14, 2024
c9e8a2c
ports(7): searchable index of all ports is at ports.freebsd.org
wosch Aug 14, 2024
ca83345
UPDATING: Add note about DMAR
bsdimp Aug 14, 2024
b458ddf
zfs: fix build without MAC
glebius Aug 14, 2024
d06de4f
ZTS: Use /dev/urandom instead of /dev/random
tonyhutter Aug 14, 2024
244ea5c
Add missing kstats to dataset kstats
pcd1193182 Aug 14, 2024
bd4f202
Add missing kstats to dataset kstats
pcd1193182 Aug 14, 2024
d2ccc21
Fix projid accounting for xattr objects
jsai20 Aug 15, 2024
8aaffd7
Add dummymbuf module for testing purposes
ihoro Aug 14, 2024
09b7a03
pf tests: Add 'mbuf' test for (*m0)->m_len < sizeof(struct ip) cases
ihoro Aug 14, 2024
6c479ed
pf: Fix indentation in struct pf_ksrc_node
TuxPowered42 Aug 15, 2024
1fc0dac
pf: Convert struct pf_addr_wrap before sending it over netlink
TuxPowered42 Aug 15, 2024
9aeee94
pf tests: basic test for sticky-address configuration on rules
kprovost Aug 15, 2024
29dc934
zfs: merge openzfs/zfs@d2ccc2155
mmatuska Aug 15, 2024
8cc528c
tcp cc: clean up some un-used cc_var flags
ccfbsd Aug 14, 2024
bef0792
arm64: Clamp segment sizes properly in bounce_bus_dmamap_load_buffer()
markjdb Aug 15, 2024
ef9fc96
sys: Mark ACL conversion routines as __result_use_check
khorben Aug 9, 2024
3cded05
tmpfs: Fix OOB write when setting vfs.tmpfs.memory_percent
jrtc27 Aug 15, 2024
82cb2a4
Update safe_eval.sh to support --export
sgerraty Aug 15, 2024
8b21c46
ng_ubt: Add blacklist entries for MediaTek MT7925
Aug 16, 2024
d5507f9
nvme: Separate total failures from I/O failures
bsdimp Aug 14, 2024
a233cb6
nvmecontrol: Accept -a {1,2,3,4} for sanitize command for nvme-cli co…
bsdimp Aug 15, 2024
ce7fac6
Revert "nvme: Separate total failures from I/O failures"
bsdimp Aug 16, 2024
3d89acf
nvme: Separate total failures from I/O failures
bsdimp Aug 14, 2024
41e03b4
stress2: Fix warning about unused variable. Remove debug "date"
phoatfreebsd Aug 16, 2024
788f194
pf: 'sticky-address' requires 'keep state'
TuxPowered42 Aug 16, 2024
96ef46e
unbound: Vendor import 1.21.0
cschuber Aug 16, 2024
5685098
unbound: Vendor import 1.21.0
cschuber Aug 16, 2024
35399f6
safe_dot check file is a file
sgerraty Aug 16, 2024
10d5b43
nfsproto.h: Define the new mode_umask attribute
Aug 17, 2024
13faa8e
zfs: merge openzfs/zfs@9c56b8ec7
mmatuska Aug 10, 2024
def1808
git subrepo pull --force sys/contrib/subrepo-openzfs
bsdjhb Nov 15, 2024
da968e5
turnstile: Mention the lock name when panicking due to a sleeping thread
markjdb Aug 10, 2024
bf96ad8
Merge commit d2353ae00c3b from llvm git (by Argyrios Kyrtzidis):
DimitryAndric Aug 10, 2024
2e2d028
faccessat(2): Honor AT_SYMLINK_NOFOLLOW
fernape Aug 11, 2024
1c34f4b
Move support of Realtek 8156/8156B from cdce(4) to ure(4)
lwhsu Aug 12, 2024
ba92dd6
Fix EFI loader reproducibility with lld
DimitryAndric Aug 11, 2024
26b8b9b
stale symlinks: configurable obj dir prefix
wosch Aug 12, 2024
9706159
axgbe: use bit_foreach
Aug 12, 2024
735ca58
kldxref: Clarify ambiguous comment
jrtc27 Aug 12, 2024
cc096bd
jail: only chdir to user's home directory when user is specified
Aug 12, 2024
746ccd1
socket: Add macros to assert that the caller holds a socket I/O lock
markjdb Jul 22, 2024
761b771
socket: Make the sopt_rights field a pointer to const
markjdb Jul 11, 2024
1c12097
socket: Fix handling of listening sockets in sotoxsocket()
markjdb Jul 9, 2024
0d70566
mlx5: Remove a less than helpful debug print
markjdb Aug 12, 2024
4beee9f
dtraceall: Make dtaudit a dependency
markjdb Aug 12, 2024
3da6c88
boot: update lua linter for recent module additions
kevans91 Aug 13, 2024
7dcef03
pf: cope with SCTP port re-use
kprovost Aug 12, 2024
dae04f6
pf: fix icmp-in-icmp state lookup
kprovost Aug 12, 2024
10f6b7a
pf tests: ensure that traceroutes using ICMP work
kprovost Aug 12, 2024
c5e0bb1
pf tests: Make if_enc.sh stick to utils.subr interface
ihoro Aug 13, 2024
c669f45
Add smbus and i2c device IDs for Meteor Lake
aokblast Aug 13, 2024
aaa3fdb
iommu: disable dma by default
emaste Aug 13, 2024
27d3b9e
x86: Enable Intel DMAR by default
emaste Sep 30, 2022
cae2ae8
nvme: Make is_initialized a bool
bsdimp Aug 13, 2024
11795a0
nvme: Add a clarifying comment
bsdimp Aug 13, 2024
f71c371
pf: invert direction for inner icmp state lookups
kprovost Aug 14, 2024
e803825
ports(7): searchable index of all ports is at ports.freebsd.org
wosch Aug 14, 2024
1944f3c
UPDATING: Add note about DMAR
bsdimp Aug 14, 2024
a45a1cd
zfs: fix build without MAC
glebius Aug 14, 2024
b06fe2c
Add missing kstats to dataset kstats
pcd1193182 Aug 14, 2024
f6a4088
Add dummymbuf module for testing purposes
ihoro Aug 14, 2024
b14ad6d
pf tests: Add 'mbuf' test for (*m0)->m_len < sizeof(struct ip) cases
ihoro Aug 14, 2024
bbfb67b
pf: Fix indentation in struct pf_ksrc_node
TuxPowered42 Aug 15, 2024
4764669
pf: Convert struct pf_addr_wrap before sending it over netlink
TuxPowered42 Aug 15, 2024
bf96d75
pf tests: basic test for sticky-address configuration on rules
kprovost Aug 15, 2024
8ae3adb
zfs: merge openzfs/zfs@d2ccc2155
mmatuska Aug 15, 2024
f8eb56c
git subrepo pull --force sys/contrib/subrepo-openzfs
bsdjhb Nov 15, 2024
7f4bb32
tcp cc: clean up some un-used cc_var flags
ccfbsd Aug 14, 2024
2d029a5
arm64: Clamp segment sizes properly in bounce_bus_dmamap_load_buffer()
markjdb Aug 15, 2024
44bd0bf
sys: Mark ACL conversion routines as __result_use_check
khorben Aug 9, 2024
30178ec
tmpfs: Fix OOB write when setting vfs.tmpfs.memory_percent
jrtc27 Aug 15, 2024
af654b6
Update safe_eval.sh to support --export
sgerraty Aug 15, 2024
219815c
ng_ubt: Add blacklist entries for MediaTek MT7925
Aug 16, 2024
c009802
nvme: Separate total failures from I/O failures
bsdimp Aug 14, 2024
af5a4b6
nvmecontrol: Accept -a {1,2,3,4} for sanitize command for nvme-cli co…
bsdimp Aug 15, 2024
5aa02d2
Revert "nvme: Separate total failures from I/O failures"
bsdimp Aug 16, 2024
f4afc34
nvme: Separate total failures from I/O failures
bsdimp Aug 14, 2024
fe250ef
stress2: Fix warning about unused variable. Remove debug "date"
phoatfreebsd Aug 16, 2024
49ccb63
pf: 'sticky-address' requires 'keep state'
TuxPowered42 Aug 16, 2024
b31475b
unbound: Vendor import 1.21.0
cschuber Aug 16, 2024
ee54015
safe_dot check file is a file
sgerraty Aug 16, 2024
75b789b
nfsproto.h: Define the new mode_umask attribute
Aug 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)

20240813:
DMAR is now enabled by default on Intel. If your system crashes in the
dmar code on boot, please set 'hw.dmar.enable=0' in /boot/loader.conf
and file a bug.

20240729:
The build now defaults to WITHOUT_CLEAN - i.e., no automatic clean
is performed at the beginning of buildworld or buildkernel. The
Expand Down
3 changes: 2 additions & 1 deletion bin/ln/symlink.7
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd February 16, 2015
.Dd August 11, 2024
.Dt SYMLINK 7
.Os
.Sh NAME
Expand Down Expand Up @@ -144,6 +144,7 @@ unless given the
.Dv AT_SYMLINK_NOFOLLOW
flag:
.Xr chflagsat 2 ,
.Xr faccessat 2 ,
.Xr fchmodat 2 ,
.Xr fchownat 2 ,
.Xr fstatat 2
Expand Down
1 change: 1 addition & 0 deletions cddl/sbin/zpool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ MAN= \
zpool-labelclear.8 \
zpool-list.8 \
zpool-offline.8 \
zpool-prefetch.8 \
zpool-reguid.8 \
zpool-remove.8 \
zpool-reopen.8 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

typedef std::pair<const CodeGenInstruction *, const CodeGenInstruction *>
Entry;
typedef std::map<const Record *, std::vector<const CodeGenInstruction *>>
typedef std::map<StringRef, std::vector<const CodeGenInstruction *>>

Check failure on line 49 in contrib/llvm-project/llvm/utils/TableGen/X86CompressEVEXTablesEmitter.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '*' (ctx:WxO)

Check failure on line 49 in contrib/llvm-project/llvm/utils/TableGen/X86CompressEVEXTablesEmitter.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '>>' (ctx:OxE)
PredicateInstMap;

std::vector<Entry> Table;
Expand Down Expand Up @@ -89,7 +89,7 @@
for (const auto &[Key, Val] : PredicateInsts) {
for (const auto &Inst : Val)
OS << " case X86::" << Inst->TheDef->getName() << ":\n";
OS << " return " << Key->getValueAsString("CondString") << ";\n";
OS << " return " << Key << ";\n";
}

OS << " }\n";
Expand Down Expand Up @@ -225,8 +225,8 @@
return Name == "HasAVXNECONVERT" || Name == "HasAVXVNNI" ||
Name == "HasAVXIFMA";
});
if(It!= Predicates.end())

Check failure on line 228 in contrib/llvm-project/llvm/utils/TableGen/X86CompressEVEXTablesEmitter.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

suspect code indent for conditional statements (4, 6)
PredicateInsts[*It].push_back(NewInst);
PredicateInsts[(*It)->getValueAsString("CondString")].push_back(NewInst);
}

printTable(Table, OS);
Expand Down
5 changes: 3 additions & 2 deletions contrib/unbound/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ unbound-control-setup: smallapp/unbound-control-setup.sh
dnstap.lo dnstap.o: $(srcdir)/dnstap/dnstap.c config.h dnstap/dnstap_config.h \
dnstap/dnstap.pb-c.c dnstap/dnstap.pb-c.h $(srcdir)/dnstap/dnstap.h \
$(srcdir)/util/config_file.h $(srcdir)/util/log.h \
$(srcdir)/util/netevent.h $(srcdir)/util/net_help.h
$(srcdir)/util/netevent.h $(srcdir)/util/net_help.h \
$(srcdir)/util/locks.h

dnstap/dnstap.pb-c.c dnstap/dnstap.pb-c.h: $(srcdir)/dnstap/dnstap.proto
@-if test ! -d dnstap; then $(INSTALL) -d dnstap; fi
Expand Down Expand Up @@ -1297,7 +1298,7 @@ remote.lo remote.o: $(srcdir)/daemon/remote.c config.h $(srcdir)/daemon/remote.h
$(srcdir)/validator/val_anchor.h $(srcdir)/iterator/iterator.h $(srcdir)/services/outbound_list.h \
$(srcdir)/iterator/iter_fwd.h $(srcdir)/iterator/iter_hints.h $(srcdir)/iterator/iter_delegpt.h \
$(srcdir)/services/outside_network.h $(srcdir)/sldns/str2wire.h $(srcdir)/sldns/parseutil.h \
$(srcdir)/sldns/wire2str.h
$(srcdir)/sldns/wire2str.h $(srcdir)/util/edns.h
stats.lo stats.o: $(srcdir)/daemon/stats.c config.h $(srcdir)/daemon/stats.h $(srcdir)/util/timehist.h \
$(srcdir)/libunbound/unbound.h $(srcdir)/daemon/worker.h $(srcdir)/libunbound/worker.h $(srcdir)/sldns/sbuffer.h \
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h \
Expand Down
2 changes: 1 addition & 1 deletion contrib/unbound/acx_python.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AC_DEFUN([AC_PYTHON_DEVEL],[

AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
if test -z "$PYTHON"; then
AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path])
AC_MSG_ERROR([Cannot find 'python$PYTHON_VERSION' in your system path. You can use the environment variable 'PYTHON_VERSION=version_number' for an explicit version.])
PYTHON_VERSION=""
fi

Expand Down
55 changes: 32 additions & 23 deletions contrib/unbound/cachedb/cachedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,30 +322,30 @@

/**
* Hash the query name, type, class and dbacess-secret into lookup buffer.
* @param qstate: query state with query info
* and env->cfg with secret.
* @param qinfo: query info
* @param env: with env->cfg with secret.
* @param buf: returned buffer with hash to lookup
* @param len: length of the buffer.
*/
static void
calc_hash(struct module_qstate* qstate, char* buf, size_t len)
calc_hash(struct query_info* qinfo, struct module_env* env, char* buf,

Check failure on line 331 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

"foo* bar" should be "foo *bar"
size_t len)
{
uint8_t clear[1024];
size_t clen = 0;
uint8_t hash[CACHEDB_HASHSIZE/8];
const char* hex = "0123456789ABCDEF";
const char* secret = qstate->env->cfg->cachedb_secret;
const char* secret = env->cfg->cachedb_secret;

Check failure on line 338 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

"foo* bar" should be "foo *bar"
size_t i;

/* copy the hash info into the clear buffer */
if(clen + qstate->qinfo.qname_len < sizeof(clear)) {
memmove(clear+clen, qstate->qinfo.qname,
qstate->qinfo.qname_len);
clen += qstate->qinfo.qname_len;
if(clen + qinfo->qname_len < sizeof(clear)) {

Check failure on line 342 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

space required before the open parenthesis '('
memmove(clear+clen, qinfo->qname, qinfo->qname_len);

Check failure on line 343 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '+' (ctx:VxV)
clen += qinfo->qname_len;
}
if(clen + 4 < sizeof(clear)) {
uint16_t t = htons(qstate->qinfo.qtype);
uint16_t c = htons(qstate->qinfo.qclass);
uint16_t t = htons(qinfo->qtype);
uint16_t c = htons(qinfo->qclass);
memmove(clear+clen, &t, 2);
memmove(clear+clen+2, &c, 2);
clen += 4;
Expand Down Expand Up @@ -645,7 +645,7 @@
int* msg_expired)
{
char key[(CACHEDB_HASHSIZE/8)*2+1];
calc_hash(qstate, key, sizeof(key));
calc_hash(&qstate->qinfo, qstate->env, key, sizeof(key));

/* call backend to fetch data for key into scratch buffer */
if( !(*ie->backend->lookup)(qstate->env, ie, key,
Expand All @@ -672,7 +672,7 @@
cachedb_extcache_store(struct module_qstate* qstate, struct cachedb_env* ie)
{
char key[(CACHEDB_HASHSIZE/8)*2+1];
calc_hash(qstate, key, sizeof(key));
calc_hash(&qstate->qinfo, qstate->env, key, sizeof(key));

/* prepare data in scratch buffer */
if(!prep_data(qstate, qstate->env->scratch_buffer))
Expand Down Expand Up @@ -745,6 +745,10 @@
* going to be now-3 seconds. Making it expired
* in the cache. */
set_msg_ttl(qstate->return_msg, (time_t)-3);
/* The expired entry does not get checked by the validator

Check warning on line 748 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

Block comments use a leading /* on a separate line
* and we need a validation value for it. */

Check warning on line 749 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

Block comments use a trailing */ on a separate line
if(qstate->env->cfg->cachedb_check_when_serve_expired)

Check failure on line 750 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

space required before the open parenthesis '('
qstate->return_msg->rep->security = sec_status_insecure;
}
(void)dns_cache_store(qstate->env, &qstate->qinfo,
qstate->return_msg->rep, 0, qstate->prefetch_leeway, 0,
Expand Down Expand Up @@ -979,7 +983,7 @@
*/
static struct module_func_block cachedb_block = {
"cachedb",
&cachedb_init, &cachedb_deinit, &cachedb_operate,
NULL, NULL, &cachedb_init, &cachedb_deinit, &cachedb_operate,
&cachedb_inform_super, &cachedb_clear, &cachedb_get_mem
};

Expand All @@ -1003,21 +1007,26 @@
}

void cachedb_msg_remove(struct module_qstate* qstate)
{
cachedb_msg_remove_qinfo(qstate->env, &qstate->qinfo);
}

void cachedb_msg_remove_qinfo(struct module_env* env, struct query_info* qinfo)

Check failure on line 1014 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

"foo* bar" should be "foo *bar"
{
char key[(CACHEDB_HASHSIZE/8)*2+1];
int id = modstack_find(qstate->env->modstack, "cachedb");
struct cachedb_env* ie = (struct cachedb_env*)qstate->env->modinfo[id];
int id = modstack_find(env->modstack, "cachedb");
struct cachedb_env* ie = (struct cachedb_env*)env->modinfo[id];

Check failure on line 1018 in contrib/unbound/cachedb/cachedb.c

View workflow job for this annotation

GitHub Actions / Style Checker

"(foo*)" should be "(foo *)"

log_query_info(VERB_ALGO, "cachedb msg remove", &qstate->qinfo);
calc_hash(qstate, key, sizeof(key));
sldns_buffer_clear(qstate->env->scratch_buffer);
sldns_buffer_write_u32(qstate->env->scratch_buffer, 0);
sldns_buffer_flip(qstate->env->scratch_buffer);
log_query_info(VERB_ALGO, "cachedb msg remove", qinfo);
calc_hash(qinfo, env, key, sizeof(key));
sldns_buffer_clear(env->scratch_buffer);
sldns_buffer_write_u32(env->scratch_buffer, 0);
sldns_buffer_flip(env->scratch_buffer);

/* call backend */
(*ie->backend->store)(qstate->env, ie, key,
sldns_buffer_begin(qstate->env->scratch_buffer),
sldns_buffer_limit(qstate->env->scratch_buffer),
(*ie->backend->store)(env, ie, key,
sldns_buffer_begin(env->scratch_buffer),
sldns_buffer_limit(env->scratch_buffer),
0);
}
#endif /* USE_CACHEDB */
8 changes: 8 additions & 0 deletions contrib/unbound/cachedb/cachedb.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,11 @@ int cachedb_is_enabled(struct module_stack* mods, struct module_env* env);
* @param qstate: query state.
*/
void cachedb_msg_remove(struct module_qstate* qstate);

/**
* Remove message from the cachedb cache, by query info.
* @param env: module environment to look up cachedb state.
* @param qinfo: the message to remove.
*/
void cachedb_msg_remove_qinfo(struct module_env* env,
struct query_info* qinfo);
11 changes: 7 additions & 4 deletions contrib/unbound/config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2024-01-01'
timestamp='2024-07-27'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -123,7 +123,7 @@ set_cc_for_build() {
dummy=$tmp/dummy
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
,,) echo "int x;" > "$dummy.c"
for driver in cc gcc c89 c99 ; do
for driver in cc gcc c17 c99 c89 ; do
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
CC_FOR_BUILD=$driver
break
Expand Down Expand Up @@ -634,7 +634,8 @@ EOF
sed 's/^ //' << EOF > "$dummy.c"
#include <sys/systemcfg.h>

main()
int
main ()
{
if (!__power_pc())
exit(1);
Expand Down Expand Up @@ -718,7 +719,8 @@ EOF
#include <stdlib.h>
#include <unistd.h>

int main ()
int
main ()
{
#if defined(_SC_KERNEL_BITS)
long bits = sysconf(_SC_KERNEL_BITS);
Expand Down Expand Up @@ -1621,6 +1623,7 @@ cat > "$dummy.c" <<EOF
#endif
#endif
#endif
int
main ()
{
#if defined (sony)
Expand Down
15 changes: 15 additions & 0 deletions contrib/unbound/config.h.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* config.h.in. Generated from configure.ac by autoheader. */

/* apply the fallthrough attribute. */
#undef ATTR_FALLTHROUGH

/* apply the noreturn attribute to a function that exits the program */
#undef ATTR_NORETURN

Expand Down Expand Up @@ -57,6 +60,9 @@
/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H

/* Whether the C compiler accepts the "fallthrough" attribute */
#undef HAVE_ATTR_FALLTHROUGH

/* Whether the C compiler accepts the "format" attribute */
#undef HAVE_ATTR_FORMAT

Expand Down Expand Up @@ -406,6 +412,9 @@
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H

/* Define to 1 if you have the <net/pfvar.h> header file. */
#undef HAVE_NET_PFVAR_H

/* Define this to use nghttp2 client. */
#undef HAVE_NGHTTP2

Expand Down Expand Up @@ -566,6 +575,9 @@
function. */
#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB

/* Define to 1 if you have the `SSL_CTX_set_tmp_ecdh' function. */
#undef HAVE_SSL_CTX_SET_TMP_ECDH

/* Define to 1 if you have the `SSL_get0_alpn_selected' function. */
#undef HAVE_SSL_GET0_ALPN_SELECTED

Expand Down Expand Up @@ -1484,6 +1496,7 @@ struct sockaddr_storage;
# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
# define strdup(s) unbound_stat_strdup_log(s, __FILE__, __LINE__, __func__)
void *unbound_stat_malloc(size_t size);
void *unbound_stat_calloc(size_t nmemb, size_t size);
void unbound_stat_free(void *ptr);
Expand All @@ -1496,6 +1509,8 @@ void unbound_stat_free_log(void *ptr, const char* file, int line,
const char* func);
void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
int line, const char* func);
char *unbound_stat_strdup_log(const char *s, const char* file, int line,
const char* func);
#elif defined(UNBOUND_ALLOC_LITE)
# include "util/alloc.h"
#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
Expand Down
Loading
Loading