Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6168500ybv; Tue, 18 Feb 2020 11:14:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwdmf5VqxuH9TFFdXyfMf5nJaQrYWR2qAK4XOr5toxEzdi4MqI+VnD53wdhrIt6juKn0jgu X-Received: by 2002:aca:cf07:: with SMTP id f7mr2271302oig.5.1582053294150; Tue, 18 Feb 2020 11:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582053294; cv=none; d=google.com; s=arc-20160816; b=HPJ/ckGY5UK1KDbCXyAbyOlHkwYy6ofTTpTEh3rq/MDfiQq9WfQPthfOmO53K34MtB yIb/q7zBPDLGTxh7qU1YZuEfB/sCPdrAC2QnP4iBYFsm9MjN0DDBfXE5+39YEGPHyHQk aDrT9zOZO19DsNeykCWIvDVhTd9gJngKgehpBf/QDEzoqIg4R0A64HzSFTOpbN1oMWHg 08DHM8GB1BBAZkhyhoX9GAmOE4X9O0tWH4peTZi/smXZQL0YVmGyVXtqaj2BDvmoBSxe 2+nXwVmUNq/lBar5Trw8RQ/hjOwBcO6X/D7ylK5e/85gSR4LrD8cIlDD/iVFs7gCkpnr jecQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=klYs7sANTDBUGahPUju9sGWKYr/tKylftyYSkWKVd7M=; b=EmUejaeCed2uPBCuDggzVWh0AmOrSFVX2cfRJBNvS5UhgbrxFyhK1XN/KO+EMfGeJd vF03vIfIMIrnJvUo/mJ+jtFt/JaK4iK5eJ4kzB+pIiu/pdyo6TiCG/can4Yw7CgvCF1c d3wjLdKi0Gmhy+3G0qA27u6zSI8jgSPNZ1P/uG9cxCJsHuduFIbL7wPAqRVje1WyY+8y v8vdCoswNO8UsJsoUghUQX2KlGyanGqn+69DsKBf0QwZYpvfcNcUkk/yOu5QJkpiE8iq hWJe9PZ6mUbnJrM3u814gJDZLyUvHcspTXhlNmEqIbjG2abVzJNQfe6TQ2bgehxLEfMa gKpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=evNMlimV; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si2257857otg.66.2020.02.18.11.14.41; Tue, 18 Feb 2020 11:14:54 -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=@oracle.com header.s=corp-2020-01-29 header.b=evNMlimV; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726422AbgBRTOe (ORCPT + 99 others); Tue, 18 Feb 2020 14:14:34 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:50842 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbgBRTOe (ORCPT ); Tue, 18 Feb 2020 14:14:34 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01IJDwQt186783; Tue, 18 Feb 2020 19:14:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=klYs7sANTDBUGahPUju9sGWKYr/tKylftyYSkWKVd7M=; b=evNMlimVu3xmXlI/jjEVBPaZZEWMkPu5+xRAILOSZ2HHqMNX69dd4vUwzjS8x59DrKdd 5nxBXGA3OxMdQin9eVnqgx0UqW+1nEMf8x/kDSi86SYett7WmGvjQZ3xU2lv8WtntjVE tPrSIL2BuuBGNJmoTMORRAExFtSh/hQyPT9m1wMTtokQ4/aR5VKRxcCbDqmEOcRMPnXu D6rahYOQtdo0znPDwFlsWuDUii+txSF/XOSXmCiu9lHDxNqfPTnOMaN78+EcuVzTeHaS 2/rVylv79hPpyksaAUnl6ZKWAAQuolmrGuWMalYnfocc3uXd3cNr1f8QnOOGdNhGAkqN Sw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2y699rr9v1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Feb 2020 19:14:24 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01IJDkEC050650; Tue, 18 Feb 2020 19:14:24 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2y6tc2wunw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Feb 2020 19:14:24 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 01IJEM8r000976; Tue, 18 Feb 2020 19:14:23 GMT Received: from [192.168.1.206] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Feb 2020 11:14:22 -0800 Subject: Re: [PATCH v12 1/9] hugetlb_cgroup: Add hugetlb_cgroup reservation counter To: Mina Almasry , Qian Cai Cc: Andrew Morton , shuah , David Rientjes , Shakeel Butt , Greg Thelen , open list , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org References: <20200211213128.73302-1-almasrymina@google.com> <20200211151906.637d1703e4756066583b89da@linux-foundation.org> <1582035660.7365.90.camel@lca.pw> From: Mike Kravetz Message-ID: Date: Tue, 18 Feb 2020 11:14:21 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9535 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 suspectscore=27 mlxscore=0 malwarescore=0 bulkscore=0 adultscore=0 mlxlogscore=986 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002180129 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9535 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=27 malwarescore=0 priorityscore=1501 adultscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 clxscore=1011 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002180129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/18/20 10:35 AM, Mina Almasry wrote: > On Tue, Feb 18, 2020 at 6:21 AM Qian Cai wrote: >> >> On Tue, 2020-02-11 at 15:19 -0800, Andrew Morton wrote: >>> On Tue, 11 Feb 2020 13:31:20 -0800 Mina Almasry wrote: >>> >> [ 7933.806377][T14355] ------------[ cut here ]------------ >> [ 7933.806541][T14355] kernel BUG at mm/hugetlb.c:490! >> VM_BUG_ON(t - f <= 1); >> [ 7933.806562][T14355] Oops: Exception in kernel mode, sig: 5 [#1] > Hi Qian, > > Yes this VM_BUG_ON was added by a patch in the series ("hugetlb: > disable region_add file_region coalescing") so it's definitely related > to the series. I'm taking a look at why this VM_BUG_ON fires. Can you > confirm you reproduce this by running hugemmap06 from the ltp on a > powerpc machine? Can I maybe have your config? > > Thanks! Hi Mina, Looking at the region_chg code again, we do a resv->adds_in_progress += *out_regions_needed; and then potentially drop the lock to allocate the needed entries. Could anopther thread (only adding reservation for a single page) then come in and notice that there are not enough entries in the cache and hit the VM_BUG_ON()? -- Mike Kravetz