From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Jari Ruusu <jariruusu@users.sourceforge.net>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Sasha Levin <sashal@kernel.org>
Subject: Re: Linux 4.19.154
Date: Sun, 1 Nov 2020 11:44:47 +0100 [thread overview]
Message-ID: <20201101104447.GC2689688@kroah.com> (raw)
In-Reply-To: <9996e46f-e493-e3b3-c23a-31415668db7d@i-love.sakura.ne.jp>
On Sat, Oct 31, 2020 at 11:02:56PM +0900, Tetsuo Handa wrote:
> On 2020/10/31 22:14, Jari Ruusu wrote:
> > Greg Kroah-Hartman wrote:
> >> --- a/block/blk-core.c
> >> +++ b/block/blk-core.c
> >> @@ -2127,11 +2127,10 @@ static void handle_bad_sector(struct bio *bio, sector_t maxsector)
> >> {
> >> char b[BDEVNAME_SIZE];
> >>
> >> - printk(KERN_INFO "attempt to access beyond end of device\n");
> >> - printk(KERN_INFO "%s: rw=%d, want=%Lu, limit=%Lu\n",
> >> - bio_devname(bio, b), bio->bi_opf,
> >> - (unsigned long long)bio_end_sector(bio),
> >> - (long long)maxsector);
> >> + pr_info_ratelimited("attempt to access beyond end of device\n"
> >> + "%s: rw=%d, want=%llu, limit=%llu\n",
> >> + bio_devname(bio, b), bio->bi_opf,
> >> + bio_end_sector(bio), maxsector);
> >> }
> >>
> >> #ifdef CONFIG_FAIL_MAKE_REQUEST
> >
> > Above change "block: ratelimit handle_bad_sector() message"
> > upstream commit f4ac712e4fe009635344b9af5d890fe25fcc8c0d
> > in 4.19.154 kernel is not completely OK.
> >
> > Removing casts from arguments 4 and 5 produces these compile warnings:
> >
> (...snipped...)
> > For 64 bit systems it is only compile time cosmetic warning. For 32 bit
> > system + CONFIG_LBDAF=n it introduces bugs: output formats are "%llu" and
> > passed parameters are 32 bits. That is not OK.
> >
> > Upstream kernels have hardcoded 64 bit sector_t. In older stable trees
> > sector_t can be either 64 or 32 bit. In other words, backport of above patch
> > needs to keep those original casts.
>
> Indeed, commit f4ac712e4fe00963 ("block: ratelimit handle_bad_sector() message")
> depends on commit 72deb455b5ec619f ("block: remove CONFIG_LBDAF") which was merged
> into 5.2 kernel.
Good catch, I'll go revert this now, sorry about it.
greg k-h
prev parent reply other threads:[~2020-11-01 10:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-30 10:28 Linux 4.19.154 Greg Kroah-Hartman
2020-10-30 10:28 ` Greg Kroah-Hartman
2020-10-31 13:14 ` Jari Ruusu
2020-10-31 14:02 ` Tetsuo Handa
2020-11-01 10:44 ` Greg Kroah-Hartman [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=20201101104447.GC2689688@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=jariruusu@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
/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