raise the size of amd64 kernel virtual address space from 4G to 512G
This allows mapping all of VRAM on recent Radeon cards where the
PCI BAR size is the full (> 4G) size.
Reported by Petre Rodan, who has a Radeon RX 6800 with 16G of VRAM.
feedback from claudio@ ok kettenis@
change iommu_map_sgtable() return type from size_t to ssize_t
Should be signed as error paths return -ENOMEM. Linux made the same
change a few years ago.
Do `ip_shuffle' initialization at boot time. ip_randomid() called in the
hot path so we want to keep it lockless, but avoid access to uninitialized
data.
ok deraadt
Skip aliases that are not valid hostnames in gethostbyname(3).
Consider the following CNAME chain:
chain7.narrans.de. 60 IN CNAME chain\007.tlakh.xyz.
chain\007.tlakh.xyz. 60 IN CNAME chain.sha256.net.
chain.sha256.net. 60 IN CNAME sha256.net.
sha256.net. 60 IN A 213.239.192.17
gethostbyname(3) would fail the query when it encounters
chain\007.tlakh.xyz. and tries to add it to h_aliases member of struct
hostent because it's not a valid hostname. This in turn would fail the
whole query.
With this, resolution succeeds and we get an alias list of
"chain7.narrans.de chain.sha256.net".
hostent_add_alias() can no longer fail, so make it void.
[3 lines not shown]
include a comment in the tm_wday = -1 codesample, since we are
trying to encourage this to become an idiomatic use pattern.
Everyone doing this, please copy the comment also.
ok tb
Avoid netlock dance in cad(4) ioctl.
While interface ioctl(8) is moving towards better parallel access,
drivers assuming exclusive netlock and unlocking explicitly cause
trouble. Use the drivers own configuration lock for protection.
Do not wait for task barriers while potentially holding the netlock.
Panic reported by Mark McBride and Thomas Pries.
Tested by dlg@; OK dlg@ mvs@
Replace all printf with DPRINTF so that kernel messages are only printed
if the FUSE_DEBUG option is set at compile time. Each debug message on
the console is prefexed with "fusefs: "
Remove the useless fuse_dump_buff() function while we are at it.
ok mlarkin
setup the radeondrm wscons burner task, lost in 6.18 drm changes
avoids a NULL deref when wscons screen burner is enabled
reported by al and Philippe on bugs@
Calculate the msg_copyin() `xfer' as min(available space, ...) not
min(total space, ...). Otherwise we read outside of userland buffer.
Also, I like to use sizeof(variable) instead of sizeof(type).
ok cludwig