[LU-16888] Fix ptlrpc_gss automatic loading Created: 09/Jun/23  Updated: 22/Jun/23  Resolved: 20/Jun/23

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

Type: Bug Priority: Minor
Reporter: Sebastien Buisson Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: gss, patch, sec

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

ptlrpc_gss kernel module is automatically loaded when a GSS security flavor is enforced. But this works only once, because loading success is stored in a static variable in the ptlrpc module. If ptlrpc_gss is manually unloaded, while keeping ptlrpc loaded, next mount attempt fails.

mgs# lctl conf_param testfs.srpc.flavor.default.cli2mdt=krb5n
client# mount -t lustre mgs@tcp:/testfs /mnt/testfs
client# umount /mnt/testfs
client# rmmod ptlrpc_gss
client# mount -t lustre mgs@tcp:/testfs /mnt/testfs
mount.lustre: mount mgs@tcp:/testfs at /mnt/testfs failed: Operation not permitted


 Comments   
Comment by Gerrit Updater [ 09/Jun/23 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51264
Subject: LU-16888 gss: fix ptlrpc_gss automatic loading
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5cc8e6bb94d7a7514ecc10041848a74c4b4331a1

Comment by Gerrit Updater [ 20/Jun/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51264/
Subject: LU-16888 gss: fix ptlrpc_gss automatic loading
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b80d6defb7b018250ef4fafccff7c980aed6a444

Comment by Peter Jones [ 20/Jun/23 ]

Landed for 2.16

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