From: Joe Perches <joe@perches.com>
To: "Tobin C. Harding" <me@tobin.cc>,
Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: kernel-hardening@lists.openwall.com,
linux-kernel@vger.kernel.org,
driverdev-devel@linuxdriverproject.org,
Tycho Andersen <tycho@tycho.ws>,
Kees Cook <keescook@chromium.org>
Subject: Re: [PATCH 4/4] video: Remove stack VLA usage
Date: Thu, 08 Mar 2018 22:01:07 -0800 [thread overview]
Message-ID: <1520575267.11634.25.camel@perches.com> (raw)
In-Reply-To: <1520574625-4225-1-git-send-email-me@tobin.cc>
On Fri, 2018-03-09 at 16:50 +1100, Tobin C. Harding wrote:
> The kernel would like to have all stack VLA usage removed[1]. The
> arrays are fixed here (declared with a const variable) but they appear
> like VLAs to the compiler. We can use a pre-processor define to fix the
> warning.
[]
> diff --git a/drivers/video/fbdev/via/via_aux_sii164.c b/drivers/video/fbdev/via/via_aux_sii164.c
[]
> @@ -27,6 +27,9 @@
>
> static const char *name = "SiI 164 PanelLink Transmitter";
>
> +/* check vendor id and device id */
> +const u8 id[] = {0x01, 0x00, 0x06, 0x00};
It seems id is now global in multiple places.
Perhaps these should be static.
> diff --git a/drivers/video/fbdev/via/via_aux_vt1631.c b/drivers/video/fbdev/via/via_aux_vt1631.c
[]
> @@ -27,16 +27,19 @@
>
> static const char *name = "VT1631 LVDS Transmitter";
>
> +/* check vendor id and device id */
> +const u8 id[] = {0x06, 0x11, 0x91, 0x31}, len = ARRAY_SIZE(id);
etc...
WARNING: multiple messages have this Message-ID (diff)
From: Joe Perches <joe@perches.com>
To: "Tobin C. Harding" <me@tobin.cc>,
Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Tycho Andersen <tycho@tycho.ws>,
driverdev-devel@linuxdriverproject.org,
linux-kernel@vger.kernel.org, Kees Cook <keescook@chromium.org>,
kernel-hardening@lists.openwall.com
Subject: Re: [PATCH 4/4] video: Remove stack VLA usage
Date: Thu, 08 Mar 2018 22:01:07 -0800 [thread overview]
Message-ID: <1520575267.11634.25.camel@perches.com> (raw)
In-Reply-To: <1520574625-4225-1-git-send-email-me@tobin.cc>
On Fri, 2018-03-09 at 16:50 +1100, Tobin C. Harding wrote:
> The kernel would like to have all stack VLA usage removed[1]. The
> arrays are fixed here (declared with a const variable) but they appear
> like VLAs to the compiler. We can use a pre-processor define to fix the
> warning.
[]
> diff --git a/drivers/video/fbdev/via/via_aux_sii164.c b/drivers/video/fbdev/via/via_aux_sii164.c
[]
> @@ -27,6 +27,9 @@
>
> static const char *name = "SiI 164 PanelLink Transmitter";
>
> +/* check vendor id and device id */
> +const u8 id[] = {0x01, 0x00, 0x06, 0x00};
It seems id is now global in multiple places.
Perhaps these should be static.
> diff --git a/drivers/video/fbdev/via/via_aux_vt1631.c b/drivers/video/fbdev/via/via_aux_vt1631.c
[]
> @@ -27,16 +27,19 @@
>
> static const char *name = "VT1631 LVDS Transmitter";
>
> +/* check vendor id and device id */
> +const u8 id[] = {0x06, 0x11, 0x91, 0x31}, len = ARRAY_SIZE(id);
etc...
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2018-03-09 6:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 5:50 [PATCH 4/4] video: Remove stack VLA usage Tobin C. Harding
2018-03-09 6:01 ` Joe Perches [this message]
2018-03-09 6:01 ` Joe Perches
2018-03-09 6:04 ` Tobin C. Harding
2018-03-09 6:04 ` Tobin C. Harding
2018-03-09 6:11 ` Tycho Andersen
2018-03-09 6:11 ` Tycho Andersen
2018-03-09 6:16 ` Gustavo A. R. Silva
2018-03-09 6:28 ` Tobin C. Harding
2018-03-09 6:28 ` Tobin C. Harding
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=1520575267.11634.25.camel@perches.com \
--to=joe@perches.com \
--cc=FlorianSchandinat@gmx.de \
--cc=b.zolnierkie@samsung.com \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=keescook@chromium.org \
--cc=kernel-hardening@lists.openwall.com \
--cc=linux-kernel@vger.kernel.org \
--cc=me@tobin.cc \
--cc=tycho@tycho.ws \
/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.