[Kernel-packages] [Bug 1939996] Re: kernel BUG at mm/zswap.c:1275

2021-09-10 Thread Kai-Heng Feng
The fix is not in upstream 5.11 stable...

So maybe send SRU to ubuntu kernel to include the fix:
https://wiki.ubuntu.com/Kernel/Dev/StablePatchFormat

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1939996

Title:
  kernel BUG at mm/zswap.c:1275

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  I have just found the following lines in dmesg. I do not know what
  caused the bug. But mentioned PIDs are now labeled as zombie. Apps
  running by these process have hang.

  [37300.978014] [ cut here ]
  [37300.978020] kernel BUG at mm/zswap.c:1275!
  [37300.978027] invalid opcode:  [#2] SMP PTI
  [37300.978032] CPU: 2 PID: 2735 Comm: marco Tainted: P  DOE 
5.11.0-25-generic #27-Ubuntu
  [37300.978035] Hardware name: Acer Extensa 2520G/BA50_SL , BIOS V1.15 
05/13/2016
  [37300.978037] RIP: 0010:zswap_frontswap_load+0x273/0x280
  [37300.978044] Code: 9c 3d 01 f3 48 ab 83 aa 68 13 00 00 01 eb 84 48 8d 7b 10 
e8 df 55 97 00 c7 43 10 00 00 00 00 44 8b 6b 30 e9 47 ff ff ff 0f 0b <0f> 0b e8 
e6 ba 96 00 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5
  [37300.978047] RSP: :ba3a42f2bbc0 EFLAGS: 00010282
  [37300.978051] RAX: 0200 RBX: da3a3fd03390 RCX: 
0017c000
  [37300.978054] RDX: e151ced99400 RSI: 8d52b25299c0 RDI: 
0db0
  [37300.978056] RBP: ba3a42f2bc48 R08: 0490 R09: 
e151ceda5f40
  [37300.978058] R10:  R11: ba3a4057c000 R12: 
8d50c18e42a0
  [37300.978060] R13: ffea R14: 8d4f52597628 R15: 
8d4f52597620
  [37300.978063] FS:  7f2d60ec2a80() GS:8d52b250() 
knlGS:
  [37300.978066] CS:  0010 DS:  ES:  CR0: 80050033
  [37300.978068] CR2: 7f9b24d275a0 CR3: 00010fbc2005 CR4: 
003706e0
  [37300.978071] Call Trace:
  [37300.978076]  __frontswap_load+0x80/0xd0
  [37300.978079]  swap_readpage+0x148/0x270
  [37300.978084]  swap_cluster_readahead+0x1c2/0x310
  [37300.978089]  swapin_readahead+0x2a/0x30
  [37300.978093]  do_swap_page+0x401/0x760
  [37300.978098]  handle_pte_fault+0x1ff/0x260
  [37300.978102]  __handle_mm_fault+0x599/0x7c0
  [37300.978106]  ? timerqueue_add+0x68/0xa0
  [37300.978111]  handle_mm_fault+0xd7/0x2b0
  [37300.978115]  do_user_addr_fault+0x1a3/0x450
  [37300.978120]  exc_page_fault+0x6c/0x150
  [37300.978123]  ? asm_exc_page_fault+0x8/0x30
  [37300.978128]  asm_exc_page_fault+0x1e/0x30
  [37300.978132] RIP: 0033:0x7f2d617dc1b4
  [37300.978135] Code: 05 c3 0f 1f 40 00 31 c0 48 83 7e 08 00 0f 95 c0 c3 0f 1f 
44 00 00 f3 0f 1e fa 31 c0 48 39 3e 75 0d 48 8b 46 08 48 85 c0 74 04 <48> 8b 40 
08 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 39 3e 74 07 31
  [37300.978138] RSP: 002b:7ffd61f7bd68 EFLAGS: 00010202
  [37300.978141] RAX: 55e753ce7f70 RBX:  RCX: 

  [37300.978143] RDX:  RSI: 7ffd61f7be30 RDI: 
55e753bf0e70
  [37300.978145] RBP: 7ffd61f7be00 R08: 55e753f51730 R09: 
55e753f51730
  [37300.978147] R10: 011c R11: ff21 R12: 

  [37300.978149] R13: 55e753c89f90 R14: 55e753c89f70 R15: 

  [37300.978152] Modules linked in: uas usb_storage usbhid rfcomm cmac 
algif_hash algif_skcipher af_alg bnep vboxnetadp(OE) vboxnetflt(OE) xfrm_user 
xfrm_algo vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel 
pppox ccm joydev hid_multitouch hid_generic uvcvideo videobuf2_vmalloc 
videobuf2_memops videobuf2_v4l2 ath3k videobuf2_common btusb rtsx_usb_ms btrtl 
btbcm btintel memstick bluetooth rtsx_usb_sdmmc videodev ecdh_generic mc ecc 
rtsx_usb snd_hda_codec_hdmi snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 
snd_hda_codec_generic ledtrig_audio snd_soc_acpi snd_hda_intel snd_intel_dspcfg 
soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec 
snd_hda_core snd_hwdep soundwire_bus snd_soc_core intel_rapl_msr snd_compress 
intel_rapl_common ac97_bus x86_pkg_temp_thermal snd_pcm_dmaengine 
intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel binfmt_misc snd_pcm
  [37300.978220]  rapl intel_cstate snd_seq_midi snd_seq_midi_event 
intel_xhci_usb_role_switch mei_hdcp ath9k snd_rawmidi acer_wmi 
intel_wmi_thunderbolt at24 wmi_bmof ath9k_common sparse_keymap ath9k_hw ath 
nf_log_ipv4 snd_seq nf_log_common ipt_REJECT mac80211 snd_seq_device 
nf_reject_ipv4 xt_LOG snd_timer nls_iso8859_1 xt_multiport cfg80211 snd 
intel_lpss_pci i2c_i801 intel_lpss nft_limit mei_me xhci_pci idma64 i2c_smbus 
soundcore libarc4 intel_pch_thermal xhci_pci_renesas efi_pstore virt_dma mei 
i2c_hid hid xt_limit xt_addrtype xt_tcpudp wmi xt_conntrack acpi_pad nft_compat 
nft_counter nvidia_uvm(POE) nf_conntrack_netbios_ns 

[Kernel-packages] [Bug 1939996] Re: kernel BUG at mm/zswap.c:1275

2021-08-29 Thread Ko-Zu
This happens for me if zswap was enabled with zsmalloc pool.
ref: https://www.spinics.net/lists/linux-mm/msg245604.html

For 20.04 hwe, this also affects 5.11.0.25 but previous hwe 5.8.0.x were
not affected.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1939996

Title:
  kernel BUG at mm/zswap.c:1275

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  I have just found the following lines in dmesg. I do not know what
  caused the bug. But mentioned PIDs are now labeled as zombie. Apps
  running by these process have hang.

  [37300.978014] [ cut here ]
  [37300.978020] kernel BUG at mm/zswap.c:1275!
  [37300.978027] invalid opcode:  [#2] SMP PTI
  [37300.978032] CPU: 2 PID: 2735 Comm: marco Tainted: P  DOE 
5.11.0-25-generic #27-Ubuntu
  [37300.978035] Hardware name: Acer Extensa 2520G/BA50_SL , BIOS V1.15 
05/13/2016
  [37300.978037] RIP: 0010:zswap_frontswap_load+0x273/0x280
  [37300.978044] Code: 9c 3d 01 f3 48 ab 83 aa 68 13 00 00 01 eb 84 48 8d 7b 10 
e8 df 55 97 00 c7 43 10 00 00 00 00 44 8b 6b 30 e9 47 ff ff ff 0f 0b <0f> 0b e8 
e6 ba 96 00 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5
  [37300.978047] RSP: :ba3a42f2bbc0 EFLAGS: 00010282
  [37300.978051] RAX: 0200 RBX: da3a3fd03390 RCX: 
0017c000
  [37300.978054] RDX: e151ced99400 RSI: 8d52b25299c0 RDI: 
0db0
  [37300.978056] RBP: ba3a42f2bc48 R08: 0490 R09: 
e151ceda5f40
  [37300.978058] R10:  R11: ba3a4057c000 R12: 
8d50c18e42a0
  [37300.978060] R13: ffea R14: 8d4f52597628 R15: 
8d4f52597620
  [37300.978063] FS:  7f2d60ec2a80() GS:8d52b250() 
knlGS:
  [37300.978066] CS:  0010 DS:  ES:  CR0: 80050033
  [37300.978068] CR2: 7f9b24d275a0 CR3: 00010fbc2005 CR4: 
003706e0
  [37300.978071] Call Trace:
  [37300.978076]  __frontswap_load+0x80/0xd0
  [37300.978079]  swap_readpage+0x148/0x270
  [37300.978084]  swap_cluster_readahead+0x1c2/0x310
  [37300.978089]  swapin_readahead+0x2a/0x30
  [37300.978093]  do_swap_page+0x401/0x760
  [37300.978098]  handle_pte_fault+0x1ff/0x260
  [37300.978102]  __handle_mm_fault+0x599/0x7c0
  [37300.978106]  ? timerqueue_add+0x68/0xa0
  [37300.978111]  handle_mm_fault+0xd7/0x2b0
  [37300.978115]  do_user_addr_fault+0x1a3/0x450
  [37300.978120]  exc_page_fault+0x6c/0x150
  [37300.978123]  ? asm_exc_page_fault+0x8/0x30
  [37300.978128]  asm_exc_page_fault+0x1e/0x30
  [37300.978132] RIP: 0033:0x7f2d617dc1b4
  [37300.978135] Code: 05 c3 0f 1f 40 00 31 c0 48 83 7e 08 00 0f 95 c0 c3 0f 1f 
44 00 00 f3 0f 1e fa 31 c0 48 39 3e 75 0d 48 8b 46 08 48 85 c0 74 04 <48> 8b 40 
08 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 39 3e 74 07 31
  [37300.978138] RSP: 002b:7ffd61f7bd68 EFLAGS: 00010202
  [37300.978141] RAX: 55e753ce7f70 RBX:  RCX: 

  [37300.978143] RDX:  RSI: 7ffd61f7be30 RDI: 
55e753bf0e70
  [37300.978145] RBP: 7ffd61f7be00 R08: 55e753f51730 R09: 
55e753f51730
  [37300.978147] R10: 011c R11: ff21 R12: 

  [37300.978149] R13: 55e753c89f90 R14: 55e753c89f70 R15: 

  [37300.978152] Modules linked in: uas usb_storage usbhid rfcomm cmac 
algif_hash algif_skcipher af_alg bnep vboxnetadp(OE) vboxnetflt(OE) xfrm_user 
xfrm_algo vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel 
pppox ccm joydev hid_multitouch hid_generic uvcvideo videobuf2_vmalloc 
videobuf2_memops videobuf2_v4l2 ath3k videobuf2_common btusb rtsx_usb_ms btrtl 
btbcm btintel memstick bluetooth rtsx_usb_sdmmc videodev ecdh_generic mc ecc 
rtsx_usb snd_hda_codec_hdmi snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 
snd_hda_codec_generic ledtrig_audio snd_soc_acpi snd_hda_intel snd_intel_dspcfg 
soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec 
snd_hda_core snd_hwdep soundwire_bus snd_soc_core intel_rapl_msr snd_compress 
intel_rapl_common ac97_bus x86_pkg_temp_thermal snd_pcm_dmaengine 
intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel binfmt_misc snd_pcm
  [37300.978220]  rapl intel_cstate snd_seq_midi snd_seq_midi_event 
intel_xhci_usb_role_switch mei_hdcp ath9k snd_rawmidi acer_wmi 
intel_wmi_thunderbolt at24 wmi_bmof ath9k_common sparse_keymap ath9k_hw ath 
nf_log_ipv4 snd_seq nf_log_common ipt_REJECT mac80211 snd_seq_device 
nf_reject_ipv4 xt_LOG snd_timer nls_iso8859_1 xt_multiport cfg80211 snd 
intel_lpss_pci i2c_i801 intel_lpss nft_limit mei_me xhci_pci idma64 i2c_smbus 
soundcore libarc4 intel_pch_thermal xhci_pci_renesas efi_pstore virt_dma mei 
i2c_hid hid xt_limit xt_addrtype xt_tcpudp wmi xt_conntrack acpi_pad nft_compat 
nft_counter 

[Kernel-packages] [Bug 1939996] Re: kernel BUG at mm/zswap.c:1275

2021-08-16 Thread Nicholas Guriev
I can reproduce the bug on -22 and -25 kernels. Here are almost full
dmesg logs. You can see SSD errors where swap is placed. This issue may
be related to them somehow. To exclude hardware element of errors, I
will try other more recent laptop or VirtualBox.


Steps:

1. sudo mount -t tmpfs -o mode=775 tmpfs /mnt

2. sudo dd if=/dev/urandom of=/mnt/garbage
Wait till ENOSPC. In my case, the garbage file becomes of 8 GB.

3. ./eatmem 500
This hand-made program only consumes a lot of memory in a loop then sleeps.

So I speculate when the kernel wants to displace tmpfs content to a
swap, it encounters the bug. If I reverse second and third steps, the
bug does not appear.

** Attachment added: "dmesg_0846.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939996/+attachment/5518106/+files/dmesg_0846.log

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1939996

Title:
  kernel BUG at mm/zswap.c:1275

Status in linux package in Ubuntu:
  New

Bug description:
  I have just found the following lines in dmesg. I do not know what
  caused the bug. But mentioned PIDs are now labeled as zombie. Apps
  running by these process have hang.

  [37300.978014] [ cut here ]
  [37300.978020] kernel BUG at mm/zswap.c:1275!
  [37300.978027] invalid opcode:  [#2] SMP PTI
  [37300.978032] CPU: 2 PID: 2735 Comm: marco Tainted: P  DOE 
5.11.0-25-generic #27-Ubuntu
  [37300.978035] Hardware name: Acer Extensa 2520G/BA50_SL , BIOS V1.15 
05/13/2016
  [37300.978037] RIP: 0010:zswap_frontswap_load+0x273/0x280
  [37300.978044] Code: 9c 3d 01 f3 48 ab 83 aa 68 13 00 00 01 eb 84 48 8d 7b 10 
e8 df 55 97 00 c7 43 10 00 00 00 00 44 8b 6b 30 e9 47 ff ff ff 0f 0b <0f> 0b e8 
e6 ba 96 00 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5
  [37300.978047] RSP: :ba3a42f2bbc0 EFLAGS: 00010282
  [37300.978051] RAX: 0200 RBX: da3a3fd03390 RCX: 
0017c000
  [37300.978054] RDX: e151ced99400 RSI: 8d52b25299c0 RDI: 
0db0
  [37300.978056] RBP: ba3a42f2bc48 R08: 0490 R09: 
e151ceda5f40
  [37300.978058] R10:  R11: ba3a4057c000 R12: 
8d50c18e42a0
  [37300.978060] R13: ffea R14: 8d4f52597628 R15: 
8d4f52597620
  [37300.978063] FS:  7f2d60ec2a80() GS:8d52b250() 
knlGS:
  [37300.978066] CS:  0010 DS:  ES:  CR0: 80050033
  [37300.978068] CR2: 7f9b24d275a0 CR3: 00010fbc2005 CR4: 
003706e0
  [37300.978071] Call Trace:
  [37300.978076]  __frontswap_load+0x80/0xd0
  [37300.978079]  swap_readpage+0x148/0x270
  [37300.978084]  swap_cluster_readahead+0x1c2/0x310
  [37300.978089]  swapin_readahead+0x2a/0x30
  [37300.978093]  do_swap_page+0x401/0x760
  [37300.978098]  handle_pte_fault+0x1ff/0x260
  [37300.978102]  __handle_mm_fault+0x599/0x7c0
  [37300.978106]  ? timerqueue_add+0x68/0xa0
  [37300.978111]  handle_mm_fault+0xd7/0x2b0
  [37300.978115]  do_user_addr_fault+0x1a3/0x450
  [37300.978120]  exc_page_fault+0x6c/0x150
  [37300.978123]  ? asm_exc_page_fault+0x8/0x30
  [37300.978128]  asm_exc_page_fault+0x1e/0x30
  [37300.978132] RIP: 0033:0x7f2d617dc1b4
  [37300.978135] Code: 05 c3 0f 1f 40 00 31 c0 48 83 7e 08 00 0f 95 c0 c3 0f 1f 
44 00 00 f3 0f 1e fa 31 c0 48 39 3e 75 0d 48 8b 46 08 48 85 c0 74 04 <48> 8b 40 
08 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 39 3e 74 07 31
  [37300.978138] RSP: 002b:7ffd61f7bd68 EFLAGS: 00010202
  [37300.978141] RAX: 55e753ce7f70 RBX:  RCX: 

  [37300.978143] RDX:  RSI: 7ffd61f7be30 RDI: 
55e753bf0e70
  [37300.978145] RBP: 7ffd61f7be00 R08: 55e753f51730 R09: 
55e753f51730
  [37300.978147] R10: 011c R11: ff21 R12: 

  [37300.978149] R13: 55e753c89f90 R14: 55e753c89f70 R15: 

  [37300.978152] Modules linked in: uas usb_storage usbhid rfcomm cmac 
algif_hash algif_skcipher af_alg bnep vboxnetadp(OE) vboxnetflt(OE) xfrm_user 
xfrm_algo vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel 
pppox ccm joydev hid_multitouch hid_generic uvcvideo videobuf2_vmalloc 
videobuf2_memops videobuf2_v4l2 ath3k videobuf2_common btusb rtsx_usb_ms btrtl 
btbcm btintel memstick bluetooth rtsx_usb_sdmmc videodev ecdh_generic mc ecc 
rtsx_usb snd_hda_codec_hdmi snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 
snd_hda_codec_generic ledtrig_audio snd_soc_acpi snd_hda_intel snd_intel_dspcfg 
soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec 
snd_hda_core snd_hwdep soundwire_bus snd_soc_core intel_rapl_msr snd_compress 
intel_rapl_common ac97_bus x86_pkg_temp_thermal snd_pcm_dmaengine 
intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel binfmt_misc 

[Kernel-packages] [Bug 1939996] Re: kernel BUG at mm/zswap.c:1275

2021-08-16 Thread Nicholas Guriev
** Attachment added: "eatmem.c"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939996/+attachment/5518108/+files/eatmem.c

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1939996

Title:
  kernel BUG at mm/zswap.c:1275

Status in linux package in Ubuntu:
  New

Bug description:
  I have just found the following lines in dmesg. I do not know what
  caused the bug. But mentioned PIDs are now labeled as zombie. Apps
  running by these process have hang.

  [37300.978014] [ cut here ]
  [37300.978020] kernel BUG at mm/zswap.c:1275!
  [37300.978027] invalid opcode:  [#2] SMP PTI
  [37300.978032] CPU: 2 PID: 2735 Comm: marco Tainted: P  DOE 
5.11.0-25-generic #27-Ubuntu
  [37300.978035] Hardware name: Acer Extensa 2520G/BA50_SL , BIOS V1.15 
05/13/2016
  [37300.978037] RIP: 0010:zswap_frontswap_load+0x273/0x280
  [37300.978044] Code: 9c 3d 01 f3 48 ab 83 aa 68 13 00 00 01 eb 84 48 8d 7b 10 
e8 df 55 97 00 c7 43 10 00 00 00 00 44 8b 6b 30 e9 47 ff ff ff 0f 0b <0f> 0b e8 
e6 ba 96 00 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5
  [37300.978047] RSP: :ba3a42f2bbc0 EFLAGS: 00010282
  [37300.978051] RAX: 0200 RBX: da3a3fd03390 RCX: 
0017c000
  [37300.978054] RDX: e151ced99400 RSI: 8d52b25299c0 RDI: 
0db0
  [37300.978056] RBP: ba3a42f2bc48 R08: 0490 R09: 
e151ceda5f40
  [37300.978058] R10:  R11: ba3a4057c000 R12: 
8d50c18e42a0
  [37300.978060] R13: ffea R14: 8d4f52597628 R15: 
8d4f52597620
  [37300.978063] FS:  7f2d60ec2a80() GS:8d52b250() 
knlGS:
  [37300.978066] CS:  0010 DS:  ES:  CR0: 80050033
  [37300.978068] CR2: 7f9b24d275a0 CR3: 00010fbc2005 CR4: 
003706e0
  [37300.978071] Call Trace:
  [37300.978076]  __frontswap_load+0x80/0xd0
  [37300.978079]  swap_readpage+0x148/0x270
  [37300.978084]  swap_cluster_readahead+0x1c2/0x310
  [37300.978089]  swapin_readahead+0x2a/0x30
  [37300.978093]  do_swap_page+0x401/0x760
  [37300.978098]  handle_pte_fault+0x1ff/0x260
  [37300.978102]  __handle_mm_fault+0x599/0x7c0
  [37300.978106]  ? timerqueue_add+0x68/0xa0
  [37300.978111]  handle_mm_fault+0xd7/0x2b0
  [37300.978115]  do_user_addr_fault+0x1a3/0x450
  [37300.978120]  exc_page_fault+0x6c/0x150
  [37300.978123]  ? asm_exc_page_fault+0x8/0x30
  [37300.978128]  asm_exc_page_fault+0x1e/0x30
  [37300.978132] RIP: 0033:0x7f2d617dc1b4
  [37300.978135] Code: 05 c3 0f 1f 40 00 31 c0 48 83 7e 08 00 0f 95 c0 c3 0f 1f 
44 00 00 f3 0f 1e fa 31 c0 48 39 3e 75 0d 48 8b 46 08 48 85 c0 74 04 <48> 8b 40 
08 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 39 3e 74 07 31
  [37300.978138] RSP: 002b:7ffd61f7bd68 EFLAGS: 00010202
  [37300.978141] RAX: 55e753ce7f70 RBX:  RCX: 

  [37300.978143] RDX:  RSI: 7ffd61f7be30 RDI: 
55e753bf0e70
  [37300.978145] RBP: 7ffd61f7be00 R08: 55e753f51730 R09: 
55e753f51730
  [37300.978147] R10: 011c R11: ff21 R12: 

  [37300.978149] R13: 55e753c89f90 R14: 55e753c89f70 R15: 

  [37300.978152] Modules linked in: uas usb_storage usbhid rfcomm cmac 
algif_hash algif_skcipher af_alg bnep vboxnetadp(OE) vboxnetflt(OE) xfrm_user 
xfrm_algo vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel 
pppox ccm joydev hid_multitouch hid_generic uvcvideo videobuf2_vmalloc 
videobuf2_memops videobuf2_v4l2 ath3k videobuf2_common btusb rtsx_usb_ms btrtl 
btbcm btintel memstick bluetooth rtsx_usb_sdmmc videodev ecdh_generic mc ecc 
rtsx_usb snd_hda_codec_hdmi snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 
snd_hda_codec_generic ledtrig_audio snd_soc_acpi snd_hda_intel snd_intel_dspcfg 
soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec 
snd_hda_core snd_hwdep soundwire_bus snd_soc_core intel_rapl_msr snd_compress 
intel_rapl_common ac97_bus x86_pkg_temp_thermal snd_pcm_dmaengine 
intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel binfmt_misc snd_pcm
  [37300.978220]  rapl intel_cstate snd_seq_midi snd_seq_midi_event 
intel_xhci_usb_role_switch mei_hdcp ath9k snd_rawmidi acer_wmi 
intel_wmi_thunderbolt at24 wmi_bmof ath9k_common sparse_keymap ath9k_hw ath 
nf_log_ipv4 snd_seq nf_log_common ipt_REJECT mac80211 snd_seq_device 
nf_reject_ipv4 xt_LOG snd_timer nls_iso8859_1 xt_multiport cfg80211 snd 
intel_lpss_pci i2c_i801 intel_lpss nft_limit mei_me xhci_pci idma64 i2c_smbus 
soundcore libarc4 intel_pch_thermal xhci_pci_renesas efi_pstore virt_dma mei 
i2c_hid hid xt_limit xt_addrtype xt_tcpudp wmi xt_conntrack acpi_pad nft_compat 
nft_counter nvidia_uvm(POE) nf_conntrack_netbios_ns nf_conntrack_broadcast 
nf_nat_ftp nf_nat 

[Kernel-packages] [Bug 1939996] Re: kernel BUG at mm/zswap.c:1275

2021-08-16 Thread Nicholas Guriev
** Attachment added: "dmesg_0859.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939996/+attachment/5518107/+files/dmesg_0859.log

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1939996

Title:
  kernel BUG at mm/zswap.c:1275

Status in linux package in Ubuntu:
  New

Bug description:
  I have just found the following lines in dmesg. I do not know what
  caused the bug. But mentioned PIDs are now labeled as zombie. Apps
  running by these process have hang.

  [37300.978014] [ cut here ]
  [37300.978020] kernel BUG at mm/zswap.c:1275!
  [37300.978027] invalid opcode:  [#2] SMP PTI
  [37300.978032] CPU: 2 PID: 2735 Comm: marco Tainted: P  DOE 
5.11.0-25-generic #27-Ubuntu
  [37300.978035] Hardware name: Acer Extensa 2520G/BA50_SL , BIOS V1.15 
05/13/2016
  [37300.978037] RIP: 0010:zswap_frontswap_load+0x273/0x280
  [37300.978044] Code: 9c 3d 01 f3 48 ab 83 aa 68 13 00 00 01 eb 84 48 8d 7b 10 
e8 df 55 97 00 c7 43 10 00 00 00 00 44 8b 6b 30 e9 47 ff ff ff 0f 0b <0f> 0b e8 
e6 ba 96 00 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5
  [37300.978047] RSP: :ba3a42f2bbc0 EFLAGS: 00010282
  [37300.978051] RAX: 0200 RBX: da3a3fd03390 RCX: 
0017c000
  [37300.978054] RDX: e151ced99400 RSI: 8d52b25299c0 RDI: 
0db0
  [37300.978056] RBP: ba3a42f2bc48 R08: 0490 R09: 
e151ceda5f40
  [37300.978058] R10:  R11: ba3a4057c000 R12: 
8d50c18e42a0
  [37300.978060] R13: ffea R14: 8d4f52597628 R15: 
8d4f52597620
  [37300.978063] FS:  7f2d60ec2a80() GS:8d52b250() 
knlGS:
  [37300.978066] CS:  0010 DS:  ES:  CR0: 80050033
  [37300.978068] CR2: 7f9b24d275a0 CR3: 00010fbc2005 CR4: 
003706e0
  [37300.978071] Call Trace:
  [37300.978076]  __frontswap_load+0x80/0xd0
  [37300.978079]  swap_readpage+0x148/0x270
  [37300.978084]  swap_cluster_readahead+0x1c2/0x310
  [37300.978089]  swapin_readahead+0x2a/0x30
  [37300.978093]  do_swap_page+0x401/0x760
  [37300.978098]  handle_pte_fault+0x1ff/0x260
  [37300.978102]  __handle_mm_fault+0x599/0x7c0
  [37300.978106]  ? timerqueue_add+0x68/0xa0
  [37300.978111]  handle_mm_fault+0xd7/0x2b0
  [37300.978115]  do_user_addr_fault+0x1a3/0x450
  [37300.978120]  exc_page_fault+0x6c/0x150
  [37300.978123]  ? asm_exc_page_fault+0x8/0x30
  [37300.978128]  asm_exc_page_fault+0x1e/0x30
  [37300.978132] RIP: 0033:0x7f2d617dc1b4
  [37300.978135] Code: 05 c3 0f 1f 40 00 31 c0 48 83 7e 08 00 0f 95 c0 c3 0f 1f 
44 00 00 f3 0f 1e fa 31 c0 48 39 3e 75 0d 48 8b 46 08 48 85 c0 74 04 <48> 8b 40 
08 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 39 3e 74 07 31
  [37300.978138] RSP: 002b:7ffd61f7bd68 EFLAGS: 00010202
  [37300.978141] RAX: 55e753ce7f70 RBX:  RCX: 

  [37300.978143] RDX:  RSI: 7ffd61f7be30 RDI: 
55e753bf0e70
  [37300.978145] RBP: 7ffd61f7be00 R08: 55e753f51730 R09: 
55e753f51730
  [37300.978147] R10: 011c R11: ff21 R12: 

  [37300.978149] R13: 55e753c89f90 R14: 55e753c89f70 R15: 

  [37300.978152] Modules linked in: uas usb_storage usbhid rfcomm cmac 
algif_hash algif_skcipher af_alg bnep vboxnetadp(OE) vboxnetflt(OE) xfrm_user 
xfrm_algo vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel 
pppox ccm joydev hid_multitouch hid_generic uvcvideo videobuf2_vmalloc 
videobuf2_memops videobuf2_v4l2 ath3k videobuf2_common btusb rtsx_usb_ms btrtl 
btbcm btintel memstick bluetooth rtsx_usb_sdmmc videodev ecdh_generic mc ecc 
rtsx_usb snd_hda_codec_hdmi snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 
snd_hda_codec_generic ledtrig_audio snd_soc_acpi snd_hda_intel snd_intel_dspcfg 
soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec 
snd_hda_core snd_hwdep soundwire_bus snd_soc_core intel_rapl_msr snd_compress 
intel_rapl_common ac97_bus x86_pkg_temp_thermal snd_pcm_dmaengine 
intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel binfmt_misc snd_pcm
  [37300.978220]  rapl intel_cstate snd_seq_midi snd_seq_midi_event 
intel_xhci_usb_role_switch mei_hdcp ath9k snd_rawmidi acer_wmi 
intel_wmi_thunderbolt at24 wmi_bmof ath9k_common sparse_keymap ath9k_hw ath 
nf_log_ipv4 snd_seq nf_log_common ipt_REJECT mac80211 snd_seq_device 
nf_reject_ipv4 xt_LOG snd_timer nls_iso8859_1 xt_multiport cfg80211 snd 
intel_lpss_pci i2c_i801 intel_lpss nft_limit mei_me xhci_pci idma64 i2c_smbus 
soundcore libarc4 intel_pch_thermal xhci_pci_renesas efi_pstore virt_dma mei 
i2c_hid hid xt_limit xt_addrtype xt_tcpudp wmi xt_conntrack acpi_pad nft_compat 
nft_counter nvidia_uvm(POE) nf_conntrack_netbios_ns nf_conntrack_broadcast 

[Kernel-packages] [Bug 1939996] Re: kernel BUG at mm/zswap.c:1275

2021-08-15 Thread Kai-Heng Feng
Did this issue happen on previous kernels?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1939996

Title:
  kernel BUG at mm/zswap.c:1275

Status in linux package in Ubuntu:
  New

Bug description:
  I have just found the following lines in dmesg. I do not know what
  caused the bug. But mentioned PIDs are now labeled as zombie. Apps
  running by these process have hang.

  [37300.978014] [ cut here ]
  [37300.978020] kernel BUG at mm/zswap.c:1275!
  [37300.978027] invalid opcode:  [#2] SMP PTI
  [37300.978032] CPU: 2 PID: 2735 Comm: marco Tainted: P  DOE 
5.11.0-25-generic #27-Ubuntu
  [37300.978035] Hardware name: Acer Extensa 2520G/BA50_SL , BIOS V1.15 
05/13/2016
  [37300.978037] RIP: 0010:zswap_frontswap_load+0x273/0x280
  [37300.978044] Code: 9c 3d 01 f3 48 ab 83 aa 68 13 00 00 01 eb 84 48 8d 7b 10 
e8 df 55 97 00 c7 43 10 00 00 00 00 44 8b 6b 30 e9 47 ff ff ff 0f 0b <0f> 0b e8 
e6 ba 96 00 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5
  [37300.978047] RSP: :ba3a42f2bbc0 EFLAGS: 00010282
  [37300.978051] RAX: 0200 RBX: da3a3fd03390 RCX: 
0017c000
  [37300.978054] RDX: e151ced99400 RSI: 8d52b25299c0 RDI: 
0db0
  [37300.978056] RBP: ba3a42f2bc48 R08: 0490 R09: 
e151ceda5f40
  [37300.978058] R10:  R11: ba3a4057c000 R12: 
8d50c18e42a0
  [37300.978060] R13: ffea R14: 8d4f52597628 R15: 
8d4f52597620
  [37300.978063] FS:  7f2d60ec2a80() GS:8d52b250() 
knlGS:
  [37300.978066] CS:  0010 DS:  ES:  CR0: 80050033
  [37300.978068] CR2: 7f9b24d275a0 CR3: 00010fbc2005 CR4: 
003706e0
  [37300.978071] Call Trace:
  [37300.978076]  __frontswap_load+0x80/0xd0
  [37300.978079]  swap_readpage+0x148/0x270
  [37300.978084]  swap_cluster_readahead+0x1c2/0x310
  [37300.978089]  swapin_readahead+0x2a/0x30
  [37300.978093]  do_swap_page+0x401/0x760
  [37300.978098]  handle_pte_fault+0x1ff/0x260
  [37300.978102]  __handle_mm_fault+0x599/0x7c0
  [37300.978106]  ? timerqueue_add+0x68/0xa0
  [37300.978111]  handle_mm_fault+0xd7/0x2b0
  [37300.978115]  do_user_addr_fault+0x1a3/0x450
  [37300.978120]  exc_page_fault+0x6c/0x150
  [37300.978123]  ? asm_exc_page_fault+0x8/0x30
  [37300.978128]  asm_exc_page_fault+0x1e/0x30
  [37300.978132] RIP: 0033:0x7f2d617dc1b4
  [37300.978135] Code: 05 c3 0f 1f 40 00 31 c0 48 83 7e 08 00 0f 95 c0 c3 0f 1f 
44 00 00 f3 0f 1e fa 31 c0 48 39 3e 75 0d 48 8b 46 08 48 85 c0 74 04 <48> 8b 40 
08 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 39 3e 74 07 31
  [37300.978138] RSP: 002b:7ffd61f7bd68 EFLAGS: 00010202
  [37300.978141] RAX: 55e753ce7f70 RBX:  RCX: 

  [37300.978143] RDX:  RSI: 7ffd61f7be30 RDI: 
55e753bf0e70
  [37300.978145] RBP: 7ffd61f7be00 R08: 55e753f51730 R09: 
55e753f51730
  [37300.978147] R10: 011c R11: ff21 R12: 

  [37300.978149] R13: 55e753c89f90 R14: 55e753c89f70 R15: 

  [37300.978152] Modules linked in: uas usb_storage usbhid rfcomm cmac 
algif_hash algif_skcipher af_alg bnep vboxnetadp(OE) vboxnetflt(OE) xfrm_user 
xfrm_algo vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel 
pppox ccm joydev hid_multitouch hid_generic uvcvideo videobuf2_vmalloc 
videobuf2_memops videobuf2_v4l2 ath3k videobuf2_common btusb rtsx_usb_ms btrtl 
btbcm btintel memstick bluetooth rtsx_usb_sdmmc videodev ecdh_generic mc ecc 
rtsx_usb snd_hda_codec_hdmi snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 
snd_hda_codec_generic ledtrig_audio snd_soc_acpi snd_hda_intel snd_intel_dspcfg 
soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec 
snd_hda_core snd_hwdep soundwire_bus snd_soc_core intel_rapl_msr snd_compress 
intel_rapl_common ac97_bus x86_pkg_temp_thermal snd_pcm_dmaengine 
intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul 
ghash_clmulni_intel binfmt_misc snd_pcm
  [37300.978220]  rapl intel_cstate snd_seq_midi snd_seq_midi_event 
intel_xhci_usb_role_switch mei_hdcp ath9k snd_rawmidi acer_wmi 
intel_wmi_thunderbolt at24 wmi_bmof ath9k_common sparse_keymap ath9k_hw ath 
nf_log_ipv4 snd_seq nf_log_common ipt_REJECT mac80211 snd_seq_device 
nf_reject_ipv4 xt_LOG snd_timer nls_iso8859_1 xt_multiport cfg80211 snd 
intel_lpss_pci i2c_i801 intel_lpss nft_limit mei_me xhci_pci idma64 i2c_smbus 
soundcore libarc4 intel_pch_thermal xhci_pci_renesas efi_pstore virt_dma mei 
i2c_hid hid xt_limit xt_addrtype xt_tcpudp wmi xt_conntrack acpi_pad nft_compat 
nft_counter nvidia_uvm(POE) nf_conntrack_netbios_ns nf_conntrack_broadcast 
nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack sch_fq_codel nf_defrag_ipv6 
nf_defrag_ipv4 nf_tables msr