Commits
Pavel Butsykin authored and Konstantin Khorenko committed 6fe1acd868d
fs/fuse kio_pcs: NULL pointer dereference on access m->mapping->chunk_size_bits Inside map_chunk_start()/map_chunk_end() there is dereference m->mapping, which can be NULL in case of map dead. But in fact it's impossible in this place, because maps are dropped only on shrink which is protected from simultaneous execution with other IO. But anyway let's fix dereference m->mapping of a dead map and add WARN_ON_ONCE() to facilitate catching this race in case it occurs. Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com> ===================== Patchset description: FUSE KIO: Mapping truncate fixes https://jira.sw.ru/browse/PSBM-89539