Files
kernel_xiaomi_sm8250/include/linux
npiggin@suse.de 57439f878a fs: fix superblock iteration race
list_for_each_entry_safe is not suitable to protect against concurrent
modification of the list. 6754af6 introduced a race in sb walking.

list_for_each_entry can use the trick of pinning the current entry in
the list before we drop and retake the lock because it subsequently
follows cur->next. However list_for_each_entry_safe saves n=cur->next
for following before entering the loop body, so when the lock is
dropped, n may be deleted.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Frank Mayhar <fmayhar@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-29 10:38:22 -07:00
..
2010-05-17 22:39:48 -07:00
2010-05-28 01:38:00 +02:00
2010-05-14 17:08:01 -04:00
2010-05-27 09:12:53 -07:00
2010-05-19 13:38:54 -04:00
2010-06-08 18:44:04 +02:00
2010-05-19 22:41:57 -04:00
2010-05-17 16:30:58 -07:00
2010-05-21 19:30:44 +02:00
2010-06-01 11:12:28 +02:00
2010-05-27 22:05:02 -04:00
2010-05-25 08:07:01 -07:00
2010-05-27 09:12:42 -07:00
2010-05-21 09:34:29 -07:00
2010-05-21 09:37:29 -07:00
2010-05-14 15:09:32 -04:00
2010-05-17 12:17:10 +03:00
2010-06-29 10:38:22 -07:00
2010-05-17 05:27:42 +02:00
2010-05-19 13:44:27 +10:00
2010-06-07 16:03:10 -04:00
2010-05-27 09:12:50 -07:00
2010-05-30 09:02:47 -07:00
2010-05-25 11:41:43 -04:00
2010-05-27 09:12:43 -07:00
2010-05-15 23:28:39 -07:00
2010-05-21 09:34:29 -07:00
2010-05-19 22:40:47 -04:00
2010-06-03 13:13:34 +10:00
2010-05-19 22:15:46 +09:30