Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp510776imu; Fri, 4 Jan 2019 01:58:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/WC8PxSLCRfKmC6p3REkz56SbsXQgOqxvopLa9FIontEgY2CjK9jikLqHGiLPmKEZruiPhd X-Received: by 2002:a62:5486:: with SMTP id i128mr50589319pfb.215.1546595888552; Fri, 04 Jan 2019 01:58:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546595888; cv=none; d=google.com; s=arc-20160816; b=VLkIVVWvCAnMXfNcOwkZ1+OzWEzfVE5ZNixyx7wX8tEixFAyn8V9UTNzo7iXmQledi QQeSkd1KOH5VvBuS4NYNM7p5IPfXzgr3YA2ojiEaEW0r+AE6ekQNvtWrEHnm2ijADTtK 3ZQbdvPcLGSKqBAOe6LfX24K/T1f8Y43TOIMUgFlvbz1ExAAOpBJLGBijFJ5JJ/cPcKH 4m3a4tHxOoT7B901U++sGjILscmRGiJFDbjmiTWX3itYoUI7lvE58MxTj2Jx+Hqjqcgb gFmgFznvl/cE31nj/immk862vmf/Ljse//x8wkdM9AYoj4p4PB8/N4zCJPG4ebWpRgbc Rrsw== 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:openpgp:from:references:cc:to:subject; bh=FOpnH4fR9Lj+j1C/3jMjbyifu+eEfEWLY9be1qTolM8=; b=VdpEGJ0sEpoA2Ad7CALdMXN54LpF9FSmCzCYTCHuXaYrX9eGSqI0P/oGXMKjhsLaVR ZSw4bAWqxR0C9CW3RU7NeYrMrnrfqCqj3cndrX2onxUJAqs3xAJU3bVicNDsSsHce6T3 QbaYfj2J86DIIUpzEh+WZb5iwjqqytDrcbQZN7M3l4NcmbNVdxg1pVEzfDw/Pzgb224b TW3FUEreOaefN1LXLXljjUby6MFK2yV83Fo/tYERVr/QQKVC5nIwUXtfpfSVjB2k+3rZ U2nG8zPhaucRnJMDuaAi45u2/cnTPgLlypPuU4eDqclnp7DO4HLOKqM+77uwsdoHv6Dn X76w== 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 g19si9574859pgj.358.2019.01.04.01.57.53; Fri, 04 Jan 2019 01:58:08 -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; 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 S1726786AbfADIud (ORCPT + 99 others); Fri, 4 Jan 2019 03:50:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:60314 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbfADIud (ORCPT ); Fri, 4 Jan 2019 03:50:33 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 34CD2AFD7; Fri, 4 Jan 2019 08:50:32 +0000 (UTC) Subject: Re: KMSAN: uninit-value in mpol_rebind_mm To: Dmitry Vyukov Cc: syzbot , Andrea Arcangeli , Andrew Morton , Alexander Potapenko , "Kirill A. Shutemov" , LKML , Linux-MM , linux@dominikbrodowski.net, Michal Hocko , David Rientjes , syzkaller-bugs , xieyisheng1@huawei.com, zhong jiang References: <000000000000c06550057e4cac7c@google.com> From: Vlastimil Babka Openpgp: preference=signencrypt Message-ID: <52835ef5-6351-3852-d4ba-b6de285f96f5@suse.cz> Date: Fri, 4 Jan 2019 09:50:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/3/19 9:42 AM, Dmitry Vyukov wrote: > On Thu, Jan 3, 2019 at 9:36 AM Vlastimil Babka wrote: >> >> >> On 12/31/18 8:51 AM, syzbot wrote: >>> Hello, >>> >>> syzbot found the following crash on: >>> >>> HEAD commit: 79fc24ff6184 kmsan: highmem: use kmsan_clear_page() in cop.. >>> git tree: kmsan >>> console output: https://syzkaller.appspot.com/x/log.txt?x=13c48b67400000 >>> kernel config: https://syzkaller.appspot.com/x/.config?x=901dd030b2cc57e7 >>> dashboard link: https://syzkaller.appspot.com/bug?extid=b19c2dc2c990ea657a71 >>> compiler: clang version 8.0.0 (trunk 349734) >>> >>> Unfortunately, I don't have any reproducer for this crash yet. >>> >>> IMPORTANT: if you fix the bug, please add the following tag to the commit: >>> Reported-by: syzbot+b19c2dc2c990ea657a71@syzkaller.appspotmail.com >>> >>> ================================================================== >>> BUG: KMSAN: uninit-value in mpol_rebind_policy mm/mempolicy.c:353 [inline] >>> BUG: KMSAN: uninit-value in mpol_rebind_mm+0x249/0x370 mm/mempolicy.c:384 >> >> The report doesn't seem to indicate where the uninit value resides in >> the mempolicy object. > > Yes, it doesn't and it's not trivial to do. The tool reports uses of > unint _values_. Values don't necessary reside in memory. It can be a > register, that come from another register that was calculated as a sum > of two other values, which may come from a function argument, etc. I see. BTW, the patch I sent will be picked up for testing, or does it have to be in mmotm/linux-next first?