Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp119003imn; Fri, 29 Jul 2022 01:29:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKqqNngTD4ZXimEzHVvc4YUnypUxI+eqSY/3gGUNCnmj2thD6n4MyTuFsg8r8WmeybGu0y X-Received: by 2002:a05:6402:34d4:b0:43c:b244:c6a0 with SMTP id w20-20020a05640234d400b0043cb244c6a0mr2566807edc.268.1659083372203; Fri, 29 Jul 2022 01:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659083372; cv=none; d=google.com; s=arc-20160816; b=PxAylH9gLMI16bjAnBpGKxkjI2icclBS4Xm9qaS5yZTAFcAcjcULN9s3Pb3DGR6Z4B gTFgUF9pVuVr5ORcvwxym7N7OMjw1mbEQMUzMjpODRbCWuvGBvCjw/gNZZnncgZEUK79 TNJkevzbdz1yLOy9B+zCC0S5p1OPerNCPQb0xoLq7mKvZJxv6kWoMgFMdPT08tXY7iOd YKf4+d8cposo7/EAKd7oERWsLcckTxLpc8LZ9cptg+UA0VDo7v3/ZQXBGf+XEwMJZirc INFCp6EECjFSW+QieBco3zr4IIMf+vYhKKEfU6jee9pjUvxJxvXLf/iVlrWZCqmq7yFe vqmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lXeX9QS2f/gKd1On9XePxeFoi9r6mIoixAcUUX1eCqY=; b=e6+Bb3W0mv27EQoD1j1qxATOOooAuUatVQw2Och16FH5TQzooYzgfyy2wrwKfSlmIt xiHGTbqDNyGVEF9TVp84BELFB3tog5XVFM749HC5s/wwjinlRBpCs2XoFiE5L4zfmvXw I18mnj5xvPEekjkJq4DkgwulkzM1mS/3XtDmd6x50BSwB4rUyyfzLfmSV56ozBvgMj2M X8tS3VBRBs5fBgYgEJ+4p/nr4Eetkg5eytnQtlyJ7p5CeWZYYRb9PrV5wmu6luscNTwL SlnWKld6JllXzNA7A6q3bhRhfrw4madqDzfV/Mquxh5PgDiHiIwHNogJrrRnsxl6aymp 2Lkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DoxTatfh; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a0564020e0700b0043c19cd608dsi2584836edh.33.2022.07.29.01.29.07; Fri, 29 Jul 2022 01:29:32 -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=@linuxfoundation.org header.s=korg header.b=DoxTatfh; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235507AbiG2INb (ORCPT + 99 others); Fri, 29 Jul 2022 04:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235432AbiG2INa (ORCPT ); Fri, 29 Jul 2022 04:13:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B45F281B1A for ; Fri, 29 Jul 2022 01:13:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50ECC61CA5 for ; Fri, 29 Jul 2022 08:13:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 514A0C433C1; Fri, 29 Jul 2022 08:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659082408; bh=yDZnCB3APvLSk3XRDlJBpBbSxgoh+g1mEqhb2QgyFDc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DoxTatfhQb/8esRQ+KtIyE1ZXjVjpBPY3kglXwx7xahU4peTY6kTo9Q9Eewr9qypb P0HxCrA1d22/JFR6nmZRr0aSVWHxKWPxXJ8/n6a6Uz+tXizo8JA/AZm2adRqEdyp1D ybJyOHq+wJfDv3wuU2x9St2rAKfz4oPoNXyN5cFM= Date: Fri, 29 Jul 2022 10:13:26 +0200 From: Greg KH To: Dipanjan Das Cc: Takashi Iwai , 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 Message-ID: References: <874jz82kx0.wl-tiwai@suse.de> <87tu73p1o2.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, Jul 28, 2022 at 04:24:12PM -0700, 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? Normally, yes, that is the correct process. But as Takashi mentioned, I already picked it up as I happened to see this thread. thanks, greg k-h