[LU-4787] OOPS from null pointer dereference in mdc_unpack_acl Created: 20/Mar/14  Updated: 01/Nov/14  Resolved: 31/Oct/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0, Lustre 2.5.1, Lustre 2.4.3
Fix Version/s: Lustre 2.6.0

Type: Bug Priority: Major
Reporter: Roland Fehrenbacher Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None
Environment:

ZFS based 2.5.1 MGS/MDS/OSS + 2.5.1 or in-kernel client


Attachments: File 0001-QL-Lustre-Avoid-null-pointer-dereference-in-mdc_unpa.patch     File lustre-acl-oops    
Issue Links:
Related
is related to LU-5150 NULL pointer dereference in posix_acl... Resolved
Severity: 3
Rank (Obsolete): 13166

 Description   

A kernel oops is generated when body->aclsize != 0 in mdc_unpack_acl, but posix_acl_from_xattr
returns a null pointer. The pointer is checked for error codes, but not for a null value.
The cause of the problem is most likely some data corruption on the MDT side, but the client should tolerate this by sending an error.



 Comments   
Comment by Roland Fehrenbacher [ 20/Mar/14 ]

The attached patch fixes the issue and can be applied
to master, b2_5 and b2_4 as well as the in-kernel client.

Comment by Andreas Dilger [ 31/Oct/14 ]

Roland, apologies that we didn't see the patch here. I agree it would have been better to see and land it before more people hit the bug, but at least it was fixed in 2.6, and is scheduled to land for 2.5.4 also.

Thanks for bringing the missing patch back to our attention.

Comment by Roland Fehrenbacher [ 01/Nov/14 ]

Andreas, no hard feelings about this here Just added LU-5840 to discuss the issue
further along the lines mentioned in LU-5150.

Generated at Sat Feb 10 01:45:50 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.