Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp254086rbb; Fri, 23 Feb 2024 21:53:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0vCX7VY8+jE/CRnYDtzwhvr+f23UgkzhuwbS9882UoukY7foMvhcaKcUEAunQtDK/g0jt15WD3onnqCO5QYqI3/cAthzoN62/05ri0w== X-Google-Smtp-Source: AGHT+IGPIKRKEV9YbrBpIPcctmNgv5ymbXxOzbOdUa8dmfSn4jd4MzaCXzZkLl+hMsSFvtFcs4bt X-Received: by 2002:a05:620a:1253:b0:787:c3a6:d00f with SMTP id a19-20020a05620a125300b00787c3a6d00fmr381874qkl.15.1708754013795; Fri, 23 Feb 2024 21:53:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708754013; cv=pass; d=google.com; s=arc-20160816; b=ImmjqoYyaJZjbAdtPRpDE0cp1DcFTwe7dC2njgtimOmhkAqKkZbw6N5VQJvrmly2at NrboPsXLALaKq07FizCGEt0uIDPYwD9cHmycixIeipxpqlquTz52czs3FtjSknORkUgM CgEoqeCBvvyU0DXgjn14G6veroLF6A8WsWNfX+6NMAB5wIWZGArYGuU62R/ANevmDHaQ X8x2q67//FJXucqm2LQnjydoq9PWaeGjz8q3F8q7/CyAtEI1O9ACYvv4MSmz8NJ+Omxz zv63ftIkuNrPXUiEMXrrtS+/+to8ySSYovPXeDuUimnoPP2CxHsaMw/XRTc/eFXz+VZ8 MWJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=2UdULV4iO70S7uN8q1afYwTgDu/Vl7VvqtCPJ31tKF8=; fh=XtnChCGTA7i8TGRIfzbKtEnVweQvxQA2iZ1Ims3W+AE=; b=Ie5no7/7xJIKT85xSbuu3upcgbpL8ka0zad19/4BCiwQrCROGbiFt1qbtuDWRdieCe 5mvkF4OxkObP8yXlLYt5UIvSQnhJBhWA8kO2U1Tr5g6QNZDkBt4aJpI3yB4pbODgVMmp ZP+7cciGVAWC0HVg5nLjWoaWcL6tcXSEz9mvMfLkyZ7wn7CJJN6ZrR7GShW5Ez5WAZxL YVTpgL2N+8BB3weLhWI884XU57UX2cllpd6emr5OPL69ZOJ9HQG7NeRqljP/Y8prSgfW mATf4uGVPiRYYvVwCvT6Z/ognts6RbArkLaIMiyIFUvCYmtpoKPnWNI72u9cOeikOV9l QRlA==; 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-79478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79478-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d17-20020a05620a137100b00787a0bed972si467987qkl.145.2024.02.23.21.53.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 21:53:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::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-79478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79478-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A3C71C21E2D for ; Sat, 24 Feb 2024 05:53:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 937A917541; Sat, 24 Feb 2024 05:53:27 +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 64D372905 for ; Sat, 24 Feb 2024 05:53:24 +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=1708754007; cv=none; b=OY5DPd8hWVLBkn2e8cxWY6kzo75RNPhNlbHwIoBQoIsgRfREQJhQZ/nC5yQyj1KM/WA3z3BmRHuDQa7JffwImkLHBhRkya7rT65qfJIxiJ3P9W9PzuZoFe7WOcQE1mnA9jau11/zBxvQFixeDiUu0BZEz2s3nMdRQAceZj1F/wY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708754007; c=relaxed/simple; bh=bsoRPzLUJOa1E29oA0qi9ZMadxedF0bqYf74YK12X0Y=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=ZgD2jq8liHU0yhGTE8rwrFeHDcvp6jQc0Dy8+IPkRn1T8D8aSvf0NRJUI+XFpvUJM/Zppa+H2ILAeiER0S/ReJP/OfaaGrYJu0X7puRkVwtwlqMowODbDe14aFj1oXbSrX+44OhfjLdxMWmsaNaCuLt+jX8/v9dElp5H6yFtzwk= 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 fsav413.sakura.ne.jp (fsav413.sakura.ne.jp [133.242.250.112]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 41O5rHQC080238; Sat, 24 Feb 2024 14:53:17 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav413.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav413.sakura.ne.jp); Sat, 24 Feb 2024 14:53:17 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav413.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 41O5rHJP080228 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 24 Feb 2024 14:53:17 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Sat, 24 Feb 2024 14:53:16 +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: [syzbot] [virtualization?] KMSAN: uninit-value in virtqueue_add (4) Content-Language: en-US To: syzbot , syzkaller-bugs@googlegroups.com References: <000000000000fd588e060de27ef4@google.com> Cc: linux-kernel@vger.kernel.org From: Tetsuo Handa In-Reply-To: <000000000000fd588e060de27ef4@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h index cc6b8e087192..f13bba3a9dab 100644 --- a/arch/x86/include/asm/page_64.h +++ b/arch/x86/include/asm/page_64.h @@ -58,7 +58,16 @@ static inline void clear_page(void *page) : "cc", "memory", "rax", "rcx"); } +#ifdef CONFIG_KMSAN +/* Use of non-instrumented assembly version confuses KMSAN. */ +void *memcpy(void *to, const void *from, __kernel_size_t len); +static inline void copy_page(void *to, void *from) +{ + memcpy(to, from, PAGE_SIZE); +} +#else void copy_page(void *to, void *from); +#endif #ifdef CONFIG_X86_5LEVEL /* -- 2.34.1