Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp76268imn; Thu, 28 Jul 2022 23:26:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tkPSfdEfZr0sOqzWqM630aDTaT+hDxwa5+qfOjssS/XoztAHp3bQkWSqy5uC4Ig2U6J4rk X-Received: by 2002:a65:524a:0:b0:41a:996c:a2c6 with SMTP id q10-20020a65524a000000b0041a996ca2c6mr1772287pgp.528.1659076014575; Thu, 28 Jul 2022 23:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659076014; cv=none; d=google.com; s=arc-20160816; b=smaoUzqRz5B52RhqIazu2B9H5d91L8VM2AkHo3b35M7wRZP7F81XFFl7Ff8pVGfAsx 0xVJT0SYlraZIgV4/pQbi7FmFU8Xlx1gjwxM3+995QLaF9HGIKUF20a462NjEgA1qvNZ OiL2RPnAXXoHi+rOayyoiiv2IIvmrEjuO35RmXY9GcrjOwRQXR55+rmxlBU6c6wbMYZz mqR5tzwaUngG+rQo57oaWCzwLz7Q4hSMtxi1eWf3KmJU0zLf3LedP6I1uTuuIdhMcTxj GBzVsvC48Z3H5c9uxGDI7mK9JuBWuiNa9vkHmzuzqFlxdjFn9Q9YFqqSKRa0TdO/E46d CKAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=76aolg6qJ08B8cgAH4/C8qispGD4s7bPpZZ8CT0aqEs=; b=07GlxBN+ce/JYFE1a7uBTZxq6zWzbGyr8q63av0NzG/0cGIIFECOqVffwYcQjbSkJt UQN91GZUxfedvoBC4Q0CmBFowvQAZ8VpufXM4dm71lXVfDokjV5zXkkg2sGl1TDasgsc ftH5gdqdfziBbWXWJ28zwuzoQt1p6q5we7yvSF9w/VWjfN8dXrLggEmHvO0q0AFGTiA6 s2FxgkBX3wuwawJeJdonkslhA4x3c5kszo43UUCOZRL37d7vuY6Rbbj5T3lubp9+ex32 kee5EFthe5q3ukhgdbZccJ4sQc0SaFYhHWN94mUGY/48eW9nQ7XERCWuxNpsrtsIEAMN RtjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qTvvW1FI; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x65-20020a636344000000b0041a94732957si3200524pgb.443.2022.07.28.23.26.38; Thu, 28 Jul 2022 23:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qTvvW1FI; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234371AbiG2GII (ORCPT + 99 others); Fri, 29 Jul 2022 02:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiG2GIG (ORCPT ); Fri, 29 Jul 2022 02:08:06 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47A2172ECD for ; Thu, 28 Jul 2022 23:08:06 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 46DD421BCC; Fri, 29 Jul 2022 06:07:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1659074866; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=76aolg6qJ08B8cgAH4/C8qispGD4s7bPpZZ8CT0aqEs=; b=qTvvW1FIHri+HV0kVnxb6vh0t24ok9Wjlbg8AvBfK5ETrIcB0HyhjNzHLP8hePRSzwRLrU JSmudM4dcKHXvhIRvrGge93HxBOjUW0OlFjzQGMwz6c3jlipaFKCLtM8Z9mYzak4OMreIv 1HwqXAV6u2fkdajD8n3Kslg9JjK6lfk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1659074866; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=76aolg6qJ08B8cgAH4/C8qispGD4s7bPpZZ8CT0aqEs=; b=dyz3hsPzI1IvQT9mljSDN0AdGp1amwcrBjLGKPkEvobdc+mTgtIFFjfT0bUR7vHq4y2aQY pQnqnK9KcK2G/wBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0FE6B13A8E; Fri, 29 Jul 2022 06:07:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Pox5AjJ542KMEQAAMHmgww (envelope-from ); Fri, 29 Jul 2022 06:07:46 +0000 Date: Fri, 29 Jul 2022 08:07:46 +0200 Message-ID: <87bkt8ladp.wl-tiwai@suse.de> From: Takashi Iwai To: Dipanjan Das Cc: Greg KH , perex@perex.cz, tiwai@suse.com, consult.awy@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, syzkaller@googlegroups.com, fleischermarius@googlemail.com, its.priyanka.bose@gmail.com Subject: Re: KASAN: vmalloc-out-of-bounds Write in snd_pcm_hw_params In-Reply-To: References: <874jz82kx0.wl-tiwai@suse.de> <87tu73p1o2.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jul 2022 01:24:12 +0200, Dipanjan Das wrote: > > On Tue, Jul 26, 2022 at 10:25 PM Takashi Iwai wrote: > > > > Thanks for the analysis. A good news is that, at least for the > > vmalloc() case, it's a kind of false-positive; vmalloc() always takes > > the full pages, so practically seen, the size is page-aligned. It's > > fooling the memory checker, though. > > > > But the similar problem could be seen with genalloc calls, and this > > was fixed by the upstream commit > > 5c1733e33c888a3cb7f576564d8ad543d5ad4a9e > > ALSA: memalloc: Align buffer allocations in page size > > > > I suppose you can simply backport this commit to 5.10.y. Could you > > confirm that this fixes your problem? > > We confirm that the patch you proposed fixes the problem (blocks the > reproducer). How do we proceed with getting the issue fixed? Do we > send a patch according to the steps detailed here: > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html? Don't worry, Greg already picked up the fix commit :) thanks, Takashi