Received: by 10.223.176.5 with SMTP id f5csp2467845wra; Mon, 5 Feb 2018 04:42:31 -0800 (PST) X-Google-Smtp-Source: AH8x226/bh3BcplUmj95AurFhApb29BQs7CEbNLuEXUnxxBrEHD2q0bUCD2TFEolg5H63ZEZtYNJ X-Received: by 10.99.126.26 with SMTP id z26mr5487726pgc.274.1517834551199; Mon, 05 Feb 2018 04:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517834551; cv=none; d=google.com; s=arc-20160816; b=ELwFTPciCFgGBDL8AhfJGngkVuhev+kzly8bM9IVWVFZxfkpM2fzZrWRSM4PVX6oDj +fasZwxYC3T3vUHcm0gPGQ2lC+Pw+aFhZbLE0eCuoq+TLfSs5N16BrKO531tT3/ezZjN WjaBD2FzzKL3ScTNz1V9h+dxpgSgbz+gczalGxTn1lhXVrhhQWNsGtcJEKxgO1BqhO9h 9ncHVEDfBpe83twjEmTrVXlY3AcJLnImGWWQwV5EgtldOzwuezDZODtq7R9ZsDCLBIFv FHsJaT54z8w3D8HIvWft23A5ooIh1ajfpcJ3qhVx4yT9OXa9aVcFZIsaIswXQwYSKa1k C2fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=G57kTc74P13Qipes5sdOsYSOzOrW+I0tK8FyjSeapK8=; b=vlhdwjANhMHKAOUyghSKQPL1nxkjRnxRxsyztkPvWRfIsVLcF1K9whBvj0FFLnS1ZN ohLYLYRgSk5qRQM7YJ2N/xWh+5fd2vIoONvuyDJbmbZ/Omw6B+MQCj9tVM632gX4zPM6 roqopZu4Z+qgYzN04DFjm1RC2zF6HADIHbbdounRTyF1z/v0i6Gau/AQcDZ+xG5O5/i3 9ILw5hbh+XOeKuE0pjnueEqkHC+5XFtiMGkiodJFfeLg8zzLsiGW7uCKtyVs/woGQun6 GWRMS/WnrC9sFpnVzzph4HiHg9OI+fcxvDVNO3m56sk3wGwQEt91XEKbLumuTv0WOrEB cCUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Iz6yWLVG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si6883142pfe.113.2018.02.05.04.42.16; Mon, 05 Feb 2018 04:42:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Iz6yWLVG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753041AbeBEMkA (ORCPT + 99 others); Mon, 5 Feb 2018 07:40:00 -0500 Received: from mail-pl0-f49.google.com ([209.85.160.49]:42832 "EHLO mail-pl0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752955AbeBEMjx (ORCPT ); Mon, 5 Feb 2018 07:39:53 -0500 Received: by mail-pl0-f49.google.com with SMTP id 11so11692704plc.9 for ; Mon, 05 Feb 2018 04:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=G57kTc74P13Qipes5sdOsYSOzOrW+I0tK8FyjSeapK8=; b=Iz6yWLVGFFVde9TBfHsLDAOmhhuEsPoOGSPz/gbJYL+WZC5YJvwBmRLM+C02GAMb9b vQ5IHUd6+2U2mBwJGxPc6U2/FatqF7T45lRjrb48MD4sBkhdDOppQPBr/6gWZqKvym3r CFla2qC9ydJ+kmTuOMkljCUs4izVuJyLdtOx/Y/srxQbC6WD0mAlkGpiGbQaVcSLlcHz vAoyR/GEexTpen081KUppr7SRprx3RpzdUsGV0GAZ8A9DFQ0U5trSZyuEXI11UY9aJ3u 4zr/hGrywd++5gXElMQuVouP5Gi4EqDdMzTZGYqs+euxbV+ZNT1pxG227chAUOZr7kj+ n7iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=G57kTc74P13Qipes5sdOsYSOzOrW+I0tK8FyjSeapK8=; b=osWEpUdNzeHLsYJ2FHUxVw3v5O+uJ6q4+MXQaP27exdABc0QgrJTeQTNfw1SxnWGn+ cSJ+RaL+SVRrxsNAo3Tk+cj6335j/1i3RBn0N7W7Us4y5B8WyOK+ykHap+wcSzkcoFrG tClXm3A3buEInjUuIjPiqH71DR2AYeq+qKJM613jA1nFZiu4bQAgsTI1cEcM9x/rXXup UBTBrnI5aasmzjLUOZkD2cy7IpBsoRMsdV+X4ojufat3+rGRd3CBQcvIXxPRZdcP4+Wa qQJSGtMln4WxRoF1o0hnqcTEy1p468iNTWVC0DvGaFUpcKayA8+e/0W+I5mZa7CBMgEY 1HeA== X-Gm-Message-State: AKwxyteeS8M/XxtrvILPw7FLPJc/w2cF1c7IAa4+wX5LTnmB7C79W8UN XUgs2Z13a1lR1CFsDn7u9oU= X-Received: by 2002:a17:902:b596:: with SMTP id a22-v6mr43065774pls.60.1517834392640; Mon, 05 Feb 2018 04:39:52 -0800 (PST) Received: from localhost ([110.70.15.208]) by smtp.gmail.com with ESMTPSA id l10sm7876934pfc.133.2018.02.05.04.39.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Feb 2018 04:39:51 -0800 (PST) Date: Mon, 5 Feb 2018 21:39:47 +0900 From: Sergey Senozhatsky To: "Huang, Ying" Cc: Sergey Senozhatsky , huang ying , Andrew Morton , Michal Hocko , Vlastimil Babka , Sergey Senozhatsky , Minchan Kim , Seth Jennings , Dan Streetman , "Kirill A . Shutemov" , linux-mm@kvack.org, LKML Subject: Re: bisected bd4c82c22c367e is the first bad commit (was [Bug 198617] New: zswap causing random applications to crash) Message-ID: <20180205123947.GA426@jagdpanzerIV> References: <20180130114841.aa2d3bd99526c03c6a5b5810@linux-foundation.org> <20180203013455.GA739@jagdpanzerIV> <20180205013758.GA648@jagdpanzerIV> <87d11j4pdy.fsf@yhuang-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d11j4pdy.fsf@yhuang-dev.intel.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (02/05/18 20:00), Huang, Ying wrote: [..] > I have successfully reproduced the issue and find the problem. The > following patch fix the issue for me, can you try it? That was quick ;) > ---------------------------------8<------------------------------- > From 4c52d531680f91572ebc6f4525a018e32a934ef0 Mon Sep 17 00:00:00 2001 > From: Huang Ying > Date: Mon, 5 Feb 2018 19:27:43 +0800 > Subject: [PATCH] fontswap thp fix Seems to be fixing the problem on my x86 box. Executed several tests, no crashes were observed. Can run more tests tomorrow. ============================================================================ Probably unrelated, but may be it is related: my X server used to hang sometimes (rarely) which I suspect was/is caused by nouveau driver. It, surprisingly, didn't hang this time around. Nouveau spitted a number of backtraces, but X server managed to survive it. Any chance that nouveau-X server thing was caused by THP? [ 308.986648] nouveau 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes) [ 308.986653] nouveau 0000:01:00.0: swiotlb: coherent allocation failed, size=2097152 [ 308.986657] CPU: 5 PID: 343 Comm: Xorg Not tainted 4.15.0-next-20180205-dbg-00021-ga1282bf979c4-dirty #2480 [ 308.986659] Call Trace: [ 308.986667] dump_stack+0x46/0x59 [ 308.986671] swiotlb_alloc_coherent+0x164/0x174 [ 308.986675] ttm_dma_pool_get_pages+0x16e/0x3ce [ 308.986679] ttm_dma_populate+0x108/0x2af [ 308.986681] ttm_tt_bind+0x32/0x57 [ 308.986684] ttm_bo_handle_move_mem+0x120/0x328 [ 308.986687] ? ttm_bo_mem_space+0x170/0x3a0 [ 308.986690] ttm_bo_validate+0x7b/0xd9 [ 308.986694] ? __mutex_trylock_or_owner+0x43/0x54 [ 308.986697] ttm_bo_init_reserved+0x31f/0x38a [ 308.986700] ttm_bo_init+0x52/0x76 [ 308.986703] ? nouveau_bo_invalidate_caches+0x8/0x8 [ 308.986706] nouveau_bo_new+0x4a8/0x4c7 [ 308.986709] ? nouveau_bo_invalidate_caches+0x8/0x8 [ 308.986712] nouveau_gem_new+0x49/0xcc [ 308.986715] nouveau_gem_ioctl_new+0x3e/0x9f [ 308.986717] ? nouveau_gem_new+0xcc/0xcc [ 308.986720] drm_ioctl_kernel+0x64/0xa0 [ 308.986723] drm_ioctl+0x1d6/0x2a8 [ 308.986725] ? nouveau_gem_new+0xcc/0xcc [ 308.986729] ? _raw_spin_unlock_irq+0x13/0x24 [ 308.986732] ? free_swap_slot+0xad/0xc2 [ 308.986735] nouveau_drm_ioctl+0x71/0xa4 [ 308.986738] vfs_ioctl+0x1e/0x2b [ 308.986741] do_vfs_ioctl+0x505/0x518 [ 308.986745] ? __fget+0x5d/0x67 [ 308.986747] SyS_ioctl+0x3e/0x5a [ 308.986751] do_syscall_64+0x17f/0x196 [ 308.986754] entry_SYSCALL_64_after_hwframe+0x21/0x86 [ 308.986757] RIP: 0033:0x7f0395218d87 [ 308.986759] RSP: 002b:00007ffc210c4c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 308.986761] RAX: ffffffffffffffda RBX: 000056213e828350 RCX: 00007f0395218d87 [ 308.986764] RDX: 00007ffc210c4ca0 RSI: 00000000c0306480 RDI: 000000000000000b [ 308.986765] RBP: 00007ffc210c4ca0 R08: 0000000000000004 R09: 0000000000000006 [ 308.986767] R10: 000056213e320010 R11: 0000000000000246 R12: 00000000c0306480 [ 308.986769] R13: 000000000000000b R14: 00007ffc210c4d60 R15: 000056213e35e770 [ 309.264408] nouveau 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes) [ 309.264412] nouveau 0000:01:00.0: swiotlb: coherent allocation failed, size=2097152 [ 309.264416] CPU: 4 PID: 343 Comm: Xorg Not tainted 4.15.0-next-20180205-dbg-00021-ga1282bf979c4-dirty #2480 [ 309.264418] Call Trace: [ 309.264425] dump_stack+0x46/0x59 [ 309.264429] swiotlb_alloc_coherent+0x164/0x174 [ 309.264434] ttm_dma_pool_get_pages+0x16e/0x3ce [ 309.264437] ttm_dma_populate+0x108/0x2af [ 309.264440] ttm_tt_bind+0x32/0x57 [ 309.264442] ttm_bo_handle_move_mem+0x120/0x328 [ 309.264445] ? ttm_bo_mem_space+0x170/0x3a0 [ 309.264448] ttm_bo_validate+0x7b/0xd9 [ 309.264452] ? __mutex_trylock_or_owner+0x43/0x54 [ 309.264454] ttm_bo_init_reserved+0x31f/0x38a [ 309.264457] ttm_bo_init+0x52/0x76 [ 309.264461] ? nouveau_bo_invalidate_caches+0x8/0x8 [ 309.264463] nouveau_bo_new+0x4a8/0x4c7 [ 309.264466] ? nouveau_bo_invalidate_caches+0x8/0x8 [ 309.264469] nouveau_gem_new+0x49/0xcc [ 309.264471] nouveau_gem_ioctl_new+0x3e/0x9f [ 309.264474] ? nouveau_gem_new+0xcc/0xcc [ 309.264477] drm_ioctl_kernel+0x64/0xa0 [ 309.264479] drm_ioctl+0x1d6/0x2a8 [ 309.264482] ? nouveau_gem_new+0xcc/0xcc [ 309.264485] nouveau_drm_ioctl+0x71/0xa4 [ 309.264489] vfs_ioctl+0x1e/0x2b [ 309.264491] do_vfs_ioctl+0x505/0x518 [ 309.264495] ? __fget+0x5d/0x67 [ 309.264497] SyS_ioctl+0x3e/0x5a [ 309.264500] do_syscall_64+0x17f/0x196 [ 309.264504] entry_SYSCALL_64_after_hwframe+0x21/0x86 [ 309.264506] RIP: 0033:0x7f0395218d87 [ 309.264508] RSP: 002b:00007ffc210c4c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 309.264511] RAX: ffffffffffffffda RBX: 000056213e828350 RCX: 00007f0395218d87 [ 309.264513] RDX: 00007ffc210c4ca0 RSI: 00000000c0306480 RDI: 000000000000000b [ 309.264515] RBP: 00007ffc210c4ca0 R08: 0000000000000004 R09: 00007f03954ddad0 [ 309.264517] R10: 00007f03913786a1 R11: 0000000000000246 R12: 00000000c0306480 [ 309.264518] R13: 000000000000000b R14: 00007ffc210c4d60 R15: 000056213e35e770 -ss