Bug#1050117: /usr/share/bug/linux-image-6.4.0-0.deb12.2-686-pae-unsigned/include-1cmdline: poweroff (shutdown -h) / reboot (shutdown -r) does not work properly.

2023-08-23 Thread Takashi Yano
I have confirmed that the following patch resolves the issue.
https://lore.kernel.org/all/87h6ophml0.wl-ti...@suse.de/

-- 
Takashi Yano 



Bug#1050117: /usr/share/bug/linux-image-6.4.0-0.deb12.2-686-pae-unsigned/include-1cmdline: poweroff (shutdown -h) / reboot (shutdown -r) does not work properly.

2023-08-22 Thread Diederik de Haas
Control: found -1 6.1.27-1
Control: found -1 6.4.4-3
Control: retitle -1 poweroff (shutdown -h) / reboot (shutdown -r) does not work 
properly since 6.1.27-1

On Tuesday, 22 August 2023 08:25:18 CEST Takashi Yano wrote:
> On Tue, 22 Aug 2023 08:31:34 +0900
> 
> Takashi Yano wrote:
> > I have tried another kernel:
> > linux-image-6.1.0-0.deb11.9-686-pae-unsigned 6.1.27-1~bpo11+1   : NG
> > 
> > It seems that the recent (in a few months) change in the kernel causes
> > this issue.

I've updated the metadata accordingly. I've used the non-bpo versions as I
don't know how the BTS deals with bpo11/bpo12 mixes.

> I have narrowed down the code change which causes the issue
> by building kernel locally again and again.
> 
> The issue happens after the chage:
> 
> linux (6.1.25-1) unstable; urgency=medium
> - ALSA: ymfpci: Create card with device-managed snd_devm_card_new()
> 
> diff --git a/linux-source-6.1/sound/pci/ymfpci/ymfpci.c
> b/linux-source-6.1/sound/pci/ymfpci/ymfpci.c index 1e198e4..82d4e0f 100644
> --- a/linux-source-6.1/sound/pci/ymfpci/ymfpci.c
> +++ b/linux-source-6.1/sound/pci/ymfpci/ymfpci.c
> @@ -170,7 +170,7 @@ static int snd_card_ymfpci_probe(struct pci_dev *pci,
>   return -ENOENT;
>   }
> 
> - err = snd_card_new(>dev, index[dev], id[dev], THIS_MODULE,
> + err = snd_devm_card_new(>dev, index[dev], id[dev], THIS_MODULE,
>  sizeof(*chip), );
>   if (err < 0)
>   return err;

This is great! In the linux-6.1.y branch that change is from commit
db7d7782677ff998c06997903d5400a0ba91cebb and supposedly discussed in
https://lore.kernel.org/r/20230329032422.170024-1-ta...@tasossah.com
but that URL doesn't seem to work.
https://lore.kernel.org/all/20230403140418.679274...@linuxfoundation.org/ does
though and at the bottom of that page you'll find instructions on how to reply
(to all!) to that message, which includes the original author of the patch.

So my recommendation is to follow the instructions and reply to that msg.

> I also noticed that the following error occurred in the boot process
> with this change.
> 
> [   24.101852] snd_ymfpci :00:0e.0: firmware: failed to load
> yamaha/ds1_dsp.fw (-2) [   24.101931] firmware_class: See
> https://wiki.debian.org/Firmware for information about missing firmware [  
> 24.102001] snd_ymfpci :00:0e.0: firmware: failed to load
> yamaha/ds1_dsp.fw (-2) [   24.102031] snd_ymfpci :00:0e.0: Direct
> firmware load for yamaha/ds1_dsp.fw failed with error -2 [   24.102049]
> snd_ymfpci :00:0e.0: firmware request failed: -2 [   24.102077]
> snd_ymfpci: probe of :00:0e.0 failed with error -2 [   24.102435] BUG:
> unable to handle page fault for address: f0da8084 [   24.102465] #PF:
> supervisor write access in kernel mode
> [   24.102486] #PF: error_code(0x0002) - not-present page
> [   24.102507] *pdpt = 06bd0001 *pde = 0237a067 *pte =
>  [   24.102544] Oops: 0002 [#1] PREEMPT SMP PTI
> [   24.102568] CPU: 0 PID: 247 Comm: (udev-worker) Not tainted 6.1.27 #3
> [   24.102594] Hardware name: MICRO-STAR INTERNATIONAL CO., LTD
> MS-6163/MS-6163 (i440BX), BIOS 4.51 PG 08/22/00 [   24.102623] EIP:
> snd_ymfpci_free+0x1b/0x130 [snd_ymfpci]
> [   24.102684] Code: b8 01 00 00 00 5b 5e 5f 5d c3 8d 74 26 00 90 3e 8d 74
> 26 00 55 89 e5 56 53 8b 98 88 01 00 00 8b 43 10 8d 90 84 00 00 00 31 c0
> <89> 02 8b 73 10 89 86 b0 00 00 00 8b 4b 10 89 81 80 00 00 00 b9 ff
> [   24.102730] EAX:  EBX: c4d0a610 ECX: 0005f320 EDX: f0da8084
> [   24.102754] ESI: c4d0a018 EDI: cfcd780c EBP: c792fc44 ESP: c792fc3c
> [   24.102778] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00210246
> [   24.102803] CR0: 80050033 CR2: f0da8084 CR3: 06bc8000 CR4: 06f0 [  
> 24.102828] Call Trace:
> [   24.102853]  release_card_device+0x47/0x90 [snd]
> [   24.102911]  device_release+0x30/0x90
> [   24.102953]  kobject_put+0x99/0x1d0
> [   24.102987]  put_device+0x11/0x20
> [   24.103009]  __snd_card_release+0x71/0x80 [snd]
> [   24.103043]  release_nodes+0x43/0xb0
> [   24.103068]  devres_release_all+0x79/0xb0
> [   24.103094]  device_unbind_cleanup+0x10/0x60
> [   24.103125]  really_probe+0x1f6/0x340
> [   24.103150]  __driver_probe_device+0x75/0x100
> [   24.103175]  driver_probe_device+0x1f/0x90
> [   24.103199]  __driver_attach+0xcf/0x1b0
> [   24.103223]  ? __device_attach_driver+0x100/0x100
> [   24.103248]  bus_for_each_dev+0x5b/0xa0
> [   24.103272]  driver_attach+0x19/0x20
> [   24.103293]  ? __device_attach_driver+0x100/0x100
> [   24.103317]  bus_add_driver+0x17f/0x1e0
> [   24.103340]  driver_register+0x79/0xd0
> [   24.103364]  ? 0xf0d3a000
> [   24.103383]  __pci_register_driver+0x42/0x50
> [   24.103421]  ymfpci_driver_init+0x1c/0x1000 [snd_ymfpci]
> [   24.103458]  do_one_initcall+0x41/0x1e0
> [   24.103482]  ? kvfree+0x25/0x30
> [   24.103518]  ? __kmem_cache_alloc_node+0x24d/0x350
> [   24.103546]  ? kmalloc_trace+0x22/0x90
> [   24.103581]  ? 

Bug#1050117: /usr/share/bug/linux-image-6.4.0-0.deb12.2-686-pae-unsigned/include-1cmdline: poweroff (shutdown -h) / reboot (shutdown -r) does not work properly.

2023-08-22 Thread Takashi Yano
On Tue, 22 Aug 2023 08:31:34 +0900
Takashi Yano wrote:
> I have tried another kernel:
> linux-image-6.1.0-0.deb11.9-686-pae-unsigned 6.1.27-1~bpo11+1   : NG
> 
> The built date are:
> linux-image-6.1.0-0.deb11.7-686-pae   2023-05-22 11:37
> linux-image-6.1.0-0.deb11.9-686-pae-unsigned  2023-07-18 17:29
> 
> It seems that the recent (in a few months) change in the kernel causes
> this issue.

I have narrowed down the code change which causes the issue
by building kernel locally again and again.

The issue happens after the chage:

linux (6.1.25-1) unstable; urgency=medium
- ALSA: ymfpci: Create card with device-managed snd_devm_card_new()

diff --git a/linux-source-6.1/sound/pci/ymfpci/ymfpci.c 
b/linux-source-6.1/sound/pci/ymfpci/ymfpci.c
index 1e198e4..82d4e0f 100644
--- a/linux-source-6.1/sound/pci/ymfpci/ymfpci.c
+++ b/linux-source-6.1/sound/pci/ymfpci/ymfpci.c
@@ -170,7 +170,7 @@ static int snd_card_ymfpci_probe(struct pci_dev *pci,
return -ENOENT;
}
 
-   err = snd_card_new(>dev, index[dev], id[dev], THIS_MODULE,
+   err = snd_devm_card_new(>dev, index[dev], id[dev], THIS_MODULE,
   sizeof(*chip), );
if (err < 0)
return err;


I also noticed that the following error occurred in the boot process
with this change.

[   24.101852] snd_ymfpci :00:0e.0: firmware: failed to load 
yamaha/ds1_dsp.fw (-2)
[   24.101931] firmware_class: See https://wiki.debian.org/Firmware for 
information about missing firmware
[   24.102001] snd_ymfpci :00:0e.0: firmware: failed to load 
yamaha/ds1_dsp.fw (-2)
[   24.102031] snd_ymfpci :00:0e.0: Direct firmware load for 
yamaha/ds1_dsp.fw failed with error -2
[   24.102049] snd_ymfpci :00:0e.0: firmware request failed: -2
[   24.102077] snd_ymfpci: probe of :00:0e.0 failed with error -2
[   24.102435] BUG: unable to handle page fault for address: f0da8084
[   24.102465] #PF: supervisor write access in kernel mode
[   24.102486] #PF: error_code(0x0002) - not-present page
[   24.102507] *pdpt = 06bd0001 *pde = 0237a067 *pte = 

[   24.102544] Oops: 0002 [#1] PREEMPT SMP PTI
[   24.102568] CPU: 0 PID: 247 Comm: (udev-worker) Not tainted 6.1.27 #3
[   24.102594] Hardware name: MICRO-STAR INTERNATIONAL CO., LTD MS-6163/MS-6163 
(i440BX), BIOS 4.51 PG 08/22/00
[   24.102623] EIP: snd_ymfpci_free+0x1b/0x130 [snd_ymfpci]
[   24.102684] Code: b8 01 00 00 00 5b 5e 5f 5d c3 8d 74 26 00 90 3e 8d 74 26 
00 55 89 e5 56 53 8b 98 88 01 00 00 8b 43 10 8d 90 84 00 00 00 31 c0 <89> 02
8b 73 10 89 86 b0 00 00 00 8b 4b 10 89 81 80 00 00 00 b9 ff
[   24.102730] EAX:  EBX: c4d0a610 ECX: 0005f320 EDX: f0da8084
[   24.102754] ESI: c4d0a018 EDI: cfcd780c EBP: c792fc44 ESP: c792fc3c
[   24.102778] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00210246
[   24.102803] CR0: 80050033 CR2: f0da8084 CR3: 06bc8000 CR4: 06f0
[   24.102828] Call Trace:
[   24.102853]  release_card_device+0x47/0x90 [snd]
[   24.102911]  device_release+0x30/0x90
[   24.102953]  kobject_put+0x99/0x1d0
[   24.102987]  put_device+0x11/0x20
[   24.103009]  __snd_card_release+0x71/0x80 [snd]
[   24.103043]  release_nodes+0x43/0xb0
[   24.103068]  devres_release_all+0x79/0xb0
[   24.103094]  device_unbind_cleanup+0x10/0x60
[   24.103125]  really_probe+0x1f6/0x340
[   24.103150]  __driver_probe_device+0x75/0x100
[   24.103175]  driver_probe_device+0x1f/0x90
[   24.103199]  __driver_attach+0xcf/0x1b0
[   24.103223]  ? __device_attach_driver+0x100/0x100
[   24.103248]  bus_for_each_dev+0x5b/0xa0
[   24.103272]  driver_attach+0x19/0x20
[   24.103293]  ? __device_attach_driver+0x100/0x100
[   24.103317]  bus_add_driver+0x17f/0x1e0
[   24.103340]  driver_register+0x79/0xd0
[   24.103364]  ? 0xf0d3a000
[   24.103383]  __pci_register_driver+0x42/0x50
[   24.103421]  ymfpci_driver_init+0x1c/0x1000 [snd_ymfpci]
[   24.103458]  do_one_initcall+0x41/0x1e0
[   24.103482]  ? kvfree+0x25/0x30
[   24.103518]  ? __kmem_cache_alloc_node+0x24d/0x350
[   24.103546]  ? kmalloc_trace+0x22/0x90
[   24.103581]  ? do_init_module+0x21/0x1e0
[   24.103606]  do_init_module+0x43/0x1e0
[   24.103628]  load_module+0x1a97/0x1ca0
[   24.103661]  __ia32_sys_finit_module+0xa7/0x110
[   24.103692]  __do_fast_syscall_32+0x68/0xb0
[   24.103720]  ? __do_fast_syscall_32+0x72/0xb0
[   24.103742]  ? __do_fast_syscall_32+0x72/0xb0
[   24.103764]  ? __do_fast_syscall_32+0x72/0xb0
[   24.103787]  ? irqentry_exit_to_user_mode+0x8/0x20
[   24.103817]  do_fast_syscall_32+0x29/0x60
[   24.103839]  do_SYSENTER_32+0x15/0x20
[   24.103861]  entry_SYSENTER_32+0x98/0xf1
[   24.103892] EIP: 0xb7f89549
[   24.103911] Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 
74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 
c3 90 90 90 90 8d 76 00 58 b8 77 00 00 00 cd 80 90 8d 76
[   24.103956] EAX: ffda EBX: 001a ECX: b7f6be09 EDX: 
[   24.103983] ESI: 00f31910 EDI: 00f341f0 

Bug#1050117: /usr/share/bug/linux-image-6.4.0-0.deb12.2-686-pae-unsigned/include-1cmdline: poweroff (shutdown -h) / reboot (shutdown -r) does not work properly.

2023-08-21 Thread Takashi Yano
On Sun, 20 Aug 2023 16:08:30 +0900
Takashi Yano wrote:
> I tried various kernel versions and the results are as follows.
> 
> linux-image-5.19.0-0.deb11.2-686-pae 5.19.11-1~bpo11+1  : OK
> linux-image-6.0.0-0.deb11.2-686-pae  6.0.3-1~bpo11+1: OK
> linux-image-6.1.0-0.deb11.5-686-pae  6.1.12-1~bpo11+1   : OK
> linux-image-6.1.0-0.deb11.7-686-pae  6.1.20-2~bpo11+1   : OK
> linux-image-6.1.0-10-686-pae 6.1.38-2   : NG
> linux-image-6.1.0-11-686-pae 6.1.38-4   : NG
> linux-image-6.4.0-0.deb12.2-686-pae-unsigned 6.4.4-3~bpo12+1: NG
> linux-image-6.4.0-2-686-pae  6.4.4-3: NG
> linux-image-6.5.0-0-686-pae-unsigned 6.5~rc6-1~exp1 : NG
> 
> OK: Works without the problem.
> NG: Has the problem.
> 
> It seems that kernels built for bullseye do not have this issue.
> Or maybe the kernel before 6.1.0-0 works.

I have tried another kernel:
linux-image-6.1.0-0.deb11.9-686-pae-unsigned 6.1.27-1~bpo11+1   : NG

The built date are:
linux-image-6.1.0-0.deb11.7-686-pae   2023-05-22 11:37
linux-image-6.1.0-0.deb11.9-686-pae-unsigned  2023-07-18 17:29

It seems that the recent (in a few months) change in the kernel causes
this issue.

-- 
Takashi Yano 



Bug#1050117: /usr/share/bug/linux-image-6.4.0-0.deb12.2-686-pae-unsigned/include-1cmdline: poweroff (shutdown -h) / reboot (shutdown -r) does not work properly.

2023-08-20 Thread Takashi Yano
Package: src:linux
Version: 6.4.4-3~bpo12+1
Severity: normal
File: 
/usr/share/bug/linux-image-6.4.0-0.deb12.2-686-pae-unsigned/include-1cmdline
X-Debbugs-Cc: takashi.y...@nifty.ne.jp

I installed bookworm into my OLD PC and found this problem.
Shutdown and reboot does not work properly. It stops after
displaying:
[  .xx] system-shutdown[1]: Powering off.
 or
[  .xx] system-shutdown[1]: Rebooting.

I also noticed that the another PC of similar generation works
even with linux-image-6.1.0-11-686-pae (DELL PowerEdge 1500SC).

Full screen image is like:
[ 290.821465] EXT4-fs (sda4): unmounting filesystem.
[ 291.185022] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 291.358289] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 291.368445] systemd-journald[211]: Received SIGTERM from PID i 
(systemdeshutdow).
[ 291.406307] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 291.415836] systemd-shutdown[1]: Unmounting file systems.
[ 291.420449] (sd-remount)[505]: Remounting'/' read-only with options 
'errors:remount-ro'.
[ 291.431524] EXT4-fs (sda12): re-mounted. Quota mode: none.
[ 291.439996] systemd-shutdown[1]: All filesystems unmounted.
[ 291.440097] systemd-shutdown[1]: Deactivating swaps.
[ 291.440423] systemd-shutdown[1]: All swaps deactivated.
[ 291.440477] systemd-shutdown[1]: Detaching loop devices.
[ 291.444822] systemd-shutdown[1]: All loop devices detached.
[ 291.444919] systemdeshutdown[1]: Stopping MD devices.
[ 291.445354] systemd-shutdown[1]: All MD devices stopped.
[ 291.445406] systemd-shutdown[1]: Detaching DM devices.
[ 291.445753] systemd-shutdown[1]: All DM devices detached.
[ 291.445801] systemdeshutdown[1]: All filesystems, swaps, loop devices, MD 
devices and DM devices detached.
[ 291.459662] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 291.461906] systemdeshutdown[1]: Powering off.


