[Kernel-packages] [Bug 2081877] [NEW] cannot load apparmor profiles: profile doesn't conform to protocol

2024-09-24 Thread Sergio Cazzolato
Public bug reported:

Using kernel 6.1.0-1025-oem (ubuntu noble) I can't install or remove
snaps with --devmode.

This is an example of the error I see

sergio@cachiomachine:~/workspace/snapcore/snapd$ snap install test-snapd-tools 
--devmode
error: cannot perform the following tasks:
- Setup snap "test-snapd-tools" (9) security profiles (cannot setup profiles 
for snap "test-snapd-tools": cannot load apparmor profiles: exit status 185
apparmor_parser output:
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.block".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.cat".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.echo".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.head".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.cmd".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.env".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.sh".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.success".  
Profile doesn't conform to protocol
/usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.fail".  
Profile doesn't conform to protocol
)
sergio@cachiomachine:~/workspace/snapcore/snapd$ snap install test-snapd-tools
test-snapd-tools 1.0 from Test snaps (test-snaps-canonical) installed


I don't see any other error in dmesg or journal logs.

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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2081877

Title:
  cannot load apparmor profiles: profile doesn't conform to protocol

Status in linux package in Ubuntu:
  New

Bug description:
  Using kernel 6.1.0-1025-oem (ubuntu noble) I can't install or remove
  snaps with --devmode.

  This is an example of the error I see

  sergio@cachiomachine:~/workspace/snapcore/snapd$ snap install 
test-snapd-tools --devmode
  error: cannot perform the following tasks:
  - Setup snap "test-snapd-tools" (9) security profiles (cannot setup profiles 
for snap "test-snapd-tools": cannot load apparmor profiles: exit status 185
  apparmor_parser output:
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.block".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.cat".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.echo".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.head".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.cmd".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.env".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.sh".  
Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.success". 
 Profile doesn't conform to protocol
  /usr/sbin/apparmor_parser: Unable to replace "snap.test-snapd-tools.fail".  
Profile doesn't conform to protocol
  )
  sergio@cachiomachine:~/workspace/snapcore/snapd$ snap install test-snapd-tools
  test-snapd-tools 1.0 from Test snaps (test-snaps-canonical) installed


  I don't see any other error in dmesg or journal logs.

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1954545] Re: Cannot boot UC20 with new kernel snaps with 384 MB in VM

2023-06-06 Thread Sergio Cazzolato
the new minimal memory requirements are:
512M for uc20 and uc22
256M for uc16 and uc18

** Changed in: snapd
   Status: New => Fix Released

** Changed in: linux (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: snapd
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1954545

Title:
  Cannot boot UC20 with new kernel snaps with 384 MB in VM

Status in snapd:
  Fix Released
Status in linux package in Ubuntu:
  Fix Released

Bug description:
  We see issues like this in the nested serial boot log 100% of the time
  when running ubuntu-20.04-64:tests/nested/manual/minimal-
  smoke:secboot_disabled:

  3hBdsDxe: loading Boot0002 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x5,0x0)
  BdsDxe: starting Boot0002 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x5,0x0)
  EFI stub: ERROR: Failed to allocate usable memory for kernel.
  efi_relocate_kernel() failed!
  efi_main() failed!

  Full log : https://pastebin.ubuntu.com/p/n4RZWNWMMm/

  Here is another execution: https://pastebin.ubuntu.com/p/7N9bNVMB8X/

  The kernel version is 5.4.0-92-generic

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1954545/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1948040] Re: modprobe.d is not honored on uc20

2023-06-06 Thread Sergio Cazzolato
Hi Dimitri, is that still a thing? should we involve the core team on
that as well?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1948040

Title:
  modprobe.d is not honored on uc20

