Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1501380 > unrolled thread

drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

Started bykbuild test robot <fengguang.wu@intel.com>
First post2016-10-16 01:10 +0200
Last post2016-10-19 00:20 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of  1108 bytes is larger than 1024 bytes kbuild test robot <fengguang.wu@intel.com> - 2016-10-16 01:10 +0200
    Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame  size of 1108 bytes is larger than 1024 bytes Emese Revfy <re.emese@gmail.com> - 2016-10-17 23:40 +0200
      Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size  of 1108 bytes is larger than 1024 bytes Kees Cook <keescook@chromium.org> - 2016-10-18 23:00 +0200
        Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame  size of 1108 bytes is larger than 1024 bytes Emese Revfy <re.emese@gmail.com> - 2016-10-18 23:40 +0200
          Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size  of 1108 bytes is larger than 1024 bytes Kees Cook <keescook@chromium.org> - 2016-10-19 00:10 +0200
            Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame  size of 1108 bytes is larger than 1024 bytes Emese Revfy <re.emese@gmail.com> - 2016-10-19 00:20 +0200

#1501380 — drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-10-16 01:10 +0200
Subjectdrivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes
Message-ID<ssGfv-5Xy-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1001354ca34179f3db924eb66672442a173147dc
commit: 0766f788eb727e2e330d55d30545db65bcf2623f latent_entropy: Mark functions with __latent_entropy
date:   5 days ago
config: i386-randconfig-c0-10160635 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 0766f788eb727e2e330d55d30545db65bcf2623f
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/pci/hotplug/ibmphp_ebda.c: In function 'ibmphp_access_ebda':
>> drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    }
    ^

vim +409 drivers/pci/hotplug/ibmphp_ebda.c

