Bug 4765 - [Anolis23][x86_64][社区nightly] LTP测试mm下case:oom01测试会导致ssh终端掉线,message日志中有Call Trace oom信息
Summary: [Anolis23][x86_64][社区nightly] LTP测试mm下case:oom01测试会导致ssh终端掉线,message日志中有Call ...
Status: RESOLVED DUPLICATE of bug 4804
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 17:07 UTC by anolislw
Modified: 2023-06-13 21:36 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2023-04-14 17:07:50 UTC
Description of problem:
Anolis23 x86_64 ECS环境下,社区nightly LTP测试case:oom01测试会导致ssh终端掉线,message日志中有Call Trace oom信息,测试环境没有自动被重启。

Version-Release number of selected component (if applicable):
How reproducible:

Steps to Reproduce:
1. git clone https://gitee.com/anolis/ltp.git --branch 20230315
2. export CFLAGS+="-fcommon"
   make autotools
   ./configure 
   make && make install
3. cd /opt/ltp;./runltp -f mm -s oom01

Actual results:
---------- /var/log/meaasges日志信息存在Call Trace  -------------
2023-04-14T16:51:55.456221+08:00 qibo-anolis23-nightly-func-x86-1 LTP: starting oom01
2023-04-14T16:51:56.670121+08:00 qibo-anolis23-nightly-func-x86-1 kernel: gmain invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
2023-04-14T16:51:56.725568+08:00 qibo-anolis23-nightly-func-x86-1 kernel: CPU: 3 PID: 653 Comm: gmain Kdump: loaded Tainted: G            E     5.10.134-78.git.b32738450818.an23.x86_64 #1
2023-04-14T16:51:56.730988+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS 9e9f1cc 04/01/2014
2023-04-14T16:51:56.735971+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Call Trace:
2023-04-14T16:51:56.739352+08:00 qibo-anolis23-nightly-func-x86-1 kernel: dump_stack+0x57/0x6e
2023-04-14T16:51:56.742558+08:00 qibo-anolis23-nightly-func-x86-1 kernel: dump_global_header+0x12/0xe8
2023-04-14T16:51:56.745234+08:00 qibo-anolis23-nightly-func-x86-1 kernel: oom_kill_process.cold+0x1f/0x28
2023-04-14T16:51:56.748752+08:00 qibo-anolis23-nightly-func-x86-1 kernel: out_of_memory+0xf4/0x2e0
2023-04-14T16:51:56.748774+08:00 qibo-anolis23-nightly-func-x86-1 kernel: __alloc_pages_may_oom+0xe3/0x170
2023-04-14T16:51:56.751089+08:00 qibo-anolis23-nightly-func-x86-1 kernel: __alloc_pages_slowpath.constprop.0+0x46b/0x870
2023-04-14T16:51:56.751123+08:00 qibo-anolis23-nightly-func-x86-1 kernel: __alloc_pages_nodemask+0x2ee/0x320
2023-04-14T16:51:56.752261+08:00 qibo-anolis23-nightly-func-x86-1 kernel: pagecache_get_page+0xdd/0x3c0
2023-04-14T16:51:56.754658+08:00 qibo-anolis23-nightly-func-x86-1 kernel: filemap_fault+0x636/0x8a0
2023-04-14T16:51:56.754686+08:00 qibo-anolis23-nightly-func-x86-1 kernel: ? xas_load+0x8/0x80
2023-04-14T16:51:56.762570+08:00 qibo-anolis23-nightly-func-x86-1 kernel: __xfs_filemap_fault+0x163/0x230 [xfs]
2023-04-14T16:51:56.768906+08:00 qibo-anolis23-nightly-func-x86-1 kernel: __do_fault+0x37/0x1e0
2023-04-14T16:51:56.770161+08:00 qibo-anolis23-nightly-func-x86-1 kernel: do_read_fault+0x52/0x370
2023-04-14T16:51:56.770994+08:00 qibo-anolis23-nightly-func-x86-1 kernel: do_fault+0x18f/0x440
2023-04-14T16:51:56.773344+08:00 qibo-anolis23-nightly-func-x86-1 kernel: __handle_mm_fault+0x587/0x7b0
2023-04-14T16:51:56.775920+08:00 qibo-anolis23-nightly-func-x86-1 kernel: handle_mm_fault+0xb8/0x290
2023-04-14T16:51:56.775945+08:00 qibo-anolis23-nightly-func-x86-1 kernel: do_user_addr_fault+0x199/0x3d0
2023-04-14T16:51:56.775961+08:00 qibo-anolis23-nightly-func-x86-1 kernel: exc_page_fault+0x66/0x120
2023-04-14T16:51:56.775973+08:00 qibo-anolis23-nightly-func-x86-1 kernel: ? asm_exc_page_fault+0x8/0x30
2023-04-14T16:51:56.781082+08:00 qibo-anolis23-nightly-func-x86-1 kernel: asm_exc_page_fault+0x1e/0x30
2023-04-14T16:51:56.782330+08:00 qibo-anolis23-nightly-func-x86-1 kernel: RIP: 0033:0x7f4a0f08040a
2023-04-14T16:51:56.782349+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Code: Unable to access opcode bytes at RIP 0x7f4a0f0803e0.
2023-04-14T16:51:56.782364+08:00 qibo-anolis23-nightly-func-x86-1 kernel: RSP: 002b:00007f4a0d97f030 EFLAGS: 00010202
2023-04-14T16:51:56.782375+08:00 qibo-anolis23-nightly-func-x86-1 kernel: RAX: 0000000000000001 RBX: 000055a0eb603530 RCX: 0000000000000001
2023-04-14T16:51:56.783506+08:00 qibo-anolis23-nightly-func-x86-1 kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000055a0eb603530
2023-04-14T16:51:56.784762+08:00 qibo-anolis23-nightly-func-x86-1 kernel: RBP: 000055a0eb5ffd30 R08: 0000000000000000 R09: 0000000000000000
2023-04-14T16:51:56.784777+08:00 qibo-anolis23-nightly-func-x86-1 kernel: R10: 00007ffc7f9d0080 R11: 0000000000771af2 R12: 0000000000000000
2023-04-14T16:51:56.786299+08:00 qibo-anolis23-nightly-func-x86-1 kernel: R13: 0000000000000001 R14: 0000000000000002 R15: 00007f4a0f0840be
2023-04-14T16:51:56.786314+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Mem-Info:
2023-04-14T16:51:56.790170+08:00 qibo-anolis23-nightly-func-x86-1 kernel: active_anon:977 inactive_anon:3884151 isolated_anon:0#012 active_file:37 inactive_file:0 isolated_file:0#012 unevictable:0 dirty:0 writeback:0#012 slab_reclaimable:6604 slab_unreclaimable:10354#012 mapped:1051 shmem:525 pagetables:8762 bounce:0#012 free:32919 free_pcp:29 free_cma:0
2023-04-14T16:51:56.790199+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 active_anon:3908kB inactive_anon:15536604kB active_file:148kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:4204kB dirty:0kB writeback:0kB shmem:2100kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 12910592kB writeback_tmp:0kB kernel_stack:4224kB all_unreclaimable? no
2023-04-14T16:51:56.790215+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 DMA free:13312kB min:64kB low:80kB high:96kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
2023-04-14T16:51:56.790252+08:00 qibo-anolis23-nightly-func-x86-1 kernel: lowmem_reserve[]: 0 2676 15454 15454 15454
2023-04-14T16:51:56.791847+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 DMA32 free:62592kB min:11692kB low:14612kB high:17532kB reserved_highatomic:0KB active_anon:0kB inactive_anon:2675524kB active_file:0kB inactive_file:232kB unevictable:0kB writepending:0kB present:3111616kB managed:2740548kB mlocked:0kB pagetables:4kB bounce:0kB free_pcp:32kB local_pcp:0kB free_cma:0kB
2023-04-14T16:51:56.796797+08:00 qibo-anolis23-nightly-func-x86-1 kernel: lowmem_reserve[]: 0 0 12778 12778 12778
2023-04-14T16:51:56.799140+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 Normal free:55772kB min:55824kB low:69780kB high:83736kB reserved_highatomic:0KB active_anon:3908kB inactive_anon:12861080kB active_file:488kB inactive_file:376kB unevictable:0kB writepending:0kB present:13369344kB managed:13084900kB mlocked:0kB pagetables:35044kB bounce:0kB free_pcp:84kB local_pcp:0kB free_cma:0kB
2023-04-14T16:51:56.801205+08:00 qibo-anolis23-nightly-func-x86-1 kernel: lowmem_reserve[]: 0 0 0 0 0
2023-04-14T16:51:56.801221+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB (U) 2*2048kB (UM) 2*4096kB (M) = 13312kB
2023-04-14T16:51:56.802299+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 DMA32: 35*4kB (UM) 32*8kB (UM) 9*16kB (UM) 6*32kB (UM) 8*64kB (UM) 2*128kB (M) 10*256kB (UM) 15*512kB (UM) 12*1024kB (M) 1*2048kB (U) 9*4096kB (UM) = 62940kB
2023-04-14T16:51:56.804634+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 Normal: 1355*4kB (UME) 735*8kB (UME) 206*16kB (UME) 111*32kB (UME) 93*64kB (UE) 51*128kB (UE) 47*256kB (UME) 15*512kB (UME) 6*1024kB (UM) 0*2048kB 0*4096kB = 56484kB
2023-04-14T16:51:56.804654+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
2023-04-14T16:51:56.807371+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
2023-04-14T16:51:56.807393+08:00 qibo-anolis23-nightly-func-x86-1 kernel: 720 total pagecache pages
2023-04-14T16:51:56.807407+08:00 qibo-anolis23-nightly-func-x86-1 kernel: 0 pages in swap cache
2023-04-14T16:51:56.807653+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Swap cache stats: add 0, delete 0, find 0/0
2023-04-14T16:51:56.807664+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Free swap  = 0kB
2023-04-14T16:51:56.808295+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Total swap = 0kB
2023-04-14T16:51:56.808306+08:00 qibo-anolis23-nightly-func-x86-1 kernel: 4124238 pages RAM
2023-04-14T16:51:56.809341+08:00 qibo-anolis23-nightly-func-x86-1 kernel: 0 pages HighMem/MovableOnly
2023-04-14T16:51:56.809352+08:00 qibo-anolis23-nightly-func-x86-1 kernel: 164036 pages reserved
2023-04-14T16:51:56.815424+08:00 qibo-anolis23-nightly-func-x86-1 kernel: 0 pages hwpoisoned
2023-04-14T16:51:56.815456+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Tasks state (memory values in pages):
2023-04-14T16:51:56.815469+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
2023-04-14T16:51:56.815481+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    462]     0   462    18277      320   172032        0          -250 systemd-journal
2023-04-14T16:51:56.818495+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    475]     0   475     8946     1252    90112        0         -1000 systemd-udevd
2023-04-14T16:51:56.818512+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    583]   193   583     6743     2053    98304        0             0 systemd-resolve
2023-04-14T16:51:56.819291+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    585]     0   585     4008      226    69632        0             0 systemd-userdbd
2023-04-14T16:51:56.819306+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    589]    81   589     2060      179    57344        0          -900 dbus-broker-lau
2023-04-14T16:51:56.822555+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    590]    81   590     1336      210    53248        0          -900 dbus-broker
2023-04-14T16:51:56.823274+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    591]     0   591     4458      115    61440        0             0 assist_daemon
2023-04-14T16:51:56.823287+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    596]   998   596    76713      726    86016        0             0 polkitd
2023-04-14T16:51:56.823305+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    598]     2   598    77544      897   102400        0             0 rngd
2023-04-14T16:51:56.824541+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    599]     0   599   179457      363   942080        0             0 rsyslogd
2023-04-14T16:51:56.828414+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    601]     0   601     5945     1627    86016        0             0 systemd-logind
2023-04-14T16:51:56.831092+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    612]   996   612    21553      200    69632        0             0 chronyd
2023-04-14T16:51:56.831403+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    651]     0   651    81690     1156   143360        0             0 NetworkManager
2023-04-14T16:51:56.832518+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    664]     0   664   346938     3832   208896        0             0 keentuned
2023-04-14T16:51:56.835008+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    685]     0   685     6135      409    77824        0             0 AliYunDunUpdate
2023-04-14T16:51:56.837795+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    734]     0   734     3803      100    73728        0             0 argusagent
2023-04-14T16:51:56.837812+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    736]     0   736   350403     4096   315392        0             0 /usr/local/clou
2023-04-14T16:51:56.838703+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [    980]     0   980    19063      616   225280        0             0 AliYunDun
2023-04-14T16:51:56.838716+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [   1100]     0  1100   203607     1330    81920        0             0 aliyun-service
2023-04-14T16:51:56.838728+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [   1106]     0  1106     3515      313    65536        0         -1000 sshd
2023-04-14T16:51:56.839370+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [   1111]     0  1111     1349      212    57344        0             0 crond
2023-04-14T16:51:56.839387+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [   1192]     0  1192      711       23    45056        0             0 agetty
2023-04-14T16:51:56.840869+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [   1195]     0  1195      617       23    45056        0             0 agetty
2023-04-14T16:51:56.840883+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [ 441438]     0 441438    57964    31009   520192        0             0 AliYunDunMonito
2023-04-14T16:51:56.840896+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [ 449289]     0 449289   179619     4721   131072        0          -100 toneagent
2023-04-14T16:51:56.841139+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224842]     0 1224842     4088      473    69632        0             0 sshd
2023-04-14T16:51:56.841980+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224849]     0 1224849     7785     1326    98304        0           100 systemd
2023-04-14T16:51:56.842567+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224850]     0 1224850    57294     8950   217088        0           100 (sd-pam)
2023-04-14T16:51:56.843870+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224858]     0 1224858     4209      566    69632        0             0 sshd
2023-04-14T16:51:56.844936+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224859]     0 1224859     4080      462    65536        0             0 sshd
2023-04-14T16:51:56.844964+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224862]     0 1224862     1251      328    49152        0             0 bash
2023-04-14T16:51:56.844975+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224883]     0 1224883     4145      520    65536        0             0 sshd
2023-04-14T16:51:56.846079+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1224884]     0 1224884     1790      185    57344        0             0 sftp-server
2023-04-14T16:51:56.846105+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1231409]     0 1231409      618       23    40960        0             0 tail
2023-04-14T16:51:56.846121+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238521]     0 1238521     4084      475    69632        0             0 sshd
2023-04-14T16:51:56.846134+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238527]     0 1238527     4239      622    69632        0             0 sshd
2023-04-14T16:51:56.846145+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238528]     0 1238528     4104      463    73728        0             0 sshd
2023-04-14T16:51:56.847118+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238534]     0 1238534     1122      197    45056        0             0 bash
2023-04-14T16:51:56.847135+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238555]     0 1238555     4169      528    73728        0             0 sshd
2023-04-14T16:51:56.847147+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238556]     0 1238556     1790      186    49152        0             0 sftp-server
2023-04-14T16:51:56.848273+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238862]     0 1238862     5999     2647    81920        0             0 python
2023-04-14T16:51:56.848287+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238898]     0 1238898     1218      178    45056        0             0 run_test.sh
2023-04-14T16:51:56.848299+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1238918]     0 1238918     1284      248    57344        0             0 runltp
2023-04-14T16:51:56.852014+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1239134]     0 1239134      832       39    45056        0             0 ltp-pan
2023-04-14T16:51:56.852029+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1244205]     0 1244205      618       22    40960        0             0 tail
2023-04-14T16:51:56.852039+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1247984]     0 1247984     4097      245    73728        0             0 systemd-userwor
2023-04-14T16:51:56.853179+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1248163]     0 1248163     4097      245    69632        0             0 systemd-userwor
2023-04-14T16:51:56.853191+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1248164]     0 1248164     4097      225    65536        0             0 systemd-userwor
2023-04-14T16:51:56.853216+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1626846]     0 1626846      692       25    45056        0         -1000 oom01
2023-04-14T16:51:56.853227+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1626847]     0 1626847      692       35    45056        0         -1000 oom01
2023-04-14T16:51:56.853238+08:00 qibo-anolis23-nightly-func-x86-1 kernel: [1626852]     0 1626852  4725431  3808717 30613504        0             0 oom01
2023-04-14T16:51:56.853249+08:00 qibo-anolis23-nightly-func-x86-1 kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=NetworkManager.service,mems_allowed=0,global_oom,task_memcg=/user.slice/user-0.slice/session-15.scope,task=oom01,pid=1626852,uid=0
2023-04-14T16:51:56.857494+08:00 qibo-anolis23-nightly-func-x86-1 kernel: Out of memory: Killed process 1626852 (oom01) total-vm:18901724kB, anon-rss:15234868kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:29896kB oom_score_adj:0
2023-04-14T16:51:56.859591+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=1106 audit(1681462316.810:1363): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=ssh res=success'
2023-04-14T16:51:56.860525+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=1113 audit(1681462316.810:1364): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=ssh res=success'
2023-04-14T16:51:56.860540+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=2404 audit(1681462316.810:1365): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=session fp=? direction=both spid=1224883 suid=0 rport=16134 laddr=172.16.0.43 lport=22  exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=? res=success'
2023-04-14T16:51:56.863381+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=2404 audit(1681462316.816:1366): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:86:96:ed:f2:5b:10:a4:f6:56:d3:74:0c:af:da:fd:14:6f:b4:67:d8:8f:92:10:3c:ec:e2:46:b7:f8:a8:53:31 direction=? spid=1224883 suid=0  exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=? res=success'
2023-04-14T16:51:56.863398+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=1106 audit(1681462316.830:1367): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="root" exe="/usr/sbin/sshd" hostname=59.82.30.43 addr=59.82.30.43 terminal=ssh res=success'
2023-04-14T16:51:56.865905+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=1104 audit(1681462316.831:1368): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_unix acct="root" exe="/usr/sbin/sshd" hostname=59.82.30.43 addr=59.82.30.43 terminal=ssh res=success'
2023-04-14T16:51:56.865920+08:00 qibo-anolis23-nightly-func-x86-1 kernel: audit: type=2404 audit(1681462316.836:1369): pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:86:96:ed:f2:5b:10:a4:f6:56:d3:74:0c:af:da:fd:14:6f:b4:67:d8:8f:92:10:3c:ec:e2:46:b7:f8:a8:53:31 direction=? spid=1224859 suid=0  exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=? res=success'
2023-04-14T16:51:56.865934+08:00 qibo-anolis23-nightly-func-x86-1 audit[1224859]: USER_END pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=ssh res=success'
2023-04-14T16:51:56.888162+08:00 qibo-anolis23-nightly-func-x86-1 audit[1224859]: USER_LOGOUT pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=ssh res=success'
2023-04-14T16:51:56.890682+08:00 qibo-anolis23-nightly-func-x86-1 audit[1224859]: CRYPTO_KEY_USER pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=session fp=? direction=both spid=1224883 suid=0 rport=16134 laddr=172.16.0.43 lport=22  exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=? res=success'
2023-04-14T16:51:56.896395+08:00 qibo-anolis23-nightly-func-x86-1 audit[1224859]: CRYPTO_KEY_USER pid=1224859 uid=0 auid=0 ses=17 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:86:96:ed:f2:5b:10:a4:f6:56:d3:74:0c:af:da:fd:14:6f:b4:67:d8:8f:92:10:3c:ec:e2:46:b7:f8:a8:53:31 direction=? spid=1224883 suid=0  exe="/usr/sbin/sshd" hostname=? addr=59.82.30.43 terminal=? res=success'


