Change Open Firmware calling routines to explicitly allow for one returned
value. The existing code used to work on real hardware, but wasn't exactly
IEEE1275-conformant, and did not work with QEMU's OpenBIOS.
Tested on various machines from U1 and U5 to Blade, V250 and T1000.
diff from Ted Bullock, ok kettenis@
sys: protect special device locks during vnode teardown
Special device advisory locking can race with vnode teardown and access
freed specinfo.
OpenAI reported the problem and supplied an initial patch; that patch
introduced a NULL dereference window by clearing v_specinfo while
leaving the vnode typed VCHR or VBLK across a sleep; it also left
teardown exposed to vnode recycling during the drain.
In other words the initial patch addressed one race, introduced another,
and left the vnode lifetime problem unfixed.
Here the reworked approach with large colaboration with claudio@ with
talks and inputs from deraadt@ and beck@.
Resolve and detach specinfo under lockf_lock, interrupt all pending
requests, and retain its storage until the drain completes. Keep VXLOCK
and the temporary vnode reference through teardown; set VBAD before
[3 lines not shown]
tcptrace: spring cleaning
The most important change replaces pcap_offline_read() with
pcap_dispatch(). Debian has had this diff for a while.
Then there are tons of format string warnings which are problematic on
LP64 where sizeof(long) != sizeof(int).
Replace malloc + wrongly sized memset with calloc
There were also some careless patches: an incorrectly terminated comment
and strcat -> strncat conversion with wrong size and no termination...
sthen uploaded the distfile to his mirror, so use this for SITES.
He also eyeballed the diff. Thanks.
update to got 0.131
- reword error message: "object format" is actually the "hash algorithm"
- fix blame regression tests for git >=2.56
- fix detection of passwd YP entries in gotsys-useradd
- remove support for .cvsignore files
- allow the global default hash algorithm to be changed to sha1 in gotsys.conf
- prevent tog crashing if work tree's base commit ID uses a bad hash algorithm
- allow work trees to be opened read-only by multiple got commands at a time
- always print a tab after the file name in unidiff headers, for Larry patch(1)
- prevent branches in protected branch namespaces from being rewound
- fix a wrong bounds check in recv_tree_entries()
- avoid pointless call to getpwnam() when gotd reloads