Project

General

Profile

Actions

Bug #37278

closed

filefrag receives SIGFPE when run on any file on CephFS (kernel mount)

Added by Марк Коренберг over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
fs/ceph
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Such hilarious thing happens because fstat() on any file returns .st_dev=0. filefrag tracks that as uninitialized value in its internal logic crashes.

For example, /proc files give st_dev=makedev(0, 21), /sys files give st_dev=makedev(0, 20).

I think, CephFS should give st_dev=makedev(0, <something>).

(and also, it would be nice to support FIBMAP ioctls and so on, but this is a different task)

Actions

Also available in: Atom PDF