Skip to contentSkip to conversation

xfs: fix scrub trace with null pointer in quotacheck

PATCH Applied Andrey Albershteyn 2 participants 2 messages Jul 31, 2025 – Aug 12, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: fix scrub trace with null pointer in quotacheck

The quotacheck doesn't initialize sc->ip.

Cc <[email protected]> # v6.8
Fixes 21d7500929c8a0 ("xfs: improve dquot iteration for scrub")
---
 fs/xfs/scrub/trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/scrub/trace.h +1 -1
index 1e6e9c10cea2..a8187281eb96 100644
@@ -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;
Signature · 1 line
2.50.0
maintainer Applied
#1 lore raw
Quoted 3 lines · Andrey Albershteyn

The quotacheck doesn't initialize sc->ip.

Applied to for-next, thanks!

[1/1] xfs: fix scrub trace with null pointer in quotacheck

      commit: 5d94b19f066480addfcdcb5efde66152ad5a7c0e

Best regards,

Signature · 1 line
Carlos Maiolino <[email protected]>