Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1829179lqm; Fri, 3 May 2024 07:42:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWhaQ2NtQuz0nkQ7tStHPafS0hWteeffh8/x2lZEbO9lDkvAwfftavhBNrLcENZFlnnxy7/+H1u7E+aLMMPt4LuUTxSwN6rJrsBths9g== X-Google-Smtp-Source: AGHT+IFDjllv1EPapoHzjdb+lspe0AqrcfO01rfx1GVRuHyiKjvh8OX16PvNAsHPesZsgSBDrt78 X-Received: by 2002:a05:6a20:da93:b0:1ac:efd3:4d87 with SMTP id iy19-20020a056a20da9300b001acefd34d87mr9848803pzb.19.1714747351484; Fri, 03 May 2024 07:42:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714747351; cv=pass; d=google.com; s=arc-20160816; b=kDSAjRm3VhVh1RCKtzUTkWTnNACtXlEMjki2QfXtOsP/4eMfDVoYisltfJnu85pGZf 8ISc8qm4gdvgVQD7PUF9JdeuAKBl4oWHdtHwtRf/et/l29wOqjZHKkRRJ2VgljaG0tWi uHdrRGUiU9Kiu0wuEXuDOPltAXi8TKAlZRZihEMiRvuU6S0oqosurqdCef+gO4iQIs21 gDZ287oz6+ZIJNXrgyacjQOSkJR02LThnOjVRE/AF3P1Lf0UmY0A+8psUZ/cmpM83z5+ ICu/dUBQ6bNtribJohVnpmbIqGe5T65X10X9glv2MyPZeY8PEuN9z5hyqCrBJaxYw72b TDkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=HQnaP1DX+0/T21sdIqnYQdjAxF0jXu/Oy5p3oiusDCo=; fh=kuEpySoK9rUtuXVqDfsBWT8mxpY9jFn/5SaX98Pw0TM=; b=JithF+LomQV78JVZQasEn81Jn1Su67E8fPFJY2m7g+yy1Kyrduk9JifbwamR0xc32L DrgnG7fgSxi5gZv7bFZcxMC6/DOKkNWzc3fz2A8g40VkgdmCbwGqk29nJOFvTAXp0mJT KyWl9WuhBkx3S7n4RA7+93NSqG6MlAewLFAgb1zT/VEXUxJ7ncwbbDHSy1bD3ootesJR dSCnuNEq1sv8SIXKLiajdB2ndse7vPDYZmM/Gd0bdBsQzfjPVXvNj7lQdPYjXHjJhjS9 jR3vtMl1hZ500idbM05MQfC90caOy6nz5OPW042gddpE6DeMZe3s2Iv9coQvZcRf8loZ 5RDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=fintech.ru); spf=pass (google.com: domain of linux-kernel+bounces-167785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167785-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 b11-20020a63cf4b000000b005e4f1d48cbfsi3160310pgj.816.2024.05.03.07.42.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 07:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167785-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=fintech.ru); spf=pass (google.com: domain of linux-kernel+bounces-167785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167785-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 002452844FE for ; Fri, 3 May 2024 14:42:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B69A41A87; Fri, 3 May 2024 14:42:26 +0000 (UTC) Received: from exchange.fintech.ru (exchange.fintech.ru [195.54.195.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 396F679E5 for ; Fri, 3 May 2024 14:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.54.195.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747345; cv=none; b=YG0GGk9CRu6WliHXE1tUC/1KEPWwS4uzGYSRo0lI+XJgQTopsw/+/8B7chMu/r/d5niH5wggz2PYgyxT6L6z5/RLvCCkzzsZ4wz88i8aJ9y7GR/C+dgvAsU1wJQG1NfKJ1XKTJAysyG4LEozDkU83cUJwWlVnL1BXMKosW+4rxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747345; c=relaxed/simple; bh=mDc7l4BQOtQuW0woQaACXN7GwQ/3uPIg/A4ox0GMq4k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jMHYeQLjb03hc3czQJ4PDLkLBd3WOcGZjQhbebThHQSuEfbYPz9MbGaAIW7hceoZYtXV37P5xqZn3fL2onUEKj7tkh0RddfS14yd2bryK0SynIUhwPK0TKzCU9Sfherny6WxBLFaogTwlLNYj90RCP0D5EtQqoTFz0UbfEtd9AU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fintech.ru; spf=pass smtp.mailfrom=fintech.ru; arc=none smtp.client-ip=195.54.195.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fintech.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fintech.ru Received: from Ex16-01.fintech.ru (10.0.10.18) by exchange.fintech.ru (195.54.195.159) with Microsoft SMTP Server (TLS) id 14.3.498.0; Fri, 3 May 2024 17:41:05 +0300 Received: from localhost (10.0.253.138) by Ex16-01.fintech.ru (10.0.10.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Fri, 3 May 2024 17:41:05 +0300 From: Nikita Zhandarovich To: CC: Nikita Zhandarovich , , Subject: Re: [syzbot] [crypto?] KMSAN: uninit-value in skcipher_walk_virt Date: Fri, 3 May 2024 07:40:55 -0700 Message-ID: <20240503144055.3820-1-n.zhandarovich@fintech.ru> X-Mailer: git-send-email 2.25.1 In-Reply-To: <000000000000dcd2ae06178bccb0@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: Ex16-02.fintech.ru (10.0.10.19) To Ex16-01.fintech.ru (10.0.10.18) req->base.flags were not initialized, zero might suit in this case. Do it with skcipher_request_set_callback() as it's common practice. #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- fs/bcachefs/checksum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bcachefs/checksum.c b/fs/bcachefs/checksum.c index 7ed779b411f6..088fd2e7bdf1 100644 --- a/fs/bcachefs/checksum.c +++ b/fs/bcachefs/checksum.c @@ -102,6 +102,7 @@ static inline int do_encrypt_sg(struct crypto_sync_skcipher *tfm, int ret; skcipher_request_set_sync_tfm(req, tfm); + skcipher_request_set_callback(req, 0, NULL, NULL); skcipher_request_set_crypt(req, sg, sg, len, nonce.d); ret = crypto_skcipher_encrypt(req);