ceph-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Max Kellermann <max@blarg.de>
To: Viacheslav Dubeyko <slava@dubeyko.com>
Cc: ceph-devel@vger.kernel.org, idryomov@gmail.com,
	linux-fsdevel@vger.kernel.org, pdonnell@redhat.com,
	amarkuze@redhat.com, Slava.Dubeyko@ibm.com, vdubeyko@redhat.com
Subject: Re: [RFC PATCH 01/20] ceph: add comments to metadata structures in auth.h
Date: Fri, 5 Sep 2025 23:50:32 +0200	[thread overview]
Message-ID: <aLtbKDnpS_Fymd7h@swift.blarg.de> (raw)
In-Reply-To: <20250905200108.151563-2-slava@dubeyko.com>

On 2025/09/05 22:00, Viacheslav Dubeyko <slava@dubeyko.com> wrote:
> +	/* Sign outgoing messages using session keys */
>  	int (*sign_message)(struct ceph_auth_handshake *auth,
>  			    struct ceph_msg *msg);
> +	/* Verify signatures on incoming messages */
>  	int (*check_message_signature)(struct ceph_auth_handshake *auth,
>  				       struct ceph_msg *msg);

No, this function does not verify the signatureS of incoming messageS
(two plurals).
It verifies one signature of one message.

Same mistake on sign_message.

Apart from these plurals, the text barely adds any value because this
is obvious enough from the names.  What would really have been helpful
would be an explanation of parameters and return values.  But I guess
Claude didn't know...  and fortunately didn't hallucinate anything.

> +	/* Preferred connection security mode */
> +	int preferred_mode;
> +	/* Fallback connection security mode */
> +	int fallback_mode;

You have removed important information from the old comment about what
kinds of values are expected here.

> +	/* Protects concurrent access to auth state */
>  	struct mutex mutex;

What is "auth state"?  What exactly is being protected?  Does "auth
state" mean all fields of this struct are being protected?  I guess
Claude didn't know so it just wrote some generic text devoid of
information.

  reply	other threads:[~2025-09-05 21:50 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-05 20:00 [RFC PATCH 00/20] add comments in include/linux/ceph/*.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 01/20] ceph: add comments to metadata structures in auth.h Viacheslav Dubeyko
2025-09-05 21:50   ` Max Kellermann [this message]
2025-09-05 20:00 ` [RFC PATCH 02/20] ceph: add comments to metadata structures in buffer.h Viacheslav Dubeyko
2025-09-05 21:43   ` Max Kellermann
2025-09-05 20:00 ` [RFC PATCH 03/20] ceph: add comments in ceph_debug.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 04/20] ceph: add comments to declarations in ceph_features.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 05/20] ceph: rework comments in ceph_frag.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 06/20] ceph: add comments to metadata structures in ceph_fs.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 07/20] ceph: add comments in ceph_hash.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 08/20] ceph: add comments to metadata structures in cls_lock_client.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 09/20] ceph: add comments to metadata structures in libceph.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 10/20] ceph: add comments to metadata structures in messenger.h Viacheslav Dubeyko
2025-09-05 20:00 ` [RFC PATCH 11/20] ceph: add comments to metadata structures in mon_client.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 12/20] ceph: add comments to metadata structures in msgpool.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 13/20] ceph: add comments to metadata structures in msgr.h Viacheslav Dubeyko
2025-09-05 22:18   ` Max Kellermann
2025-09-05 20:01 ` [RFC PATCH 14/20] ceph: add comments to metadata structures in osd_client.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 15/20] ceph: add comments to metadata structures in osdmap.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 16/20] ceph: add comments to metadata structures in pagelist.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 17/20] ceph: add comments to metadata structures in rados.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 18/20] ceph: add comments to metadata structures in string_table.h Viacheslav Dubeyko
2025-09-05 22:00   ` Max Kellermann
2025-09-05 20:01 ` [RFC PATCH 19/20] ceph: add comments to metadata structures in striper.h Viacheslav Dubeyko
2025-09-05 20:01 ` [RFC PATCH 20/20] ceph: add comments to metadata structures in types.h Viacheslav Dubeyko

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=aLtbKDnpS_Fymd7h@swift.blarg.de \
    --to=max@blarg.de \
    --cc=Slava.Dubeyko@ibm.com \
    --cc=amarkuze@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=pdonnell@redhat.com \
    --cc=slava@dubeyko.com \
    --cc=vdubeyko@redhat.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 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).