I got the same behavior on Xenial with kernel 4.15.0-43-generic.
[ 4.598980] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name [ 4.601946] Kernel panic - not syncing: Out of memory and no killable processes... [ 4.601946] [ 4.605054] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.15.0-43-generic #46~16.04.1-Ubuntu [ 4.605943] Hardware name: HP ProLiant BL460c Gen9, BIOS I36 10/17/2018 [ 4.605943] Call Trace: [ 4.605943] dump_stack+0x63/0x8b [ 4.605943] panic+0xe4/0x244 [ 4.60header+0x18f/0x285 [ 4.605943] out_of_memory+0x364/0x4c0 [ 4.605943] __alloc_pages_slowpath+0xda2/0xe90 [ 4.605943] ? radix_tree_extend+0xda/0x160 [ 4.605943] __alloc_pages_nodemask+0x265/0x280 [ 4.605943] alloc_page_interleave+0x17/0x80 [ 4.605943] alloc_pages_current+0xc8/0xe0 [ 4.605943] __page_cache_alloc+0x86/0x90 [ 4.605943] pagecache_get_page+0x88/0x2c0 [ 4.605943] grab_cache_page_write_begin+0x23/0x40 [ 4.605943] simple_write_begin+0x29/0x1b0 [ 4.605943] generic_perform_write+0xba/0x1b0 [ 4.605943] __generic_file_write_iter+0x1a6/0x1f0 [ 4.605943] ? md_run_setup+0x99/0x99 [ 4.605943] generic_file_write_iter+0xf1/0x1d0 [ 4.605943] new_sync_write+0xe5/0x140 [ 4.605943] __vfs_write+0x29/0x40 [ 4.605943] vfs_write+0xb8/0x1b0 [ 4.605943] ? zlib_updatewindow+0x2d/0xd0 [ 4.605943] ? md_run_setup+0x99/0x99 [ 4.605943] SyS_write+0x55/0xc0 [ 4.605943] xwrite+0x2e/0x61 [ 4.605943] do_copy+0x8f/0xbd [ 4.605943] write_buffer+0x2b/0x3c [ 4.605943] flush_buffer+0x30/0x8a [ 4.605943] __gunzip+0x27e/0x322 [ 4.605943] ? bunzip2+0x3a05943] ? write_buffer+0x3c/0x3c [ 4.605943] ? __gunzip+0x322/0x322 [ 4.605943] gunzip+0x11/0x13 [ 4.605943] ? md_run_setup+0x99/0x99 [ 4.605943] unpack_to_rootfs+0x168/0x2bb [ 4.605943] ? md_run_setup+0x99/0x99 [ 4.605943] ? unpack_to_rootfs+0x2bb/0x2bb [ 4.605943] populate_rootfs+0x61/0x10f [ 4.605943] do_one_initcall+0x55/0x1ac [ 4.605943] kernel_init_freeable+0x19e/0x238 [ 4.605943] ? rest_init+0xb0/0xb0 [ 4.605943] kernel_init+0xe/0x110 [ 4.605943] ret_from_fork+0x35/0x40 [ 4.605943] ---[ end Kernel panic - not syncing: Out of memory and no killable processes... [ 4.605943]
I got the same behavior on Xenial with kernel 4.15.0-43-generic.
[ 4.598980] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name 0x63/0x8b 0x18f/0x285 memory+ 0x364/0x4c0 pages_slowpath+ 0xda2/0xe90 extend+ 0xda/0x160 pages_nodemask+ 0x265/0x280 interleave+ 0x17/0x80 current+ 0xc8/0xe0 cache_alloc+ 0x86/0x90 get_page+ 0x88/0x2c0 page_write_ begin+0x23/ 0x40 write_begin+ 0x29/0x1b0 perform_ write+0xba/ 0x1b0 file_write_ iter+0x1a6/ 0x1f0 setup+0x99/ 0x99 file_write_ iter+0xf1/ 0x1d0 write+0xe5/ 0x140 0x29/0x40 0xb8/0x1b0 ow+0x2d/ 0xd0 setup+0x99/ 0x99 0x2b/0x3c 0x30/0x8a 0x27e/0x322 0x3c/0x3c 0x322/0x322 setup+0x99/ 0x99 to_rootfs+ 0x168/0x2bb setup+0x99/ 0x99 to_rootfs+ 0x2bb/0x2bb rootfs+ 0x61/0x10f initcall+ 0x55/0x1ac init_freeable+ 0x19e/0x238 init+0xe/ 0x110 fork+0x35/ 0x40
[ 4.601946] Kernel panic - not syncing: Out of memory and no killable processes...
[ 4.601946]
[ 4.605054] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.15.0-43-generic #46~16.04.1-Ubuntu
[ 4.605943] Hardware name: HP ProLiant BL460c Gen9, BIOS I36 10/17/2018
[ 4.605943] Call Trace:
[ 4.605943] dump_stack+
[ 4.605943] panic+0xe4/0x244
[ 4.60header+
[ 4.605943] out_of_
[ 4.605943] __alloc_
[ 4.605943] ? radix_tree_
[ 4.605943] __alloc_
[ 4.605943] alloc_page_
[ 4.605943] alloc_pages_
[ 4.605943] __page_
[ 4.605943] pagecache_
[ 4.605943] grab_cache_
[ 4.605943] simple_
[ 4.605943] generic_
[ 4.605943] __generic_
[ 4.605943] ? md_run_
[ 4.605943] generic_
[ 4.605943] new_sync_
[ 4.605943] __vfs_write+
[ 4.605943] vfs_write+
[ 4.605943] ? zlib_updatewind
[ 4.605943] ? md_run_
[ 4.605943] SyS_write+0x55/0xc0
[ 4.605943] xwrite+0x2e/0x61
[ 4.605943] do_copy+0x8f/0xbd
[ 4.605943] write_buffer+
[ 4.605943] flush_buffer+
[ 4.605943] __gunzip+
[ 4.605943] ? bunzip2+0x3a05943] ? write_buffer+
[ 4.605943] ? __gunzip+
[ 4.605943] gunzip+0x11/0x13
[ 4.605943] ? md_run_
[ 4.605943] unpack_
[ 4.605943] ? md_run_
[ 4.605943] ? unpack_
[ 4.605943] populate_
[ 4.605943] do_one_
[ 4.605943] kernel_
[ 4.605943] ? rest_init+0xb0/0xb0
[ 4.605943] kernel_
[ 4.605943] ret_from_
[ 4.605943] ---[ end Kernel panic - not syncing: Out of memory and no killable processes...
[ 4.605943]