The patch titled Subject: mm/vmpressure.c: free the same pointer we allocated has been removed from the -mm tree. Its filename was mm-vmpressure-pass-through-notification-support-fix.patch This patch was dropped because it was folded into mm-vmpressure-pass-through-notification-support.patch ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: mm/vmpressure.c: free the same pointer we allocated We keep incrementing "spec" as we parse the args so we end up calling kfree() on a modified of spec. It probably works or this would have been caught in testing, but it looks weird. Link: http://lkml.kernel.org/r/20170613191820.GA20003@elgon.mountain Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Vinayak Menon <vinmenon@xxxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmpressure.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN mm/vmpressure.c~mm-vmpressure-pass-through-notification-support-fix mm/vmpressure.c --- a/mm/vmpressure.c~mm-vmpressure-pass-through-notification-support-fix +++ a/mm/vmpressure.c @@ -386,11 +386,11 @@ int vmpressure_register_event(struct mem struct vmpressure_event *ev; enum vmpressure_modes mode = VMPRESSURE_NO_PASSTHROUGH; enum vmpressure_levels level = -1; - char *spec = NULL; + char *spec, *spec_orig; char *token; int ret = 0; - spec = kzalloc(MAX_VMPRESSURE_ARGS_LEN + 1, GFP_KERNEL); + spec_orig = spec = kzalloc(MAX_VMPRESSURE_ARGS_LEN + 1, GFP_KERNEL); if (!spec) { ret = -ENOMEM; goto out; @@ -429,7 +429,7 @@ int vmpressure_register_event(struct mem list_add(&ev->node, &vmpr->events); mutex_unlock(&vmpr->events_lock); out: - kfree(spec); + kfree(spec_orig); return ret; } _ Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are mm-vmpressure-pass-through-notification-support.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