[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMuHMdVPoRMGvg=ticpi1whP7xv5NKCWXsGJGWvFk552Tf+jCw@mail.gmail.com>
Date: Tue, 18 Nov 2025 08:46:47 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Rene Rebe <rene@...ctco.de>, Christoph Hellwig <hch@....de>, Jens Axboe <axboe@...nel.dk>,
"Martin K. Petersen" <martin.petersen@...cle.com>, Geoff Levand <geoff@...radead.org>,
linux-kernel@...r.kernel.org
Subject: Re: [RESEND PATCH] Fix ps3disk: use memcpy_{from,to}_bvec index
Hi Greg,
On Tue, 18 Nov 2025 at 03:36, Greg Kroah-Hartman
<gregkh@...uxfoundation.org> wrote:
> On Mon, Nov 17, 2025 at 02:31:49PM +0100, Geert Uytterhoeven wrote:
> > On Mon, 17 Nov 2025 at 14:13, Greg Kroah-Hartman
> > <gregkh@...uxfoundation.org> wrote:
> > > On Mon, Nov 17, 2025 at 02:05:33PM +0100, Geert Uytterhoeven wrote:
> > > > On Mon, 17 Nov 2025 at 13:39, Greg Kroah-Hartman
> > > > <gregkh@...uxfoundation.org> wrote:
> > > > > On Mon, Nov 17, 2025 at 10:47:49AM +0100, Geert Uytterhoeven wrote:
> > > > > > On Sun, 16 Nov 2025 at 13:14, Greg Kroah-Hartman
> > > > > > <gregkh@...uxfoundation.org> wrote:
> > > > > > > On Fri, Nov 14, 2025 at 03:30:33PM +0100, Rene Rebe wrote:
> > > > > > > > With 6e0a48552b8c (ps3disk: use memcpy_{from,to}_bvec) converting
> > > > > > > > ps3disk to new bvec helpers, incrementing the offset was accidently
> > > > > > > > lost, corrupting consecutive buffers. Restore index for non-corrupted
> > > > > > > > data transfers.
> > > > > > > >
> > > > > > > > Fixes: 6e0a48552b8c (ps3disk: use memcpy_{from,to}_bvec)
> > > > > > > >
> > > > > > > > Signed-off-by: René Rebe <rene@...ctco.de>
> > > > > > > >
> > > > > > > > --- a/drivers/block/ps3disk.c 2023-08-07 17:40:55.200957746 +0200
> > > > > > > > +++ b/drivers/block/ps3disk.c 2023-08-07 17:46:39.702964129 +0200
> > > > > > > > @@ -85,10 +93,14 @@
> > > > > > > > struct bio_vec bvec;
> > > > > > > >
> > > > > > > > rq_for_each_segment(bvec, req, iter) {
> > > > > > > > + dev_dbg(&dev->sbd.core, "%s:%u: %u sectors from %llu\n",
> > > > > > > > + __func__, __LINE__, bio_sectors(iter.bio),
> > > > > > >
> > > > > > > In the future, please note that all dev_dbg() calls have __func__ built
> > > > > > > into them, and I think __LINE__ as well, so there's no need to ever add
> > > > > > > that to the output. Take a look at the documentation for more details
> > > > > > > on how to see that in the log.
> > > > > >
> > > > > > That does not seem to be true in v6.18-rc6: the function name and line
> > > > > > number are not included.
> > > > >
> > > > > What changed to remove them? Look at
> > > > > Documentation/admin-guide/dynamic-debug-howto.rst for how to enable both
> > > > > of these for any dynamic debug message in the kernel.
> > > > >
> > > > > Does that not work properly here?
> > > >
> > > > Oh, dynamic debug, dunno ;-)
> > > > It does not work with #define DEBUG at the top of a source file.
> > >
> > > Nor should it, that's a really old scheme :)
> >
> > That method is still documented in
> > Documentation/admin-guide/dynamic-debug-howto.rst, and I use it a lot.
> >
> > It does mean "all dev_dbg() calls have __func__ built in to them" is false...
>
> But it's there, just set it from the debugfs api, right?
Only with dynamic debug, not with -DDEBUG, so "all" is not appropriate.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists