drm/amdkfd: Fix buffer overflow in SDMA queue checkpoint/restore on GFX11
From Andrew Martin
d3efcadfe3eea5b4263b8f2d4463b15c9fc46a64 in linux-6.18.y/6.18.36
352ea59028ea48a6fff77f19ae28f98f71946a80 in mainline linux
drm/amdkfd: fix NULL dereference in get_queue_ids()
From Muhammad Bilal
72e259a32084c42816152c346096d2edd4213e23 in linux-6.18.y/6.18.36
2bd550b547deabef98bd3b017ff743b7c34d3a6d in mainline linux
drm/gem: Try to fix change_handle ioctl, attempt 4
From Simona Vetter
c0639ede2f24ac224b2079cd35ecd5fd8ad4e3cd in linux-6.18.y/6.18.36
1a4f03d22fb655e5f192244fb2c87d8066fcfca2 in mainline linux
drm/amd/display: Reject gpio_bitshift >= 32 in bios_parser_get_gpio_pin_info()
From Harry Wentland
edabfe80e34efc468abb3ae5586d71830a1ae585 in linux-6.18.y/6.18.36
49c3da65961fe9857c831d47fa1989084e87514a in mainline linux
drm/i915/gem: Fix phys BO pread/pwrite with offset
From Joonas Lahtinen
32d4c5d328a3ff995420f4f85163e1e403f43628 in linux-6.18.y/6.18.36
d21ad938398bca695a511307de38a65889e3b354 in mainline linux
drm/i915/edp: Check supported link rates DPCD read
From Nikita Zhandarovich
dda720b2928d162ad76273cd35d881bc69b71600 in linux-6.18.y/6.18.36
2673cefa99ca918e7ac5b0388ff578a83656c896 in mainline linux
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