Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #81066
| From | Salvatore Bonaccorso <carnil@debian.org> |
|---|---|
| Newsgroups | linux.debian.kernel |
| Subject | Re: Bug#1057441: linux-image-6.6-amd64: Crypt does not longer work |
| Date | 2023-12-05 17:20 +0100 |
| Message-ID | <HHGjn-brdd-19@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <HHFQl-bqLN-3@gated-at.bofh.it> <HHwam-bibi-19@gated-at.bofh.it> <HHG01-bqPG-1@gated-at.bofh.it> <HHwam-bibi-19@gated-at.bofh.it> <HHGjn-brdd-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
On Tue, Dec 05, 2023 at 05:14:20PM +0100, Salvatore Bonaccorso wrote:
> Control: reassign -1 src:cryptsetup 2:2.6.1-5
>
> Hi
>
> On Tue, Dec 05, 2023 at 04:55:58PM +0100, Salvatore Bonaccorso wrote:
> > Hi,
> >
> > On Tue, Dec 05, 2023 at 04:38:19PM +0100, Salvatore Bonaccorso wrote:
> > > Control: tags -1 + confirmed
> > >
> > > On Tue, Dec 05, 2023 at 06:23:45AM +0100, Michael Ott wrote:
> > > > Package: src:linux
> > > > Version: 6.6.4-1~exp1
> > > > Severity: important
> > > >
> > > > Dear Maintainer,
> > > >
> > > > After updating to the 6.6 kernel the password for my encryption does not longer
> > > > work
> > > >
> > > > Please unlock disk nvme0n1p3_crypt: **********
> > > > device-mapper: table: 253:0: crypt: Error allocation crypto tfm (_ENOENT)
> > > > device-mapper: ioctl: error adding target to table
> > > > device-mapper: reload ioctl on nvme0n1p3_crypt (253:0) failed: No such file or
> > > > directory
> > > > cryptsetup: ERROR: nvme0n1p3_crypt: cryptsetup failed, bad password or options?
> > > >
> > > > Everything works with 6.5. I also downgrade systemd and cryptosetup but no
> > > > changes
> > >
> > > I suspect this is related to changes around
> > > https://git.kernel.org/linus/68cf01760bc0891074e813b9bb06d2696cac1c01
> > > (but not verified, nor tracked down).
> >
> > Actually after a more closer look on what is in the initrd: Bastian
> > can be this due to switching to compressed modules? If this claim is
> > correct then likely initramfs-tools would not copy them to the initrd.
>
> It looks that we only consider *.ko uncompressed in
> debian/initramfs/hooks/cryptroot:
>
> add_modules() {
> local glob="$1" found=n
> shift
> for mod in $(find -H "$@" -name "$glob.ko" -type f -printf '%f\n'); do
> manual_add_modules "${mod%.ko}"
> found=y
> done
> [ "$found" = y ] && return 0 || return 1
> }
>
> but various modules are now with 6.6.4-1~exp1 compressed:
>
> a relatively quick woraround would be to change the function to:
>
> add_modules() {
> local glob="$1" found=n
> shift
> for mod in $(find -H "$@" -name "$glob.ko*" -type f -printf '%f\n'); do
> manual_add_modules "${mod%.ko*}"
> found=y
> done
> [ "$found" = y ] && return 0 || return 1
> }
>
> Is this the correct approach though? Which other hook functions might
> be affected by the change in linux by switching to compressed modules?
And in fact this is the solution proposed in #1036049.
Regards,
Salvatore
Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#1057441: linux-image-6.6-amd64: Crypt does not longer work Michael Ott <michael@k-c13.org> - 2023-12-05 06:30 +0100
Bug#1057441: linux-image-6.6-amd64: Crypt does not longer work Salvatore Bonaccorso <carnil@debian.org> - 2023-12-05 16:50 +0100
Re: Bug#1057441: linux-image-6.6-amd64: Crypt does not longer work Salvatore Bonaccorso <carnil@debian.org> - 2023-12-05 17:20 +0100
Re: Bug#1057441: linux-image-6.6-amd64: Crypt does not longer work Salvatore Bonaccorso <carnil@debian.org> - 2023-12-05 17:20 +0100
csiph-web