kernel is out of memory and killed during a kernel sys_write operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
This error is being reproduced on i386 arch when using the pc-kernel snap from beta or candidate.
> sudo snap install test-snapd-tools
> dmesg
[15131.806107] audit: type=1400 audit(155958582
[15131.871610] vmap allocation for size 73728 failed: use vmalloc=<size> to increase size.
[15131.871614] vmalloc: allocation failure: 68481 bytes
[15131.871616] apparmor_parser: page allocation failure: order:0, mode:0x24000c2
[15131.871619] CPU: 0 PID: 18242 Comm: apparmor_parser Not tainted 4.4.0-150-generic #176-Ubuntu
[15131.871620] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014
[15131.871622] c1b15967 5ed07e43 00000286 cfee9e00 c13c12ef c1a1ce6c 00000001 cfee9e30
[15131.871625] c11821b6 c1a1b220 f40ba700 00000000 024000c2 cfee9e44 c1a1ce6c cfee9e18
[15131.871629] 5ed07e43 00010b81 00000000 cfee9e60 c11ba86f 024000c2 00000000 c1a1ce6c
[15131.871632] Call Trace:
[15131.871637] [<c13c12ef>] dump_stack+
[15131.871640] [<c11821b6>] warn_alloc_
[15131.871643] [<c11ba86f>] __vmalloc_
[15131.871645] [<c11ba8f6>] __vmalloc_
[15131.871648] [<c134f978>] ? __aa_kvmalloc+
[15131.871650] [<c11ba978>] vmalloc+0x38/0x40
[15131.871652] [<c134f978>] ? __aa_kvmalloc+
[15131.871654] [<c134f978>] __aa_kvmalloc+
[15131.871656] [<c134a7f4>] aa_simple_
[15131.871658] [<c134bf93>] policy_
[15131.871660] [<c1314dce>] ? security_
[15131.871662] [<c134c1e8>] profile_
[15131.871664] [<c134c150>] ? policy_
[15131.871666] [<c11ec782>] __vfs_write+
[15131.871668] [<c11eceac>] vfs_write+
[15131.871669] [<c11ed8a1>] SyS_write+0x51/0xb0
[15131.871672] [<c10038df>] do_fast_
[15131.871675] [<c17e80b0>] sysenter_
[15131.871676] Mem-Info:
[15131.871679] active_anon:16802 inactive_anon:2068 isolated_anon:0
[15131.871685] DMA free:8848kB min:788kB low:984kB high:1180kB active_anon:636kB inactive_anon:0kB active_file:2720kB inactive_file:800kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15992kB managed:15916kB mlocked:0kB dirty:0kB writeback:0kB mapped:472kB shmem:308kB slab_reclaimabl
[15131.871686] lowmem_reserve[]: 0 834 1942 1942
[15131.871692] Normal free:364440kB min:42432kB low:53040kB high:63648kB active_anon:30164kB inactive_
[15131.871693] lowmem_reserve[]: 0 0 8863 8863
[15131.871698] HighMem free:784236kB min:512kB low:14600kB high:28688kB active_anon:36408kB inactive_
[15131.871699] lowmem_reserve[]: 0 0 0 0
[15131.871701] DMA: 12*4kB (UME) 10*8kB (UME) 7*16kB (ME) 5*32kB (UM) 2*64kB (U) 3*128kB (UM) 3*256kB (UM) 4*512kB (UME) 3*1024kB (ME) 1*2048kB (M) 0*4096kB = 8848kB
[15131.871711] Normal: 87*4kB (UME) 106*8kB (UME) 168*16kB (UME) 195*32kB (UME) 135*64kB (UME) 161*128kB (ME) 120*256kB (ME) 61*512kB (UME) 25*1024kB (ME) 6*2048kB (M) 55*4096kB (M) = 364492kB
[15131.871720] HighMem: 131*4kB (UM) 835*8kB (UM) 302*16kB (UM) 119*32kB (UM) 95*64kB (UM) 50*128kB (UM) 67*256kB (UM) 55*512kB (UM) 52*1024kB (M) 23*2048kB (UM) 149*4096kB (M) = 784292kB
[15131.871729] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_
[15131.871730] 115450 total pagecache pages
[15131.871731] 0 pages in swap cache
[15131.871733] Swap cache stats: add 0, delete 0, find 0/0
[15131.871734] Free swap = 0kB
[15131.871734] Total swap = 0kB
[15131.871735] 511870 pages RAM
[15131.871736] 283618 pages HighMem/MovableOnly
[15131.871737] 8662 pages reserved
[15131.871738] 0 pages cma reserved
This the memory after the error:
MemTotal: 2012832 kB
MemFree: 1193308 kB
MemAvailable: 1439592 kB
Buffers: 86108 kB
Cached: 374348 kB
SwapCached: 0 kB
Active: 373408 kB
Inactive: 107024 kB
Active(anon): 36500 kB
Inactive(anon): 6608 kB
Active(file): 336908 kB
Inactive(file): 100416 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 1134472 kB
HighFree: 794836 kB
LowTotal: 878360 kB
LowFree: 398472 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 36 kB
Writeback: 0 kB
AnonPages: 19992 kB
Mapped: 25636 kB
Shmem: 23140 kB
Slab: 84460 kB
SReclaimable: 28892 kB
SUnreclaim: 55568 kB
KernelStack: 936 kB
PageTables: 668 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1006416 kB
Committed_AS: 249728 kB
VmallocTotal: 122880 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
AnonHugePages: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 258040 kB
DirectMap2M: 655360 kB
---
ApparmorStatusO
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: i386
DistroRelease: Ubuntu 16.04
KernLog:
NonfreeKernelMo
Package: linux
PackageArchitec
ProcKernelCmdline: BOOT_IMAGE=
ProcVersionSign
PstreeP: Error: [Errno 2] No such file or directory
Syslog:
Tags: xenial uec-images
Uname: Linux 4.4.0-150-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
_MarkForUpload: True
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Can you run apport-collect 1831490 on this machine to collect additional logs and data?
Thanks