Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1691152
| From | Sebastian Reichel <sebastian.reichel@collabora.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [v4.13 regression] ARM: zImage: Fix stack overflow in merge_fdt_bootargs() |
| Date | 2017-07-19 11:20 +0200 |
| Message-ID | <u4Tjc-6v5-11@gated-at.bofh.it> (permalink) |
| References | <u40PN-5t4-39@gated-at.bofh.it> <u4Sn7-5Rq-1@gated-at.bofh.it> <u4SQ9-62M-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi,
On Wed, Jul 19, 2017 at 10:47:27AM +0200, Sebastian Reichel wrote:
> On Wed, Jul 19, 2017 at 10:15:36AM +0200, Pavel Machek wrote:
> > > This function is called very early on from head.S and currently sets up a
> > > stack frame of more than 1024 bytes:
> > >
> > > atags_to_fdt.c: In function ‘merge_fdt_bootargs’:
> > > atags_to_fdt.c:98:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
> > >
> > > This causes a crash and failure to boot with some combinations of kernel
> > > version, gcc version and dtb, such as kernel version 4.1-rc1 of 4.1.0,
> > > gcc version 5.4.1 20161019 (Debian 5.4.1-3) and tegra20-trimslice.dtb.
> >
> > >
> > > Signed-off-by: Rask Ingemann Lambertsen <rask@formelder.dk>
> > > Fixes: d0f34a11ddab ("ARM: 7437/1: zImage: Allow DTB command line concatenation with ATAG_CMDLINE")
> >
> > I tested that it does not break boot on N900. I hoped that it would
> > fix boot on N950 (but no luck there so far).
> >
> > Tested-by: Pavel Machek <pavel@ucw.cz>
> >
> > AFAICT this is regression in v4.13-rc1. Thus it is quite surprising
> > that there are no comments here.
>
> No, it's not. I definitely saw the warning before (and see it now)
> and images can be booted on all of the phones I'm working on (i.e.
> N900, N950, Droid 4).
>
> Anyawys thanks for fixing this properly. I will add the patch to my
> dev branch and give it a test during the day.
It does work for me.
Tested-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-- Sebastian
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [v4.13 regression] ARM: zImage: Fix stack overflow in merge_fdt_bootargs() Pavel Machek <pavel@ucw.cz> - 2017-07-19 10:20 +0200
Re: [v4.13 regression] ARM: zImage: Fix stack overflow in merge_fdt_bootargs() Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-07-19 10:50 +0200
Re: [v4.13 regression] ARM: zImage: Fix stack overflow in merge_fdt_bootargs() Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-07-19 11:20 +0200
csiph-web