------- 手工跑该case ssh远程终端会中断 ------------
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=32 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=oom01 stime=1681462315
cmdline="oom01"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1547: TINFO: Timeout per run is disabled
mem.c:648: TINFO: set overcommit_memory to 2
mem.c:143: TINFO: expected victim is 1626848.
mem.c:38: TINFO: thread (7ff6107ed6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff60ffec6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff54f7eb6c0), allocating 3221225472 bytes.
mem.c:158: TPASS: victim retcode: (12) Cannot allocate memory
mem.c:648: TINFO: set overcommit_memory to 0
mem.c:143: TINFO: expected victim is 1626852.
mem.c:38: TINFO: thread (7ff6107ed6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff60ffec6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff60f7eb6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff6107ed6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff60f7eb6c0), allocating 3221225472 bytes.
mem.c:38: TINFO: thread (7ff60ffec6c0), allocating 3221225472 bytes.

Remote side unexpectedly closed network connection

────────────────────────────────────────

Session stopped
    - Press <return> to exit tab
    - Press R to restart session
    - Press S to save terminal output to file

* 机器并没有自动被重启


Expected results:
case测试无异常


Additional info:
[root@qibo-anolis23-nightly-func-x86-1 ~]# uname -r
5.10.134-78.git.b32738450818.an23.x86_64
[root@qibo-anolis23-nightly-func-x86-1 ~]# cat /etc/anolis-release
Anolis OS release 23
[root@qibo-anolis23-nightly-func-x86-1 ~]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-78.git.b32738450818.an23.x86_64 root=UUID=ece72b7f-465b-433d-8b3b-e5fa53a04642 ro rhgb cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@qibo-anolis23-nightly-func-x86-1 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           7.6G     0  7.6G   0% /dev/shm
tmpfs           3.1G  544K  3.1G   1% /run
/dev/vda1        40G   13G   28G  33% /
/dev/vdc1        98G  1.5G   92G   2% /tmp
tmpfs           1.6G     0  1.6G   0% /run/user/0
[root@qibo-anolis23-nightly-func-x86-1 ~]# free -g
               total        used        free      shared  buff/cache   available
