Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2500284yba; Mon, 6 May 2019 07:07:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhosbFjweVwjxRd2MiftzGP1Y6I9GWO3bXDYvvlbok07I6d7smL6HScaoLUjJRWJ32wuud X-Received: by 2002:a63:7f0b:: with SMTP id a11mr30356301pgd.234.1557151653979; Mon, 06 May 2019 07:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557151653; cv=none; d=google.com; s=arc-20160816; b=QegqBzflthO+D6KTVZDF2ww2fTw95yuHuVHFB/2qBruRp/qYoIo5DdpE2YfcwxURW2 K5LiiylcWZjnIoQbY4/CyAj6G/LmcVqS8mlJCBYj8+fNiVP1sT42mP5Y1H3xftuyduv1 mndfd40Y8+7tPm0Q0stEU/kwa9IyTMK0zTtDtbDK0WuKt6VzIxy4O/BhpWbtMOlyF04M i16LsaH6pfi4hdvYnECuuPOseHhuflMy4+yPW0H4ZaqVCZE7zmoIvmvzg7Pjfzaj1QY8 YRZO9vDzJsmTfLyf+K62Ay+OtUxZHzNLmWQtIcmVk7pkNS2sQsZ17C/2vPdPlfxXfcOd Vcaw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=v0ZpZthk7KC02tnE2qOshb5LHR8NT8ZwOlhQdJj64P4=; b=TuEwWORBqz/sLjuwcH2qo0mny3322GOR+70pPSiG3uAQAVLb7a3zxCaLenqxXONpQX yIx+BncuwPjcU4jAzvjSsk+As6/queWXtUxWQ9TghQHhx7Tz+0qX/BGaWryKsBgxYaXl AFtRV4Pn6h9lWiepLI/qoTpTydQ+uuCpQXoXpd1Dj6I39PK4Y3a79OUDar/n/SeV0X6m 86Fz7DHdtQqVJvSu5C6X2jPAMK9Sfj/wWroqLdB/YijeeCOCmNVLX5Q27S8IptYNzBmK F92aVVKWyvjkRhOVf5d/fkGHPyT66oZeZq8vuqVI8K+bE5dfg+sFqoglG3ETfbBb83Nz qyxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si15171014pgm.186.2019.05.06.07.07.17; Mon, 06 May 2019 07:07:33 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726255AbfEFOGA (ORCPT + 99 others); Mon, 6 May 2019 10:06:00 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7728 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725852AbfEFOGA (ORCPT ); Mon, 6 May 2019 10:06:00 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8BC805C34C77B0AC26C3; Mon, 6 May 2019 22:05:54 +0800 (CST) Received: from [127.0.0.1] (10.184.225.177) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Mon, 6 May 2019 22:05:47 +0800 Subject: Re: [PATCH] mm/hugetlb: Don't put_page in lock of hugetlb_lock To: Michal Hocko CC: , , , , , , "Zhoukang (A)" , Mingfangsen , , References: <12a693da-19c8-dd2c-ea6a-0a5dc9d2db27@huawei.com> <20190504130137.GS29835@dhcp22.suse.cz> From: Zhiqiang Liu Message-ID: Date: Mon, 6 May 2019 22:05:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190504130137.GS29835@dhcp22.suse.cz> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.184.225.177] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sat 04-05-19 20:28:24, Zhiqiang Liu wrote: >> From: Kai Shen >> >> spinlock recursion happened when do LTP test: >> #!/bin/bash >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> >> Fixes: 9980d744a0 ("mm, hugetlb: get rid of surplus page accounting tricks") >> Signed-off-by: Kai Shen >> Signed-off-by: Feilong Lin >> Reported-by: Wang Wang > > You are right. I must have completely missed that put_page path > unconditionally takes the hugetlb_lock for hugetlb pages. > > Thanks for fixing this. I think this should be marked for stable > because it is not hard to imagine a regular user might trigger this. > > Acked-by: Michal Hocko Thank you for your reply. I will add Acked-by: Michal Hocko in the v2 patch.