A thing I could imagine is
[0bcac06f27d75, skip swapcache for swapin of synchronous device]
It was merged into v4.15. Could you check it by bisecting?
My operating system is a minimal install of Debian 9. I took the kernel
configuration from the default Debian kernel and built my own kernel with
"make oldconfig" leaving all settings at their defaults. The only thing I
changed in the configuration was enabling the zram writeback feature.
You mean you changed host kernel configuration?
All my tests were done on bare-metal hardware with Xeon processors and lots
of RAM. I encounter the bug quite quickly, but it still takes several GBs of
swap usage. Below is my /proc/meminfo with enough KVM instances running (3
in my case) to trigger the bug on my test machine.
Aha.. you did writeback feature into your bare-metal host machine and execute
kvm with window images as a guest. So, PG_uptodate warning happens on host side,
not guest? Right?
I will also try to reproduce the problem on some different hardware next.