This is a note to let you know that I've just added the patch titled lockd: change the proc_handler for nsm_use_hostnames to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: lockd-change-the-proc_handler-for-nsm_use_hostnames.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 7e784a647a333dfa69e3cf719b179fe8b0247555 Author: Jia He <hejianet@xxxxxxxxx> Date: Tue Aug 3 12:59:37 2021 +0200 lockd: change the proc_handler for nsm_use_hostnames [ Upstream commit d02a3a2cb25d384005a6e3446a445013342024b7 ] nsm_use_hostnames is a module parameter and it will be exported to sysctl procfs. This is to let user sometimes change it from userspace. But the minimal unit for sysctl procfs read/write it sizeof(int). In big endian system, the converting from/to bool to/from int will cause error for proc items. This patch use a new proc_handler proc_dobool to fix it. Signed-off-by: Jia He <hejianet@xxxxxxxxx> Reviewed-by: Pan Xinhui <xinhui.pan@xxxxxxxxxxxxxxxxxx> [thuth: Fix typo in commit message] Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx> Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 2de048f80eb8c..0ab9756ed2359 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -584,7 +584,7 @@ static struct ctl_table nlm_sysctls[] = { .data = &nsm_use_hostnames, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec, + .proc_handler = proc_dobool, }, { .procname = "nsm_local_state",