Description of problem:
Patch from Michael E. Brown to GregKH, accepted today and submitted to
I have just been bitten by lack of module locking for bin_attribute
attributes, so attached is the corresponding patch to fs/sysfs/bin.c.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
while true; do modprobe mymod; rmmod mymod; done &
while true; do hexdump -C /sys/path/to/sysfs/binary/file; done
Created attachment 99642 [details]
Patch is in Linus's bk tree for 2.6.6-rc3 now.
Should be in A4, then.
Confirmed fixed in Beta 2.