Mem:              15           0          14           0           0          14
Swap:              0           0           0
[root@qibo-anolis23-nightly-func-x86-1 ~]# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         46 bits physical, 57 bits virtual
  Byte Order:            Little Endian
CPU(s):                  4
  On-line CPU(s) list:   0-3
Vendor ID:               GenuineIntel
  BIOS Vendor ID:        Alibaba Cloud
  Model name:            Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
    BIOS Model name:     pc-i440fx-2.1  CPU @ 0.0GHz
    BIOS CPU family:     1
    CPU family:          6
    Model:               106
    Thread(s) per core:  2
    Core(s) per socket:  2
    Socket(s):           1
    Stepping:            6
    BogoMIPS:            5399.99
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht sys
                         call nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor
                          ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dn
                         owprefetch cpuid_fault invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid av
                         x512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec
                          xgetbv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bit
                         alg avx512_vpopcntdq rdpid fsrm arch_capabilities
Virtualization features:
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):
  L1d:                   96 KiB (2 instances)
  L1i:                   64 KiB (2 instances)
  L2:                    2.5 MiB (2 instances)
  L3:                    48 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-3
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Retbleed:              Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Enhanced IBRS, RSB filling, PBRSB-eIBRS SW sequence
  Srbds:                 Not affected
  Tsx async abort:       Not affected
Comment 1 yunmeng365524 2023-06-13 21:36:44 UTC
放在4804中一起跟踪吧。

*** This bug has been marked as a duplicate of bug 4804 ***