Status in snapd:
  New
Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu kernels by default ship modprobe.d that excludes many modules
  from loading:

  # Kernel supplied blacklist for linux 5.4.0-89-generic amd64
  # modprobe.d/common.conf
  # LP:1434842 -- disable OSS drivers by default to allow pulseaudio to emulate
  blacklist snd-mixer-oss
  blacklist snd-pcm-oss
  # Autogenerated watchdog blacklist
  blacklist acquirewdt
  blacklist advantechwdt
  blacklist ahc1ec0-wdt
  blacklist alim1535_wdt
  blacklist alim7101_wdt
  blacklist cadence_wdt
  blacklist cpu5wdt
  blacklist da9052_wdt
  blacklist da9055_wdt
  blacklist da9062_wdt
  blacklist da9063_wdt
  blacklist dw_wdt
  blacklist ebc-c384_wdt
  blacklist eurotechwdt
  blacklist f71808e_wdt
  blacklist hpwdt
  blacklist i6300esb
  blacklist iTCO_vendor_support
  blacklist iTCO_wdt
  blacklist ib700wdt
  blacklist ibmasr
  blacklist ie6xx_wdt
  blacklist it8712f_wdt
  blacklist it87_wdt
  blacklist kempld_wdt
  blacklist machzwd
  blacklist max63xx_wdt
  blacklist mei_wdt
  blacklist mena21_wdt
  blacklist menf21bmc_wdt
  blacklist menz69_wdt
  blacklist mlx_wdt
  blacklist ni903x_wdt
  blacklist nic7018_wdt
  blacklist nv_tco
  blacklist of_xilinx_wdt
  blacklist pc87413_wdt
  blacklist pcwd_pci
  blacklist pcwd_usb
  blacklist pretimeout_panic
  blacklist rave-sp-wdt
  blacklist retu_wdt
  blacklist sbc60xxwdt
  blacklist sbc_epx_c3
  blacklist sbc_fitpc2_wdt
  blacklist sc1200wdt
  blacklist sch311x_wdt
  blacklist smsc37b787_wdt
  blacklist softdog
  blacklist sp5100_tco
  blacklist tqmx86_wdt
  blacklist twl4030_wdt
  blacklist via_wdt
  blacklist w83627hf_wdt
  blacklist w83877f_wdt
  blacklist w83977f_wdt
  blacklist wafer5823wdt
  blacklist wdat_wdt
  blacklist wdt_pci
  blacklist wm831x_wdt
  blacklist wm8350_wdt
  blacklist xen_wdt
  blacklist ziirave_wdt

  However kernel snaps do not provide modprobe.d nor they are used by
  default. Is pc-kernel supposed to skip shipping those? Should there be
  modprobe.d in the core20 snap that prevents these known modules from
  loading by default?

  Also I'm not too sure about the watchdog modules exclusion, given that
  systemd can operate watchdogs by default, hence it shouldn't be too
  dangerous to autoenable them?

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1948040/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1945242] Re: Failed to refresh to pi-kernel rev 343 on uc18

2021-09-28 Thread Sergio Cazzolato
** Description changed:

  The refresh to a new kernel snap is failing in uc18 image. Something
  important to remark is that the DTB's for the new kernel were installed,
  but it still failed to complete the refresh to the new kernel
  
  Steps to reproduce
  
  I am using a rpi3 and I create an uc18 arm64 image using the following
  snaps
  
  $ snap list
  core18 2127
  core20 1084
- pi 81  
- pi-kernel  278 
+ pi 81
+ pi-kernel  278
  snapd  12967
  
  Then, once the image is booted, I login and refresh snapd and pi gadget
  
  $ sudo snap refresh snapd --beta
  2021-09-27T20:49:56Z INFO Waiting for automatic snapd restart...
  snapd (beta) 2.52 from Canonical✓ refreshed
  
  $ sudo snap refresh pi --stable
  pi (18-pi/stable) 18-1 from Canonical✓ refreshed
  
  Then I refresh pi-kernel snap
  
  $ sudo snap refresh pi-kernel --stable
  Make current revision for snap "pi-kernel" unavailable

\
  Broadcast message from root@localhost (Mon 2021-09-27 20:55:04 UTC):
  
  But it fails
  
  7Error   today at 20:54 UTC  today at 20:56 UTC  Refresh "pi-kernel"
  snap
+ 
  
  sergio-j-cazzolato@localhost:~$ snap change 7
  Status  Spawn   Ready   Summary
  Donetoday at 20:54 UTC  today at 20:56 UTC  Ensure prerequisites for 
