linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kees Cook <keescook@chromium.org>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org
Subject: Re: [GIT PULL] bcachefs updates for 6.8
Date: Wed, 10 Jan 2024 15:48:43 -0800	[thread overview]
Message-ID: <202401101525.112E8234@keescook> (raw)
In-Reply-To: <wq27r7e3n5jz4z6pn2twwrcp2zklumcfibutcpxrw6sgaxcsl5@m5z7rwxyuh72>

On Wed, Jan 10, 2024 at 02:36:30PM -0500, Kent Overstreet wrote:
> [...]
>       bcachefs: %pg is banished

Hi!

Not a PR blocker, but this patch re-introduces users of strlcpy() which
has been otherwise removed this cycle. I'll send a patch to replace
these new uses, but process-wise, I'd like check on how bcachefs patches
are reviewed.

Normally I'd go find the original email that posted the patch and reply
there, but I couldn't find a development list where this patch was
posted. Where is this happening? (Being posted somewhere is supposed
to be a prerequisite for living in -next. E.g. quoting from the -next
inclusion boiler-plate: "* posted to the relevant mailing list,") It
looks like it was authored 5 days ago, which is cutting it awfully close
to the merge window opening:

	AuthorDate: Fri Jan 5 11:58:50 2024 -0500

Actually, it looks like you rebased onto v6.7-rc7? This is normally
strongly discouraged. The common merge base is -rc2.

It also seems it didn't get a run through scripts/checkpatch.pl, which
shows 4 warnings, 2 or which point out the strlcpy deprecation:

WARNING: Prefer strscpy over strlcpy - see: https://github.com/KSPP/linux/issues/89
#123: FILE: fs/bcachefs/super.c:1389:
+               strlcpy(c->name, name.buf, sizeof(c->name));

WARNING: Prefer strscpy over strlcpy - see: https://github.com/KSPP/linux/issues/89
#124: FILE: fs/bcachefs/super.c:1390:
+       strlcpy(ca->name, name.buf, sizeof(ca->name));

Please make sure you're running checkpatch.pl -- it'll make integration,
technical debt reduction, and coding style adjustments much easier. :)

Thanks!

-Kees

-- 
Kees Cook

  reply	other threads:[~2024-01-10 23:48 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10 19:36 [GIT PULL] bcachefs updates for 6.8 Kent Overstreet
2024-01-10 23:48 ` Kees Cook [this message]
2024-01-11  0:04   ` Kent Overstreet
2024-01-11  0:39     ` Kees Cook
2024-01-11  0:58       ` Kent Overstreet
2024-01-11  1:47         ` Linus Torvalds
2024-01-11 22:57           ` Matthew Wilcox
2024-01-11 23:42             ` Kees Cook
2024-01-11 23:58               ` Linus Torvalds
2024-01-12  0:05               ` Kent Overstreet
2024-01-12  0:18                 ` Kees Cook
2024-01-11 15:35         ` Mark Brown
2024-01-11 17:38           ` Kent Overstreet
2024-01-11 21:47             ` Mark Brown
2024-01-12  1:10               ` Kent Overstreet
2024-01-12 11:11                 ` Neal Gompa
2024-01-12 18:22                   ` Mark Brown
2024-01-15 18:42                     ` Kent Overstreet
2024-01-15 20:13                       ` Greg KH
2024-01-17  4:41                         ` Kent Overstreet
2024-01-17  5:31                           ` Greg KH
2024-01-17  5:54                           ` Theodore Ts'o
2024-01-17 13:03                             ` James Bottomley
2024-01-17 18:19                               ` Mark Brown
2024-01-21  3:24                                 ` Kent Overstreet
2024-01-25 21:46                                   ` Mark Brown
2024-01-18  2:49                               ` Theodore Ts'o
2024-01-21 12:20                                 ` Kent Overstreet
2024-01-24  5:52                                   ` Theodore Ts'o
2024-01-18  5:35                               ` Randy Dunlap
2024-01-21  2:49                               ` Kent Overstreet
2024-01-17 17:33                       ` Mark Brown
2024-01-11  2:23 ` pr-tracker-bot

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=202401101525.112E8234@keescook \
    --to=keescook@chromium.org \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-bcachefs@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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).