Jammy fix is attached.

Tested locally after downloading a jammy image and then I installed
aws-6.2 kernel:

$ autopkgtest initramfs-tools -- qemu autopkgtest-jammy-amd64.img
It uses the package in updates, therefore this fails:

Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... [   16.508817] mv invoked oom-killer: 
gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COM0
[   16.509481] CPU: 0 PID: 162 Comm: mv Not tainted 6.2.0-24-generic #24-Ubuntu
[   16.509891] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.16.0-debian-1.16.0-5 04/01/2014
[   16.510640] Call Trace:
[   16.511260]  <TASK>
[   16.511555]  dump_stack_lvl+0x48/0x70
[   16.512040]  dump_stack+0x10/0x20
[   16.512238]  dump_header+0x50/0x290
[   16.512436]  oom_kill_process+0x10d/0x1c0
[   16.512679]  out_of_memory+0x101/0x370
[   16.512904]  __alloc_pages_may_oom+0x112/0x1e0
[   16.513159]  __alloc_pages_slowpath.constprop.0+0x4c7/0xa20
[   16.513545]  __alloc_pages+0x31d/0x350
[   16.513867]  __folio_alloc+0x1d/0x60
[   16.514150]  ? policy_node+0x69/0x80
[   16.514378]  vma_alloc_folio+0x9f/0x3d0
[   16.514749]  shmem_alloc_folio+0x7c/0xd0
[   16.515089]  shmem_alloc_and_acct_folio+0x77/0x1c0
[   16.515362]  shmem_get_folio_gfp+0x311/0x7a0
[   16.515640]  ? touch_atime+0x44/0x1c0
[   16.515947]  shmem_write_begin+0x68/0x140
[   16.516260]  generic_perform_write+0xd0/0x220
[   16.516641]  __generic_file_write_iter+0xe8/0x1a0
[   16.516985]  ? apparmor_file_permission+0x85/0x1b0
[   16.517398]  generic_file_write_iter+0x70/0xf0
[   16.517723]  vfs_write+0x251/0x410
[   16.517998]  ksys_write+0x73/0x100
[   16.518240]  __x64_sys_write+0x19/0x30
[   16.518487]  do_syscall_64+0x5b/0x90
[   16.518780]  ? do_syscall_64+0x67/0x90
[   16.519059]  ? exit_to_user_mode_prepare+0x30/0xb0
[   16.519397]  ? syscall_exit_to_user_mode+0x29/0x50
[   16.519748]  ? do_syscall_64+0x67/0x90
[   16.520049]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   16.520575] RIP: 0033:0x7fb923f309e4
[   16.521240] Code: 15 39 a4 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 
0f 1f 00 f3 0f 1e fa 80 3d fd 2b 0f 00 00 74 13 8
[   16.522170] RSP: 002b:00007ffc2527fff8 EFLAGS: 00000202 ORIG_RAX: 
0000000000000001
[   16.522674] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb923f309e4
[   16.523104] RDX: 0000000000010000 RSI: 00007fb923dd3000 RDI: 000000000000000b
[   16.523545] RBP: 0000000000010000 R08: 00000000ffffffff R09: 0000000000000000
[   16.524004] R10: 0000000000000022 R11: 0000000000000202 R12: 000000000000000b
[   16.524433] R13: 00007fb923dd3000 R14: 0000000000000001 R15: 0000000000010000
[   16.525104]  </TASK>
[   16.525688] Mem-Info:
[   16.526175] active_anon:6 inactive_anon:28818 isolated_anon:0
[   16.526175]  active_file:61 inactive_file:40 isolated_file:0
[   16.526175]  unevictable:72423 dirty:3 writeback:0
[   16.526175]  slab_reclaimable:4768 slab_unreclaimable:4347
[   16.526175]  mapped:869 shmem:28384 pagetables:39
[   16.526175]  sec_pagetables:0 bounce:0
[   16.526175]  kernel_misc_reclaimable:0
[   16.526175]  free:1154 free_pcp:0 free_cma:0
[   16.528299] Node 0 active_anon:24kB inactive_anon:115272kB active_file:244kB 
inactive_file:160kB unevictable:289692kB isolao
[   16.530339] Node 0 DMA free:1492kB boost:0kB min:100kB low:124kB high:148kB 
reserved_highatomic:0KB active_anon:0kB inactivB
[   16.531975] lowmem_reserve[]: 0 349 349 349 349
[   16.532412] Node 0 DMA32 free:3124kB boost:2048kB min:4388kB low:4972kB 
high:5556kB reserved_highatomic:0KB active_anon:24kB
[   16.534130] lowmem_reserve[]: 0 0 0 0 0
[   16.534655] Node 0 DMA: 0*4kB 3*8kB (UM) 0*16kB 0*32kB 1*64kB (M) 1*128kB 
(M) 1*256kB (U) 2*512kB (UM) 0*1024kB 0*2048kB 0*B
[   16.535894] Node 0 DMA32: 103*4kB (UME) 13*8kB (UE) 25*16kB (UME) 9*32kB 
(UM) 4*64kB (UM) 1*128kB (U) 2*256kB (U) 2*512kB (B
[   16.537081] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 
hugepages_size=2048kB
[   16.537717] 100913 total pagecache pages
[   16.538011] 0 pages in swap cache
[   16.538234] Free swap  = 0kB
[   16.538456] Total swap = 0kB
[   16.538810] 130942 pages RAM
[   16.539197] 0 pages HighMem/MovableOnly
[   16.539423] 15971 pages reserved
[   16.539638] 0 pages hwpoisoned
[   16.539963] Tasks state (memory values in pages):
[   16.540267] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents 
oom_score_adj name
[   16.541167] [     90]     0    90     2918      940    61440        0        
     0 systemd-udevd
[   16.541829] [    159]     0   159      729      480    36864        0        
     0 copymods
[   16.542390] [    162]     0   162      808      416    40960        0        
     0 mv
[   16.542829] 
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=system0
[   16.544887] Out of memory: Killed process 90 (systemd-udevd) 
total-vm:11672kB, anon-rss:1072kB, file-rss:2688kB, shmem-rss:0
[   16.606543] mv invoked oom-killer: 
gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[   16.607127] CPU: 0 PID: 162 Comm: mv Not tainted 6.2.0-24-generic #24-Ubuntu
[   16.607432] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.16.0-debian-1.16.0-5 04/01/2014
[   16.607799] Call Trace:
[   16.607929]  <TASK>
[   16.608115]  dump_stack_lvl+0x48/0x70
[   16.608383]  dump_stack+0x10/0x20
[   16.608618]  dump_header+0x50/0x290
[   16.608924]  oom_kill_process+0x10d/0x1c0
[   16.609189]  out_of_memory+0x101/0x370
[   16.609484]  __alloc_pages_may_oom+0x112/0x1e0
[   16.609801]  __alloc_pages_slowpath.constprop.0+0x4c7/0xa20
[   16.610126]  __alloc_pages+0x31d/0x350
[   16.610346]  __folio_alloc+0x1d/0x60
[   16.610516]  ? policy_node+0x69/0x80
[   16.610740]  vma_alloc_folio+0x9f/0x3d0
[   16.611108]  shmem_alloc_folio+0x7c/0xd0
[   16.611461]  shmem_alloc_and_acct_folio+0x77/0x1c0
[   16.611740]  shmem_get_folio_gfp+0x311/0x7a0
[   16.612086]  ? filemap_get_read_batch+0x149/0x2c0
[   16.612435]  shmem_write_begin+0x68/0x140
[   16.612757]  generic_perform_write+0xd0/0x220
[   16.613000]  __generic_file_write_iter+0xe8/0x1a0
[   16.613254]  ? apparmor_file_permission+0x85/0x1b0
[   16.613589]  generic_file_write_iter+0x70/0xf0
[   16.613923]  vfs_write+0x251/0x410
[   16.614151]  ksys_write+0x73/0x100
[   16.614314]  __x64_sys_write+0x19/0x30
[   16.614516]  do_syscall_64+0x5b/0x90
[   16.614776]  ? ksys_read+0x73/0x100
[   16.614945]  ? exit_to_user_mode_prepare+0x30/0xb0
[   16.615195]  ? syscall_exit_to_user_mode+0x29/0x50
[   16.615346]  ? do_syscall_64+0x67/0x90
[   16.615554]  ? do_syscall_64+0x67/0x90
[   16.615753]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   16.616033] RIP: 0033:0x7fb923f309e4
[   16.616359] Code: 15 39 a4 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 
0f 1f 00 f3 0f 1e fa 80 3d fd 2b 0f 00 00 74 13 8
[   16.617479] RSP: 002b:00007ffc252801a8 EFLAGS: 00000202 ORIG_RAX: 
0000000000000001
[   16.617944] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb923f309e4
[   16.618243] RDX: 0000000000010000 RSI: 00007fb923ddc000 RDI: 000000000000000a
[   16.618635] RBP: 0000000000010000 R08: 00000000ffffffff R09: 0000000000000000
[   16.619054] R10: 0000000000000022 R11: 0000000000000202 R12: 000000000000000a
[   16.619492] R13: 00007fb923ddc000 R14: 0000000000000001 R15: 0000000000010000
[   16.620041]  </TASK>
[   16.620330] Mem-Info:
[   16.620466] active_anon:6 inactive_anon:29539 isolated_anon:0
[   16.620466]  active_file:13 inactive_file:7 isolated_file:0
[   16.620466]  unevictable:72423 dirty:3 writeback:0
[   16.620466]  slab_reclaimable:4314 slab_unreclaimable:4326
[   16.620466]  mapped:512 shmem:29378 pagetables:32
[   16.620466]  sec_pagetables:0 bounce:0
[   16.620466]  kernel_misc_reclaimable:0
[   16.620466]  free:946 free_pcp:58 free_cma:0
[   16.622229] Node 0 active_anon:24kB inactive_anon:118156kB active_file:52kB 
inactive_file:28kB unevictable:289692kB isolates
[   16.623712] Node 0 DMA free:1492kB boost:0kB min:100kB low:124kB high:148kB 
reserved_highatomic:0KB active_anon:0kB inactivB
[   16.624852] lowmem_reserve[]: 0 349 349 349 349
[   16.625119] Node 0 DMA32 free:2292kB boost:0kB min:2340kB low:2924kB 
high:3508kB reserved_highatomic:0KB active_anon:24kB iB
[   16.626332] lowmem_reserve[]: 0 0 0 0 0
[   16.626654] Node 0 DMA: 0*4kB 3*8kB (UM) 0*16kB 0*32kB 1*64kB (M) 1*128kB 
(M) 1*256kB (U) 2*512kB (UM) 0*1024kB 0*2048kB 0*B
[   16.627503] Node 0 DMA32: 121*4kB (UE) 38*8kB (UE) 32*16kB (UME) 9*32kB (UE) 
5*64kB (UME) 1*128kB (M) 1*256kB (E) 0*512kB 0B
[   16.628158] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 
hugepages_size=2048kB
[   16.628525] 101816 total pagecache pages
[   16.628841] 0 pages in swap cache
[   16.629046] Free swap  = 0kB
[   16.629235] Total swap = 0kB
[   16.629406] 130942 pages RAM
[   16.629579] 0 pages HighMem/MovableOnly
[   16.629805] 15971 pages reserved
[   16.629974] 0 pages hwpoisoned
[   16.630137] Tasks state (memory values in pages):
[   16.630337] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents 
oom_score_adj name
[   16.630705] [    159]     0   159      729      480    36864        0        
     0 copymods
[   16.631348] [    162]     0   162      799      416    40960        0        
     0 mv
[   16.631778] 
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=copymo0
[   16.632564] Out of memory: Killed process 159 (copymods) total-vm:2916kB, 
anon-rss:128kB, file-rss:1792kB, shmem-rss:0kB, U0
Killed
[   16.672897] init invoked oom-killer: 
gfp_mask=0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), order=1, oom_score_adj=0
[   16.673326] CPU: 0 PID: 1 Comm: init Not tainted 6.2.0-24-generic #24-Ubuntu
[   16.673590] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.16.0-debian-1.16.0-5 04/01/2014
[   16.674114] Call Trace:
[   16.674291]  <TASK>
[   16.674448]  dump_stack_lvl+0x48/0x70
[   16.674781]  dump_stack+0x10/0x20
[   16.675226]  dump_header+0x50/0x290
[   16.675527]  oom_kill_process+0x10d/0x1c0
[   16.675780]  out_of_memory+0x101/0x370
[   16.676003]  __alloc_pages_may_oom+0x112/0x1e0
[   16.676343]  __alloc_pages_slowpath.constprop.0+0x4c7/0xa20
[   16.676700]  __alloc_pages+0x31d/0x350
[   16.677042]  alloc_pages+0x90/0x1a0
[   16.677246]  __get_free_pages+0x11/0x50
[   16.677431]  pgd_alloc+0x20/0xc0
[   16.677633]  mm_init+0x18a/0x390
[   16.677830]  dup_mm.constprop.0+0x51/0x120
[   16.678113]  copy_process+0xae3/0x1570
[   16.678262]  ? strncpy_from_user+0x44/0x160
[   16.678487]  kernel_clone+0xbd/0x440
[   16.678659]  ? vfs_fstatat+0x63/0x80
[   16.678882]  __do_sys_clone+0x76/0xb0
[   16.679180]  __x64_sys_clone+0x25/0x40
[   16.679383]  do_syscall_64+0x5b/0x90
[   16.679613]  ? handle_mm_fault+0x119/0x330
[   16.679857]  ? do_user_addr_fault+0x1e8/0x720
[   16.680084]  ? exit_to_user_mode_prepare+0x30/0xb0
[   16.680320]  ? irqentry_exit_to_user_mode+0x9/0x20
[   16.680576]  ? irqentry_exit+0x43/0x50
[   16.680833]  ? exc_page_fault+0x91/0x1b0
[   16.681071]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   16.681313] RIP: 0033:0x7ff5dadaae07
[   16.681545] Code: 00 66 90 f3 0f 1e fa 64 48 8b 04 25 10 00 00 00 45 31 c0 
31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 0
[   16.682601] RSP: 002b:00007ffc83af7918 EFLAGS: 00000246 ORIG_RAX: 
0000000000000038
[   16.683015] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff5dadaae07
[   16.683377] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[   16.683735] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   16.684125] R10: 00007ff5dacc6a10 R11: 0000000000000246 R12: 0000000000000001
[   16.684500] R13: 0000556fac6135f0 R14: 0000556fac611798 R15: 0000000000000000
[   16.684816]  </TASK>
[   16.685076] Mem-Info:
[   16.685184] active_anon:6 inactive_anon:29532 isolated_anon:0
[   16.685184]  active_file:14 inactive_file:6 isolated_file:0
[   16.685184]  unevictable:72423 dirty:3 writeback:0
[   16.685184]  slab_reclaimable:4314 slab_unreclaimable:4326
[   16.685184]  mapped:491 shmem:29378 pagetables:25
[   16.685184]  sec_pagetables:0 bounce:0
[   16.685184]  kernel_misc_reclaimable:0
[   16.685184]  free:946 free_pcp:83 free_cma:0
[   16.686519] Node 0 active_anon:24kB inactive_anon:118128kB active_file:56kB 
inactive_file:24kB unevictable:289692kB isolates
[   16.687948] Node 0 DMA free:1492kB boost:0kB min:100kB low:124kB high:148kB 
reserved_highatomic:0KB active_anon:0kB inactivB
[   16.689099] lowmem_reserve[]: 0 349 349 349 349
[   16.689353] Node 0 DMA32 free:2292kB boost:0kB min:2340kB low:2924kB 
high:3508kB reserved_highatomic:0KB active_anon:24kB iB
[   16.690470] lowmem_reserve[]: 0 0 0 0 0
[   16.690701] Node 0 DMA: 0*4kB 3*8kB (UM) 0*16kB 0*32kB 1*64kB (M) 1*128kB 
(M) 1*256kB (U) 2*512kB (UM) 0*1024kB 0*2048kB 0*B
[   16.691366] Node 0 DMA32: 121*4kB (UE) 38*8kB (UE) 32*16kB (UME) 9*32kB (UE) 
5*64kB (UME) 1*128kB (M) 1*256kB (E) 0*512kB 0B
[   16.692005] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 
hugepages_size=2048kB
[   16.692453] 101816 total pagecache pages
[   16.692654] 0 pages in swap cache
[   16.692836] Free swap  = 0kB
[   16.692976] Total swap = 0kB
[   16.693146] 130942 pages RAM
[   16.693308] 0 pages HighMem/MovableOnly
[   16.693474] 15971 pages reserved
[   16.693626] 0 pages hwpoisoned
[   16.693788] Tasks state (memory values in pages):
[   16.694004] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents 
oom_score_adj name
[   16.694385] [    162]     0   162      799      416    40960        0        
     0 mv
