From: Greg KH <gregkh@linuxfoundation.org>
To: Ajay Garg <ajaygargnsit@gmail.com>
Cc: andy@kernel.org, Kees Cook <keescook@chromium.org>,
akpm@linux-foundation.org, adobriyan@gmail.com,
Nick Desaulniers <ndesaulniers@google.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-hardening@vger.kernel.org
Subject: Re: RFC for a new string-copy function, using mixtures of strlcpy and strscpy
Date: Mon, 8 Nov 2021 13:22:07 +0100 [thread overview]
Message-ID: <YYkWb4GQAAtZJNsT@kroah.com> (raw)
In-Reply-To: <CAHP4M8X1ABEhu8kGtRSJHeqQ_m627hNT_N3Q_GGdcr3W_Rfspw@mail.gmail.com>
On Mon, Nov 08, 2021 at 08:46:01AM +0530, Ajay Garg wrote:
> Hello everyone.
>
> I recently came across the functions strlcpy and strscpy, and it seems
> something is missing/unclean.
>
> This email is a RFC for another function, by the name "strlscpy".
Wait, why? We have recently added new string copy functions to resolve
the type of issues you have pointed out. The kernel is not yet
converted to use them, so why add yet-another-function that also is not
used?
I think you should work with the functions we have _first_ and help
convert the kernel to use them, before adding another one please.
thanks,
greg k-h
next prev parent reply other threads:[~2021-11-08 12:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 3:16 RFC for a new string-copy function, using mixtures of strlcpy and strscpy Ajay Garg
[not found] ` <CAHp75VcVZ6dDDm-k=Njo-jDq81bL4BTwrtkkAnm24b23qWKB_g@mail.gmail.com>
2021-11-08 7:42 ` Ajay Garg
2021-11-08 8:33 ` Andy Shevchenko
2021-11-08 8:46 ` Ajay Garg
2021-11-08 12:22 ` Greg KH [this message]
2021-11-08 12:45 ` Ajay Garg
2021-11-08 13:01 ` Greg KH
2021-11-08 13:19 ` Ajay Garg
2021-11-08 18:05 ` Kees Cook
2021-11-08 19:20 ` Ajay Garg
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=YYkWb4GQAAtZJNsT@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=adobriyan@gmail.com \
--cc=ajaygargnsit@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andy@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ndesaulniers@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.