mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: Namjae Jeon <linkinjeon@kernel.org>
Cc: Paulo Alcantara <pc@manguebit.org>,
	linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/9] Various changes
Date: Tue, 13 Oct 2026 10:11:45 +0200	[thread overview]
Message-ID: <20261013081145.fel4juluk55wbfcy@pali> (raw)
In-Reply-To: <CAKYAXd90dbd9p8uh3nyT_e=gr=P9qQeJd5TE0=+K4+gV2-JG8w@mail.gmail.com>

On Tuesday 13 October 2026 16:56:30 Namjae Jeon wrote:
> > PATCH 8/9 comment 1 - unbound memory allocation based on symlink length
> > - this is valid, but unfortunately all the symlink parsing code would do
> > similar thing. And we have already more symlink types. Do we have some
> > limit how long could be symlink? Does it make sense to address only this
> > one issue and let all other untouched? I would rather propose to define
> > one common limit and fix this issue on all places.
> I agree that a common limit is preferable. cifs.ko already has
> REPARSE_SYM_PATH_MAX(4060) for native reparse symlinks.

Lets this for followup change.

> >
> > PATCH 8/9 comment 2 - fid.netfid initialization - I'm not sure here.
> > I had an impression that this is a right pattern how to open and read
> > file. Can somebody else recheck this?
> For smb2, open() sets persistent_fid and volatile_fid, but not netfid.
> Therefore, .netfid = fid.netfid reads an uninitialized value.
> smb2_sync_read() uses the persistent and volatile IDs instead, so the
> .netfid initializer is unnecessary and should be removed in PATCH 8/9.

Ok. So this would be also simple change to just remove .netfid setting.

> +               io_parms = (struct cifs_io_parms) {
> +                       .netfid = fid.netfid,
> 
> >
> > PATCH 9/9 - masking sync_write error by -EI - This looks to be valid.
> > The fix is simple, just adding "rc &&" before "bytes_written !=".
> Okay. Thanks.

So just these two simple fixups are from the sashiko review, right?

  reply	other threads:[~2026-10-13  8:11 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-06 18:48 [PATCH RESEND 00/11] cifs: " Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 01/11] cifs: Fix and improve cifs_is_path_accessible() function Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 02/11] cifs: Remove code for querying FILE_INFO_STANDARD via CIFSSMBQPathInfo() Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 03/11] cifs: Remove CIFSSMBSetPathInfoFB() fallback function Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 04/11] cifs: Remove cifs_backup_query_path_info() and replace it by cifs_query_path_info() Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 05/11] cifs: Fix validation of EAs for WSL reparse points Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 06/11] cifs: Validate presence of EA $LXMOD " Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 07/11] cifs: Check if server supports EAs before trying to set it for WSL Pali Rohár
2026-07-06 22:33   ` Steve French
2026-07-06 22:42     ` Pali Rohár
     [not found]       ` <CAH2r5mvDGM7i8EsdPkW681a_AnXOAsHkg38eJqegO7g2gV8qAw@mail.gmail.com>
2026-07-06 22:58         ` Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 08/11] cifs: Extend ->set_EA() callback to allow operate on reparse point Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 09/11] cifs: Create native Window socket file compatible also with WSL subsystem Pali Rohár
2026-08-09 12:09   ` Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 10/11] cifs: Add support for parsing WSL symlinks in version 1 format Pali Rohár
2026-07-06 20:50   ` Pali Rohár
2026-07-06 21:02   ` Pali Rohár
2026-08-09 12:09   ` [PATCH v2] " Pali Rohár
2026-07-06 18:48 ` [PATCH RESEND 11/11] cifs: Add support for creating " Pali Rohár
2026-08-09 12:13   ` [PATCH v2] " Pali Rohár
2026-08-21 21:47 ` [PATCH RESEND 00/11] cifs: Various changes Pali Rohár
2026-08-22 13:28   ` Namjae Jeon
2026-08-22 13:31     ` Pali Rohár
2026-08-24 22:45       ` Paulo Alcantara
2026-08-25 20:26         ` Pali Rohár
2026-08-25 23:06   ` [PATCH 0/9] " Pali Rohár
2026-08-25 23:06     ` [PATCH 1/9] cifs: Remove code for querying FILE_INFO_STANDARD via CIFSSMBQPathInfo() Pali Rohár
2026-08-25 23:06     ` [PATCH 2/9] cifs: Remove cifs_backup_query_path_info() and replace it by cifs_query_path_info() Pali Rohár
2026-08-25 23:06     ` [PATCH 3/9] cifs: Fix validation of EAs for WSL reparse points Pali Rohár
2026-08-25 23:06     ` [PATCH 4/9] cifs: Validate presence of EA $LXMOD " Pali Rohár
2026-08-25 23:06     ` [PATCH 5/9] cifs: Check if server supports EAs before trying to set it for WSL Pali Rohár
2026-08-25 23:06     ` [PATCH 6/9] cifs: Extend ->set_EA() callback to allow operate on reparse point Pali Rohár
2026-08-25 23:06     ` [PATCH 7/9] cifs: Create native Window socket file compatible also with WSL subsystem Pali Rohár
2026-08-25 23:06     ` [PATCH 8/9] cifs: Add support for parsing WSL symlinks in version 1 format Pali Rohár
2026-10-13  8:47       ` Pali Rohár
2026-08-25 23:06     ` [PATCH 9/9] cifs: Add support for creating " Pali Rohár
2026-10-13  8:48       ` Pali Rohár
2026-10-12 14:10     ` [PATCH 0/9] Various changes Pali Rohár
2026-10-13  5:25       ` Namjae Jeon
2026-10-13  6:55         ` Pali Rohár
2026-10-13  7:56           ` Namjae Jeon
2026-10-13  8:11             ` Pali Rohár [this message]
2026-10-13  8:20               ` Namjae Jeon

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=20261013081145.fel4juluk55wbfcy@pali \
    --to=pali@kernel.org \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pc@manguebit.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

all inboxes | Powered by JetHome®