Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #93218

Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Cyril Brulebois <kibi@debian.org>
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 21:30:01 +0200
Message-ID <NdedP-2Lpb-1@gated-at.bofh.it> (permalink)
References <NdclI-2Knw-7@gated-at.bofh.it> <NdclI-2Knw-7@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Jul 4 19:25:09 2026
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -1.7
Reply-To Cyril Brulebois <kibi@debian.org>, 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
Organization Debian
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fhy5qen32mwmrjfg"
Content-Disposition inline
X-Debian-User kibi
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1979156
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 105
Sender robomod@news.nic.it
X-Original-Date Sat, 4 Jul 2026 21:22:59 +0200
X-Original-Message-ID <20260704192259.nwijz4gjf7h5752h@mraw.org>
X-Original-References <178318604943.317047.15342817098480040976.reportbug@tokyo> <178318604943.317047.15342817098480040976.reportbug@tokyo>
Xref csiph.com linux.debian.bugs.dist:1300727 linux.debian.kernel:93218

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

TL;DR: Regression in 3cef9aa17bf7dac59095b6972454c049a5fe97c0 confirmed.

Cyril Brulebois <kibi@debian.org> (2026-07-04):
> 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
> 
> backported from:
>   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=267ec4d7223a783f029a980f41b93c39b17996da
> 
> From a quick look at loop.c in v6.12.94, the code mentioned in the
> commit message looks like it's in place, so if the regression is
> confirmed to come from this commit (which I'm not certain of yet), it
> shouldn't be caused by assumptions valid in the master branch but not in
> the stable branch.
> 
> Next steps for me (in no particular order):
>  - find a minimal reproducer;
>  - check what happens with a recent mainline kernel (e.g.
>    7.0.12-2~bpo13+1);
>  - check what happens with v6.12.94 once that commit is reverted.

Building a 6.12.94-2 version with just that patch reverted, deploying
the resulting linux-image-6.12.94+deb13.1-amd64-unsigned package, and
building a system image leaves the system in a consistent state again:

    root@iot-isobuilder-54:~# find /sys/ -name loop0'*'|sort
    /sys/block/loop0
    /sys/class/block/loop0
    /sys/devices/virtual/block/loop0
    /sys/kernel/debug/block/loop0

(i.e. no more extraneous loop0pX.)

Toying with a fresh file doesn't bring back remnants from the image
build:

    root@iot-isobuilder-54:~# fallocate -l 1G foo.img
    root@iot-isobuilder-54:~# kpartx -asv foo.img
    root@iot-isobuilder-54:~# lsblk
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
    loop0    7:0    0    1G  0 loop 
    sda      8:0    0   20G  0 disk 
    ├─sda1   8:1    0 18.9G  0 part /
    ├─sda2   8:2    0    1K  0 part 
    └─sda5   8:5    0  1.1G  0 part [SWAP]

Cleaning this up, and partitioning also gives the expected brand new
partitions (2 × ~500M):

    root@iot-isobuilder-54:~# kpartx -dsv foo.img
    loop deleted : /dev/loop0
    root@iot-isobuilder-54:~# fdisk /dev/foo.img
    […]
    root@iot-isobuilder-54:~# kpartx -asv foo.img
    add map loop0p1 (253:2): 0 1024000 linear 7:0 2048
    add map loop0p2 (253:3): 0 1071104 linear 7:0 1026048
    root@iot-isobuilder-54:~# lsblk
    NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
    loop0       7:0    0    1G  0 loop 
    ├─loop0p1 253:0    0  500M  0 part 
    └─loop0p2 253:1    0  523M  0 part 
    sda         8:0    0   20G  0 disk
    ├─sda1      8:1    0 18.9G  0 part /
    ├─sda2      8:2    0    1K  0 part
    └─sda5      8:5    0  1.1G  0 part [SWAP]

And finally, a second system image build succeeds again, as there are no
duplicates that trigger the safeguard's exit condition.


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Cyril Brulebois <kibi@debian.org> - 2026-07-04 19:30 +0200
  Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Cyril Brulebois <kibi@debian.org> - 2026-07-04 21:30 +0200
    Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Cyril Brulebois <kibi@debian.org> - 2026-07-04 23:10 +0200
  Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Bastian Blank <waldi@debian.org> - 2026-07-04 22:00 +0200
    Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Cyril Brulebois <kibi@debian.org> - 2026-07-04 22:10 +0200
      Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Bastian Blank <waldi@debian.org> - 2026-07-06 09:00 +0200
        Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices Cyril Brulebois <kibi@debian.org> - 2026-07-31 19:40 +0200
  Processed: Re: Bug#1141434: linux-image-6.12.94+deb13-amd64:  regression in loop devices "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-07-06 09:00 +0200
  Bug#1141434: [waldi@debian.org: Bug#1141434: linux-image-6.12.94+deb13-amd64: regression in loop devices] Bastian Blank <waldi@debian.org> - 2026-07-06 15:00 +0200

csiph-web