From deb728774249ce479316c219f77530e2af52e3bd Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Thu, 28 Nov 2024 01:50:23 +0100 Subject: prog: annotate image assets with fsck logs Syscall attributes are extended with a fsck command field which lets file system mount definitions specify a fsck-like command to run. This is required because all file systems have a custom fsck command invokation style. When uploading a compressed image asset to the dashboard, syz-manager also runs the fsck command and logs its output over the dashapi. The dashboard logs these fsck logs into the database. This has been requested by fs maintainer Ted Tso who would like to quickly understand whether a filesystem is corrupted or not before looking at a reproducer in more details. Ultimately, this could be used as an early triage sign to determine whether a bug is obviously critical. --- dashboard/dashapi/dashapi.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dashboard/dashapi') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 6396f5df7..ab59f4500 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -497,6 +497,8 @@ type Asset struct { Title string DownloadURL string Type AssetType + FsckLogURL string + FsIsClean bool } type AssetType string @@ -802,6 +804,8 @@ func (dash *Dashboard) UploadManagerStats(req *ManagerStatsReq) error { type NewAsset struct { DownloadURL string Type AssetType + FsckLog []byte + FsIsClean bool } type AddBuildAssetsReq struct { -- cgit mrf-deployment