]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE12-rx-protect-queue-during-debug-20040601
authorRainer Toebbicke <rtb@pclella.cern.ch>
Mon, 18 Oct 2004 06:12:45 +0000 (06:12 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 18 Oct 2004 06:12:45 +0000 (06:12 +0000)
commitf7ccd84bbd306f5af9055e5ca88dbbc25ce36192
treefe4d6d693fd73f25bc18425aaf02cc85ae51ee62
parentb90cb55fd66016641d869e7f7bb889ae91e18f42
STABLE12-rx-protect-queue-during-debug-20040601

FIXES 4811

"in rx_packet.c:rxi_ReceiveDebugPacket() the rx_idleServerQueue is
scanned without taking a lock first.

The queue_Remove macro zeroes the ->next field (luckily), but this can
lead to a crash when Murphy strikes and the entry gets removed during
the scan: queue_Scan will dereference 0x0 -> next.
"

(cherry picked from commit 8d442bea4f760366b0c2bb2053e0ebf6ffa3d5c6)
src/rx/rx_packet.c