^1da177e Linus Torvalds 2005-04-16  393  			rc = ebda_rio_table();
^1da177e Linus Torvalds 2005-04-16  394  			if (rc)
^1da177e Linus Torvalds 2005-04-16  395  				goto out;
^1da177e Linus Torvalds 2005-04-16  396  		}
^1da177e Linus Torvalds 2005-04-16  397  	}
^1da177e Linus Torvalds 2005-04-16  398  	rc = ebda_rsrc_controller();
^1da177e Linus Torvalds 2005-04-16  399  	if (rc)
^1da177e Linus Torvalds 2005-04-16  400  		goto out;
^1da177e Linus Torvalds 2005-04-16  401  
^1da177e Linus Torvalds 2005-04-16  402  	rc = ebda_rsrc_rsrc();
^1da177e Linus Torvalds 2005-04-16  403  	goto out;
^1da177e Linus Torvalds 2005-04-16  404  error_nodev:
^1da177e Linus Torvalds 2005-04-16  405  	rc = -ENODEV;
^1da177e Linus Torvalds 2005-04-16  406  out:
^1da177e Linus Torvalds 2005-04-16  407  	iounmap(io_mem);
^1da177e Linus Torvalds 2005-04-16  408  	return rc;
^1da177e Linus Torvalds 2005-04-16 @409  }
^1da177e Linus Torvalds 2005-04-16  410  
^1da177e Linus Torvalds 2005-04-16  411  /*
^1da177e Linus Torvalds 2005-04-16  412   * map info of scalability details and rio details from physical address
^1da177e Linus Torvalds 2005-04-16  413   */
^1da177e Linus Torvalds 2005-04-16  414  static int __init ebda_rio_table(void)
^1da177e Linus Torvalds 2005-04-16  415  {
^1da177e Linus Torvalds 2005-04-16  416  	u16 offset;
^1da177e Linus Torvalds 2005-04-16  417  	u8 i;

:::::: The code at line 409 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


#1502494 — Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

FromEmese Revfy <re.emese@gmail.com>
Date2016-10-17 23:40 +0200
SubjectRe: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes
Message-ID<stnNw-Pb-27@gated-at.bofh.it>
In reply to#1501380
On Sun, 16 Oct 2016 06:52:16 +0800
kbuild test robot <fengguang.wu@intel.com> wrote:

>    drivers/pci/hotplug/ibmphp_ebda.c: In function 'ibmphp_access_ebda':
> >> drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Hi,

Thanks for the report. The problem is that these are large functions
(there are a lot of basic blocks) and the entropy plugin instruments all basic blocks.
I think the solution is to skip these functions which contain more than n basic blocks.
Sorry, I haven't time to fix this bug. PaX Team will fix it in PaX.

-- 
Emese

[toc] | [prev] | [next] | [standalone]


#1503344 — Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

FromKees Cook <keescook@chromium.org>
Date2016-10-18 23:00 +0200
SubjectRe: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes
Message-ID<stJEm-79N-7@gated-at.bofh.it>
In reply to#1502494
On Mon, Oct 17, 2016 at 2:37 PM, Emese Revfy <re.emese@gmail.com> wrote:
> On Sun, 16 Oct 2016 06:52:16 +0800
> kbuild test robot <fengguang.wu@intel.com> wrote:
>
>>    drivers/pci/hotplug/ibmphp_ebda.c: In function 'ibmphp_access_ebda':
>> >> drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes [-Wframe-larger-than=]
>
> Hi,
>
> Thanks for the report. The problem is that these are large functions
> (there are a lot of basic blocks) and the entropy plugin instruments all basic blocks.
> I think the solution is to skip these functions which contain more than n basic blocks.
> Sorry, I haven't time to fix this bug. PaX Team will fix it in PaX.

This is controlled by CONFIG_FRAME_WARN. I don't think this is a
particular problem or should be avoided, but perhaps we can set the
default to 2048 (as done on 64BIT) if we're building with the entropy
plugin.

-Kees

-- 
Kees Cook
Nexus Security

[toc] | [prev] | [next] | [standalone]


#1503380 — Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

FromEmese Revfy <re.emese@gmail.com>
Date2016-10-18 23:40 +0200
SubjectRe: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes
Message-ID<stKh3-7Hz-3@gated-at.bofh.it>
In reply to#1503344
On Tue, 18 Oct 2016 13:57:35 -0700
Kees Cook <keescook@chromium.org> wrote:

> This is controlled by CONFIG_FRAME_WARN. I don't think this is a
> particular problem or should be avoided, but perhaps we can set the
> default to 2048 (as done on 64BIT) if we're building with the entropy
> plugin.

This is probably a gcc code generation bug on i386 when a plugin uses too many 64 bit variables
so I think PaX Team's patch will be the best solution.

-- 
Emese

[toc] | [prev] | [next] | [standalone]


#1503395 — Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

FromKees Cook <keescook@chromium.org>
Date2016-10-19 00:10 +0200
SubjectRe: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes
Message-ID<stKK5-8dt-17@gated-at.bofh.it>
In reply to#1503380
On Tue, Oct 18, 2016 at 2:36 PM, Emese Revfy <re.emese@gmail.com> wrote:
> On Tue, 18 Oct 2016 13:57:35 -0700
> Kees Cook <keescook@chromium.org> wrote:
>
>> This is controlled by CONFIG_FRAME_WARN. I don't think this is a
>> particular problem or should be avoided, but perhaps we can set the
>> default to 2048 (as done on 64BIT) if we're building with the entropy
>> plugin.
>
> This is probably a gcc code generation bug on i386 when a plugin uses too many 64 bit variables
> so I think PaX Team's patch will be the best solution.

Okay, cool. If you're able, please CC me with the fix when it happens. :)

Thanks!

-Kees

-- 
Kees Cook
Nexus Security

[toc] | [prev] | [next] | [standalone]


#1503400 — Re: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes

FromEmese Revfy <re.emese@gmail.com>
Date2016-10-19 00:20 +0200
SubjectRe: drivers/pci/hotplug/ibmphp_ebda.c:409:1: warning: the frame size of 1108 bytes is larger than 1024 bytes
Message-ID<stKTL-8nr-5@gated-at.bofh.it>
In reply to#1503395
On Tue, 18 Oct 2016 15:05:39 -0700
Kees Cook <keescook@chromium.org> wrote:

> On Tue, Oct 18, 2016 at 2:36 PM, Emese Revfy <re.emese@gmail.com> wrote:
> > On Tue, 18 Oct 2016 13:57:35 -0700
> > Kees Cook <keescook@chromium.org> wrote:
> >
> >> This is controlled by CONFIG_FRAME_WARN. I don't think this is a
> >> particular problem or should be avoided, but perhaps we can set the
> >> default to 2048 (as done on 64BIT) if we're building with the entropy
> >> plugin.
> >
> > This is probably a gcc code generation bug on i386 when a plugin uses too many 64 bit variables
> > so I think PaX Team's patch will be the best solution.
> 
> Okay, cool. If you're able, please CC me with the fix when it happens. :)

This is the plugin side fix:
https://github.com/ephox-gcc-plugins/latent_entropy/commit/12776eab89861239d5194a9241a98e48e3b3e8ae

The kernel side fix will be released in PaX for linux 4.8.

-- 
Emese

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web