The patch titled Subject: kernel/sysctl.c: fix sizeof argument to match variable name has been added to the -mm tree. Its filename is sysctl-fix-sizeof-argument-to-match-variable-name.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/sysctl-fix-sizeof-argument-to-match-variable-name.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/sysctl-fix-sizeof-argument-to-match-variable-name.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Subject: kernel/sysctl.c: fix sizeof argument to match variable name Fix sizeof argument to be the same as the data variable name. Probably a copy/paste error. Mostly harmless since both variables are unsigned int. Fixes kernel bugzilla #197371: Possible access to unintended variable in "kernel/sysctl.c" line 1339 https://bugzilla.kernel.org/show_bug.cgi?id=197371 Link: http://lkml.kernel.org/r/e0d0531f-361e-ef5f-8499-32743ba907e1@xxxxxxxxxxxxx Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Reported-by: Petru Mihancea <petrum@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/sysctl.c~sysctl-fix-sizeof-argument-to-match-variable-name kernel/sysctl.c --- a/kernel/sysctl.c~sysctl-fix-sizeof-argument-to-match-variable-name +++ a/kernel/sysctl.c @@ -1329,7 +1329,7 @@ static struct ctl_table vm_table[] = { { .procname = "dirtytime_expire_seconds", .data = &dirtytime_expire_interval, - .maxlen = sizeof(dirty_expire_interval), + .maxlen = sizeof(dirtytime_expire_interval), .mode = 0644, .proc_handler = dirtytime_interval_handler, .extra1 = &zero, _ Patches currently in -mm which might be from rdunlap@xxxxxxxxxxxxx are sysctl-fix-sizeof-argument-to-match-variable-name.patch mm-swap_slots-use-conditional-compilation-for-swap_slotsc.patch headers-untangle-kmemleakh-from-mmh.patch lib-kconfigdebug-debug-lockups-and-hangs-keep-softlockup-options-together.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