Display server crash due to intel_do_flush_locked failed: Cannot allocate memory
Submitted by Andreas Galauner
Assigned to Intel 3D Bugs Mailing List
Link to original bug (#100599)
Description
I ran into the following issue two times today. I am running a current intel-drm-nightly (39a0f48c8bc7c528cc705016dafa08a9dedfd36b) on my Lenovo T460p.
The crash happened randomly when using an X11 application. The result is a complete crash of the display server including all programs running in it. When the crash happened a second time I couldn't even log in using GDM anymore until I rebooted. I see no reason why the page allocation should have failed. The system wasn't particularly loaded.
dmesg output:
Apr 06 00:48:00 geekbook org.gnome.Shell.desktop[26712]: intel_do_flush_locked failed: Cannot allocate memory Apr 06 00:48:00 geekbook kernel: Xwayland: page allocation failure: order:0, mode:0x1000(__GFP_NORETRY), nodemask=(null) Apr 06 00:48:00 geekbook kernel: Xwayland cpuset=/ mems_allowed=0 Apr 06 00:48:00 geekbook kernel: CPU: 3 PID: 26730 Comm: Xwayland Not tainted 4.11.0-rc5-ARCH+ #2 (closed) Apr 06 00:48:00 geekbook kernel: Hardware name: LENOVO 20FXS05500/20FXS05500, BIOS R07ET73W (2.13 ) 12/20/2016 Apr 06 00:48:00 geekbook kernel: Call Trace: Apr 06 00:48:00 geekbook kernel: dump_stack+0x63/0x83 Apr 06 00:48:00 geekbook kernel: warn_alloc+0x114/0x1b0 Apr 06 00:48:00 geekbook kernel: __alloc_pages_nodemask+0x111f/0x1130 Apr 06 00:48:00 geekbook kernel: ? pick_next_task_fair+0x4a0/0x550 Apr 06 00:48:00 geekbook kernel: ? __schedule+0x2db/0x8a0 Apr 06 00:48:00 geekbook kernel: alloc_pages_vma+0xaa/0x270 Apr 06 00:48:00 geekbook kernel: shmem_alloc_page+0x70/0xa0 Apr 06 00:48:00 geekbook kernel: ? _raw_spin_unlock_irqrestore+0x2a/0x30 Apr 06 00:48:00 geekbook kernel: ? prepare_to_wait_event+0x71/0x100 Apr 06 00:48:00 geekbook kernel: ? __vm_enough_memory+0x29/0x130 Apr 06 00:48:00 geekbook kernel: shmem_alloc_and_acct_page+0x72/0x1b0 Apr 06 00:48:00 geekbook kernel: shmem_getpage_gfp+0x1a5/0xca0 Apr 06 00:48:00 geekbook kernel: shmem_read_mapping_page_gfp+0x44/0x80 Apr 06 00:48:00 geekbook kernel: i915_gem_object_get_pages_gtt+0x224/0x660 [i915] Apr 06 00:48:00 geekbook kernel: ____i915_gem_object_get_pages+0x20/0x60 [i915] Apr 06 00:48:00 geekbook kernel: __i915_gem_object_get_pages+0x5c/0x70 [i915] Apr 06 00:48:00 geekbook kernel: __i915_vma_do_pin+0x1e9/0x3c0 [i915] Apr 06 00:48:00 geekbook kernel: i915_gem_execbuffer_reserve_vma.isra.9+0x14d/0x1b0 [i915] Apr 06 00:48:00 geekbook kernel: i915_gem_execbuffer_reserve.isra.10+0x3c5/0x3f0 [i915] Apr 06 00:48:00 geekbook kernel: i915_gem_do_execbuffer.isra.16+0x5c0/0x17e0 [i915] Apr 06 00:48:00 geekbook kernel: ? __wake_up_sync_key+0x50/0x60 Apr 06 00:48:00 geekbook kernel: ? i915_gem_execbuffer2+0x162/0x210 [i915] Apr 06 00:48:00 geekbook kernel: i915_gem_execbuffer2+0xb7/0x210 [i915] Apr 06 00:48:00 geekbook kernel: drm_ioctl+0x218/0x4b0 [drm] Apr 06 00:48:00 geekbook kernel: ? i915_gem_execbuffer+0x310/0x310 [i915] Apr 06 00:48:00 geekbook kernel: ? __fget+0x77/0xb0 Apr 06 00:48:00 geekbook kernel: do_vfs_ioctl+0xa3/0x5f0 Apr 06 00:48:00 geekbook kernel: ? __sys_sendmsg+0x54/0x90 Apr 06 00:48:00 geekbook kernel: ? __fget+0x77/0xb0 Apr 06 00:48:00 geekbook kernel: SyS_ioctl+0x79/0x90 Apr 06 00:48:00 geekbook kernel: entry_SYSCALL_64_fastpath+0x1a/0xa9 Apr 06 00:48:00 geekbook kernel: RIP: 0033:0x7f223b55f0d7 Apr 06 00:48:00 geekbook kernel: RSP: 002b:00007ffe940a72d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 Apr 06 00:48:00 geekbook kernel: RAX: ffffffffffffffda RBX: 00000000031ce350 RCX: 00007f223b55f0d7 Apr 06 00:48:00 geekbook kernel: RDX: 00007ffe940a7320 RSI: 00000000c0406469 RDI: 0000000000000009 Apr 06 00:48:00 geekbook kernel: RBP: 0000000000000de1 R08: 0000000000000000 R09: 0000000000000000 Apr 06 00:48:00 geekbook kernel: R10: 0000000000002fe0 R11: 0000000000000246 R12: 00007f222c3ce000 Apr 06 00:48:00 geekbook kernel: R13: 00000000029357b0 R14: 0000000000006000 R15: 00007f223dbc1040 Apr 06 00:48:00 geekbook kernel: Mem-Info: Apr 06 00:48:00 geekbook kernel: active_anon:1367198 inactive_anon:918076 isolated_anon:0 active_file:1095352 inactive_file:400438 isolated_file:0 unevictable:12 dirty:55 writeback:97 unstable:0 slab_reclaimable:159652 slab_unreclaimable:34624 mapped:520164 shmem:811274 pagetables:24122 bounce:0 free:33796 free_pcp:1666 free_cma:0 Apr 06 00:48:00 geekbook kernel: Node 0 active_anon:5468792kB inactive_anon:3672304kB active_file:4381408kB inactive_file:1601752kB unevictable:48kB isolated(anon):0kB isolated(file):0kB mapped:2080656kB dirty:220kB writeback:388kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 2127872kB anon_thp: 3245096kB writeback_tmp:0kB unstable:0kB pages_scanned:74 all_unreclaimable? no Apr 06 00:48:00 geekbook kernel: Node 0 DMA free:15836kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15912kB managed:15868kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:32kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Apr 06 00:48:00 geekbook kernel: lowmem_reserve[]: 0 2801 15879 15879 15879 Apr 06 00:48:00 geekbook kernel: Node 0 DMA32 free:63820kB min:11908kB low:14884kB high:17860kB active_anon:1284844kB inactive_anon:287780kB active_file:807952kB inactive_file:371868kB unevictable:0kB writepending:20kB present:2966880kB managed:2890676kB mlocked:0kB slab_reclaimable:45904kB slab_unreclaimable:11500kB kernel_stack:1424kB pagetables:7492kB bounce:0kB free_pcp:3152kB local_pcp:252kB free_cma:0kB Apr 06 00:48:00 geekbook kernel: lowmem_reserve[]: 0 0 13078 13078 13078 Apr 06 00:48:00 geekbook kernel: Node 0 Normal free:55528kB min:55608kB low:69508kB high:83408kB active_anon:4184256kB inactive_anon:3384804kB active_file:3574940kB inactive_file:1229420kB unevictable:48kB writepending:0kB present:13656064kB managed:13392248kB mlocked:48kB slab_reclaimable:592704kB slab_unreclaimable:126964kB kernel_stack:21824kB pagetables:88996kB bounce:0kB free_pcp:3512kB local_pcp:356kB free_cma:0kB Apr 06 00:48:00 geekbook kernel: lowmem_reserve[]: 0 0 0 0 0 Apr 06 00:48:00 geekbook kernel: Node 0 DMA: 14kB (U) 18kB (U) 316kB (U) 132kB (U) 264kB (U) 2128kB (U) 0256kB 0512kB 11024kB (U) 12048kB (M) 34096kB (M) = 15836kB Apr 06 00:48:00 geekbook kernel: Node 0 DMA32: 8254kB (UM) 7178kB (UME) 13716kB (UM) 21932kB (UME) 29864kB (UME) 92128kB (UME) 57256kB (ME) 1512kB (M) 01024kB 02048kB 04096kB = 64188kB Apr 06 00:48:00 geekbook kernel: Node 0 Normal: 43554kB (UMH) 4788kB (UMH) 88916kB (UMEH) 61832kB (UME) 1364kB (MEH) 3128kB (MH) 0256kB 0512kB 01024kB 02048kB 0*4096kB = 56460kB Apr 06 00:48:00 geekbook kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Apr 06 00:48:00 geekbook kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB Apr 06 00:48:00 geekbook kernel: 2308498 total pagecache pages Apr 06 00:48:00 geekbook kernel: 1576 pages in swap cache Apr 06 00:48:00 geekbook kernel: Swap cache stats: add 11557, delete 9981, find 8/14 Apr 06 00:48:00 geekbook kernel: Free swap = 4147196kB Apr 06 00:48:00 geekbook kernel: Total swap = 4194300kB Apr 06 00:48:00 geekbook kernel: 4159714 pages RAM Apr 06 00:48:00 geekbook kernel: 0 pages HighMem/MovableOnly Apr 06 00:48:00 geekbook kernel: 85016 pages reserved Apr 06 00:48:00 geekbook kernel: 0 pages hwpoisoned