[LU-1838] 1.8 client does not filter 2.x server extended attributes list based on permissions Created: 05/Sep/12  Updated: 19/Mar/15  Resolved: 22/Feb/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 1.8.8
Fix Version/s: Lustre 1.8.9

Type: Bug Priority: Blocker
Reporter: Andreas Dilger Assignee: nasf (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Client: lustre 1.8.6-wc1
Servers:
lustre-2.0.65-2.6.18_238.12.1.el5_lustre_ga34dd87
lustre-modules-2.0.65-2.6.18_238.12.1.el5_lustre_ga34dd87
lustre-ldiskfs-3.3.0-2.6.18_238.12.1.el5_lustre_ga34dd87


Issue Links:
Duplicate
is duplicated by LU-532 2.1 does not filter extended attribut... Resolved
Related
Severity: 3
Rank (Obsolete): 6337

 Description   

There seems to be a problem with user_xattr when using 1.8.6-wc1 client with
newest lustre-master build:

cd /mnt/lustre/scratch/people/b14flis
touch test

mv test /tmp

mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted
mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted

strace dump:
...
fgetxattr(3, "trusted.link", 0x0, 0) = -1 EPERM (Operation not permitted)
fgetxattr(3, "trusted.lov", 0x0, 0) = -1 EPERM (Operation not permitted)
...
lgetxattr("test", "trusted.lma", 0x0, 0) = -1 EPERM (Operation not permitted)
...
lgetxattr("test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56) = 56
lsetxattr("/tmp/test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56, 0) = -1 EOPNOTSUPP (Operation not supported)
getxattr("test", "system.posix_acl_access", 0x7fff6edfae60, 132) = -1 ENODATA (No data available)

serwer side error:

Lustre: 10440:0:(mdt_xattr.c:374:mdt_reint_setxattr()) client miss to set OBD_MD_FLCTIME when setxattr: [object [0x2002f0053:0x38:0x0]] [valid 68719476736]

mount options:
MDT:
/dev/mapper/scratch-mdt on /mnt/lustre/scratch-mdt type lustre (rw,acl,user_xattr)

Client:
172.16.126.1@tcp:/scratch on /mnt/lustre/scratch type lustre (rw,nosuid,nodev,user_xattr,localflock,acl)

We can supply more information if needed.



 Comments   
Comment by Andreas Dilger [ 05/Sep/12 ]

This is a clone of LU-532 to track landing of the patches from http://review.whamcloud.com/1161 and http://review.whamcloud.com/2490 to b1_8.

Comment by nasf (Inactive) [ 06/Sep/12 ]

The back porting patch:

http://review.whamcloud.com/#change,3892

Comment by Johann Lombardi (Inactive) [ 13/Sep/12 ]

Patch landed to b1_8.

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