Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78600 - ZSwap bug

Attached to Project: Arch Linux
Opened by emilio reggi (emilio-r) - Wednesday, 24 May 2023, 22:04 GMT
Last edited by Toolybird (Toolybird) - Sunday, 25 June 2023, 21:28 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

System almost grinded to halt; PID 1 (systemd) had seemingly crashed and would not respond to any commands issued through systemctl, so I could not control any of the services. However sshd still allowed me to login, albeit awfully slow, and I finally had to 'systemctl poweroff -ff' because the init daemon didn't function anymore.

Might be an upstream zswap bug, but not sure how to debug this further:
https://bugs.archlinux.org/task/74343
https://lore.kernel.org/linux-mm/CACMK0yk3qSLDmCf=msQ-SaeALLQJYFjJS5WitAh-TBuC7t1Uag%40mail.gmail.com/t/#u
https://bugzilla.kernel.org/show_bug.cgi?id=192571

Here is the relevant section from the system log (it's reversed):

Mai 23 01:42:51 archie kernel: CR2: 000000c00f453008 CR3: 0000000101e9e005 CR4: 00000000000706e0
Mai 23 01:42:51 archie kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mai 23 01:42:51 archie kernel: FS: 00007fe6e1cb7700(0000) GS:ffff8dd417700000(0000) knlGS:0000000000000000
Mai 23 01:42:51 archie kernel: R13: ffff8dd30a1d20b8 R14: ffff8dd30a1d20b0 R15: ffff8dd41773ee30
Mai 23 01:42:51 archie kernel: R10: 0000000000000004 R11: ffffa15380521000 R12: ffff8dd3029c07a0
Mai 23 01:42:51 archie kernel: RBP: 00000000ffffffea R08: ffffa15380520a88 R09: ffffa153804ff000
Mai 23 01:42:51 archie kernel: RDX: 0000000000000000 RSI: ffffd5dc80000000 RDI: ffff8dd3a1692010
Mai 23 01:42:51 archie kernel: RAX: 0000000000000000 RBX: ffff8dd34a231400 RCX: ffffd5dc8685a480
Mai 23 01:42:51 archie kernel: RSP: 0018:ffffa15382c2bc38 EFLAGS: 00010282
Mai 23 01:42:51 archie kernel: Code: 3c 24 e8 2f d5 fa ff e9 1a ff ff ff 49 8d 7f 10 e8 a1 af 92 00 41 c7 47 10 00 00 00 00 41 8b 6f 30 e9 d3 fe ff ff 0f 0b 0f 0b <0f> 0b e8 75 ee 91 00 bd f4 ff ff ff e9 20 ff ff ff 66 66 2e 0f 1f
Mai 23 01:42:51 archie kernel: RIP: 0010:zswap_frontswap_load+0x394/0x3b0
Mai 23 01:42:51 archie kernel: ---[ end trace 0000000000000000 ]---
Mai 23 01:42:51 archie kernel: zunicode(POE) zzstd(OE) zlua(OE) zavl(POE) icp(POE) zcommon(POE) znvpair(POE) spl(OE) fuse dm_mod loop zram bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 crc32c_intel xhci_pci xhci_pci_renesas
Mai 23 01:42:51 archie kernel: Modules linked in: tls intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul snd_hda_codec_hdmi snd_hda_codec_realtek i915 snd_hda_codec_generic ledtrig_audio pol>
Mai 23 01:42:51 archie kernel: </TASK>
Mai 23 01:42:51 archie kernel: R13: 00000000000000c4 R14: 000000c000007860 R15: ffffffffffffffff
Mai 23 01:42:51 archie kernel: R10: 000000c01990ff90 R11: 00007fe6c9e76fff R12: 000000c01990ff90
Mai 23 01:42:51 archie kernel: RBP: 00007fe6e1cb6bf0 R08: 0000000000000002 R09: 00007fe6c9d3f7fc
Mai 23 01:42:51 archie kernel: RDX: 0000000000000050 RSI: 0000000000203006 RDI: 00000000022f9e30
Mai 23 01:42:51 archie kernel: RAX: 0000000000000000 RBX: 000000c000043240 RCX: 0000000000000002
Mai 23 01:42:51 archie kernel: RSP: 002b:00007fe6e1cb6b68 EFLAGS: 00010203
Mai 23 01:42:51 archie kernel: Code: 0f b6 11 44 89 c1 45 89 d5 41 d3 ea 41 0f ba e2 04 0f 83 ec 00 00 00 48 89 44 24 58 41 0f a3 cd 0f 83 87 00 00 00 4e 8d 14 20 <4d> 8b 12 66 90 4d 85 d2 74 79 4d 89 d5 4d 29 e2 4c 39 d2 77 6e 4c
Mai 23 01:42:51 archie kernel: RIP: 0033:0x43509b
Mai 23 01:42:51 archie kernel: asm_exc_page_fault+0x26/0x30
Mai 23 01:42:51 archie kernel: exc_page_fault+0x74/0x170
Mai 23 01:42:51 archie kernel: do_user_addr_fault+0x1be/0x6a0
Mai 23 01:42:51 archie kernel: handle_mm_fault+0xdf/0x2d0
Mai 23 01:42:51 archie kernel: __handle_mm_fault+0x86b/0xfa0
Mai 23 01:42:51 archie kernel: ? __update_load_avg_se+0x2b8/0x320
Mai 23 01:42:51 archie kernel: ? update_load_avg+0x7e/0x780
Mai 23 01:42:51 archie kernel: ? update_load_avg+0x7e/0x780
Mai 23 01:42:51 archie kernel: do_swap_page+0x81d/0xbc0
Mai 23 01:42:51 archie kernel: swap_readpage+0x1bc/0x590
Mai 23 01:42:51 archie kernel: __frontswap_load+0x5b/0x80
Mai 23 01:42:51 archie kernel: <TASK>
Mai 23 01:42:51 archie kernel: Call Trace:
Mai 23 01:42:51 archie kernel: CR2: 000000c00f453008 CR3: 0000000101e9e005 CR4: 00000000000706e0
Mai 23 01:42:51 archie kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mai 23 01:42:51 archie kernel: FS: 00007fe6e1cb7700(0000) GS:ffff8dd417700000(0000) knlGS:0000000000000000
Mai 23 01:42:51 archie kernel: R13: ffff8dd30a1d20b8 R14: ffff8dd30a1d20b0 R15: ffff8dd41773ee30
Mai 23 01:42:51 archie kernel: R10: 0000000000000004 R11: ffffa15380521000 R12: ffff8dd3029c07a0
Mai 23 01:42:51 archie kernel: RBP: 00000000ffffffea R08: ffffa15380520a88 R09: ffffa153804ff000
Mai 23 01:42:51 archie kernel: RDX: 0000000000000000 RSI: ffffd5dc80000000 RDI: ffff8dd3a1692010
Mai 23 01:42:51 archie kernel: RAX: 0000000000000000 RBX: ffff8dd34a231400 RCX: ffffd5dc8685a480
Mai 23 01:42:51 archie kernel: RSP: 0018:ffffa15382c2bc38 EFLAGS: 00010282
Mai 23 01:42:51 archie kernel: Code: 3c 24 e8 2f d5 fa ff e9 1a ff ff ff 49 8d 7f 10 e8 a1 af 92 00 41 c7 47 10 00 00 00 00 41 8b 6f 30 e9 d3 fe ff ff 0f 0b 0f 0b <0f> 0b e8 75 ee 91 00 bd f4 ff ff ff e9 20 ff ff ff 66 66 2e 0f 1f
Mai 23 01:42:51 archie kernel: RIP: 0010:zswap_frontswap_load+0x394/0x3b0
Mai 23 01:42:51 archie kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B85M Pro3, BIOS P1.40 07/27/2015
Mai 23 01:42:51 archie kernel: CPU: 1 PID: 618 Comm: navidrome Tainted: P OE 6.1.24-1-lts #1 55bda4d1444eb782a51037373608497d29f0a6d7
Mai 23 01:42:51 archie kernel: invalid opcode: 0000 [#1] PREEMPT SMP PTI
Mai 23 01:42:51 archie kernel: kernel BUG at mm/zswap.c:1347!
Mai 23 01:42:51 archie kernel: ------------[ cut here ]------------


Additional info:
Kernel: linux-lts 6.1.24-1-lts
navidrome 0.48.0 (as it appears in the log)

Intel(R) Celeron(R) CPU G1820 (2 cores)
8 GB RAM
Asrock B85M Pro3
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 25 June 2023, 21:28 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Thursday, 25 May 2023, 07:56 GMT
> Might be an upstream zswap bug

Very likely. Arch cannot do much about these sorts of problems...so you will probably have better luck contacting upstream kernel folks. If it continues to give you grief, disabling is always an option [1]

[1] https://wiki.archlinux.org/title/Zswap#Toggling_zswap

Loading...