Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp332743lqs; Tue, 5 Mar 2024 03:34:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX+g/PK1BGHxvktq1yO4vKzWtpREhPTjUBD2X5jlPIREneZcgtVjzdFa8JcekL0TwP7u6PYdwIdyRP9n+g9vuaYlmFTYEfgXFnXejG/Gw== X-Google-Smtp-Source: AGHT+IH52aDCgNarAtUKCVcly+b7V43YLX2Hik/MTdcfTXRnvTDwAd/bbHYK5qbmPEeqG4eSsFV3 X-Received: by 2002:a05:6a20:7da0:b0:1a1:4119:5afa with SMTP id v32-20020a056a207da000b001a141195afamr1544458pzj.38.1709638442943; Tue, 05 Mar 2024 03:34:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709638442; cv=pass; d=google.com; s=arc-20160816; b=hCO1vXpvKBLm9noKmdoj41A3WtAmNPLtlFiVBlReQCVLES/nJd/p4xz1O6UC3tzWFf f+zdegm+cwaHk1sM/Ju86z/QEjxG5IgS7gXqL5tNXoOR0LRgRyCm97AUCNwOvJ551X9X mI9b/ES1bj8CBvybsk692fqlA3iAYZF8pe4W00q03DoDw76qLOZYyH35uB8rafFcHBi6 Teiy0PQF/tHlqSdMhc7NqihEg5wndK4z6RZSSqTI8+LiH+PjJKi62GjBb1MyzyS0gMyF 2e4nk79I2hk/Lm7z0a79vTS6zFYReqXabf5UgTyQO/BuMcmVImfg5tWvh4BRX2m37Jyk o5Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=gPhqBhHN4MysPSjMJrF2oLUhJW5rd4tKsT5cmRjpw2o=; fh=Lm2Lzhp0h/hqiOE3NU/mmk7rbuMIPRXFQQbKvHsh7Ug=; b=V3v3P3Zj9IWHaUcF2f3a2EV+2vZac9FhZZCTIxTMfh6/4jQAOM/b212IEX8tcqiJn/ xUBhExwD/y70c5YbOTKzXQnweBa//Dg6O6RshG8Q8qrQ9n7af0d3cxmUNtUscKcSqVcd RcGOcpndyuN0KVwR5MbuHA0LaF/tZlWJW38IVkWgGwB++BX+ehOHANVzj7VzThIqrsBS finQt6KQhaV/1dyn271GdQJ9+lb8PLwZ3fRi7zbg085sDi08J8hAQEGgsVydL8xLoijD uDWQ8H16LxN7PjIkfr2EWhXBjOqxbwSJ/A7soubUICSN3sRSCqRDT3oqhYoXbXG+zml6 L6wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-92283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92283-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c13-20020a63d50d000000b005d66232593dsi10102749pgg.868.2024.03.05.03.34.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 03:34:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-92283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92283-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EE7EC28102B for ; Tue, 5 Mar 2024 11:33:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 495615B20A; Tue, 5 Mar 2024 11:31:55 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7D6459B62 for ; Tue, 5 Mar 2024 11:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638314; cv=none; b=TXkGbxU9CF4sLQQFLQbf79bUI26umCNpWjcfZvL18n9M+jIV3xyifsG9ylPRr8RCwFYlF9dbAgwUl2W9QTQESJpgCPyFiXJvOlovnkZxCW6ub6mtouFFTRYU3MkF/nbd6nuoqFUZ1J7acg/ZrqSme8HGu9gsgMO443r36HUhsR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638314; c=relaxed/simple; bh=Eq7aeNGjONd1fpt7pBZhX1cgNq4mlV4aurE5+rGBSUU=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=UBO3E6UW6qmkq21eRVaBWBzn14MmR0pbZ2QqFIKkrNczJkXwso0v2ZKLNIHlOFDeJbL+Tk5femM+n1tAXQeybZJ6fK/hDR4fNdvI/VKWcVMPFrox81tMzDEu+tWkLB/DJ58D7pHR6Zg/owGNMq4TuJMEaaimPvdGNhx/5MS1d1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav119.sakura.ne.jp (fsav119.sakura.ne.jp [27.133.134.246]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 425BVEM1099162; Tue, 5 Mar 2024 20:31:14 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav119.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav119.sakura.ne.jp); Tue, 05 Mar 2024 20:31:14 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav119.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 425BVDtT099159 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Mar 2024 20:31:14 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <06c11112-db64-40ed-bb96-fa02b590a432@I-love.SAKURA.ne.jp> Date: Tue, 5 Mar 2024 20:31:13 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] x86: disable non-instrumented version of copy_mc when KMSAN is enabled Content-Language: en-US From: Tetsuo Handa To: LKML , the arch/x86 maintainers Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Linus Torvalds References: <3b7dbd88-0861-4638-b2d2-911c97a4cadf@I-love.SAKURA.ne.jp> In-Reply-To: <3b7dbd88-0861-4638-b2d2-911c97a4cadf@I-love.SAKURA.ne.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Ping? This is current top crasher. I hope this patch is applied before the merge window opens. On 2024/03/02 7:52, Tetsuo Handa wrote: > dump_emit_page() caused a false-positive KMSAN warning, for > memcpy_from_iter_mc() is called via iterate_bvec() by setting "struct > iov_iter"->copy_mc to true. > > Fallback to memcpy()/copy_user_generic() when KMSAN is enabled. > > Reported-by: syzbot > Closes: https://syzkaller.appspot.com/bug?extid=d7521c1e3841ed075a42 > Signed-off-by: Tetsuo Handa > Tested-by: syzbot > Reviewed-by: Alexander Potapenko > --- > Changes in v2: > Update description. > > arch/x86/lib/copy_mc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-)