From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Dmitry Safonov <dima@arista.com>
Cc: Kukjin Kim <kgene@kernel.org>, Hyunki Koo <kkoos00@naver.com>,
HYUN-KI KOO <hyunki00.koo@samsung.com>,
Shinbeom Choi <sbeom.choi@samsung.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Jiri Slaby <jslaby@suse.com>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tty: serial: samsung_tty: do not abuse the struct uart_port unused fields
Date: Tue, 17 Dec 2019 16:52:19 +0100 [thread overview]
Message-ID: <20191217155219.GA3754999@kroah.com> (raw)
In-Reply-To: <e0fbb679-54fb-25c6-0e88-012d0490e291@arista.com>
On Tue, Dec 17, 2019 at 03:47:34PM +0000, Dmitry Safonov wrote:
> On 12/17/19 2:02 PM, Greg Kroah-Hartman wrote:
> > The samsung_tty driver was trying to abuse the struct uart_port by using
> > two "empty" bytes for its own use. That's not ok, and was found by
> > removing those fields from the structure.
> >
> > Move the variables into the port-specific structure, which is where
> > everything else for this port already is. There is no space wasted here
> > as there was an empty "hole" in the structure already for these bytes.
>
> Thanks!
> Sorry for not noticing this myself.
You wouldn't have noticed this unless you build for that platform. I
just recently made it buildable for other ones.
>
> > Cc: Kukjin Kim <kgene@kernel.org>
> > Cc: Hyunki Koo <kkoos00@naver.com>
> > Cc: HYUN-KI KOO <hyunki00.koo@samsung.com>
> > Cc: Shinbeom Choi <sbeom.choi@samsung.com>
> > Cc: Krzysztof Kozlowski <krzk@kernel.org>
> > Cc: Dmitry Safonov <dima@arista.com>
> > Cc: Jiri Slaby <jslaby@suse.com>
> > Cc: linux-serial@vger.kernel.org
> > Cc: linux-kernel@vger.kernel.org
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> I see you already applied it to your tree, but in case it helps anything:
> Reviewed-by: Dmitry Safonov <dima@arista.com>
The review helps, thanks :)
greg k-h
next prev parent reply other threads:[~2019-12-17 15:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-17 14:02 [PATCH] tty: serial: samsung_tty: do not abuse the struct uart_port unused fields Greg Kroah-Hartman
2019-12-17 15:47 ` Dmitry Safonov
2019-12-17 15:52 ` Greg Kroah-Hartman [this message]
2019-12-17 15:56 ` Dmitry Safonov
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=20191217155219.GA3754999@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=dima@arista.com \
--cc=hyunki00.koo@samsung.com \
--cc=jslaby@suse.com \
--cc=kgene@kernel.org \
--cc=kkoos00@naver.com \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=sbeom.choi@samsung.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