From: Jes Sorensen <jes@trained-monkey.org>
To: Blazej Kucman <blazej.kucman@intel.com>, linux-raid@vger.kernel.org
Cc: colyli@suse.de
Subject: Re: [PATCH] Add secure gethostname() wrapper
Date: Fri, 1 Sep 2023 11:39:57 -0400 [thread overview]
Message-ID: <8bc3dfc4-758b-2ea7-132f-4413253da15d@trained-monkey.org> (raw)
In-Reply-To: <20230616194555.6452-1-blazej.kucman@intel.com>
On 6/16/23 15:45, Blazej Kucman wrote:
> gethostname() func does not ensure null-terminated string
> if hostname is longer than buffer length.
> For security, a function s_gethostname() has been added
> to ensure that "\0" is added to the end of the buffer.
> Previously this had to be handled in each place
> of the gethostname() call.
>
> Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
> ---
> Monitor.c | 3 +--
> lib.c | 19 +++++++++++++++++++
> mapfile.c | 3 +--
> mdadm.c | 3 +--
> mdadm.h | 1 +
> super-ddf.c | 3 +--
> 6 files changed, 24 insertions(+), 8 deletions(-)
Applied!
Thanks,
Jes
next prev parent reply other threads:[~2023-09-01 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-16 19:45 [PATCH] Add secure gethostname() wrapper Blazej Kucman
2023-09-01 15:39 ` Jes Sorensen [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-16 19:43 Blazej Kucman
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=8bc3dfc4-758b-2ea7-132f-4413253da15d@trained-monkey.org \
--to=jes@trained-monkey.org \
--cc=blazej.kucman@intel.com \
--cc=colyli@suse.de \
--cc=linux-raid@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).