lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160119001211.3fd67d31@mdontu-l.dsd.ro>
Date:	Tue, 19 Jan 2016 00:12:11 +0200
From:	Mihai Donțu <mihai.dontu@...il.com>
To:	Jeff Merkey <linux.mdb@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: x86_64 Compiler Output Kernel Bloat v4.4

On Mon, 18 Jan 2016 14:45:48 -0700 Jeff Merkey wrote:
> On 1/18/16, Jeff Merkey <linux.mdb@...il.com> wrote:
> > On 1/18/16, Jeff Merkey <linux.mdb@...il.com> wrote:  
> > > I noticed that in the assembler output for the x86_64 builds almost
> > > every single function originating from C code has a nop instruction
> > > that prefaces the function call.   I guess the concern with this is
> > > the wasted space issue as each one of these placeholders takes up a
> > > bunch of bytes at the head of each function.   Is there a reason this
> > > assembler header is there in the first place to anyones knowledge?
> > > Since every single function just about is prefaced by this inert 5
> > > byte instruction it adds up to quite a bit of bloat in the size of the
> > > linux executable.

If I'm not mistaking, those bytes are used to dynamically enable ftrace:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/trace/ftrace-design.txt

-- 
Mihai Donțu

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