diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-29 17:56:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-29 17:56:45 -0400 |
commit | f3f106dac0458e3010486860baba8fdc2a133e5e (patch) | |
tree | efced27d365f9490f7450db093c98245bb7e2028 /fs/notify | |
parent | ff81a521b888728e7ece69a437ac4d9ea810b6c6 (diff) | |
parent | ee4af50ca94f58afc3532662779b9cf80bbe27c8 (diff) |
Merge tag 'for_v4.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull misc fs fixes from Jan Kara:
- make UDF to properly mount media created by Win7
- make isofs to properly refuse devices with large physical block size
- fix a Spectre gadget in quotactl(2)
- fix a warning in fsnotify code hit by syzkaller
* tag 'for_v4.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
udf: Fix mounting of Win7 created UDF filesystems
udf: Remove dead code from udf_find_fileset()
fs/quota: Fix spectre gadget in do_quotactl
fs/quota: Replace XQM_MAXQUOTAS usage with MAXQUOTAS
isofs: reject hardware sector size > 2048 bytes
fsnotify: fix false positive warning on inode delete
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/mark.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/notify/mark.c b/fs/notify/mark.c index 05506d60131c..59cdb27826de 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c | |||
@@ -132,13 +132,13 @@ static void __fsnotify_recalc_mask(struct fsnotify_mark_connector *conn) | |||
132 | struct fsnotify_mark *mark; | 132 | struct fsnotify_mark *mark; |
133 | 133 | ||
134 | assert_spin_locked(&conn->lock); | 134 | assert_spin_locked(&conn->lock); |
135 | /* We can get detached connector here when inode is getting unlinked. */ | ||
136 | if (!fsnotify_valid_obj_type(conn->type)) | ||
137 | return; | ||
135 | hlist_for_each_entry(mark, &conn->list, obj_list) { | 138 | hlist_for_each_entry(mark, &conn->list, obj_list) { |
136 | if (mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED) | 139 | if (mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED) |
137 | new_mask |= mark->mask; | 140 | new_mask |= mark->mask; |
138 | } | 141 | } |
139 | if (WARN_ON(!fsnotify_valid_obj_type(conn->type))) | ||
140 | return; | ||
141 | |||
142 | *fsnotify_conn_mask_p(conn) = new_mask; | 142 | *fsnotify_conn_mask_p(conn) = new_mask; |
143 | } | 143 | } |
144 | 144 | ||