Turns out that was vm.nr_hugepages which I set in sysctl.d with a typo, so the amount of memory allocated to them was much bigger than total RAM I have.

First time I'm seeing early OOM in Linux. Sometimes it's just all userspace programs get killed, sometimes it's kernel deadlocks itself.
bruh/a1ba@a1ba@suya.place
rebooted PC remotely

ladies and gentlemen, PC did not came back online
en