From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (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 7C809643 for ; Thu, 28 Dec 2023 01:11:38 +0000 (UTC) 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-io1-f71.google.com with SMTP id ca18e2360f4ac-7b71b4b179aso369787239f.1 for ; Wed, 27 Dec 2023 17:11:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703725897; x=1704330697; h=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=53BkWtJJBzqQ1P6c/UoMHi1N9c4Y/hvc/0Gyi5+W830=; b=rFf7FRZEvxHbM/7vwP7jtpZAo8TbulhDh2V3U5mnh7mvLqWcR/sANdlZjmJ1SFy+jQ mi7+e1D649oa77ZUkIWrbTk7onBRQh32fwpqQkxTfNvyo2reSFkXXHW4h4+oJ6V+hRS1 mN7zHV1Tk61BPm3Xmd0WI+OBTJ/nzvts2l95rybN7FLJlDikUEonkxSebvgWK1dUGcHM aC65iA5Cfoo+PiJDu/C201emTS8fvFSfHKGtL9UOrrzBn7cGV5bx9S5B1/f5oTMjsOhK hRQuYQ3ka0UPtL48F49hYlNi0ssLnD1ogFD9DmqZ85MCEIpnVOPe8k522WP15rW0CwwQ pY6w== X-Gm-Message-State: AOJu0Yw5IwdgrzwicyLjko29KwIuboKMIH8cvrOgJbmFhrxUgXelRPcG eDV8oeP+HeUc/TQyn2XZaRaMe1tTop/ZZpB65rC+hxlaSmyYHGE= X-Google-Smtp-Source: AGHT+IHKl/Fo8LIBj6PHOZcijC51RaHw+ZGL0Xd0QIyodSBCwejtWzv4gHSxgsZKUOAhC3DRN+W83I3mDjILPKKspJma5d+rE1WV Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a02:90c4:0:b0:46d:5d7e:2c67 with SMTP id c4-20020a0290c4000000b0046d5d7e2c67mr209419jag.2.1703725897685; Wed, 27 Dec 2023 17:11:37 -0800 (PST) Date: Wed, 27 Dec 2023 17:11:37 -0800 In-Reply-To: <000000000000321c24060d7cfa1c@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ed2009060d879851@google.com> Subject: Re: [syzbot] [erofs?] KMSAN: uninit-value in z_erofs_lz4_decompress (2) From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [erofs?] KMSAN: uninit-value in z_erofs_lz4_decompress (2) Author: lizhi.xu@windriver.com #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fbafc3e621c3 diff --git a/lib/hexdump.c b/lib/hexdump.c index 06833d404398..68b30bf6c6a3 100644 --- a/lib/hexdump.c +++ b/lib/hexdump.c @@ -263,12 +263,14 @@ void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, const void *buf, size_t len, bool ascii) { const u8 *ptr = buf; - int i, linelen, remaining = len; + int i, linelen, remaining; unsigned char linebuf[32 * 3 + 2 + 32 + 1]; if (rowsize != 16 && rowsize != 32) rowsize = 16; + len = len > sizeof(linebuf) ? sizeof(linebuf) : len; + remaining = len; for (i = 0; i < len; i += rowsize) { linelen = min(remaining, rowsize); remaining -= rowsize;