From: Kees Cook <keescook@chromium.org>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Michal Marek <michal.lkml@markovi.net>,
Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Subject: Re: [PATCH] kbuild: Parameterize kallsyms generation and correct reporting
Date: Tue, 13 Aug 2019 08:17:06 -0700 [thread overview]
Message-ID: <201908130815.33BA0DE322@keescook> (raw)
In-Reply-To: <CAK7LNASSkD3SzS5do1REjTe8n7RqUKsLGc2XwWJ7PKJ-z18Oig@mail.gmail.com>
On Wed, Aug 14, 2019 at 12:00:05AM +0900, Masahiro Yamada wrote:
> On Tue, Aug 13, 2019 at 6:49 AM Kees Cook <keescook@chromium.org> wrote:
> >
> > When kallsyms generation happens, temporary vmlinux outputs are linked
> > but the quiet make output doesn't report it, giving the impression that
> > the prior command is taking longer than expected.
> >
> > Instead, report the KSYM step before the temporary linking. While at it,
> > this consolidates the repeated "kallsyms generation step" into a single
> > function and removes the existing copy/pasting.
> >
> > Signed-off-by: Kees Cook <keescook@chromium.org>
> > ---
>
> Hmm, I did not notice this.
He either until I was getting link errors from MODINFO :)
> How about showing the link stage explicitly?
> (Is it too verbose?)
>
> MODINFO modules.builtin.modinfo
> LD .tmp_vmlinux1
> KSYMS .tmp_kallsyms1.o
> LD .tmp_vmlinux2
> KSYMS .tmp_kallsyms2.o
> LD vmlinux
> SORTEX vmlinux
I'm fine with this -- it's probably the right thing to do since getting
vmlinux link errors fro KSYMS probably doesn't make sense either. ;)
> If this verbosity is OK,
> you can move 'info LD ${2}' into vmlinux_link()
Done.
> Anyway, I like the clean-ups in this patch.
>
> This is just my personal preference, but
> may I ask two cosmetic changes?
>
> [1] Could you move kallsyms_step()
> between kallsyms() and mksysmap() ?
> I want to collect function definitions
> to the top of the script.
>
> [2] Could you shorten 'kallsymso_previous'
> to 'kallsymso_prev' ?
Sounds good. v2 sent.
--
Kees Cook
prev parent reply other threads:[~2019-08-13 15:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-12 21:49 [PATCH] kbuild: Parameterize kallsyms generation and correct reporting Kees Cook
2019-08-13 15:00 ` Masahiro Yamada
2019-08-13 15:17 ` Kees Cook [this message]
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=201908130815.33BA0DE322@keescook \
--to=keescook@chromium.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=yamada.masahiro@socionext.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox