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 5000000
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1939996

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939996/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to