[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <mhng-93dd039a-f342-4239-a0a8-f1e31f7d8b5e@palmer-ri-x1c9>
Date: Wed, 02 Aug 2023 13:41:52 -0700 (PDT)
From: Palmer Dabbelt <palmer@...belt.com>
To: keescook@...omium.org
CC: justinstitt@...gle.com, Paul Walmsley <paul.walmsley@...ive.com>,
aou@...s.berkeley.edu, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, ndesaulniers@...gle.com,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2] RISC-V: cpu: refactor deprecated strncpy
On Wed, 02 Aug 2023 13:36:03 PDT (-0700), keescook@...omium.org wrote:
> On Wed, Aug 02, 2023 at 12:21:58AM +0000, Justin Stitt wrote:
>> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>>
>> Favor not copying strings onto stack and instead use strings directly.
>> This avoids hard-coding sizes and buffer lengths all together.
>>
>> Link: https://github.com/KSPP/linux/issues/90
>> Cc: linux-hardening@...r.kernel.org
>> Suggested-by: Kees Cook <keescook@...omium.org>
>> Signed-off-by: Justin Stitt <justinstitt@...gle.com>
>
> I like it! ;)
>
> Reviewed-by: Kees Cook <keescook@...omium.org>
Thanks, I just queue it up for fixes (might take a bit to build test,
I'm a bit backed up).
Reviewed-by: Palmer Dabbelt <palmer@...osinc.com>
Acked-by: Palmer Dabbelt <palmer@...osinc.com>
If you wanted to take it for some hardening thing, though -- otherwise
it'll likely end up on my fixes later today.
Powered by blists - more mailing lists