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]
Date:	Thu, 6 Aug 2009 15:29:06 -0700
From:	Greg KH <gregkh@...e.de>
To:	Steven Rostedt <rostedt@...dmis.org>
Cc:	Roland Dreier <rdreier@...co.com>,
	Matt Fleming <matt@...sole-pimps.org>,
	David Kiliani <mail@...idkiliani.de>,
	linux-kernel@...r.kernel.org
Subject: Re: drivers/staging/meilhaus build broken with ftrace

On Thu, Aug 06, 2009 at 05:46:57PM -0400, Steven Rostedt wrote:
> 
> Hi Roland,
> 
> On Thu, 6 Aug 2009, Roland Dreier wrote:
> 
> > Commit fc4c7355 ("ftrace: Fix the conditional that updates $ref_func")
> > breaks the build of drivers/staging/meilhaus with ftrace enabled:
> > 
> >       CC [M]  drivers/staging/meilhaus/me0600_device.o
> >     No function to reference at scripts/recordmcount.pl line 339, <IN> line 258.
> >     make[4]: *** [drivers/staging/meilhaus/me0600_device.o] Error 9
> > 
> > Yes, that's crazy, but the situation is the following:
> > 
> >  - for some reason I can't fathom, the meilhaus driver declares
> >    me0600_pci_constructor() as weak in drivers/staging/meilhaus/me0600_device.h
> > 
> >  - me0600_pci_constructor() is the only function in .text in
> >    drivers/staging/meilhaus/me0600_device.c
> > 
> > so recordmcount.pl ends up finding only one weak function in .text, and
> > so it never sets $ref_func before calling update_funcs().
> 
> Ug, I figured this would happen. I think I have a patch somewhere that can
> handle this.

Don't make ftrace do a lot of work if it's a bug in the staging driver.
Odds are the code in there should be fixed instead, I'll gladly take a
patch to do that.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