From: Pavel Skripkin <paskripkin@gmail.com>
To: syzbot <syzbot+cba21d50095623218389@syzkaller.appspotmail.com>,
davem@davemloft.net, herbert@gondor.apana.org.au,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [crypto?] KMSAN: uninit-value in af_alg_free_resources
Date: Fri, 14 Jul 2023 17:56:54 +0300 [thread overview]
Message-ID: <9f0365cb-413f-2395-2219-748f77dd95a4@gmail.com> (raw)
In-Reply-To: <000000000000bde775060071a8d7@google.com>
[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]
Hi Syzbot,
Syzbot <syzbot+cba21d50095623218389@syzkaller.appspotmail.com> says:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 3f01e9fed845 Merge tag 'linux-watchdog-6.5-rc2' of git://w..
> git tree: upstream
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=14bac16aa80000
> kernel config: https://syzkaller.appspot.com/x/.config?x=1542573e31cfbec5
> dashboard link: https://syzkaller.appspot.com/bug?extid=cba21d50095623218389
> compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15dd215aa80000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14530318a80000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/4f212a7e36fe/disk-3f01e9fe.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/de6b12daf908/vmlinux-3f01e9fe.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/2c1992ff2aaa/bzImage-3f01e9fe.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+cba21d50095623218389@syzkaller.appspotmail.com
#syz test
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
With regards,
Pavel Skripkin
[-- Attachment #2: ph1 --]
[-- Type: text/plain, Size: 379 bytes --]
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index 06b15b9f661c..4e4f2d837481 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -1241,6 +1241,8 @@ int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,
return -ENOMEM;
}
+ rsgl->sgl.need_unpin = 0;
+
rsgl->sgl.sgt.sgl = rsgl->sgl.sgl;
rsgl->sgl.sgt.nents = 0;
rsgl->sgl.sgt.orig_nents = 0;
next prev parent reply other threads:[~2023-07-14 14:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 12:33 [syzbot] [crypto?] KMSAN: uninit-value in af_alg_free_resources syzbot
2023-07-14 14:56 ` Pavel Skripkin [this message]
2023-07-14 15:31 ` syzbot
2023-08-11 11:26 ` Herbert Xu
2023-08-13 12:09 ` Pavel Skripkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f0365cb-413f-2395-2219-748f77dd95a4@gmail.com \
--to=paskripkin@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+cba21d50095623218389@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox