lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 7 Nov 2019 17:02:34 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Hillf Danton <hdanton@...a.com>
Cc:     linux-mm <linux-mm@...ck.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        linux-kernel <linux-kernel@...r.kernel.org>,
        Chris Down <chris@...isdown.name>, Tejun Heo <tj@...nel.org>,
        Roman Gushchin <guro@...com>, Michal Hocko <mhocko@...nel.org>,
        Johannes Weiner <hannes@...xchg.org>,
        Shakeel Butt <shakeelb@...gle.com>,
        Matthew Wilcox <willy@...radead.org>,
        Minchan Kim <minchan@...nel.org>, Mel Gorman <mgorman@...e.de>,
        Hillf Danton <hdanton@...a.com>, lkp@...ts.01.org
Subject: [memcg] 1fc14cf673: invoked_oom-killer:gfp_mask=0x

FYI, we noticed the following commit (built with gcc-7):

commit: 1fc14cf67325190e0075cf3cd5511965499fffb4 ("[RFC v2] memcg: add memcg lru for page reclaiming")
url: https://github.com/0day-ci/linux/commits/Hillf-Danton/memcg-add-memcg-lru-for-page-reclaiming/20191029-143906


in testcase: vm-scalability
with following parameters:

	runtime: 300s
	test: lru-file-mmap-read
	cpufreq_governor: performance
	ucode: 0x500002b

test-description: The motivation behind this suite is to exercise functions and regions of the mm/ of the Linux kernel which are of interest to us.
test-url: https://git.kernel.org/cgit/linux/kernel/git/wfg/vm-scalability.git/


on test machine: 192 threads Intel(R) Xeon(R) Platinum 9242 CPU @ 2.30GHz with 192G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+--------------------------------------------------+------------+------------+
|                                                  | 8005803a2c | 1fc14cf673 |
+--------------------------------------------------+------------+------------+
| boot_successes                                   | 2          | 4          |
| boot_failures                                    | 11         |            |
| WARNING:at_fs/iomap/direct-io.c:#iomap_dio_actor | 10         |            |
| RIP:iomap_dio_actor                              | 10         |            |
| BUG:kernel_hang_in_boot_stage                    | 1          |            |
| last_state.OOM                                   | 0          | 4          |
+--------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>



user  :notice: [   51.667771] 2019-11-06 23:56:11  ./usemem --runtime 300 -f /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-71 --readonly 22906492245

user  :notice: [   51.697549] 2019-11-06 23:56:11  ./usemem --runtime 300 -f /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-72 --readonly 22906492245

kern  :warn  : [   51.715513] usemem invoked oom-killer: gfp_mask=0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), order=0, oom_score_adj=0
user  :notice: [   51.724161] 2019-11-06 23:56:11  truncate /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-73 -s 22906492245

kern  :warn  : [   51.727992] CPU: 11 PID: 3618 Comm: usemem Not tainted 5.4.0-rc5-00020-g1fc14cf673251 #2
user  :notice: [   51.744101] 2019-11-06 23:56:11  ./usemem --runtime 300 -f /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-73 --readonly 22906492245

kern  :warn  : [   51.752655] Call Trace:
kern  :warn  : [   51.752666]  dump_stack+0x5c/0x7b
user  :notice: [   51.771480] 2019-11-06 23:56:11  truncate /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-74 -s 22906492245

kern  :warn  : [   51.775027]  dump_header+0x4a/0x220
kern  :warn  : [   51.775029]  oom_kill_process+0xe9/0x130
kern  :warn  : [   51.775031]  out_of_memory+0x105/0x510
kern  :warn  : [   51.775037]  __alloc_pages_slowpath+0xa3f/0xdb0
kern  :warn  : [   51.775040]  __alloc_pages_nodemask+0x2f0/0x340
kern  :warn  : [   51.775044]  pte_alloc_one+0x13/0x40
kern  :warn  : [   51.775048]  __handle_mm_fault+0xe9d/0xf70
kern  :warn  : [   51.775050]  handle_mm_fault+0xdd/0x210
kern  :warn  : [   51.775054]  __do_page_fault+0x2f1/0x520
kern  :warn  : [   51.775056]  do_page_fault+0x30/0x120
user  :notice: [   51.782517] 2019-11-06 23:56:11  truncate /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-75 -s 22906492245

kern  :warn  : [   51.792048]  page_fault+0x3e/0x50
kern  :warn  : [   51.792051] RIP: 0033:0x55c6ced07cfc
user  :notice: [   51.798308] 2019-11-06 23:56:11  ./usemem --runtime 300 -f /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-74 --readonly 22906492245

kern  :warn  : [   51.799413] Code: 00 00 e8 37 f6 ff ff 48 83 c4 08 c3 48 8d 3d 74 23 00 00 e8 56 f6 ff ff bf 01 00 00 00 e8 bc f6 ff ff 85 d2 74 08 48 8d 04 f7 <48> 8b 00 c3 48 8d 04 f7 48 89 30 b8 00 00 00 00 c3 48 89 f8 48 29
kern  :warn  : [   51.799415] RSP: 002b:00007ffe889ebfe8 EFLAGS: 00010202
user  :notice: [   51.808045] 2019-11-06 23:56:11  ./usemem --runtime 300 -f /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-75 --readonly 22906492245

kern  :warn  : [   51.809437] RAX: 00007fd4c5400000 RBX: 00000000085cc600 RCX: 0000000000000018
kern  :warn  : [   51.809438] RDX: 0000000000000001 RSI: 00000000085cc600 RDI: 00007fd48259d000
kern  :warn  : [   51.809440] RBP: 00000000085cc600 R08: 000000005dc2ed1f R09: 00007ffe889ebfa0
user  :notice: [   51.818030] 2019-11-06 23:56:11  truncate /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-76 -s 22906492245

kern  :warn  : [   51.820780] R10: 00007ffe889ebfa0 R11: 0000000000000246 R12: 0000000042e63000
kern  :warn  : [   51.820781] R13: 00007fd48259d000 R14: 00007ffe889ec08c R15: 0000000000000001
kern  :warn  : [   51.820813] Mem-Info:
user  :notice: [   51.829016] 2019-11-06 23:56:11  ./usemem --runtime 300 -f /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-76 --readonly 22906492245

kern  :warn  : [   51.830751] active_anon:68712 inactive_anon:29360 isolated_anon:0
                               active_file:497 inactive_file:48481807 isolated_file:32
                               unevictable:259869 dirty:2 writeback:0 unstable:0
                               slab_reclaimable:130937 slab_unreclaimable:70163
                               mapped:48488420 shmem:30398 pagetables:97884 bounce:0
                               free:169055 free_pcp:20966 free_cma:0
user  :notice: [   51.838463] 2019-11-06 23:56:11  truncate /tmp/vm-scalability-tmp/vm-scalability/sparse-lru-file-mmap-read-77 -s 22906492245

kern  :warn  : [   51.840634] Node 0 active_anon:109476kB inactive_anon:1400kB active_file:76kB inactive_file:47988152kB unevictable:281836kB isolated(anon):0kB isolated(file):0kB mapped:47993516kB dirty:4kB writeback:0kB shmem:1512kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp install job.yaml  # job file is attached in this email
        bin/lkp run     job.yaml



Thanks,
Rong Chen


View attachment "config-5.4.0-rc5-00020-g1fc14cf673251" of type "text/plain" (200551 bytes)

View attachment "job-script" of type "text/plain" (7630 bytes)

Download attachment "kmsg.xz" of type "application/x-xz" (46252 bytes)

View attachment "vm-scalability" of type "text/plain" (48835 bytes)

View attachment "job.yaml" of type "text/plain" (5251 bytes)

View attachment "reproduce" of type "text/plain" (41289 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