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
Allocate a buffer for the line cache instead of reaching into db data.
Previously, vi used the db internal data buffer directly. Fixes a
problem where the line cache could become corrupted when the db
data changes out from under it. From Walter Alejandro Iglesias.
bin/ksh: restore source after interactive error recovery
unwind() may clear source while popping execution environments. The
interactive shell then expands PS1 before compile() restores source, so
a prompt command substitution using read -s can dereference NULL while
saving history. Restore source to the current interactive input source
before continuing to the prompt loop.
Reported by Luigi Vianello
OK: millert@
iked: Avoid stack exhaustion by unbounded recursion
Problem found and patch supplied by mfriedl at genua.de. Similar
report from zhangph12138 at 163.com, thanks!
ok markus@
sys/uvm: fix amap lock order during swapoff
amap_wipeout() removed the amap from the global list while holding
amap->am_lock. swapoff walks that list as amaplstlk -> amaplk, while the
last unref path could establish the reverse order through
amap_wipeout(), producing a witness lock order reversal when disabling
swap.
OK: renaud@