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>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200814141327.GJ7488@shao2-debian>
Date:   Fri, 14 Aug 2020 22:13:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Roman Gushchin <guro@...com>
Cc:     Linus Torvalds <torvalds@...ux-foundation.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Shakeel Butt <shakeelb@...gle.com>,
        Dennis Zhou <dennis@...nel.org>,
        Johannes Weiner <hannes@...xchg.org>,
        Christoph Lameter <cl@...ux.com>,
        David Rientjes <rientjes@...gle.com>,
        Joonsoo Kim <iamjoonsoo.kim@....com>,
        Mel Gorman <mgorman@...hsingularity.net>,
        Michal Hocko <mhocko@...nel.org>,
        Pekka Enberg <penberg@...nel.org>, Tejun Heo <tj@...nel.org>,
        "Tobin C. Harding" <tobin@...nel.org>,
        Vlastimil Babka <vbabka@...e.cz>,
        Waiman Long <longman@...hat.com>,
        Bixuan Cui <cuibixuan@...wei.com>,
        Michal Koutný <mkoutny@...e.com>,
        Stephen Rothwell <sfr@...b.auug.org.au>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [mm] 3e38e0aaca: WARNING:at_mm/memcontrol.c:#mem_cgroup_alloc

Greeting,

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

commit: 3e38e0aaca9eafb12b1c4b731d1c10975cbe7974 ("mm: memcg: charge memcg percpu memory to the parent cgroup")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master


in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

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


+----------------------------------------------+------------+------------+
|                                              | 772616b031 | 3e38e0aaca |
+----------------------------------------------+------------+------------+
| boot_successes                               | 8          | 0          |
| boot_failures                                | 0          | 8          |
| WARNING:at_mm/memcontrol.c:#mem_cgroup_alloc | 0          | 8          |
| RIP:mem_cgroup_alloc                         | 0          | 8          |
+----------------------------------------------+------------+------------+


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


[    0.909061] WARNING: CPU: 0 PID: 0 at mm/memcontrol.c:5220 mem_cgroup_alloc+0x7b/0x3ab
[    0.910723] Modules linked in:
[    0.912248] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.8.0-12303-g3e38e0aaca9eaf #1
[    0.914712] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    0.918717] RIP: 0010:mem_cgroup_alloc+0x7b/0x3ab
[    0.922712] Code: 45 da 21 00 41 89 84 24 f0 00 00 00 48 63 e8 85 c0 0f 88 1f 03 00 00 65 48 8b 04 25 00 6d 01 00 48 83 b8 50 09 00 00 00 75 02 <0f> 0b ba c0 0c 40 00 be 08 00 00 00 bf d0 03 00 00 e8 5d 56 fb ff
[    0.926712] RSP: 0000:ffffffff82603e70 EFLAGS: 00010246
[    0.930710] RAX: ffffffff8261a840 RBX: 0000000000000000 RCX: 0000000000000001
[    0.933118] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[    0.934718] RBP: 0000000000000001 R08: ffff88822a003240 R09: ffffffff82680fd0
[    0.937040] R10: 0000000000000044 R11: 0000000000000228 R12: ffff88822a591000
[    0.938715] R13: ffffffff8265f050 R14: 0000000000000003 R15: ffffffff82c7bf80
[    0.942710] FS:  0000000000000000(0000) GS:ffff88823fc00000(0000) knlGS:0000000000000000
[    0.946086] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.946712] CR2: ffff88823ffff000 CR3: 0000000002612000 CR4: 00000000000006b0
[    0.950712] Call Trace:
[    0.952116]  mem_cgroup_css_alloc+0x38/0x3f1
[    0.953761]  cgroup_init_subsys+0x85/0x16e
[    0.954741]  cgroup_init+0x129/0x35e
[    0.956370]  start_kernel+0x4df/0x524
[    0.959277]  secondary_startup_64+0xb6/0xc0
[    0.961087] ---[ end trace a57ed6e4912a6aef ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.8.0-12303-g3e38e0aaca9eaf .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
lkp


View attachment "config-5.8.0-12303-g3e38e0aaca9eaf" of type "text/plain" (117185 bytes)

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

Download attachment "dmesg.xz" of type "application/x-xz" (13628 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