[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1060005: cifs-utils: Copy file with cp, hangs with a kernel NULL pointer dereference.



Hi,

On Fri, Jan 05, 2024 at 01:52:30PM +0300, Michael Tokarev wrote:
> Control: reassign -1 src:linux 6.1.69+1
> 
> 04.01.2024 18:52, Eduardo Nunes:
> > Package: cifs-utils
> > Version: 2:7.0-2
> > Severity: normal
> > X-Debbugs-Cc: eduardo.david.nunes@gmail.com
> > 
> > Dear Maintainer,
> > 
> > 
> > When copying a file between directories on same mount, the operation hangs with:
> > BUG: kernel NULL pointer dereference, address: 0000000000000000
> > in RIP: 0010:cifs_flush_folio+0x3f/0x100 [cifs]
> > 
> > Debian12 6.1.0-17-amd run as guest in VirtualBox 7.0.12 and the mounted share is on the host (Windows 10).
> > Works as expected in the same configuration but with Debian11 5.10.0-27-amd64 as guest.
> 
> It looks like we've regression in 6.1.69 (6.1.0-17) kernel update.
> 
> There's at least one more report like this:
> https://forum.manjaro.org/t/manjaro-vmware-guest-copying-in-thunar-to-cifs-mounted-windows-locations-fails/153942/2
> which also mentions 6.1.69 (and an update to 6.6+ fixed the issue).
> 
> 6.1.69 had at least 3 cifs-related changes, and two of them look
> very interesting in this context:
> 
>   - cifs: Fix flushing, invalidation and file size with copy_file_range()
>   - cifs: Fix flushing, invalidation and file size with FICLONE
> 
> That's copy operation which fails now.
> 
> Reassigning to linux package for now..

It's

https://lore.kernel.org/linux-cifs/afbccb0c466888faa0e4753094e8ba09ed16dc51.camel@amazon.com/

But I fear that will be lost due to missing CC's to others. So have
just replied with regressions list as wel in

https://lore.kernel.org/regressions/ZZhrpNJ3zxMR8wcU@eldamar.lan/

As this does not happen with upper stable series, I guess some
requisite commit is missing.

The mentioned commit from 6.7-rc5 was backported to 6.6.7 and 6.1.68,
but it does not happen in current 6.6.9-1 as in unstable.

Regards,
Salvatore


Reply to: