Public bug reported:

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(1559585825.240:111193): apparmor="STATUS" 
operation="profile_replace" profile="unconfined" 
name="snap-update-ns.test-snapd-tools" pid=18240 comm="apparmor_parser"
[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+0x58/0x79
[15131.871640]  [<c11821b6>] warn_alloc_failed+0xd6/0x110
[15131.871643]  [<c11ba86f>] __vmalloc_node_range+0x1ef/0x210
[15131.871645]  [<c11ba8f6>] __vmalloc_node+0x66/0x70
[15131.871648]  [<c134f978>] ? __aa_kvmalloc+0x28/0x60
[15131.871650]  [<c11ba978>] vmalloc+0x38/0x40
[15131.871652]  [<c134f978>] ? __aa_kvmalloc+0x28/0x60
[15131.871654]  [<c134f978>] __aa_kvmalloc+0x28/0x60
[15131.871656]  [<c134a7f4>] aa_simple_write_to_buffer+0x34/0x90
[15131.871658]  [<c134bf93>] policy_update+0x73/0x230
[15131.871660]  [<c1314dce>] ? security_file_permission+0x3e/0xd0
[15131.871662]  [<c134c1e8>] profile_replace+0x98/0xe0
[15131.871664]  [<c134c150>] ? policy_update+0x230/0x230
[15131.871666]  [<c11ec782>] __vfs_write+0x22/0x50
[15131.871668]  [<c11eceac>] vfs_write+0x8c/0x1b0
[15131.871669]  [<c11ed8a1>] SyS_write+0x51/0xb0
[15131.871672]  [<c10038df>] do_fast_syscall_32+0x9f/0x190
[15131.871675]  [<c17e80b0>] sysenter_past_esp+0x3d/0x61
[15131.871676] Mem-Info:
[15131.871679] active_anon:16802 inactive_anon:2068 isolated_anon:0
                active_file:84472 inactive_file:25195 isolated_file:0
                unevictable:0 dirty:34 writeback:0 unstable:0
                slab_reclaimable:7222 slab_unreclaimable:14030
                mapped:8431 shmem:5785 pagetables:204 bounce:0
                free:289381 free_pcp:659 free_cma: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_reclaimable:484kB slab_unreclaimable:424kB kernel_stack:8kB pagetables:4kB 
unstable:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB 
writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[15131.871686] lowmem_reserve[]: 0 834 1942 1942
[15131.871692] Normal free:364440kB min:42432kB low:53040kB high:63648kB 
active_anon:30164kB inactive_anon:2776kB active_file:158404kB 
inactive_file:32020kB unevictable:0kB isolated(anon):0kB isolated(file):0kB 
present:897016kB managed:862444kB mlocked:0kB dirty:116kB writeback:0kB 
mapped:11176kB shmem:6332kB slab_reclaimable:28404kB slab_unreclaimable:55696kB 
kernel_stack:1040kB pagetables:348kB unstable:0kB bounce:0kB free_pcp:1336kB 
local_pcp:676kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 
all_unreclaimable? no
[15131.871693] lowmem_reserve[]: 0 0 8863 8863
[15131.871698] HighMem free:784236kB min:512kB low:14600kB high:28688kB 
active_anon:36408kB inactive_anon:5496kB active_file:176764kB 
inactive_file:67960kB unevictable:0kB isolated(anon):0kB isolated(file):0kB 
present:1134472kB managed:1134472kB mlocked:0kB dirty:20kB writeback:0kB 
mapped:22076kB shmem:16500kB slab_reclaimable:0kB slab_unreclaimable:0kB 
kernel_stack:0kB pagetables:464kB unstable:0kB bounce:0kB free_pcp:1300kB 
local_pcp:680kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 
all_unreclaimable? no
[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_size=2048kB
[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

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831490

Title:
  kernel is out of memory and killed during a kernel sys_write operation

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to