Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp412168rbb; Sat, 24 Feb 2024 06:03:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVYe2sIKPWbvByDvi8mxFI2iA9jqqI39l3201KHo5ALLC7pbld6inLlHMUSvURLUUmYq3km4gxlYjjbTFoPkP3YNylx8UpTPywDATwicA== X-Google-Smtp-Source: AGHT+IFVKFLS8uRtD03Po1fMTuZasaD3Pq1421JJcutDNRH5Xoe0WrZC9QLyUbiwvNC4OnsgoBpc X-Received: by 2002:a05:6402:5413:b0:561:64e6:b5c with SMTP id ev19-20020a056402541300b0056164e60b5cmr2278223edb.7.1708783414334; Sat, 24 Feb 2024 06:03:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708783414; cv=pass; d=google.com; s=arc-20160816; b=l5tBeL9jnvZFy10gydRrd5BW2BTSJQT9kex75siHJljCkQfpg2AMpPt9W6YkUgMT8a JjvsFWCqtLGbqoZFKRWKlgze73dO4R7WHRSIDPDvLLEhXeD/NK7QRlga02er32qlVeOL +UY1JKTP4WqtfmvFkCo8DN7ar8iU/hlObLCpps61hXLOkt/8vCM5xNKczXMZmL+EGXju K1ya1cIyfUKIkEd3z58XTM1Ru0ce+OKOZplkLMzSy68d+SDTrIEjWem3pIEt5hUMRQYN JSyK6polrdzLzLuZHwRbFrXU3Zq37YOmf0TKY106Jy/pUBGV7i99Bt6MW8MOu7nV1Mby T7gg== 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=lULYIInfNqam5NkuKJGZlx8uTk1WISUjeqw8pJnwMKY=; fh=XtnChCGTA7i8TGRIfzbKtEnVweQvxQA2iZ1Ims3W+AE=; b=HhEz2VgylxbO8tQM29r9EdX39/zgDQUpou0+BNEg5N4NWczuLvdnVs3sk10ug/D/Qp RCeTumKbuFxAQbf15vys8Ue/dlapL1LXnlmUIT5Gcm1j2NfH1/FYQ3pUJ1GjGjKkLvol gaycjgILgWCCWvcPcNj/aTE4/B+gdZ7rEZFYKQvaC5tL99CGOIqIjP1miUFPudqe+DXO wXFMNOxtqGd8EcbNHEHaGGjUwND/9N4u3iG4f+Px3ZVuSJ7UZMtxzQhiMp5eF7Gy2ftJ VPBrXCUfMIEX72yGK5xEgzLHaxzCfd8NxIkMsox1WihbS1kGfKTnsRCzV1zg1IiW7JV9 S8UQ==; 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-79700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79700-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b7-20020a509f07000000b00564df05214csi526542edf.275.2024.02.24.06.03.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 06:03:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-79700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79700-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 15BFA1F22135 for ; Sat, 24 Feb 2024 14:03:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E90923F9D8; Sat, 24 Feb 2024 14:03:26 +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 AF4C8125C3 for ; Sat, 24 Feb 2024 14:03:23 +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=1708783406; cv=none; b=iCGMBwarYuxTq7SRGSIfJhLs1x7TZZCagao6SV+xZqfTK+ICb+Qfrix3EkGQx5w+srq6L5lUXwqU6IHeRWidWUZW8cBmA9vAO7ZQFJgn0ZWqLsayF49MnGMjeQe9Mrlo/C57XR1S4nXuG0U2c7i+5tsZ/Amy7FYkCalMEfXqEI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708783406; c=relaxed/simple; bh=afNNIaUX0z7Iyxfw8aTLIJeHiK9YiB3+0fDj+XfCCNA=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=PzkGzz8InronjmlKj8kIC8phsJnvcfKsibwZzTzgrN7/w9Jwwtk2SG4WrIdNhJw3DHB2lyzT9bOHfHcgkvnzabfAkf7lzCoxejSoHtVi8DG264oly1pWWCZYDf35ZevLgWDL+dwj9JsGd8Pwp4tFBx8LoqKljDU1kAzUd2iIiCg= 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 fsav415.sakura.ne.jp (fsav415.sakura.ne.jp [133.242.250.114]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 41OE3D3v000506; Sat, 24 Feb 2024 23:03:13 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav415.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav415.sakura.ne.jp); Sat, 24 Feb 2024 23:03:13 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav415.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 41OE3Dv0000503 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 24 Feb 2024 23:03:13 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Sat, 24 Feb 2024 23:03:12 +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 From: Tetsuo Handa To: syzbot , syzkaller-bugs@googlegroups.com Cc: linux-kernel@vger.kernel.org References: <000000000000fd588e060de27ef4@google.com> In-Reply-To: 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 v6.7 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