[   16.694694] 
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=mv,pid0
[   16.695448] Out of memory: Killed process 162 (mv) total-vm:3196kB, 
anon-rss:256kB, file-rss:1408kB, shmem-rss:0kB, UID:0 p0
[   16.710814] init invoked oom-killer: 
gfp_mask=0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), order=1, oom_score_adj=0
[   16.711623] CPU: 0 PID: 1 Comm: init Not tainted 6.2.0-24-generic #24-Ubuntu
[   16.711929] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.16.0-debian-1.16.0-5 04/01/2014
[   16.712506] Call Trace:
[   16.712649]  <TASK>
[   16.712942]  dump_stack_lvl+0x48/0x70
[   16.713176]  dump_stack+0x10/0x20
[   16.713421]  dump_header+0x50/0x290
[   16.713706]  ? oom_evaluate_task+0x16b/0x1e0
[   16.713992]  out_of_memory+0x2b3/0x370
[   16.714266]  __alloc_pages_may_oom+0x112/0x1e0
[   16.714566]  __alloc_pages_slowpath.constprop.0+0x4c7/0xa20
[   16.714944]  __alloc_pages+0x31d/0x350
[   16.715127]  alloc_pages+0x90/0x1a0
[   16.715311]  __get_free_pages+0x11/0x50
[   16.715532]  pgd_alloc+0x20/0xc0
[   16.715690]  mm_init+0x18a/0x390
[   16.715880]  dup_mm.constprop.0+0x51/0x120
[   16.716179]  copy_process+0xae3/0x1570
[   16.716472]  ? strncpy_from_user+0x44/0x160
[   16.716829]  kernel_clone+0xbd/0x440
[   16.717071]  ? vfs_fstatat+0x63/0x80
[   16.717401]  __do_sys_clone+0x76/0xb0
[   16.717766]  __x64_sys_clone+0x25/0x40
[   16.718066]  do_syscall_64+0x5b/0x90
[   16.718344]  ? handle_mm_fault+0x119/0x330
[   16.718650]  ? do_user_addr_fault+0x1e8/0x720
[   16.718941]  ? exit_to_user_mode_prepare+0x30/0xb0
[   16.719321]  ? irqentry_exit_to_user_mode+0x9/0x20
[   16.719624]  ? irqentry_exit+0x43/0x50
[   16.719914]  ? exc_page_fault+0x91/0x1b0
[   16.720258]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   16.720545] RIP: 0033:0x7ff5dadaae07
[   16.720868] Code: 00 66 90 f3 0f 1e fa 64 48 8b 04 25 10 00 00 00 45 31 c0 
31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 0
[   16.721780] RSP: 002b:00007ffc83af7918 EFLAGS: 00000246 ORIG_RAX: 
0000000000000038
[   16.722251] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff5dadaae07
[   16.722755] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[   16.723066] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   16.723442] R10: 00007ff5dacc6a10 R11: 0000000000000246 R12: 0000000000000001
[   16.723826] R13: 0000556fac6135f0 R14: 0000556fac611798 R15: 0000000000000000
[   16.724322]  </TASK>
[   16.724607] Mem-Info:
[   16.724799] active_anon:6 inactive_anon:29455 isolated_anon:0
[   16.724799]  active_file:14 inactive_file:6 isolated_file:0
[   16.724799]  unevictable:72423 dirty:3 writeback:0
[   16.724799]  slab_reclaimable:4314 slab_unreclaimable:4326
[   16.724799]  mapped:470 shmem:29378 pagetables:18
[   16.724799]  sec_pagetables:0 bounce:0
[   16.724799]  kernel_misc_reclaimable:0
[   16.724799]  free:946 free_pcp:171 free_cma:0
[   16.726668] Node 0 active_anon:24kB inactive_anon:117820kB active_file:56kB 
inactive_file:24kB unevictable:289692kB isolates
[   16.728383] Node 0 DMA free:1492kB boost:0kB min:100kB low:124kB high:148kB 
reserved_highatomic:0KB active_anon:0kB inactivB
[   16.729833] lowmem_reserve[]: 0 349 349 349 349
[   16.730194] Node 0 DMA32 free:2292kB boost:0kB min:2340kB low:2924kB 
high:3508kB reserved_highatomic:0KB active_anon:24kB iB
[   16.731722] lowmem_reserve[]: 0 0 0 0 0
[   16.732018] Node 0 DMA: 0*4kB 3*8kB (UM) 0*16kB 0*32kB 1*64kB (M) 1*128kB 
(M) 1*256kB (U) 2*512kB (UM) 0*1024kB 0*2048kB 0*B
[   16.732869] Node 0 DMA32: 121*4kB (UE) 38*8kB (UE) 32*16kB (UME) 9*32kB (UE) 
5*64kB (UME) 1*128kB (M) 1*256kB (E) 0*512kB 0B
[   16.733882] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 
hugepages_size=2048kB
[   16.734429] 101816 total pagecache pages
[   16.734685] 0 pages in swap cache
[   16.735052] Free swap  = 0kB
[   16.735167] Total swap = 0kB
[   16.735323] 130942 pages RAM
[   16.735532] 0 pages HighMem/MovableOnly
[   16.735740] 15971 pages reserved
[   16.735929] 0 pages hwpoisoned
[   16.736129] Tasks state (memory values in pages):
[   16.736385] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents 
oom_score_adj name
[   16.737014] Out of memory and no killable processes...
[   16.737560] Kernel panic - not syncing: System is deadlocked on memory
[   16.738008] CPU: 0 PID: 1 Comm: init Not tainted 6.2.0-24-generic #24-Ubuntu
[   16.738426] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.16.0-debian-1.16.0-5 04/01/2014
[   16.738990] Call Trace:
[   16.739164]  <TASK>
[   16.739360]  dump_stack_lvl+0x48/0x70
[   16.739613]  dump_stack+0x10/0x20
[   16.739865]  panic+0x37b/0x3c0
[   16.740106]  out_of_memory+0x36c/0x370
[   16.740385]  __alloc_pages_may_oom+0x112/0x1e0
[   16.740792]  __alloc_pages_slowpath.constprop.0+0x4c7/0xa20
[   16.741195]  __alloc_pages+0x31d/0x350
[   16.741487]  alloc_pages+0x90/0x1a0
[   16.741754]  __get_free_pages+0x11/0x50
[   16.742015]  pgd_alloc+0x20/0xc0
[   16.742286]  mm_init+0x18a/0x390
[   16.742513]  dup_mm.constprop.0+0x51/0x120
[   16.742838]  copy_process+0xae3/0x1570
[   16.743194]  ? strncpy_from_user+0x44/0x160
[   16.743569]  kernel_clone+0xbd/0x440
[   16.743852]  ? vfs_fstatat+0x63/0x80
[   16.744238]  __do_sys_clone+0x76/0xb0
[   16.744656]  __x64_sys_clone+0x25/0x40
[   16.744986]  do_syscall_64+0x5b/0x90
[   16.745287]  ? handle_mm_fault+0x119/0x330
[   16.745603]  ? do_user_addr_fault+0x1e8/0x720
[   16.745938]  ? exit_to_user_mode_prepare+0x30/0xb0
[   16.746286]  ? irqentry_exit_to_user_mode+0x9/0x20
[   16.746531]  ? irqentry_exit+0x43/0x50
[   16.746702]  ? exc_page_fault+0x91/0x1b0
[   16.746895]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   16.747134] RIP: 0033:0x7ff5dadaae07
[   16.747312] Code: 00 66 90 f3 0f 1e fa 64 48 8b 04 25 10 00 00 00 45 31 c0 
31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 0
[   16.748307] RSP: 002b:00007ffc83af7918 EFLAGS: 00000246 ORIG_RAX: 
0000000000000038
[   16.748809] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff5dadaae07
[   16.749234] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[   16.749722] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   16.750222] R10: 00007ff5dacc6a10 R11: 0000000000000246 R12: 0000000000000001
[   16.750650] R13: 0000556fac6135f0 R14: 0000556fac611798 R15: 0000000000000000
[   16.751156]  </TASK>
[   16.752081] Kernel Offset: 0x24c00000 from 0xffffffff81000000 (relocation 
range: 0xffffffff80000000-0xffffffffbfffffff)
[   16.752954] ---[ end Kernel panic - not syncing: System is deadlocked on 
memory ]---
qemu-system-x86_64: terminating on signal 15 from pid 7616 (timeout)
autopkgtest [15:13:00]: test net: -----------------------]
autopkgtest [15:13:01]: test net:  - - - - - - - - - - results - - - - - - - - 
- -
net                  FAIL non-zero exit status 124
autopkgtest [15:13:01]: @@@@@@@@@@@@@@@@@@@@ summary
amd64-klibc          PASS
amd64-busybox        PASS
amd64-ata-only       PASS
amd64-virtio-only    PASS
amd64-separate-usr   PASS
amd64-panic-shell    PASS
command1             PASS
net                  FAIL non-zero exit status 124
qemu-system-x86_64: terminating on signal 15 from pid 51204 (/usr/bin/python3)