"pi-kernel" are available
  Undone  today at 20:54 UTC  today at 20:56 UTC  Download snap "pi-kernel" 
(343) from channel "18-pi/stable"
  Donetoday at 20:54 UTC  today at 20:56 UTC  Fetch and check assertions 
for snap "pi-kernel" (343)
  Undone  today at 20:54 UTC  today at 20:56 UTC  Mount snap "pi-kernel" (343)
  Undone  today at 20:54 UTC  today at 20:56 UTC  Run pre-refresh hook of 
"pi-kernel" snap if present
  Undone  today at 20:54 UTC  today at 20:56 UTC  Stop snap "pi-kernel" services
  Undone  today at 20:54 UTC  today at 20:56 UTC  Remove aliases for snap 
"pi-kernel"
  Undone  today at 20:54 UTC  today at 20:56 UTC  Make current revision for 
snap "pi-kernel" unavailable
  Donetoday at 20:54 UTC  today at 20:56 UTC  Update assets from kernel 
"pi-kernel" (343)
  Undone  today at 20:54 UTC  today at 20:56 UTC  Copy snap "pi-kernel" data
  Undone  today at 20:54 UTC  today at 20:56 UTC  Setup snap "pi-kernel" (343) 
security profiles
  Undone  today at 20:54 UTC  today at 20:56 UTC  Make snap "pi-kernel" (343) 
available to the system
  Error   today at 20:54 UTC  today at 20:56 UTC  Automatically connect 
eligible plugs and slots of snap "pi-kernel"
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Set automatic aliases for 
snap "pi-kernel"
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Setup snap "pi-kernel" aliases
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Run post-refresh hook of 
"pi-kernel" snap if present
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Start snap "pi-kernel" (343) 
services
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Clean up "pi-kernel" (343) 
install
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Run configure hook of 
"pi-kernel" snap if present
  Holdtoday at 20:54 UTC  today at 20:56 UTC  Run health check of 
"pi-kernel" snap
  Donetoday at 20:54 UTC  today at 20:56 UTC  Handling re-refresh of 
"pi-kernel" as needed
  
  ..
  Make snap "pi-kernel" (343) available to the system
+ 
+ 2021-09-27T20:55:06Z INFO Requested system restart.
+ 
+ ..
+ Automatically connect eligible plugs and slots of snap "pi-kernel"
+ 
+ 2021-09-27T20:55:07Z INFO Waiting for automatic snapd restart...
+ 2021-09-27T20:55:07Z INFO Waiting for automatic snapd restart...
+ 2021-09-27T20:56:21Z ERROR cannot finish pi-kernel installation, there was a 
rollback across reboot

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1945242

Title:
  Failed to refresh to pi-kernel rev 343 on uc18

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  The refresh to a new kernel snap is failing in uc18 image. Something
  important to remark is that the DTB's for the new kernel were
  installed, but it still failed to complete the refresh to the new
  kernel

  Steps to reproduce

  I am using a rpi3 and I create an uc18 arm64 image using the following
  snaps

  $ snap list
  core18 2127
  core20 1084
  pi 81
  pi-kernel  278
  snapd  12967

  Then, once the image is booted, I login and refresh snapd and pi
  gadget

  $ sudo snap refresh snapd --beta
  2021-09-27T20:49:56Z INFO Waiting for automatic snapd restart...
  snapd (beta) 2.52 from Canonical✓ refreshed

  $ sudo snap refresh pi --stable
  pi (18-pi/stable) 18-1 from Canonical✓ refreshed

  Then I refresh pi-kernel sna

[Kernel-packages] [Bug 1945242] [NEW] Failed to refresh to pi-kernel rev 343 on uc18

2021-09-27 Thread Sergio Cazzolato
Public bug reported:

The refresh to a new kernel snap is failing in uc18 image. Something
important to remark is that the DTB's for the new kernel were installed,
but it still failed to complete the refresh to the new kernel

Steps to reproduce

I am using a rpi3 and I create an uc18 arm64 image using the following
snaps

