Project

General

Profile

Actions

Bug #58126

open

kclient: WARNING: fs/crypto/keyring.c:242 fscrypt_destroy_keyring+0x7e/0xd0

Added by Xiubo Li over 1 year ago. Updated 7 months ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

In https://pulpito.ceph.com/xiubli-2022-11-30_03:04:20-fs:fscrypt-wip-lxb-fscrypt-20221122-0933-distro-default-smithi/7098282/

The xfstests-dev generic/595 failed, in another test the generic/580 failed:

2022-11-30T03:47:31.465 INFO:teuthology.orchestra.run.smithi201.stdout:generic/592       [not run] kernel does not support encryption policy: '-c 1 -n 4 -v 2 -f 8'
2022-11-30T03:47:33.856 INFO:teuthology.orchestra.run.smithi201.stdout:generic/593        2s
2022-11-30T03:47:40.285 INFO:teuthology.orchestra.run.smithi201.stdout:generic/595       _check_dmesg: something found in dmesg (see /tmp/tmp.P7Ufk1sVOjxfstests-dev/results//generic/595.dmesg)

And the kernel dmesg logs:

2022-11-30T03:47:35.348815+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729482
2022-11-30T03:47:35.767327+00:00 smithi201 kernel: 595 (166596): drop_caches: 2
2022-11-30T03:47:35.827301+00:00 smithi201 kernel: fscrypt: ceph: 1 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729987
2022-11-30T03:47:35.860288+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729481
2022-11-30T03:47:35.909075+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729987
2022-11-30T03:47:35.940948+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729987
2022-11-30T03:47:35.991842+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729987
2022-11-30T03:47:36.028291+00:00 smithi201 kernel: fscrypt: ceph: 1 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729481
2022-11-30T03:47:36.057318+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729987
2022-11-30T03:47:36.089317+00:00 smithi201 kernel: fscrypt: ceph: 1 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729987
2022-11-30T03:47:36.121286+00:00 smithi201 kernel: fscrypt: ceph: 2 inode(s) still busy after removing key with identifier 69b2f6edeee720cce0577937eb8a6751, including ino 1099511729481
2022-11-30T03:47:39.891918+00:00 smithi201 kernel: ------------[ cut here ]------------
2022-11-30T03:47:39.891992+00:00 smithi201 kernel: WARNING: CPU: 4 PID: 168846 at fs/crypto/keyring.c:242 fscrypt_destroy_keyring+0x7e/0xd0
2022-11-30T03:47:39.948750+00:00 smithi201 kernel: Modules linked in: essiv authenc ceph libceph dns_resolver fscache netfs veth nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables nfnetlink bridge stp llc xfs libcrc32c intel_rapl_msr intel_rapl_common sb_edac x86_pkg_temp_thermal coretemp kvm_intel kvm ipmi_ssif iTCO_wdt irqbypass iTCO_vendor_support acpi_ipmi crct10dif_pclmul sunrpc crc32_pclmul ipmi_si i2c_i801 ghash_clmulni_intel lpc_ich sha512_ssse3 joydev ipmi_devintf wmi i2c_smbus mfd_core ipmi_msghandler mei_me acpi_pad mei acpi_power_meter ioatdma ixgbe igb nvme mdio crc32c_intel ptp nvme_core i2c_algo_bit pps_core dca fuse
2022-11-30T03:47:39.958648+00:00 smithi201 kernel: CPU: 4 PID: 168846 Comm: umount Tainted: G S                 6.1.0-rc5-ceph-g72ead199864c #1
2022-11-30T03:47:39.966177+00:00 smithi201 kernel: Hardware name: Supermicro SYS-5018R-WR/X10SRW-F, BIOS 2.0 12/17/2015
2022-11-30T03:47:39.971512+00:00 smithi201 kernel: RIP: 0010:fscrypt_destroy_keyring+0x7e/0xd0
2022-11-30T03:47:39.990345+00:00 smithi201 kernel: Code: e8 c7 f6 ff ff 48 89 df e8 5f fe ff ff 4d 85 ff 74 35 4c 89 fb 48 83 eb 08 74 2c 8b 83 b0 00 00 00 4c 8b 7b 08 83 f8 01 74 ba <0f> 0b 8b 83 b4 00 00 00 83 f8 01 74 b8 0f 0b 8b 83 d0 00 00 00 85
2022-11-30T03:47:39.995775+00:00 smithi201 kernel: RSP: 0018:ffffc9000b277e28 EFLAGS: 00010202
2022-11-30T03:47:39.995846+00:00 smithi201 kernel: RAX: 0000000000000002 RBX: ffff88810d52ac00 RCX: ffff88810b56aa00
2022-11-30T03:47:40.010286+00:00 smithi201 kernel: RDX: 0000000080000000 RSI: ffffffff822f3a09 RDI: ffff888108f59000
2022-11-30T03:47:40.010356+00:00 smithi201 kernel: RBP: ffff8881d394fb88 R08: 0000000000000028 R09: 0000000000000000
2022-11-30T03:47:40.024757+00:00 smithi201 kernel: R10: 0000000000000001 R11: 11ff4fe6834fcd91 R12: ffff8881d394fc40
2022-11-30T03:47:40.032000+00:00 smithi201 kernel: R13: ffff888108f59000 R14: ffff8881d394f800 R15: 0000000000000000
2022-11-30T03:47:40.040201+00:00 smithi201 kernel: FS:  00007fd83f6f1080(0000) GS:ffff88885fd00000(0000) knlGS:0000000000000000
2022-11-30T03:47:40.046084+00:00 smithi201 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-11-30T03:47:40.053315+00:00 smithi201 kernel: CR2: 00007f918d417000 CR3: 000000017f89a005 CR4: 00000000003706e0
2022-11-30T03:47:40.060538+00:00 smithi201 kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-11-30T03:47:40.067802+00:00 smithi201 kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
2022-11-30T03:47:40.067880+00:00 smithi201 kernel: Call Trace:
2022-11-30T03:47:40.072515+00:00 smithi201 kernel: <TASK>
2022-11-30T03:47:40.077085+00:00 smithi201 kernel: generic_shutdown_super+0x47/0x120
2022-11-30T03:47:40.080949+00:00 smithi201 kernel: kill_anon_super+0x14/0x30
2022-11-30T03:47:40.085172+00:00 smithi201 kernel: ceph_kill_sb+0x36/0x90 [ceph]
2022-11-30T03:47:40.085249+00:00 smithi201 kernel: deactivate_locked_super+0x29/0x60
2022-11-30T03:47:40.093312+00:00 smithi201 kernel: cleanup_mnt+0xb8/0x140
2022-11-30T03:47:40.097009+00:00 smithi201 kernel: task_work_run+0x67/0xb0
2022-11-30T03:47:40.097089+00:00 smithi201 kernel: exit_to_user_mode_prepare+0x23d/0x240
2022-11-30T03:47:40.114628+00:00 smithi201 kernel: syscall_exit_to_user_mode+0x25/0x60
2022-11-30T03:47:40.114701+00:00 smithi201 kernel: do_syscall_64+0x40/0x80
2022-11-30T03:47:40.123441+00:00 smithi201 kernel: entry_SYSCALL_64_after_hwframe+0x63/0xcd
2022-11-30T03:47:40.127152+00:00 smithi201 kernel: RIP: 0033:0x7fd83dc39e9b
2022-11-30T03:47:40.127221+00:00 smithi201 kernel: Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 8b 0d e4 5f 38 00 f7 d8 64 89 01 48 83 c8 ff c3 66 90 f3 0f 1e fa b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d bd 5f 38 00 f7 d8 64 89 01 48
2022-11-30T03:47:40.153759+00:00 smithi201 kernel: RSP: 002b:00007ffc71fdaf58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
2022-11-30T03:47:40.161021+00:00 smithi201 kernel: RAX: 0000000000000000 RBX: 000055e46a189310 RCX: 00007fd83dc39e9b
2022-11-30T03:47:40.168267+00:00 smithi201 kernel: RDX: 0000000000000001 RSI: 0000000000000000 RDI: 000055e46a197ce0
2022-11-30T03:47:40.168351+00:00 smithi201 kernel: RBP: 0000000000000000 R08: 000055e46a189010 R09: 0000000000000000
2022-11-30T03:47:40.182749+00:00 smithi201 kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 000055e46a197ce0
2022-11-30T03:47:40.189982+00:00 smithi201 kernel: R13: 00007fd83f258184 R14: 000055e46a1894f0 R15: 00000000ffffffff
2022-11-30T03:47:40.192317+00:00 smithi201 kernel: </TASK>
2022-11-30T03:47:40.192387+00:00 smithi201 kernel: irq event stamp: 9805
2022-11-30T03:47:40.204332+00:00 smithi201 kernel: hardirqs last  enabled at (9817): [<ffffffff81166d4e>] __up_console_sem+0x5e/0x70
2022-11-30T03:47:40.213007+00:00 smithi201 kernel: hardirqs last disabled at (9828): [<ffffffff81166d33>] __up_console_sem+0x43/0x70
2022-11-30T03:47:40.221452+00:00 smithi201 kernel: softirqs last  enabled at (9706): [<ffffffff81e0031b>] __do_softirq+0x31b/0x47e
2022-11-30T03:47:40.229870+00:00 smithi201 kernel: softirqs last disabled at (9699): [<ffffffff810ea8ad>] irq_exit_rcu+0xdd/0x110
2022-11-30T03:47:40.234619+00:00 smithi201 kernel: ---[ end trace 0000000000000000 ]---
2022-11-30T03:47:40.741296+00:00 smithi201 kernel: libceph: mon0 (1)172.21.15.32:6789 session established
2022-11-30T03:47:40.741454+00:00 smithi201 kernel: libceph: client5415 fsid c3ace4c5-8016-41d3-8d88-66882dbcad2f
2022-11-30T03:47:41.086665+00:00 smithi201 kernel: libceph: mon0 (1)172.21.15.32:6789 session established
2022-11-30T03:47:41.086776+00:00 smithi201 kernel: libceph: client5418 fsid c3ace4c5-8016-41d3-8d88-66882dbcad2f
2022-11-30T03:47:41.210323+00:00 smithi201 kernel: libceph: mon0 (1)172.21.15.32:6789 session established
2022-11-30T03:47:41.210432+00:00 smithi201 kernel: libceph: client5421 fsid c3ace4c5-8016-41d3-8d88-66882dbcad2f
2022-11-30T03:47:41.252146+00:00 smithi201 kernel: xfs_io (pid 169182) is setting deprecated v1 encryption policy; recommend upgrading to v2.
2022-11-30T03:47:41.349318+00:00 smithi201 kernel: libceph: mon0 (1)172.21.15.32:6789 session established
2022-11-30T03:47:41.357316+00:00 smithi201 kernel: libceph: client5424 fsid c3ace4c5-8016-41d3-8d88-66882dbcad2f
2022-11-30T03:47:41.464286+00:00 smithi201 kernel: libceph: mon0 (1)172.21.15.32:6789 session established
2022-11-30T03:47:41.464411+00:00 smithi201 kernel: libceph: client5427 fsid c3ace4c5-8016-41d3-8d88-66882dbcad2f
2022-11-30T03:47:41.701510+00:00 smithi201 kernel: fscrypt_msg: 155 callbacks suppressed

Related issues 1 (1 open0 closed)

Related to Linux kernel client - Feature #46690: Add fscrypt support to the kernel CephFS clientFix Under ReviewXiubo Li

Actions
Actions

Also available in: Atom PDF