The patch titled Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix has been added to the -mm tree. Its filename is fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix fix max() warning Cc: Chris Kennelly <ckennelly@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/binfmt_elf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/fs/binfmt_elf.c~fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix +++ a/fs/binfmt_elf.c @@ -429,10 +429,12 @@ static unsigned long maximum_alignment(s for (i = 0; i < nr; i++) { if (cmds[i].p_type == PT_LOAD) { + unsigned long p_align = cmds[i].p_align; + /* skip non-power of two alignments */ - if (!is_power_of_2(cmds[i].p_align)) + if (!is_power_of_2(p_align)) continue; - alignment = max(alignment, cmds[i].p_align); + alignment = max(alignment, p_align); } } _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-slub-re-initialize-randomized-freelist-sequence-in-calculate_sizes-fix.patch mm.patch mm-gup-dont-permit-users-to-call-get_user_pages-with-foll_longterm-fix.patch memblock-make-memblock_debug-and-related-functionality-private-fix.patch mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch fs-binfmt_elf-use-pt_load-p_align-values-for-suitable-start-address-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch