Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Bastian Blank Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Date: Sat, 04 Jul 2026 22:00:01 +0200 Message-ID: References: X-Original-To: Cyril Brulebois , 1141434@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Jul 4 19:55:08 2026 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Bastian Blank , 1141434@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: followup 1141434 X-Debian-Pr-Package: src:linux X-Debian-Pr-Source: linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: archive/latest/1979165 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 4 Jul 2026 21:53:22 +0200 X-Original-Message-ID: X-Original-References: <178318604943.317047.15342817098480040976.reportbug@tokyo> <178318604943.317047.15342817098480040976.reportbug@tokyo> Xref: csiph.com linux.debian.bugs.dist:1300736 linux.debian.kernel:93219 On Sat, Jul 04, 2026 at 07:27:29PM +0200, Cyril Brulebois wrote: > root@iot-isobuilder-52:~# fallocate -l 1G foo.img > root@iot-isobuilder-52:~# kpartx -asv foo.img Why kpartx and not losetup -P? kpartx uses device mapper, while losetup -P uses the internal partition support of the kernel. > The foo.img file doesn't exist in the first place, it is not getting > partitioned, and yet, we have both loop0p1 and loop0p2 coming up, with > sizes that match the system image built previously. Another hint is that > we have 259:0 and 259:1 as MAJ:MIN, instead of 253:0 and 253:1 when the > system image was being worked on. So the devices switch between possibly device-mapper (dynamically allocated) and blkext (fixed 259). > Looking at the changes between v6.12.90 and v6.12.94, the following one > seems pretty plausible: > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3cef9aa17bf7dac59095b6972454c049a5fe97c0 The problem: this is about loop, you use device-mapper via kpartx. Does this also happen with a current kernel? Bastian -- Another Armenia, Belgium ... the weak innocents who always seem to be located on a natural invasion route. -- Kirk, "Errand of Mercy", stardate 3198.4