From: Josh Triplett <josh@joshtriplett.org>
To: kbuild-all@lists.01.org
Subject: Re: [lkp] [+573 bytes kernel size regression] [i386-tinyconfig] [00f2dfd8c2] open: introduce openat2(2) syscall
Date: Tue, 12 Nov 2019 14:02:09 -0800 [thread overview]
Message-ID: <20191112220209.GB31753@localhost> (raw)
In-Reply-To: <20191105144414.bvyj33w7i2cyhrpw@yavin.dot.cyphar.com>
[-- Attachment #1: Type: text/plain, Size: 2223 bytes --]
On Wed, Nov 06, 2019 at 01:44:14AM +1100, Aleksa Sarai wrote:
> On 2019-11-05, kbuild test robot <lkp@intel.com> wrote:
> >
> > FYI, we noticed a +573 bytes kernel size regression due to commit:
> >
> > commit: 00f2dfd8c2a40f6dd7a74eae598a174484d848c4 (open: introduce openat2(2) syscall)
> >
> >
> > Details as below (size data is obtained by `nm --size-sort vmlinux`):
> >
> > 97a4cce0: namei: LOOKUP_{IN_ROOT,BENEATH}: permit limited ".." resolution
> > 00f2dfd8: open: introduce openat2(2) syscall
> >
> > +-----------------------+----------+----------+-------+
> > | symbol | 97a4cce0 | 00f2dfd8 | delta |
> > +-----------------------+----------+----------+-------+
> > | bzImage | 439168 | 439424 | 256 |
> > | nm.t.build_open_flags | 214 | 349 | 135 |
> > | nm.T.__se_sys_openat2 | 0 | 122 | 122 |
> > | nm.T.sys_openat2 | 0 | 122 | 122 |
> > | nm.t.do_sys_openat2 | 0 | 116 | 116 |
> > | nm.t.build_open_how | 0 | 78 | 78 |
> > | nm.T.file_open_name | 41 | 73 | 32 |
> > | nm.T.file_open_root | 52 | 84 | 32 |
> > | nm.D.sys_call_table | 1744 | 1752 | 8 |
> > | nm.T.__se_sys_openat | 26 | 23 | -3 |
> > | nm.T.sys_openat | 26 | 23 | -3 |
> > | nm.T.__se_sys_open | 27 | 24 | -3 |
> > | nm.T.sys_open | 27 | 24 | -3 |
> > | nm.T.do_sys_open | 121 | 61 | -60 |
> > +-----------------------+----------+----------+-------+
>
> I'm not sure I understand what is meant by "regression" in this context.
> Surely new code will always result in a code size increase. Or is it
> that the largest symbols are increasing in size? Is there something I
> should do, or is it reasonable that the size has increased (given my
> changes in build_open_flags)?
It would be nice if (for instance) it was possible to compile out the
old openat and *only* support openat2, or otherwise compile out unused
syscalls. In general, we're watching for new code that can't be built
out of the kernel even in "allnoconfig"/"tinyconfig".
next prev parent reply other threads:[~2019-11-12 22:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-05 14:15 [lkp] [+573 bytes kernel size regression] [i386-tinyconfig] [00f2dfd8c2] open: introduce openat2(2) syscall kbuild test robot
2019-11-05 14:44 ` Aleksa Sarai
2019-11-12 22:02 ` Josh Triplett [this message]
2019-12-06 2:33 ` Aleksa Sarai
2019-12-25 10:03 ` Josh Triplett
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=20191112220209.GB31753@localhost \
--to=josh@joshtriplett.org \
--cc=kbuild-all@lists.01.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.