Bug #75254
closedworkunits/direct_io/test_sync_io: crash in ceph-fuse w/ fscrypt
0%
Description
26-02-25T14:04:02.802 INFO:tasks.workunit.client.0.trial076.stdout:read_direct buf_align 0 offset 4191744 len 16384 2026-02-25T14:04:02.802 INFO:tasks.workunit.client.0.trial076.stdout:read_file buf_align 0 offset 4191744 len 16384 2026-02-25T14:04:02.802 INFO:tasks.workunit.client.0.trial076.stdout:read_file: error: pread() failed with: 103 (Software caused connection abort) 2026-02-25T14:04:02.803 INFO:tasks.workunit.client.0.trial076.stdout:read_sync buf_align 0 offset 4191744 len 16384 2026-02-25T14:04:02.803 INFO:tasks.workunit.client.0.trial076.stdout:read_file buf_align 0 offset 4191744 len 16384 2026-02-25T14:04:02.803 INFO:tasks.workunit.client.0.trial076.stdout:read_file: error: open() failed with: 107 (Transport endpoint is not connected) 2026-02-25T14:04:02.803 INFO:tasks.workunit:Stopping ['direct_io'] on client.0... 2026-02-25T14:04:02.803 DEBUG:teuthology.orchestra.run.trial076:> sudo rm -rf -- /home/ubuntu/cephtest/workunits.list.client.0 /home/ubuntu/cephtest/clone.client.0
I cannot see tthe backtrace in the client log (./remote/trial076/log/ceph-client.0.log.gz) which is weird, however, the tail end of the client log has this
2026-02-25T14:04:02.600+0000 7fe64bfff640 10 client.25262 _read 0x100000007e1.head(faked_ino=0 nref=204 ll_ref=40 cap_refs={4=0,1024=0,2048=0,4096=0,8192=0} open={1=1,2=0} mode=100644 size=8388608/20971520 nlink=1 btime=2026-02-25T14:00:47.407498+0000 mtime=2026-02-25T14:04:02.551725+0000 ctime=2026-02-25T14:04:02.551725+0000 change_attr=1048576 caps=pAsLsXsFsxcrwb(0=pAsLsXsFsxcrwb) objectset[0x100000007e1 ts 0/0 objects 2 dirty_or_tx 0] parents=0x100000007e0.head["mTJKyF50ogYUpIj,FKqdSm442tnFZAmnHsD5VIkmFto" ref=1 ino=0x100000007e1.head csg=1] 0x7fe674010990) 4191744~16384
2026-02-25T14:04:02.600+0000 7fe64bfff640 10 client.25262 get_caps 0x100000007e1.head(faked_ino=0 nref=204 ll_ref=40 cap_refs={4=0,1024=0,2048=0,4096=0,8192=0} open={1=1,2=0} mode=100644 size=8388608/20971520 nlink=1 btime=2026-02-25T14:00:47.407498+0000 mtime=2026-02-25T14:04:02.551725+0000 ctime=2026-02-25T14:04:02.551725+0000 change_attr=1048576 caps=pAsLsXsFsxcrwb(0=pAsLsXsFsxcrwb) objectset[0x100000007e1 ts 0/0 objects 2 dirty_or_tx 0] parents=0x100000007e0.head["mTJKyF50ogYUpIj,FKqdSm442tnFZAmnHsD5VIkmFto" ref=1 ino=0x100000007e1.head csg=1] 0x7fe674010990) have pAsLsXsFsxcrwb need Fr want Fc revoking -
2026-02-25T14:04:02.600+0000 7fe64bfff640 10 client.25262 nothing to flush
2026-02-25T14:04:02.600+0000 7fe64bfff640 0 /ceph/rpmbuild/BUILD/ceph-20.3.0-5549-g92715cd3/src/client/FSCrypt.cc:1082: fscrypt_key handler found
2026-02-25T14:04:02.600+0000 7fe64bfff640 10 client.25262 _read_sync 0x100000007e1.head(faked_ino=0 nref=204 ll_ref=40 cap_refs={4=0,1024=0,2048=1,4096=0,8192=0} open={1=1,2=0} mode=100644 size=8388608/20971520 nlink=1 btime=2026-02-25T14:00:47.407498+0000 mtime=2026-02-25T14:04:02.551725+0000 ctime=2026-02-25T14:04:02.551725+0000 change_attr=1048576 caps=pAsLsXsFsxcrwb(0=pAsLsXsFsxcrwb) objectset[0x100000007e1 ts 0/0 objects 2 dirty_or_tx 0] parents=0x100000007e0.head["mTJKyF50ogYUpIj,FKqdSm442tnFZAmnHsD5VIkmFto" ref=1 ino=0x100000007e1.head csg=1] 0x7fe674010990) 4191744~16384
2026-02-25T14:04:02.600+0000 7fe64bfff640 1 -- 10.20.193.76:0/623542739 --> [v2:10.20.193.76:6802/514850228,v1:10.20.193.76:6803/514850228] -- osd_op(unknown.0.0:29694 3.3d 3:bcefea76:::100000007e1.00000000:head [read 4190208~4096 [1@-1]] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e88) -- 0x7fe640256010 con 0x7fe62811f1d0
2026-02-25T14:04:02.600+0000 7fe64bfff640 1 -- 10.20.193.76:0/623542739 --> [v2:10.20.193.76:6818/486229021,v1:10.20.193.76:6819/486229021] -- osd_op(unknown.0.0:29695 3.1 3:82c7bc88:::100000007e1.00000001:head [read 0~13824 [1@-1]] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e88) -- 0x7fe640229010 con 0x7fe654004760
2026-02-25T14:04:02.601+0000 7fe696a13640 1 -- 10.20.193.76:0/623542739 <== osd.0 v2:10.20.193.76:6802/514850228 29654 ==== osd_op_reply(29694 100000007e1.00000000 [read 4190208~4096 out=4096b] v0'0 uv9 ondisk = 0) ==== 164+0+4096 (crc 0 0 0) 0x7fe688030040 con 0x7fe62811f1d0
2026-02-25T14:04:02.601+0000 7fe695a11640 1 -- 10.20.193.76:0/623542739 <== osd.6 v2:10.20.193.76:6818/486229021 18 ==== osd_op_reply(29695 100000007e1.00000001 [read 0~13824 out=13824b] v0'0 uv6 ondisk = 0) ==== 164+0+13824 (crc 0 0 0) 0x7fe680065030 con 0x7fe654004760
Which might be hinting at something in fscrypt.
VS Updated by Venky Shankar 9 months ago
- Related to QA Run #75130: wip-vshankar-testing-20260225.073815 added
CH Updated by Christopher Hoffman 8 months ago
Yeah it looks like an fscrypt issue. I am able to reproduce it and get a backtrace
#0 0x00007ffff62a9c22 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3
#1 0x00007ffff6251e6f in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3
#2 0x00007ffff6251f10 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3
#3 0x00007ffff618ff86 in EVP_DecryptUpdate () from /lib/x86_64-linux-gnu/libcrypto.so.3
#4 0x0000555555792852 in FSCryptDenc::decrypt (this=this@entry=0x7fffa0363010,
in_data=0x7fffa03a14f0 "Tٔ\004\363\374\207\255:1\265\027\232\235\066\006%\271\022\025z\230Ç\035\360\067!\023X@M\220\315z\274A\205\226\247}E\365\024\320\340\337\060n/~vG\206\367\341\003m\253\302n\313K\270\247\220\322\027\227\333\351YG\374\305\373y^\332\t\n\350d+\210{\306Z4\027\031\351\003Y>P\303Rs1Ƈ\361\270\336z·\266\220\272\224p\316\367\256\017\346k+\226;\337\033\bz\001\272\001jYP\232\200\325\071\036p\223\270؝(\273p\262\261\301\336\365\224\246EK\234\017\220\250\005\272\063wTr\331\376t\273uN\247C=ك\275\065\275Lcd0\261\236\034\337?\263\276-h:\300\232\253\060\a\250Qg"...,
in_len=in_len@entry=4096, out_data=out_data@entry=0x7fffa01b9020 "", out_len=out_len@entry=4096)
at /home/choffman/code/ceph/src/client/FSCrypt.cc:680
#5 0x0000555555792ec2 in FSCryptFDataDenc::decrypt_bl (this=0x7fffa0363010, off=off@entry=4192768,
len=len@entry=16384, pos=<optimized out>, holes=std::vector of length 0, capacity 0, bl=0x7fffccfee860)
at /home/choffman/code/ceph/src/client/FSCrypt.cc:967
#6 0x00005555556d6d2f in Client::_read_sync (this=this@entry=0x555555b12160, f=f@entry=0x7fff9c0a3970,
off=off@entry=4192768, len=<optimized out>, len@entry=16384, bl=bl@entry=0x7fffccfeebf0,
checkeof=<optimized out>, checkeof@entry=0x7fffccfeea23) at /home/choffman/code/ceph/src/client/Client.cc:12068
#7 0x0000555555724b59 in Client::_read (this=this@entry=0x555555b12160, f=f@entry=0x7fff9c0a3970,
offset=offset@entry=4192768, size=16384, bl=bl@entry=0x7fffccfeebf0, onfinish=onfinish@entry=0x0,
read_for_write=false) at /home/choffman/code/ceph/src/client/Client.cc:11720
#8 0x0000555555725de7 in Client::ll_read (this=0x555555b12160, fh=0x7fff9c0a3970, off=off@entry=4192768,
len=<optimized out>, len@entry=16384, bl=bl@entry=0x7fffccfeebf0)
at /home/choffman/code/ceph/src/client/Client.cc:17128
--Type <RET> for more, q to quit, c to continue without paging--
#9 0x00005555556a5d0a in fuse_ll_read (req=0x7fffa0002220, ino=<optimized out>, size=16384, off=4192768, fi=0x7fffccfeec50) at /home/choffman/code/ceph/src/client/fuse_ll.cc:882
#10 0x00007ffff7f7ef1f in ?? () from /lib/x86_64-linux-gnu/libfuse.so.2
#11 0x00007ffff7f7f69c in ?? () from /lib/x86_64-linux-gnu/libfuse.so.2
#12 0x00007ffff7f7c21d in ?? () from /lib/x86_64-linux-gnu/libfuse.so.2
#13 0x00007ffff5894ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#14 0x00007ffff59268d0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
CH Updated by Christopher Hoffman 8 months ago
- Status changed from New to In Progress
CH Updated by Christopher Hoffman 8 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 68141
CH Updated by Christopher Hoffman 8 months ago
- Has duplicate Tasks #73574: test_sync_io failure added
VS Updated by Venky Shankar 7 months ago
- Tags set to fscrypt
VS Updated by Venky Shankar 7 months ago
- Labels (FS) fscrypt added
UB Updated by Upkeep Bot 7 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to 67d965960a534fc7728e5b2f0d6117a4e995bde3
- Fixed In set to v21.0.0-1329-g67d965960a
- Upkeep Timestamp set to 2026-05-12T15:27:41+00:00
KH Updated by Kotresh Hiremath Ravishankar 5 months ago
@Venky Shankar @Christopher Hoffman These needs to be back ported to release branches?
VS Updated by Venky Shankar 5 months ago
Kotresh Hiremath Ravishankar wrote in #note-9:
@Venky Shankar @Christopher Hoffman These needs to be back ported to release branches?
Please check if the fix is already a part of umbrella.
CH Updated by Christopher Hoffman 5 months ago
Venky Shankar wrote in #note-10:
Kotresh Hiremath Ravishankar wrote in #note-9:
@Venky Shankar @Christopher Hoffman These needs to be back ported to release branches?
Please check if the fix is already a part of umbrella.
This is part of umbrella: https://github.com/ceph/ceph/commit/b625cf130e312e003bad12a0338d2842d04f2a9e
VS Updated by Venky Shankar 5 months ago
Christopher Hoffman wrote in #note-11:
Venky Shankar wrote in #note-10:
Kotresh Hiremath Ravishankar wrote in #note-9:
@Venky Shankar @Christopher Hoffman These needs to be back ported to release branches?
Please check if the fix is already a part of umbrella.
This is part of umbrella: https://github.com/ceph/ceph/commit/b625cf130e312e003bad12a0338d2842d04f2a9e
The ceph-fuse crash in that case is different. Seen in main/umbrella: https://pulpito.ceph.com/yuriw-2026-07-01_23:54:49-fs-umbrella-release-distro-default-trial/334091/
Will create a tracker for this.
VS Updated by Venky Shankar 5 months ago
- Related to Bug #78207: workunits/direct_io/test_sync_io crashes ceph-fuse added
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~499
- Upkeep Timestamp changed from 2026-05-12T15:27:41+00:00 to 2026-10-24T01:44:54+00:00