In the Linux kernel, the following vulnerability has been resolved:
gfs2: fiemap page fault fix
In gfs2_fiemap(), we are calling iomap_fiemap() while holding the inode
glock. This can lead to recursive glock taking if the fiemap buffer is
memory mapped to the same inode and accessing it triggers a page fault.
Fix by disabling page faults for iomap_fiemap() and faulting in the
buffer by hand if necessary.
Fixes xfstest generic/742.
A recursive glock deadlock vulnerability exists in GFS2's fiemap implementation when the fiemap buffer is memory-mapped to the same inode, causing page faults during buffer access. The fix involves disabling page faults during iomap_fiemap() calls and manually faulting in the buffer when necessary.
في دالة gfs2_fiemap()، يتم استدعاء iomap_fiemap() أثناء الاحتفاظ بـ inode glock، مما قد يؤدي إلى أخذ glock متكرر إذا كان مخزن fiemap مرتبطاً بنفس inode وتسبب الوصول إليه في حدوث خطأ صفحة. يتم حل المشكلة بتعطيل أخطاء الصفحات وإدارة المخزن المؤقت يدويًا عند الضرورة.
ثغرة في نظام ملفات GFS2 حيث يمكن حدوث جمود متكرر عند استدعاء fiemap إذا كان المخزن المؤقت مرتبطاً بنفس inode. يتم إصلاح المشكلة بتعطيل أخطاء الصفحات وإدارة المخزن المؤقت يدويًا.
Update the Linux kernel to the patched version that disables page faults during iomap_fiemap() calls in gfs2_fiemap() and implements manual buffer faulting. Apply the fix from the GFS2 subsystem patches that resolve xfstest generic/742.
قم بتحديث نواة Linux إلى الإصدار المصحح الذي يعطل أخطاء الصفحات أثناء استدعاءات iomap_fiemap() في gfs2_fiemap() وينفذ إدارة المخزن المؤقت يدويًا. طبق الإصلاح من رقع نظام الملفات GFS2.