Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1828455lqm; Fri, 3 May 2024 07:41:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcckQHL8WGCoTOfqh4esdYunomI62RwBl4+lHGLcH54Y1LRWxK7eMT8mjWVa8jDlGNJirj/HE/O0JEusKsTA8XUkqPmcftLEU5eTiF2A== X-Google-Smtp-Source: AGHT+IElZyimLTERJWq2MSGFzuuvHNipw2izfds2Jkvl+NjoqtBvv6/hah8EPgyNDO4QD0kjl9Pq X-Received: by 2002:a17:90a:2e8a:b0:2ac:116c:6fb5 with SMTP id r10-20020a17090a2e8a00b002ac116c6fb5mr3108968pjd.11.1714747276301; Fri, 03 May 2024 07:41:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714747276; cv=pass; d=google.com; s=arc-20160816; b=Xq+tQyyIQvPsGpbThaAqPO5PtlfaM4wsvwo5nUhPB7V8pgSkMhr7OewTCUOjSm2sT6 /4RK9t1WpQfpQkxLiUiyzwy5tJv5ozwfQ1PjGAtfBPupKNlHblIbk+qtf+mK3ta0v2kN wbYEe5Yd+pMKXYBntGh6FEeKziDx3ykUHNzVW0aOB5w4EQrHdsIy7QpdLLH94XfM8jlQ bYgPJTyIPTEQcfG1JMfrKfS9LYKKqDcZUbnGp92Q1W0YNxN+HnUoFn/zmki41ovG4mwX aO5i9s2R1aR2YwwrDkYp1MRPooU/RvTqKBXAnYP0GuqeekDAvSNGvaiKzHNuWS4E0uwo FykQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=RCRfSlaPM1t5F/6SBS/FBJZDsXajbzGONBj6BMeCrak=; fh=RIQGq8jlCv9c9lq6OQ2iJ1vWEhX7dn1pfVBWKXx4k38=; b=mhDy5E389nwhy0JPpeEoNn9mhHXBztsyDyVuy/XurFokzcLdfW/DaQc9SXh2X47fGc QusaIDQPP5aitfiFrCFWri9pE4SCsHMAhiUBMRB48hHlzICPK/XaMOlA5mocXMYIUHkr JAvWS1KuB+uGfiR3zvHsjmJrvviVfXezczOsKXHjEiXussGkKqSJgeDjV9KoY+0hAIag 2bM8tdumaOSikal9L+yLspFicdd9BA3hgXFLEAjQ8iTLbEcAE7ZyTh2R5BsbW7SUdF74 E9LYn4f1Z7+mAHFUHqHcKDxpBEGONKp7Zu7HiwB/OksRzQo01Nx5BNjj13eVXV2NQAN0 pLBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-167783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mh18-20020a17090b4ad200b002b2ce888193si5767952pjb.33.2024.05.03.07.41.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 07:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167783-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=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-167783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com 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 51D362844FC for ; Fri, 3 May 2024 14:41:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E726842056; Fri, 3 May 2024 14:41:09 +0000 (UTC) Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 299F02B9C0 for ; Fri, 3 May 2024 14:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747269; cv=none; b=YDuxGg4VfyAeXPelPmvHVQih+nFV2T9XVXIQAVSdc81lj0LBEr5L84XuGHuk0DY4mG0As8guEmWsVaEyoAenhkLINTbCqO3bhbKHOS2PXKRXM+YabNmIToxbkZu671krjHeIoZQyIBFpN/rc7Bvnyf5h45Pjy7GOmDoszqo1Ee4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747269; c=relaxed/simple; bh=WQN/EnPah1ram2Vd3RsbdX40jJtEnD2QyPPDAIT0EFU=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=CTfjUHYkRuhCy2p/hQ+dZYFPBbn1QhtOopoI5xYP/9U5MUEarA300reOLR8Ain0zptnFlW9LEgAYryE9fAvpOV7zf2TI4uiJrxG7n5JvhQaICtnI7hv1uwgOXGLBnIG4VIIUPLHcy3VsTOylMcMvJhLa4CcdPJefhjlzZmMc1DA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-36c2ff79144so84416955ab.2 for ; Fri, 03 May 2024 07:41:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714747267; x=1715352067; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RCRfSlaPM1t5F/6SBS/FBJZDsXajbzGONBj6BMeCrak=; b=tsjxLJri9Dyvb+05GWkBjeDNljjSVBuvzz5wswFwxCHgdHFonD9Udm4Owz1wJ7YyND q6AtV1oEZIs3nwY38lijlJsEjOFjvhomaZMEduaXsSyVw+r5JhMjeDwvZANSbhS+dlJW Q1fCaqlh0OzMqZD2lAPjSqff7WkCHJgUVLCinrb5EAihs1zP+GH0aVBjyGvPWg5eVn+S nCL15HI95mlmzzNRgUsEiLP3WqSTbUFZlIvBRC7xUSp22tBJQQ3K01s7b3LlVSyurnjQ yE9k0gAZJWlj6jSj8hpGzwRjpEQTQ3oJ/nbwEelj3Fl0xnRCl8KbUJ6dbC9Hw/X+lzoG GpHw== X-Gm-Message-State: AOJu0YxvsNZ0/RaEih2RHw/F5A5ugK6FKw2e6XPN+CWypz7FYAEpKz/m HhT5NEzRhTtuacut2tvfOhpCWyjSMGx2IoZKJ6Pqn0jvLb/h4FTYpz2d3NL7mnQHBWE+xpmtqrN mOyFrx0ppOzJvbqIRnBvLS6fCshodSnpE/Lugx81wJai4BZhW6BAcdNo= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1522:b0:368:c9e2:b372 with SMTP id i2-20020a056e02152200b00368c9e2b372mr118992ilu.0.1714747267452; Fri, 03 May 2024 07:41:07 -0700 (PDT) Date: Fri, 03 May 2024 07:41:07 -0700 In-Reply-To: <20240503144055.3820-1-n.zhandarovich@fintech.ru> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c1a36406178db530@google.com> Subject: Re: [syzbot] [crypto?] KMSAN: uninit-value in skcipher_walk_virt From: syzbot To: n.zhandarovich@fintech.ru Cc: linux-kernel@vger.kernel.org, n.zhandarovich@fintech.ru, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" > 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 This crash does not have a reproducer. I cannot test it. > > --- > 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);