--- zzzz-none-000/linux-4.9.276/fs/locks.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/fs/locks.c 2023-04-05 08:19:02.000000000 +0000 @@ -2802,6 +2802,8 @@ static int __init proc_locks_init(void) { + if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + return 0; proc_create("locks", 0, NULL, &proc_locks_operations); return 0; }