-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
False
-
-
False
-
None
-
rhel-se-kernel
-
-
Beaker job: https://beaker.engineering.redhat.com/jobs/12089493
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: bz700499-rhel6-removed-p-uid-in-__oom_kill_task :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 12:13:40 ] :: [ LOG ] :: Runnning eval bz700499, with 3600 seconds timeout :: [ 12:13:41 ] :: [ PASS ] :: Command 'gcc -o bz700499 /mnt/tests/repo.usersys.redhat.com/kernel-tests/general/memory/regression/reg-suit/testcase/source/bz700499.c' (Expected 0, got 0) :: [ 12:13:41 ] :: [ PASS ] :: Check memory.limit_in_bytes value (Assert: '10485760' should equal '10485760') :: [ 12:13:41 ] :: [ PASS ] :: Check memory.memsw.limit_in_bytes value (Assert: '0' should equal '0') :: [ 12:13:52 ] :: [ FAIL ] :: rlAssertGrep: failed to find file :: [ 12:13:53 ] :: [ PASS ] :: Command 'cgroup_destroy test memory' (Expected 0, got 0) :: [ 12:13:54 ] :: [ LOG ] :: Command ended itself, I am not killing it. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 15s :: Assertions: 4 good, 1 bad :: RESULT: FAIL (bz700499-rhel6-removed-p-uid-in-__oom_kill_task)
Just the dmesg log file wasn't successfully created but the test passed:
Key observations:
- PID 47759 is present
- Process name "bz700499" is present
- UID:0 is shown
- The format matches modern OOM killer output
[ 1335.406423] bz700499 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0 [ 1335.406440] CPU: 0 PID: 47759 Comm: bz700499 Kdump: loaded Not tainted 5.14.0-570.76.1.el9_6.x86_64 #1 [ 1335.406445] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011 [ 1335.406458] Call Trace: [ 1335.406463] <TASK> [ 1335.406467] dump_stack_lvl+0x34/0x48 [ 1335.406477] dump_header+0x4a/0x213 [ 1335.406481] oom_kill_process.cold+0xb/0x10 [ 1335.406485] out_of_memory+0xef/0x2c0 [ 1335.406492] mem_cgroup_out_of_memory+0x131/0x150 [ 1335.406501] try_charge_memcg+0x742/0x800 [ 1335.406506] ? alloc_pages_mpol+0x93/0x1e0 [ 1335.406514] __mem_cgroup_charge+0x3e/0xb0 [ 1335.406521] do_anonymous_page+0x7d/0x3e0 [ 1335.406529] __handle_mm_fault+0x2fe/0x650 [ 1335.406538] handle_mm_fault+0xe9/0x250 [ 1335.406542] do_user_addr_fault+0x154/0x620 [ 1335.406549] exc_page_fault+0x62/0x150 [ 1335.406557] asm_exc_page_fault+0x22/0x30 [ 1335.406562] RIP: 0033:0x7f4fd156af3a [ 1335.406566] Code: 00 00 b9 ff ff ff ff c4 e2 68 f5 c9 c5 fb 92 c9 62 e1 7f 29 7f 00 c3 66 0f 1f 84 00 00 00 00 00 40 0f b6 c6 48 89 d1 48 89 fa <f3> aa 48 89 d0 c3 48 3b 15 91 d4 08 00 77 e7 62 e1 fe 28 7f 07 62 [ 1335.406568] RSP: 002b:00007ffcef0fd9e8 EFLAGS: 00010206 [ 1335.406572] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000037010 [ 1335.406574] RDX: 00007f4fd09f6010 RSI: 0000000000000001 RDI: 00007f4fd0abf000 [ 1335.406576] RBP: 00007ffcef0fda10 R08: 00007f4fd09f6010 R09: 0000000000000000 [ 1335.406578] R10: 0000000000000022 R11: 0000000000000246 R12: 00007ffcef0fdb28 [ 1335.406580] R13: 0000000000401156 R14: 0000000000403e08 R15: 00007f4fd1678000 [ 1335.406585] </TASK> [ 1335.406603] memory: usage 10240kB, limit 10240kB, failcnt 29 [ 1335.406606] swap: usage 0kB, limit 0kB, failcnt 0 [ 1335.406607] Memory cgroup stats for /test: [ 1335.406648] anon 10395648 [ 1335.406650] file 0 [ 1335.406651] kernel 90112 [ 1335.406652] kernel_stack 0 [ 1335.406653] pagetables 57344 [ 1335.406653] sec_pagetables 0 [ 1335.406654] percpu 64 [ 1335.406655] sock 0 [ 1335.406656] vmalloc 0 [ 1335.406657] shmem 0 [ 1335.406658] zswap 0 [ 1335.406659] zswapped 0 [ 1335.406660] file_mapped 0 [ 1335.406660] file_dirty 0 [ 1335.406661] file_writeback 0 [ 1335.406662] swapcached 0 [ 1335.406663] anon_thp 0 [ 1335.406664] file_thp 0 [ 1335.406665] shmem_thp 0 [ 1335.406666] inactive_anon 0 [ 1335.406667] active_anon 10395648 [ 1335.406667] inactive_file 0 [ 1335.406668] active_file 0 [ 1335.406669] unevictable 0 [ 1335.406670] slab_reclaimable 0 [ 1335.406672] slab_unreclaimable 10512 [ 1335.406672] slab 10512 [ 1335.406673] workingset_refault_anon 0 [ 1335.406674] workingset_refault_file 0 [ 1335.406675] workingset_activate_anon 0 [ 1335.406676] workingset_activate_file 0 [ 1335.406677] workingset_restore_anon 0 [ 1335.406679] workingset_restore_file 0 [ 1335.406680] workingset_nodereclaim 0 [ 1335.406681] pgscan 0 [ 1335.406681] pgsteal 0 [ 1335.406682] pgscan_kswapd 0 [ 1335.406684] pgscan_direct 0 [ 1335.406684] pgscan_khugepaged 0 [ 1335.406685] pgsteal_kswapd 0 [ 1335.406686] pgsteal_direct 0 [ 1335.406687] pgsteal_khugepaged 0 [ 1335.406689] pgfault 2730 [ 1335.406690] pgmajfault 0 [ 1335.406691] pgrefill 0 [ 1335.406692] pgactivate 0 [ 1335.406693] pgdeactivate 0 [ 1335.406694] pglazyfree 0 [ 1335.406695] pglazyfreed 0 [ 1335.406696] zswpin 0 [ 1335.406697] zswpout 0 [ 1335.406698] zswpwb 0 [ 1335.406699] thp_fault_alloc 0 [ 1335.406700] thp_collapse_alloc 0 [ 1335.406702] thp_swpout 0 [ 1335.406702] thp_swpout_fallback 0 [ 1335.406703] Tasks state (memory values in pages): [ 1335.406704] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name [ 1335.406707] [ 47759] 0 47759 3228 2784 69632 0 0 bz700499 [ 1335.406714] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/test,task_memcg=/test,task=bz700499,pid=47759,uid=0 [ 1335.406732] Memory cgroup out of memory: Killed process 47759 (bz700499) total-vm:12912kB, anon-rss:10112kB, file-rss:1024kB, shmem-rss:0kB, UID:0 pgtables:68kB oom_score_adj:0
- links to