From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id D7E3E6B0292 for ; Wed, 28 Jun 2017 10:27:00 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id v26so3773760pfa.0 for ; Wed, 28 Jun 2017 07:27:00 -0700 (PDT) Received: from mga14.intel.com (mga14.intel.com. [192.55.52.115]) by mx.google.com with ESMTPS id 7si1949571plb.66.2017.06.28.07.27.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2017 07:27:00 -0700 (PDT) Subject: Re: [PATCH] thp, mm: Fix crash due race in MADV_FREE handling References: <20170628101249.17879-1-kirill.shutemov@linux.intel.com> From: Dave Hansen Message-ID: Date: Wed, 28 Jun 2017 07:26:51 -0700 MIME-Version: 1.0 In-Reply-To: <20170628101249.17879-1-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , Minchan Kim I came up with the exact same patch. For posterity, here's the test case, generated by syzkaller and trimmed down by Reinette: https://www.sr71.net/~dave/intel/log2.c And the config that helps detect this: https://www.sr71.net/~dave/intel/config-log2 Acked-by: Dave Hansen -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org