mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Alexander Viro <viro@zeniv.linux.org.uk>
Cc: "Christian König" <christian.koenig@amd.com>,
	"Eric W . Biederman" <ebiederm@xmission.com>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	noreply@ellerman.id.au
Subject: Re: [PATCH] binfmt: a.out: Fix bogus semicolon
Date: Sun, 5 Sep 2021 21:29:04 +0200	[thread overview]
Message-ID: <7a9e8a5e-df3d-0ecd-1396-450b50ce2937@redhat.com> (raw)
In-Reply-To: <20210905093034.470554-1-geert@linux-m68k.org>

On 05.09.21 11:30, Geert Uytterhoeven wrote:
>      fs/binfmt_aout.c: In function ‘load_aout_library’:
>      fs/binfmt_aout.c:311:27: error: expected ‘)’ before ‘;’ token
>        311 |    MAP_FIXED | MAP_PRIVATE;
> 	  |                           ^
>      fs/binfmt_aout.c:309:10: error: too few arguments to function ‘vm_mmap’
>        309 |  error = vm_mmap(file, start_addr, ex.a_text + ex.a_data,
> 	  |          ^~~~~~~
>      In file included from fs/binfmt_aout.c:12:
>      include/linux/mm.h:2626:35: note: declared here
>       2626 | extern unsigned long __must_check vm_mmap(struct file *, unsigned long,
> 	  |                                   ^~~~~~~
> 
> Fix this by reverting the accidental replacement of a comma by a
> semicolon.
> 
> Fixes: 42be8b42535183f8 ("binfmt: don't use MAP_DENYWRITE when loading shared libraries via uselib()")
> Reported-by: noreply@ellerman.id.au
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>   fs/binfmt_aout.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
> index a47496d0f123355c..0dcfc691e7e218bc 100644
> --- a/fs/binfmt_aout.c
> +++ b/fs/binfmt_aout.c
> @@ -308,7 +308,7 @@ static int load_aout_library(struct file *file)
>   	/* Now use mmap to map the library into memory. */
>   	error = vm_mmap(file, start_addr, ex.a_text + ex.a_data,
>   			PROT_READ | PROT_WRITE | PROT_EXEC,
> -			MAP_FIXED | MAP_PRIVATE;
> +			MAP_FIXED | MAP_PRIVATE,
>   			N_TXTOFF(ex));
>   	retval = error;
>   	if (error != start_addr)
> 

Reviewed-by: David Hildenbrand <david@redhat.com>

Thanks for reporting and fixing that quickly!

-- 
Thanks,

David / dhildenb


      reply	other threads:[~2021-09-05 19:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05  9:30 Geert Uytterhoeven
2021-09-05 19:29 ` David Hildenbrand [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a9e8a5e-df3d-0ecd-1396-450b50ce2937@redhat.com \
    --to=david@redhat.com \
    --cc=christian.koenig@amd.com \
    --cc=ebiederm@xmission.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=noreply@ellerman.id.au \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®