Description of problem: Patch from Michael E. Brown to GregKH, accepted today and submitted to Linus. Per MEB: 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): before 2.6.6-rc3 How reproducible: easy Steps to Reproduce: while true; do modprobe mymod; rmmod mymod; done & while true; do hexdump -C /sys/path/to/sysfs/binary/file; done Actual results: Oops Expected results: no Oops Additional info: patch attached
Created attachment 99642 [details] bin_attr-fix2.patch
Patch is in Linus's bk tree for 2.6.6-rc3 now.
Should be in A4, then.
Confirmed fixed in Beta 2.