First, this happens with linux-image-6.1.0-11-686-pae.
I tried various kernel versions and the results are as follows.

linux-image-5.19.0-0.deb11.2-686-pae 5.19.11-1~bpo11+1  : OK
linux-image-6.0.0-0.deb11.2-686-pae  6.0.3-1~bpo11+1: OK
linux-image-6.1.0-0.deb11.5-686-pae  6.1.12-1~bpo11+1   : OK
linux-image-6.1.0-0.deb11.7-686-pae  6.1.20-2~bpo11+1   : OK
linux-image-6.1.0-10-686-pae 6.1.38-2   : NG
linux-image-6.1.0-11-686-pae 6.1.38-4   : NG
linux-image-6.4.0-0.deb12.2-686-pae-unsigned 6.4.4-3~bpo12+1: NG
linux-image-6.4.0-2-686-pae  6.4.4-3: NG
linux-image-6.5.0-0-686-pae-unsigned 6.5~rc6-1~exp1 : NG

OK: Works without the problem.
NG: Has the problem.

It seems that kernels built for bullseye do not have this issue.
Or maybe the kernel before 6.1.0-0 works.

Please let me know if further information is necessary.


-- Package-specific info:
** Version:
Linux version 6.4.0-0.deb12.2-686-pae (debian-ker...@lists.debian.org) (gcc-12 
(Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP 
PREEMPT_DYNAMIC Debian 6.4.4-3~bpo12+1 (2023-08-08)

** Command line:
BOOT_IMAGE=/vmlinuz-6.4.0-0.deb12.2-686-pae 
root=UUID=fc774740-5be6-44f6-b87c-b6d8305d3680 ro quiet

** Tainted: DE (8320)
 * kernel died recently, i.e. there was an OOPS or BUG
 * unsigned module was loaded

** Kernel log:
Unable to read kernel log; any relevant messages should be attached

** Model information
Mother board: MSI MS6163 VER:1 (440BX chipset)
CPU: Intel(R) Celeron(TM) CPU  1400MHz
Graphics: Nvidia FX 5900XT

** Loaded modules:
binfmt_misc(E)
sil164(E)
nouveau(E)
ppdev(E)
snd_ymfpci(E+)
saa7134(E)
tveeprom(E)
snd_ac97_codec(E)
videobuf2_dma_sg(E)
videobuf2_memops(E)
ac97_bus(E)
videobuf2_v4l2(E)
snd_mpu401_uart(E)
snd_opl3_lib(E)
snd_hwdep(E)
gameport(E)
snd_rawmidi(E)
snd_seq_device(E)
videodev(E)
mxm_wmi(E)
snd_pcm(E)
snd_timer(E)
videobuf2_common(E)
drm_display_helper(E)
pcspkr(E)
snd(E)
mc(E)
cec(E)
soundcore(E)
rc_core(E)
drm_ttm_helper(E)
ttm(E)
drm_kms_helper(E)
i2c_algo_bit(E)
parport_pc(E)
video(E)
parport(E)
wmi(E)
joydev(E)
button(E)
evdev(E)
serio_raw(E)
sg(E)
loop(E)
fuse(E)
drm(E)
efi_pstore(E)
dm_mod(E)
dax(E)
configfs(E)
ip_tables(E)
x_tables(E)
autofs4(E)
ext4(E)
crc16(E)
mbcache(E)
jbd2(E)
crc32c_generic(E)
hid_logitech_hidpp(E)
hid_logitech_dj(E)
sd_mod(E)
t10_pi(E)
hid_generic(E)
usbhid(E)
hid(E)
crc64_rocksoft(E)
crc64(E)
crc_t10dif(E)
crct10dif_generic(E)
sr_mod(E)
crct10dif_common(E)
cdrom(E)
ata_generic(E)
ata_piix(E)
ohci_pci(E)
uhci_hcd(E)
ehci_pci(E)
ohci_hcd(E)
ehci_hcd(E)
libata(E)
psmouse(E)
usbcore(E)
scsi_mod(E)
e1000(E)
i2c_piix4(E)
scsi_common(E)
usb_common(E)
floppy(E)
fan(E)

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host 
bridge [8086:7190] (rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-