]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xfs: fix scrub trace with null pointer in quotacheck
authorAndrey Albershteyn <aalbersh@redhat.com>
Thu, 31 Jul 2025 17:07:22 +0000 (19:07 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 11 Aug 2025 12:04:14 +0000 (14:04 +0200)
The quotacheck doesn't initialize sc->ip.

Cc: stable@vger.kernel.org # v6.8
Fixes: 21d7500929c8a0 ("xfs: improve dquot iteration for scrub")
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/scrub/trace.h

index 1e6e9c10cea2577cf5d040ce6c3af1387389a030..a8187281eb96b97f22cd5b8ba2672faf4f36c84e 100644 (file)
@@ -479,7 +479,7 @@ DECLARE_EVENT_CLASS(xchk_dqiter_class,
                __field(xfs_exntst_t, state)
        ),
        TP_fast_assign(
-               __entry->dev = cursor->sc->ip->i_mount->m_super->s_dev;
+               __entry->dev = cursor->sc->mp->m_super->s_dev;
                __entry->dqtype = cursor->dqtype;
                __entry->ino = cursor->quota_ip->i_ino;
                __entry->cur_id = cursor->id;