$ snap list
core18 2127
core20 1084
pi 81  
pi-kernel  278 
snapd  12967

Then, once the image is booted, I login and refresh snapd and pi gadget

$ sudo snap refresh snapd --beta
2021-09-27T20:49:56Z INFO Waiting for automatic snapd restart...
snapd (beta) 2.52 from Canonical✓ refreshed

$ sudo snap refresh pi --stable
pi (18-pi/stable) 18-1 from Canonical✓ refreshed

Then I refresh pi-kernel snap

$ sudo snap refresh pi-kernel --stable
Make current revision for snap "pi-kernel" unavailable  

  \
Broadcast message from root@localhost (Mon 2021-09-27 20:55:04 UTC):

But it fails

7Error   today at 20:54 UTC  today at 20:56 UTC  Refresh "pi-kernel"
snap

sergio-j-cazzolato@localhost:~$ snap change 7
Status  Spawn   Ready   Summary
Donetoday at 20:54 UTC  today at 20:56 UTC  Ensure prerequisites for 
"pi-kernel" are available
Undone  today at 20:54 UTC  today at 20:56 UTC  Download snap "pi-kernel" (343) 
from channel "18-pi/stable"
Donetoday at 20:54 UTC  today at 20:56 UTC  Fetch and check assertions for 
snap "pi-kernel" (343)
Undone  today at 20:54 UTC  today at 20:56 UTC  Mount snap "pi-kernel" (343)
Undone  today at 20:54 UTC  today at 20:56 UTC  Run pre-refresh hook of 
"pi-kernel" snap if present
Undone  today at 20:54 UTC  today at 20:56 UTC  Stop snap "pi-kernel" services
Undone  today at 20:54 UTC  today at 20:56 UTC  Remove aliases for snap 
"pi-kernel"
Undone  today at 20:54 UTC  today at 20:56 UTC  Make current revision for snap 
"pi-kernel" unavailable
Donetoday at 20:54 UTC  today at 20:56 UTC  Update assets from kernel 
"pi-kernel" (343)
Undone  today at 20:54 UTC  today at 20:56 UTC  Copy snap "pi-kernel" data
Undone  today at 20:54 UTC  today at 20:56 UTC  Setup snap "pi-kernel" (343) 
security profiles
Undone  today at 20:54 UTC  today at 20:56 UTC  Make snap "pi-kernel" (343) 
available to the system
Error   today at 20:54 UTC  today at 20:56 UTC  Automatically connect eligible 
plugs and slots of snap "pi-kernel"
Holdtoday at 20:54 UTC  today at 20:56 UTC  Set automatic aliases for snap 
"pi-kernel"
Holdtoday at 20:54 UTC  today at 20:56 UTC  Setup snap "pi-kernel" aliases
Holdtoday at 20:54 UTC  today at 20:56 UTC  Run post-refresh hook of 
"pi-kernel" snap if present
Holdtoday at 20:54 UTC  today at 20:56 UTC  Start snap "pi-kernel" (343) 
services
Holdtoday at 20:54 UTC  today at 20:56 UTC  Clean up "pi-kernel" (343) 
install
Holdtoday at 20:54 UTC  today at 20:56 UTC  Run configure hook of 
"pi-kernel" snap if present
Holdtoday at 20:54 UTC  today at 20:56 UTC  Run health check of "pi-kernel" 
snap
Donetoday at 20:54 UTC  today at 20:56 UTC  Handling re-refresh of 
"pi-kernel" as needed

..
Make snap "pi-kernel" (343) available to the system

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

** Description changed:

  The refresh to a new kernel snap is failing in uc18 image. Something
  important to remark is that the DTB's for the new kernel were installed,
  but it still failed to complete the refresh to the new kernel
  
  Steps to reproduce
  
  I am using a rpi3 and I create an uc18 arm64 image using the following
  snaps
  
  $ snap list
- Name   VersionRevTracking   Publisher   Notes
- core18 20210722   2127   latest/stable  canonical✓  base
- core20 20210702   1084   latest/stable  canonical✓  base
- pi 18-1   81 18-pi/stable   canonical✓  gadget
- pi-kernel  5.3.0-1040.42  27818-pi/stable   canonical✓  kernel
- snapd  2.52   13269  latest/betacanonical✓  snapd
+ core18 2127
+ core20 1084
+ pi 81  
+ pi-kernel  278 
+ snapd  12967
  
  Then, once the image is booted, I login and refresh snapd and pi gadget
  
  $ sudo snap refresh snapd --beta
  2021-09-27T20:49:56Z INFO Waiting for automatic snapd restart...
  snapd (beta) 2.52 from Canonical✓ refreshed
  
  $ sudo snap refresh pi --stable
  pi (18-pi/stable) 18-1 from Canonical✓ refreshed
  
  Then I refresh pi-kernel snap
  
  $ sudo snap refresh pi-kernel --stable
  Make current revision for snap "pi-kernel" unavailable

\
  Broadcast message from root@localhost (Mon 2021-09-27 20:55:04 UTC):
  
  But it fails
  
  7Error   today at 

[Kernel-packages] [Bug 1831490] Re: kernel is out of memory and killed during a kernel sys_write operation

2019-06-06 Thread Sergio Cazzolato
** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

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

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

Status in apparmor package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Confirmed

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(1559585825.240:93): 
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= 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 0286 cfee9e00 c13c12ef c1a1ce6c 
0001 cfee9e30
  [15131.871625]  c11821b6 c1a1b220 f40ba700  024000c2 cfee9e44 
c1a1ce6c cfee9e18
  [15131.871629]  5ed07e43 00010b81  cfee9e60 c11ba86f 024000c2 
 c1a1ce6c
  [15131.871632] Call Trace:
  [15131.871637]  [] dump_stack+0x58/0x79
  [15131.871640]  [] warn_alloc_failed+0xd6/0x110
  [15131.871643]  [] __vmalloc_node_range+0x1ef/0x210
  [15131.871645]  [] __vmalloc_node+0x66/0x70
  [15131.871648]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871650]  [] vmalloc+0x38/0x40
  [15131.871652]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871654]  [] __aa_kvmalloc+0x28/0x60
  [15131.871656]  [] aa_simple_write_to_buffer+0x34/0x90
  [15131.871658]  [] policy_update+0x73/0x230
  [15131.871660]  [] ? security_file_permission+0x3e/0xd0
  [15131.871662]  [] profile_replace+0x98/0xe0
  [15131.871664]  [] ? policy_update+0x230/0x230
  [15131.871666]  [] __vfs_write+0x22/0x50
  [15131.871668]  [] vfs_write+0x8c/0x1b0
  [15131.871669]  [] SyS_write+0x51/0xb0
  [15131.871672]  [] do_fast_syscall_32+0x9f/0x190
  [15131.871675]  [] 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

[Kernel-packages] [Bug 1831490] Dependencies.txt

2019-06-04 Thread Sergio Cazzolato
apport information

** Attachment added: "Dependencies.txt"
   
https://bugs.launchpad.net/bugs/1831490/+attachment/5268848/+files/Dependencies.txt

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

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

Status in apparmor package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Incomplete

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(1559585825.240:93): 
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= 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 0286 cfee9e00 c13c12ef c1a1ce6c 
0001 cfee9e30
  [15131.871625]  c11821b6 c1a1b220 f40ba700  024000c2 cfee9e44 
c1a1ce6c cfee9e18
  [15131.871629]  5ed07e43 00010b81  cfee9e60 c11ba86f 024000c2 
 c1a1ce6c
  [15131.871632] Call Trace:
  [15131.871637]  [] dump_stack+0x58/0x79
  [15131.871640]  [] warn_alloc_failed+0xd6/0x110
  [15131.871643]  [] __vmalloc_node_range+0x1ef/0x210
  [15131.871645]  [] __vmalloc_node+0x66/0x70
  [15131.871648]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871650]  [] vmalloc+0x38/0x40
  [15131.871652]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871654]  [] __aa_kvmalloc+0x28/0x60
  [15131.871656]  [] aa_simple_write_to_buffer+0x34/0x90
  [15131.871658]  [] policy_update+0x73/0x230
  [15131.871660]  [] ? security_file_permission+0x3e/0xd0
  [15131.871662]  [] profile_replace+0x98/0xe0
  [15131.871664]  [] ? policy_update+0x230/0x230
  [15131.871666]  [] __vfs_write+0x22/0x50
  [15131.871668]  [] vfs_write+0x8c/0x1b0
  [15131.871669]  [] SyS_write+0x51/0xb0
  [15131.871672]  [] do_fast_syscall_32+0x9f/0x190
  [15131.871675]  [] 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) 11

