[PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc

chenxiaosong.chenxiaosong@linux.dev posted 6 patches 3 months, 3 weeks ago
fs/smb/server/smb2pdu.c | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
[PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc
Posted by chenxiaosong.chenxiaosong@linux.dev 3 months, 3 weeks ago
From: ChenXiaoSong <chenxiaosong@kylinos.cn>

These functions should return error code when an error occurs,
then __process_request() will print the error messages.

v1->v2: Update patch #01 #02 due to typos.

v1: https://lore.kernel.org/all/20251017084610.3085644-1-chenxiaosong.chenxiaosong@linux.dev/

ChenXiaoSong (6):
  smb/server: fix return value of smb2_read()
  smb/server: fix return value of smb2_notify()
  smb/server: fix return value of smb2_query_dir()
  smb/server: fix return value of smb2_ioctl()
  smb/server: fix return value of smb2_oplock_break()
  smb/server: update some misguided comment of smb2_0_server_cmds proc

 fs/smb/server/smb2pdu.c | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

-- 
2.43.0
Re: [PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc
Posted by ChenXiaoSong 2 months, 4 weeks ago
Hi Steve and Namjae,

I have tested the following patches using xfstests and smbtorture, no 
additional failed test cases were observed in the test results.
   - [PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc
   - Patches applied to the ksmbd-for-next-next branch
   - [PATCH v5 00/14] smb: move duplicate definitions to common header file

The detailed test results can be found in 
https://chenxiaosong.com/smb-test/20251109

Thanks,
ChenXiaoSong.

On 10/17/25 6:46 PM, chenxiaosong.chenxiaosong@linux.dev wrote:
> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
> 
> These functions should return error code when an error occurs,
> then __process_request() will print the error messages.
> 
> v1->v2: Update patch #01 #02 due to typos.
> 
> v1: https://lore.kernel.org/all/20251017084610.3085644-1-chenxiaosong.chenxiaosong@linux.dev/
> 
> ChenXiaoSong (6):
>    smb/server: fix return value of smb2_read()
>    smb/server: fix return value of smb2_notify()
>    smb/server: fix return value of smb2_query_dir()
>    smb/server: fix return value of smb2_ioctl()
>    smb/server: fix return value of smb2_oplock_break()
>    smb/server: update some misguided comment of smb2_0_server_cmds proc
> 
>   fs/smb/server/smb2pdu.c | 30 +++++++++++++++++-------------
>   1 file changed, 17 insertions(+), 13 deletions(-)
>
Re: [PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc
Posted by Markus Elfring 3 months, 3 weeks ago
> These functions should return error code when an error occurs,
> then __process_request() will print the error messages.

You propose to correct some questionable implementation details.
How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc1#n605

Regards,
Markus
Re: [PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc
Posted by ChenXiaoSong 3 months, 3 weeks ago
Hi Namjae,

v1 has typos, and I've already sent this v2.

Thanks.

On 10/17/25 6:46 PM, chenxiaosong.chenxiaosong@linux.dev wrote:
> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
> 
> These functions should return error code when an error occurs,
> then __process_request() will print the error messages.
> 
> v1->v2: Update patch #01 #02 due to typos.
> 
> v1: https://lore.kernel.org/all/20251017084610.3085644-1-chenxiaosong.chenxiaosong@linux.dev/
> 
> ChenXiaoSong (6):
>    smb/server: fix return value of smb2_read()
>    smb/server: fix return value of smb2_notify()
>    smb/server: fix return value of smb2_query_dir()
>    smb/server: fix return value of smb2_ioctl()
>    smb/server: fix return value of smb2_oplock_break()
>    smb/server: update some misguided comment of smb2_0_server_cmds proc
> 
>   fs/smb/server/smb2pdu.c | 30 +++++++++++++++++-------------
>   1 file changed, 17 insertions(+), 13 deletions(-)
>
Re: [PATCH v2 0/6] smb/server: fix return values of smb2_0_server_cmds proc
Posted by Namjae Jeon 3 months, 3 weeks ago
On Fri, Oct 17, 2025 at 11:56 PM ChenXiaoSong
<chenxiaosong.chenxiaosong@linux.dev> wrote:
>
> Hi Namjae,
>
> v1 has typos, and I've already sent this v2.
I have applied v2 patch-set.
Please check the ksmbd-for-next-next branch and let me know if you
find any issues.
Thanks.
>
> Thanks.
>
> On 10/17/25 6:46 PM, chenxiaosong.chenxiaosong@linux.dev wrote:
> > From: ChenXiaoSong <chenxiaosong@kylinos.cn>
> >
> > These functions should return error code when an error occurs,
> > then __process_request() will print the error messages.
> >
> > v1->v2: Update patch #01 #02 due to typos.
> >
> > v1: https://lore.kernel.org/all/20251017084610.3085644-1-chenxiaosong.chenxiaosong@linux.dev/
> >
> > ChenXiaoSong (6):
> >    smb/server: fix return value of smb2_read()
> >    smb/server: fix return value of smb2_notify()
> >    smb/server: fix return value of smb2_query_dir()
> >    smb/server: fix return value of smb2_ioctl()
> >    smb/server: fix return value of smb2_oplock_break()
> >    smb/server: update some misguided comment of smb2_0_server_cmds proc
> >
> >   fs/smb/server/smb2pdu.c | 30 +++++++++++++++++-------------
> >   1 file changed, 17 insertions(+), 13 deletions(-)
> >
>