From: Paulo Alcantara <pc@cjr.nz>
To: Volker.Lendecke@sernet.de, linux-cifs@vger.kernel.org
Subject: Re: Fix an uninitialized read in smb3_qfs_tcon()
Date: Thu, 09 Feb 2023 14:46:09 -0300 [thread overview]
Message-ID: <87lel6enq6.fsf@cjr.nz> (raw)
In-Reply-To: <Y+UrrjvGrOT6Bcmy@sernet.de>
Hi Volker,
Volker Lendecke <Volker.Lendecke@sernet.de> writes:
> Attached find a patch that fixes another case where oparms.mode is
> uninitialized. This patch fixes it with a struct assignment, relying
> on the implicit initialization of unmentioned fields. Please note that
> the assignment does not explicitly mention "reconnect" anymore,
> relying on the implicit "false" value.
OK - thanks.
> Is this kernel-style? Shall we just go through all of the oparms
> initializations, there are quite a few other cases that might have the
> mode uninitialized.
Please go through all of them.
Perhaps initialise those structures as below
struct cifs_open_parms oparms = {};
and then avoid any uninitialised data to be sent.
Patch looks good.
next prev parent reply other threads:[~2023-02-09 17:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 17:21 Fix an uninitialized read in smb3_qfs_tcon() Volker Lendecke
2023-02-09 17:46 ` Paulo Alcantara [this message]
2023-02-09 18:30 ` Volker Lendecke
2023-02-09 19:43 ` Steve French
2023-02-10 12:29 ` Volker Lendecke
[not found] ` <CAH2r5mvzVQKAT-a+MJ-qN=Ogn8PqNdMz=3zYntaq26UdgcY0Cg@mail.gmail.com>
2023-02-13 7:50 ` Volker Lendecke
2023-02-14 22:54 ` Steve French
2023-02-17 6:13 ` Steve French
2023-02-09 18:03 ` Steve French
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=87lel6enq6.fsf@cjr.nz \
--to=pc@cjr.nz \
--cc=Volker.Lendecke@sernet.de \
--cc=linux-cifs@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.