public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Richard Palethorpe <rpalethorpe@suse.de>
To: Petr Vorel <pvorel@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3] syscalls/mmap04: Validate mapping perms in /proc/self/maps
Date: Thu, 23 Nov 2023 10:27:12 +0000	[thread overview]
Message-ID: <87h6lc9310.fsf@suse.de> (raw)
In-Reply-To: <20231009080131.GA370124@pevik>

Hello,

Petr Vorel <pvorel@suse.cz> writes:

> Hi Avinesh,
>
>> Validating the various combinations of prot+flags arguments in mmap()
>> call and parsing the /proc/self/maps file to verifying resulting mapping
>> has the permission bits as requested in mmap() call.
>
> LGTM + you fixed all Cyril's comments.
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> ...
>> +	if (!strcmp(perms, tc->exp_perms))
>> +		tst_res(TPASS, "mapping permissions in /proc matched: %s", perms);
>> +	else
>> +		tst_res(TFAIL, "mapping permissions in /proc mismatched,"
>> +						" expected: %s, found: %s",
>> +						tc->exp_perms, perms);
> Very nit: I wouldn't split the string. IMHO it's better to have easier git
> grepping, than follow 80 line rules. Also checkpatch does not complain
> on this:

+1

>
> 	else
> 		tst_res(TFAIL,
> 			"mapping permissions in /proc mismatched, expected: %s, found: %s",
> 			tc->exp_perms, perms);
>
> This can be fixed before merge.
>
> Kind regards,
> Petr

Please merge :-)

-- 
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2023-11-23 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21  5:48 [LTP] [PATCH v3] syscalls/mmap04: Validate mapping perms in /proc/self/maps Avinesh Kumar
2023-10-09  8:01 ` Petr Vorel
2023-11-23 10:27   ` Richard Palethorpe [this message]
2023-11-28  7:57   ` Petr Vorel

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=87h6lc9310.fsf@suse.de \
    --to=rpalethorpe@suse.de \
    --cc=ltp@lists.linux.it \
    --cc=pvorel@suse.cz \
    /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