[OpenAFS-devel] [CSL #328045] kernel BUG: file locks and openafs
1.4.2
David Thompson
thomas@cs.wisc.edu
Fri, 20 Apr 2007 09:56:36 -0500
Christopher Allen Wing wrote:
>The test case for this bug is:
>
> 1. Get two computers (host A, host B) running the AFS client
>
> 2. Create a file in AFS (you can just use 'touch')
>
> 3. on host A, run a program that calls lockf() on this file, e.g.
> like this:
>
> http://www-personal.engin.umich.edu/~wingc/openafs/code/lock.c
>
> 4. Now go to host B and delete the file.
>
> 5. Go back to host A and kill the program holding the lock
>
> 6. The kernel will now crash on host A (if host A is running the
> buggy version of OpenAFS)
We've seen it with Firefox (for user with home directory in afs: open browser
on host A, then on host B, then close B, then close A. A dies with BUG
described earlier.) Probably locking/deleting going on as per your example.
Thanks again.
Dave