[Kernel-packages] [Bug 1831490] Re: kernel is out of memory and killed during a kernel sys_write operation

2019-06-04 Thread Sergio Cazzolato
As the error is happening in ubuntu core 16 on i386, I couldn't install
the apport snap due to is is not available for this arch (just for
amd64). So I installed classic and generated the report from there, but
I am not sure this information is the one you want.

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

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

Status in apparmor package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Incomplete

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(1559585825.240:93): 
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= 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 0286 cfee9e00 c13c12ef c1a1ce6c 
0001 cfee9e30
  [15131.871625]  c11821b6 c1a1b220 f40ba700  024000c2 cfee9e44 
c1a1ce6c cfee9e18
  [15131.871629]  5ed07e43 00010b81  cfee9e60 c11ba86f 024000c2 
 c1a1ce6c
  [15131.871632] Call Trace:
  [15131.871637]  [] dump_stack+0x58/0x79
  [15131.871640]  [] warn_alloc_failed+0xd6/0x110
  [15131.871643]  [] __vmalloc_node_range+0x1ef/0x210
  [15131.871645]  [] __vmalloc_node+0x66/0x70
  [15131.871648]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871650]  [] vmalloc+0x38/0x40
  [15131.871652]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871654]  [] __aa_kvmalloc+0x28/0x60
  [15131.871656]  [] aa_simple_write_to_buffer+0x34/0x90
  [15131.871658]  [] policy_update+0x73/0x230
  [15131.871660]  [] ? security_file_permission+0x3e/0xd0
  [15131.871662]  [] profile_replace+0x98/0xe0
  [15131.871664]  [] ? policy_update+0x230/0x230
  [15131.871666]  [] __vfs_write+0x22/0x50
  [15131.871668]  [] vfs_write+0x8c/0x1b0
  [15131.871669]  [] SyS_write+0x51/0xb0
  [15131.871672]  [] do_fast_syscall_32+0x9f/0x190
  [15131.871675]  [] 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*1024

[Kernel-packages] [Bug 1831490] ProcEnviron.txt

2019-06-04 Thread Sergio Cazzolato
apport information

** Attachment added: "ProcEnviron.txt"
   
https://bugs.launchpad.net/bugs/1831490/+attachment/5268850/+files/ProcEnviron.txt

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

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

Status in apparmor package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Incomplete

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(1559585825.240:93): 
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= 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 0286 cfee9e00 c13c12ef c1a1ce6c 
0001 cfee9e30
  [15131.871625]  c11821b6 c1a1b220 f40ba700  024000c2 cfee9e44 
c1a1ce6c cfee9e18
  [15131.871629]  5ed07e43 00010b81  cfee9e60 c11ba86f 024000c2 
 c1a1ce6c
  [15131.871632] Call Trace:
  [15131.871637]  [] dump_stack+0x58/0x79
  [15131.871640]  [] warn_alloc_failed+0xd6/0x110
  [15131.871643]  [] __vmalloc_node_range+0x1ef/0x210
  [15131.871645]  [] __vmalloc_node+0x66/0x70
  [15131.871648]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871650]  [] vmalloc+0x38/0x40
  [15131.871652]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871654]  [] __aa_kvmalloc+0x28/0x60
  [15131.871656]  [] aa_simple_write_to_buffer+0x34/0x90
  [15131.871658]  [] policy_update+0x73/0x230
  [15131.871660]  [] ? security_file_permission+0x3e/0xd0
  [15131.871662]  [] profile_replace+0x98/0xe0
  [15131.871664]  [] ? policy_update+0x230/0x230
  [15131.871666]  [] __vfs_write+0x22/0x50
  [15131.871668]  [] vfs_write+0x8c/0x1b0
  [15131.871669]  [] SyS_write+0x51/0xb0
  [15131.871672]  [] do_fast_syscall_32+0x9f/0x190
  [15131.871675]  [] 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*

