[Devel] [PATCH hci-8.1 1/2] ms/ext4: free the sbi after a grace period
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Nov 17 09:02:02 MSK 2026
> From: Christian Brauner <brauner at kernel.org>
>
> [ Upstream commit c17b44266a1f9fcb49b894d4611d1254bf1aa313 ]
>
> ext4_get_link() follows a symlink that keeps its target in a data block
> in rcu pathwalk mode with ext4_getblk(EXT4_GET_BLOCKS_CACHED_NOWAIT).
> That reads s_mount_state in the ASSERT() of ext4_getblk() and again in
> ext4_es_lookup_extent(), and the lookup bumps the extent status hit or
> miss counter, all through sb->s_fs_info.
>
> ext4_put_super() destroys those counters, clears sb->s_fs_info and frees
> the sbi without waiting for a grace period. A pathwalk that is still in
> ext4_get_link() when the last reference to the mount goes away then
> dereferences a NULL s_fs_info, the freed sbi or the destroyed percpu
> counters.
> [ ... ]
>
> https://virtuozzo.atlassian.net/browse/VSTOR-155414
> Feature: fix ms/fs
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117055330.810827-1-eva.kurchatova@virtuozzo.com?part=1
More information about the Devel
mailing list