$ autopkgtest ~/canonical/initramf-tools/initramfs-tools_0.140ubuntu13.3.dsc -- 
qemu autopkgtest-jammy-amd64.img
This is the fix and the results are good:

autopkgtest [15:29:15]: test net: -----------------------]
autopkgtest [15:29:15]: test net:  - - - - - - - - - - results - - - - - - - - 
- -
net                  PASS
autopkgtest [15:29:16]: @@@@@@@@@@@@@@@@@@@@ summary
shellcheck           PASS (superficial)
amd64-klibc          PASS
amd64-busybox        PASS
amd64-ata-only       PASS
amd64-virtio-only    PASS
amd64-separate-usr   PASS
amd64-panic-shell    PASS
command1             PASS
net                  PASS
qemu-system-x86_64: terminating on signal 15 from pid 53313 (/usr/bin/python3)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2027575

Title:
  autopkgtest net is failing on 6.2 kernels with 'System is deadlocked
  on memory'

Status in initramfs-tools package in Ubuntu:
  New
Status in initramfs-tools source package in Jammy:
  New
Status in initramfs-tools source package in Lunar:
  New

Bug description:
  [Impact]
  In debian/tests/run-image we instantiate an image with 512Mb of ram, but 
recent jammy/lunar 6.2 kernels need more than that.

  Example of a test failure:
  
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/i/initramfs-tools/20230619_135049_ab1cb@/log.gz

  'net' test fails with a kernel panic due to out-of-memory.

  [Fix]

  Increase the size to 1Gb.

  [Test Plan]
  1. Download a lunar image:
  $ autopkgtest-buildvm-ubuntu-cloud -v -a amd64 -r lunar
  2. Run autotestpkg tests from initramfs-tools package. The "net" test is the 
one that depends on the image instantiated by 'run-image'. The testcase should 
complete successfully without the kernel panic.
  $ autopkgtest initramfs-tools -- qemu autopkgtest-lunar-amd64.img

  [Where problems could occur]
  The usage of a larger image for the tests could fail if the the test system 
is low on ram size.

  Notes:
  It seems Mantic already uses 1G, so nothing has to be changed there. I also 
tested it locally and I confirm it works as expected there.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2027575/+subscriptions


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

Reply via email to