[Kernel-packages] [Bug 1831490] ProcCpuinfoMinimal.txt

2019-06-04 Thread Sergio Cazzolato
apport information

** Attachment added: "ProcCpuinfoMinimal.txt"
   
https://bugs.launchpad.net/bugs/1831490/+attachment/5268849/+files/ProcCpuinfoMinimal.txt

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

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

Status in apparmor package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Incomplete

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(1559585825.240:93): 
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= 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 0286 cfee9e00 c13c12ef c1a1ce6c 
0001 cfee9e30
  [15131.871625]  c11821b6 c1a1b220 f40ba700  024000c2 cfee9e44 
c1a1ce6c cfee9e18
  [15131.871629]  5ed07e43 00010b81  cfee9e60 c11ba86f 024000c2 
 c1a1ce6c
  [15131.871632] Call Trace:
  [15131.871637]  [] dump_stack+0x58/0x79
  [15131.871640]  [] warn_alloc_failed+0xd6/0x110
  [15131.871643]  [] __vmalloc_node_range+0x1ef/0x210
  [15131.871645]  [] __vmalloc_node+0x66/0x70
  [15131.871648]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871650]  [] vmalloc+0x38/0x40
  [15131.871652]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871654]  [] __aa_kvmalloc+0x28/0x60
  [15131.871656]  [] aa_simple_write_to_buffer+0x34/0x90
  [15131.871658]  [] policy_update+0x73/0x230
  [15131.871660]  [] ? security_file_permission+0x3e/0xd0
  [15131.871662]  [] profile_replace+0x98/0xe0
  [15131.871664]  [] ? policy_update+0x230/0x230
  [15131.871666]  [] __vfs_write+0x22/0x50
  [15131.871668]  [] vfs_write+0x8c/0x1b0
  [15131.871669]  [] SyS_write+0x51/0xb0
  [15131.871672]  [] do_fast_syscall_32+0x9f/0x190
  [15131.871675]  [] 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*

[Kernel-packages] [Bug 1831490] Re: kernel is out of memory and killed during a kernel sys_write operation

2019-06-04 Thread Sergio Cazzolato
apport information

** Tags added: apport-collected uec-images

** Description changed:

  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:93): 
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= 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 0286 cfee9e00 c13c12ef c1a1ce6c 
0001 cfee9e30
  [15131.871625]  c11821b6 c1a1b220 f40ba700  024000c2 cfee9e44 
c1a1ce6c cfee9e18
  [15131.871629]  5ed07e43 00010b81  cfee9e60 c11ba86f 024000c2 
 c1a1ce6c
  [15131.871632] Call Trace:
  [15131.871637]  [] dump_stack+0x58/0x79
  [15131.871640]  [] warn_alloc_failed+0xd6/0x110
  [15131.871643]  [] __vmalloc_node_range+0x1ef/0x210
  [15131.871645]  [] __vmalloc_node+0x66/0x70
  [15131.871648]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871650]  [] vmalloc+0x38/0x40
  [15131.871652]  [] ? __aa_kvmalloc+0x28/0x60
  [15131.871654]  [] __aa_kvmalloc+0x28/0x60
  [15131.871656]  [] aa_simple_write_to_buffer+0x34/0x90
  [15131.871658]  [] policy_update+0x73/0x230
  [15131.871660]  [] ? security_file_permission+0x3e/0xd0
  [15131.871662]  [] profile_replace+0x98/0xe0
  [15131.871664]  [] ? policy_update+0x230/0x230
  [15131.871666]  [] __vfs_write+0x22/0x50
  [15131.871668]  [] vfs_write+0x8c/0x1b0
  [15131.871669]  [] SyS_write+0x51/0xb0
  [15131.871672]  [] do_fast_syscall_32+0x9f/0x190
  [15131.871675]  [] 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.