[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150413090455.GA10845@chrystal.uk.oracle.com>
Date: Mon, 13 Apr 2015 11:04:55 +0200
From: Quentin Casasnovas <quentin.casasnovas@...cle.com>
To: Rusty Russell <rusty@...abs.org>
Cc: Quentin Casasnovas <quentin.casasnovas@...cle.com>,
lkml <linux-kernel@...r.kernel.org>,
Oleg Nesterov <oleg@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 1/7] modpost: add strict white-listing when referencing
sections.
On Fri, Mar 20, 2015 at 11:59:41AM +1030, Rusty Russell wrote:
> Quentin Casasnovas <quentin.casasnovas@...cle.com> writes:
> > Prints a warning when a section references a section outside a strict
> > white-list. This will be useful to print a warning if __ex_table
> > references a non-executable section.
>
> Hi Quentin,
>
> Really pleasant to read these patches; nice work!
>
Thanks! :)
> > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
> > index d439856..7094a57 100644
> > --- a/scripts/mod/modpost.c
> > +++ b/scripts/mod/modpost.c
> > @@ -925,7 +925,8 @@ enum mismatch {
> >
> > struct sectioncheck {
> > const char *fromsec[20];
> > - const char *tosec[20];
> > + const char *bad_tosec[20];
> > + const char *good_tosec[20];
> > enum mismatch mismatch;
> > const char *symbol_white_list[20];
>
> My only gripe is that these fields are undocumented. You maintain
> the status quo, but some comments indicating what the mean would be
> nice. Perhaps as a separate patch.
>
Derp, I was sure I had sent a patch following your comment.. Please find
one attached to this e-mail. It should apply cleanly on top of this
series.
> In case you need it (for the whole series):
> Acked-by: Rusty Russell <rusty@...tcorp.com.au>
>
Thanks again!
May I aks who's supposed to take the series? Or maybe it needs more
acking?
Quentin
View attachment "0001-modpost-document-the-use-of-struct-section_check.patch" of type "text/x-diff" (1570 bytes)
Powered by blists - more mailing lists