6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Darrick J. Wong commit fe67a493c7a76cf75556152af24285a114f69d34 upstream. LOLLM complains that file_operations structs for debugfs files are supposed to have an owner set so that the module can't get unloaded if someone's sitting on a debugfs file long after unmount/rmmod. Fix that. Cc: stable@vger.kernel.org # v6.6 Fixes: d7a74cad8f4513 ("xfs: track usage statistics of online fsck") Signed-off-by: Darrick J. Wong Assisted-by: LOLLM # finding obvious bugs Reviewed-by: Christoph Hellwig Signed-off-by: Carlos Maiolino Signed-off-by: Greg Kroah-Hartman --- fs/xfs/scrub/stats.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/xfs/scrub/stats.c +++ b/fs/xfs/scrub/stats.c @@ -294,6 +294,7 @@ out: } static const struct file_operations scrub_stats_fops = { + .owner = THIS_MODULE, .open = simple_open, .read = xchk_scrub_stats_read, }; @@ -321,6 +322,7 @@ xchk_clear_scrub_stats_write( } static const struct file_operations clear_scrub_stats_fops = { + .owner = THIS_MODULE, .open = simple_open, .write = xchk_clear_scrub_stats_write, };