[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180730091133.GE30690@shao2-debian>
Date: Mon, 30 Jul 2018 17:11:33 +0800
From: kernel test robot <rong.a.chen@...el.com>
To: yuzhoujian <yuzhoujian@...ichuxing.com>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>,
Michal Hocko <mhocko@...e.com>,
David Rientjes <rientjes@...gle.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>,
Roman Gushchin <guro@...com>,
Yang Shi <yang.s@...baba-inc.com>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>, lkp@...org
Subject: [LKP] [mm, oom] 063b8b3171:
BUG:sleeping_function_called_from_invalid_context_at_arch/x86/mm/fault.c
FYI, we noticed the following commit (built with gcc-4.9):
commit: 063b8b31719dbe80c0f4acd914d10794bfb83f1d ("mm, oom: reorganize the oom report in dump_header")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+--------------------------------------------------------------------------+------------+------------+
| | 147474fc72 | 063b8b3171 |
+--------------------------------------------------------------------------+------------+------------+
| boot_successes | 4 | 4 |
| boot_failures | 9 | 9 |
| invoked_oom-killer:gfp_mask=0x | 9 | 9 |
| Mem-Info | 9 | 9 |
| Out_of_memory:Kill_process | 9 | 9 |
| EIP:copy_fpstate_to_sigframe | 1 | |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 8 | |
| EIP:__copy_user_ll | 4 | 4 |
| BUG:sleeping_function_called_from_invalid_context_at_arch/x86/mm/fault.c | 0 | 9 |
| EIP:dump_header | 0 | 9 |
| BUG:unable_to_handle_kernel | 0 | 9 |
| Oops:#[##] | 0 | 9 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 9 |
+--------------------------------------------------------------------------+------------+------------+
[ 19.139974] BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1340
[ 19.143410] in_atomic(): 0, irqs_disabled(): 0, pid: 440, name: run-lkp
[ 19.144147] 4 locks held by run-lkp/440:
[ 19.144592] #0: (ptrval) (&mm->mmap_sem){....}, at: __do_page_fault+0x104/0x5c0
[ 19.145415] #1: (ptrval) (oom_lock){....}, at: __alloc_pages_nodemask+0x6ee/0xa80
[ 19.146249] #2: (ptrval) (rcu_read_lock){....}, at: dump_header+0x0/0x294
[ 19.147018] #3: (ptrval) (&mm->mmap_sem){....}, at: __do_page_fault+0x104/0x5c0
[ 19.147839] Preemption disabled at:
[ 19.147843] [<8103b3aa>] __do_page_fault+0x27a/0x5c0
[ 19.148791] CPU: 0 PID: 440 Comm: run-lkp Tainted: G T 4.18.0-rc6-00311-g063b8b3 #1
[ 19.149775] Call Trace:
[ 19.160769] dump_stack+0x16/0x26
[ 19.161159] ___might_sleep+0x13c/0x190
[ 19.161594] ? __do_page_fault+0x27a/0x5c0
[ 19.162048] ? __do_page_fault+0x27a/0x5c0
[ 19.162514] __might_sleep+0x31/0x90
[ 19.162915] ? down_read_trylock+0x5c/0x70
[ 19.163380] __do_page_fault+0x11d/0x5c0
[ 19.163815] ? preempt_count_add+0x4a/0xb0
[ 19.164286] ? kvm_read_and_reset_pf_reason+0x50/0x50
[ 19.164841] do_page_fault+0x21/0x30
[ 19.165242] do_async_page_fault+0x28/0xa0
[ 19.165711] common_exception+0x45/0x4a
[ 19.166138] EIP: dump_header+0x87/0x294
[ 19.166573] Code: ac dc b3 81 e8 f9 27 fa ff 83 c4 28 e8 d6 f6 fa ff 31 c9 31 d2 b8 28 84 db 81 68 7c 68 0e 81 6a 00 6a 00 6a 02 e8 dd 88 f9 ff <8b> 86 ff 09 00 00 8b 78 74 e8 8f 44 fb ff b9 7c 68 0e 81 ba 01 00
[ 19.168739] EAX: 00000246 EBX: 85711e50 ECX: 43f73f41 EDX: 00000000
[ 19.169431] ESI: 000003ed EDI: 81c586c0 EBP: 85711db8 ESP: 85711d80
[ 19.170144] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00010246
[ 19.171218] ? pagefault_out_of_memory+0x4c/0x4c
[ 19.171740] ? oom_badness+0x5f/0x160
[ 19.172155] out_of_memory+0x30e/0x3d0
[ 19.172584] ? out_of_memory+0x1fb/0x3d0
[ 19.173020] ? __alloc_pages_nodemask+0x6ee/0xa80
[ 19.173553] __alloc_pages_nodemask+0x9b9/0xa80
[ 19.174082] wp_page_copy+0x69/0x5c0
[ 19.174508] do_wp_page+0x115/0x470
[ 19.174904] handle_mm_fault+0x5a8/0xb00
[ 19.175364] __do_page_fault+0x1a2/0x5c0
[ 19.175807] ? filp_close+0x52/0x80
[ 19.176206] ? kvm_read_and_reset_pf_reason+0x50/0x50
[ 19.176769] do_page_fault+0x21/0x30
[ 19.177168] do_async_page_fault+0x28/0xa0
[ 19.177633] common_exception+0x45/0x4a
[ 19.178056] EIP: 0x807d20d
[ 19.178368] Code: 08 89 04 24 e8 c4 6f 03 00 8b 15 00 ad 12 08 a1 08 ad 12 08 8b 04 90 89 04 24 e8 de 45 ff ff a1 08 ad 12 08 8b 15 00 ad 12 08 <c7> 04 90 00 00 00 00 83 c4 1c e9 54 6f 03 00 8d 74 26 00 83 ec 1c
[ 19.181252] EAX: 096cf6c8 EBX: 096fb5e8 ECX: 00000000 EDX: 00000002
[ 19.181949] ESI: 080f34f5 EDI: 00000000 EBP: 00000000 ESP: 7fc1c730
[ 19.182656] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00010206
[ 19.183422] BUG: unable to handle kernel NULL pointer dereference at 00000dec
[ 19.184193] *pde = 00000000
[ 19.184519] Oops: 0000 [#1] PREEMPT DEBUG_PAGEALLOC
[ 19.185051] CPU: 0 PID: 440 Comm: run-lkp Tainted: G W T 4.18.0-rc6-00311-g063b8b3 #1
[ 19.186027] EIP: dump_header+0x87/0x294
[ 19.186457] Code: ac dc b3 81 e8 f9 27 fa ff 83 c4 28 e8 d6 f6 fa ff 31 c9 31 d2 b8 28 84 db 81 68 7c 68 0e 81 6a 00 6a 00 6a 02 e8 dd 88 f9 ff <8b> 86 ff 09 00 00 8b 78 74 e8 8f 44 fb ff b9 7c 68 0e 81 ba 01 00
[ 19.188808] EAX: 00000246 EBX: 85711e50 ECX: 43f73f41 EDX: 00000000
[ 19.189509] ESI: 000003ed EDI: 81c586c0 EBP: 85711db8 ESP: 85711d80
[ 19.190454] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00010246
[ 19.191179] CR0: 80050033 CR2: 00000dec CR3: 03e69000 CR4: 00040690
[ 19.191870] Call Trace:
[ 19.192146] ? pagefault_out_of_memory+0x4c/0x4c
[ 19.192656] ? oom_badness+0x5f/0x160
[ 19.193059] out_of_memory+0x30e/0x3d0
[ 19.193480] ? out_of_memory+0x1fb/0x3d0
[ 19.193911] ? __alloc_pages_nodemask+0x6ee/0xa80
[ 19.194431] __alloc_pages_nodemask+0x9b9/0xa80
[ 19.194931] wp_page_copy+0x69/0x5c0
[ 19.195335] do_wp_page+0x115/0x470
[ 19.195721] handle_mm_fault+0x5a8/0xb00
[ 19.196202] __do_page_fault+0x1a2/0x5c0
[ 19.196644] ? filp_close+0x52/0x80
[ 19.197030] ? kvm_read_and_reset_pf_reason+0x50/0x50
[ 19.197586] do_page_fault+0x21/0x30
[ 19.197977] do_async_page_fault+0x28/0xa0
[ 19.198433] common_exception+0x45/0x4a
[ 19.198851] EIP: 0x807d20d
[ 19.199150] Code: 08 89 04 24 e8 c4 6f 03 00 8b 15 00 ad 12 08 a1 08 ad 12 08 8b 04 90 89 04 24 e8 de 45 ff ff a1 08 ad 12 08 8b 15 00 ad 12 08 <c7> 04 90 00 00 00 00 83 c4 1c e9 54 6f 03 00 8d 74 26 00 83 ec 1c
[ 19.201213] EAX: 096cf6c8 EBX: 096fb5e8 ECX: 00000000 EDX: 00000002
[ 19.201999] ESI: 080f34f5 EDI: 00000000 EBP: 00000000 ESP: 7fc1c730
[ 19.203019] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00010206
[ 19.203861] Modules linked in:
[ 19.204200] CR2: 0000000000000dec
[ 19.204786] ---[ end trace be7d06c89576f8c6 ]---
To reproduce:
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,
Rong, Chen
View attachment "config-4.18.0-rc6-00311-g063b8b3" of type "text/plain" (112819 bytes)
View attachment "job-script" of type "text/plain" (4006 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (22716 bytes)
Powered by blists - more mailing lists