The patch titled Subject: param: initialize store function to NULL if not available has been removed from the -mm tree. Its filename was param-initialize-store-function-to-null-if-not-available.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Subject: param: initialize store function to NULL if not available I rebased Kees' 'param: do not set store func without write perm' on top of my 'params: cleanup sysfs allocation'. However, my patch uses krealloc which doesn't zero memory, leaving .store unset. Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Reported-by: Sasha Levin <sasha.levin@xxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/params.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN kernel/params.c~param-initialize-store-function-to-null-if-not-available kernel/params.c --- a/kernel/params.c~param-initialize-store-function-to-null-if-not-available +++ a/kernel/params.c @@ -648,6 +648,8 @@ static __modinit int add_sysfs_param(str /* Do not allow runtime DAC changes to make param writable. */ if ((kp->perm & (S_IWUSR | S_IWGRP | S_IWOTH)) != 0) mk->mp->attrs[mk->mp->num].mattr.store = param_attr_store; + else + mk->mp->attrs[mk->mp->num].mattr.store = NULL; mk->mp->attrs[mk->mp->num].mattr.attr.name = (char *)name; mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; mk->mp->num++; _ Patches currently in -mm which might be from rusty@xxxxxxxxxxxxxxx are init-remove-config_init_fallback.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html