From: Petr Tesarik <PTesarik@suse.com>
To: Vasily Gorbik <gor@linux.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Thomas Gleixner <tglx@linutronix.de>,
Philipp Rudo <prudo@linux.ibm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Laura Abbott" <labbott@redhat.com>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-s390@vger.kernel.org" <linux-s390@vger.kernel.org>,
Raymund Will <rw@suse.com>
Subject: Re: [PATCH] s390: enable detection of kernel version from bzImage
Date: Tue, 16 Jul 2019 15:10:32 +0000 [thread overview]
Message-ID: <20190716171019.0313d3d9@ezekiel.suse.cz> (raw)
In-Reply-To: <your-ad-here.call-01563282698-ext-9575@work.hours>
[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]
On Tue, 16 Jul 2019 15:11:38 +0200
Vasily Gorbik <gor@linux.ibm.com> wrote:
> On Tue, Jul 16, 2019 at 10:30:14AM +0000, Petr Tesarik wrote:
> > On Tue, 16 Jul 2019 00:12:19 +0200
> > Vasily Gorbik <gor@linux.ibm.com> wrote:
> >
> > > Extend "parmarea" to include an offset of the version string, which is
> > > stored as 8-byte big endian value.
> > >
> > > To retrieve version string from bzImage reliably, one should check the
> > > presence of "S390EP" ascii string at 0x10008 (available since v3.2),
> > > then read the version string offset from 0x10428 (which has been 0
> > > since v3.2 up to now). The string is null terminated.
> > >
> > > Could be retrieved with the following "file" command magic (requires
> > > file v5.34):
> > > 8 string \x02\x00\x00\x18\x60\x00\x00\x50\x02\x00\x00\x68\x60\x00\x00\x50\x40\x40\x40\x40\x40\x40\x40\x40 Linux S390
> > > >0x10008 string S390EP
> > > >>0x10428 bequad >0
> > > >>>(0x10428.Q) string >\0 \b, version %s
> > >
> > > Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
> >
> > This looks great! Much cleaner than the original approach.
> >
> > Thank you,
> > Petr T
>
> Then I'll add
> Reported-by: Petr Tesarik <ptesarik@suse.com>
> Suggested-by: Petr Tesarik <ptesarik@suse.com>
> if you don't mind and try to queue that for 5.3.
Oh, sure, please add these lines and go ahead.
Thank you again,
Petr T
[-- Attachment #2: Digitálnà podpis OpenPGP --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2019-07-16 15:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-12 17:20 [PATCH 0/2] Add uncompressed Linux banner to s390 bzImage Petr Tesarik
2019-07-12 17:21 ` [PATCH 1/2] init: Separate banner from init_uts_ns Petr Tesarik
2019-07-12 17:21 ` [PATCH 2/2] s390: add Linux banner to the compressed image Petr Tesarik
2019-07-14 14:35 ` Vasily Gorbik
2019-07-14 15:52 ` Petr Tesarik
2019-07-15 22:05 ` Vasily Gorbik
2019-07-15 22:12 ` [PATCH] s390: enable detection of kernel version from bzImage Vasily Gorbik
2019-07-16 10:30 ` Petr Tesarik
2019-07-16 13:11 ` Vasily Gorbik
2019-07-16 15:10 ` Petr Tesarik [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=20190716171019.0313d3d9@ezekiel.suse.cz \
--to=ptesarik@suse.com \
--cc=borntraeger@de.ibm.com \
--cc=gor@linux.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=heiko.carstens@de.ibm.com \
--cc=labbott@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=prudo@linux.ibm.com \
--cc=rw@suse.com \
--cc=tglx@linutronix.de \
--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
all inboxes | Powered by JetHome®