Re: [PATCH 1/2] sysfs: fix race between readdir and lseek

From: Ming Lei
Date: Tue Mar 26 2013 - 04:45:39 EST


On Tue, Mar 26, 2013 at 3:30 PM, Li Zefan <lizefan@xxxxxxxxxx> wrote:
>> Considered that vfs_read()/vfs_write on sysfs dir is almost doing nothing, the
>> above problem may only exist in theory.
>
> The read() vs readdir() race in sysfs directory doesn't exist in theory only.

Could you let me know if you have applied the two patches on your test?

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=e5110f411d2ee35bf8d202ccca2e89c633060dca

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=991f76f837bf22c5bb07261cfd86525a0a96650c

Also I appreciate it if you may share your test case...

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/