Received: by 2002:ac0:b7d5:0:0:0:0:0 with SMTP id v21csp48301ime; Thu, 28 Jul 2022 16:34:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uO6s5QKJACw0eeOzC9hkQK+Yi39DzdW+QYkUAxBviVrNKuHBm5gBs4cgLNFkrYGiQKnTkw X-Received: by 2002:a17:907:272a:b0:72b:8cd9:9ddd with SMTP id d10-20020a170907272a00b0072b8cd99dddmr865830ejl.299.1659051289559; Thu, 28 Jul 2022 16:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659051289; cv=none; d=google.com; s=arc-20160816; b=IEx0ujvf+av4y6epP2wPusSLvxmT+MFD0Ykk9esGpV12bVwQrOduAcgUNT8ITDTuGl +CKFpMJ6T0O6qQgBsGHzRIR+SDV6hBTDDy3jYwh6ZUx6F8JuqQZ3yT0Hd9abMKer/Jk7 xuZbVcX67r59PuSW2WJheFTJoUiuC7lWFP2fFgGliUVvCXezg1VEzRwQWqKpBLfelU9v +dQu2I5EN5SWq698URUaLJy7OH7mqDYx08chxPi9elIEmgoVRZaIZ2bXB8O+jLB3laS/ wMc+L+390SfTeeDBlAknYFy7sBrjB6UHtXV3zDWyF7rTx8JMEKk/QY/RcLnsqFGXymM6 IyrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KIA4RVx2AB2aGku6+GNAoiOt+zr30HmSggaLIZR7Rb8=; b=Zw1IZdycOdLyRebermqjqGVEKLtuzuvQg1cmM5tPZl8qtqplUtmSnrSqsntj2aRiMs SSlYh7D1lzsy9MLN5Z7BZE5qOOleb9fVtns5woNdLHsME9dj8NXMw8cs4nQWI8wrpFkJ beoCsD5Jbm3D99YduDTpywY7s5zflWYYdWV3NWnM+xzFxQyZsddPE5mHdGERDXv14EyA 4NRZyxn73Th/rKCk3qLu5ydgvh7N7rY5g/xX1x2ox5e3ukXpjYnF2KQMVQiXKlPU0KpF 7c8sJA9v1u0aC6QK++NSMWt61cdbpNGeoZ2vSx9P3SmwCBLBAuv90U8ghoHrL4GyexdD eWzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NlmLk8od; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ui42-20020a170907c92a00b0072b6bb578b6si1473258ejc.433.2022.07.28.16.34.25; Thu, 28 Jul 2022 16:34:49 -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=@gmail.com header.s=20210112 header.b=NlmLk8od; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232742AbiG1XY3 (ORCPT + 99 others); Thu, 28 Jul 2022 19:24:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230312AbiG1XY1 (ORCPT ); Thu, 28 Jul 2022 19:24:27 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5B8B785A8 for ; Thu, 28 Jul 2022 16:24:25 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id m8so3951053edd.9 for ; Thu, 28 Jul 2022 16:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KIA4RVx2AB2aGku6+GNAoiOt+zr30HmSggaLIZR7Rb8=; b=NlmLk8oda7BWnIZUcK2H0PzTRfh3iT5XLbYjkYZ6seU7fFknpWw36RqcBEP2JGMOy7 oQOGj/qMTpupY+AxgM705aB8WLKvxuiLMVu1Th8UkpdbsTStkOCMB0DCjyrL1ra2DUm/ O/P/tyxWCHnq7oS2hdYAzyA0HTYIdP43MoeI9e5ewZG5wZ52qaick0H9Qx5Mz6w27RbF +EV4QRFaHMN4SWAdFZEhLzUCLzE34ZwsfptHiWFWYFUcouvaphR+wH7XOTvTClyJB0cA RczTztzwgcN8A++WohoQTj/y42XLY074VxwHoh817MpDWR8yISaePKJSlfKL+mQDWHOm dWVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KIA4RVx2AB2aGku6+GNAoiOt+zr30HmSggaLIZR7Rb8=; b=AFYnOUoZExdR3zmCIzuSb5NeDynfQs0bIR9YdXq9N2anwP0LGDskclOkjmnEIZ8Qxc MlOyjmg4vfdlgo4c2Jr+E0Dhi5FIfdgp/qBoAlOHVwypPqs50XfLZ6NjeeNRWYQYfNjb 1sr+59pYvAZ+GY6fTmtDHmSBCulllEvADZ/Mt68cU82eRVd/XsuJ4xUP31IRCnRV0b9j AfH1xdicVRKVJodN87x+pbRcEYYkWVc8yrbKsqJIaKVXv2YaIpebHkp5pC/xOaQoDoGq zXkfcMU7pafwGh1KD6SShRFU4VqLn5th5f9xcAEHBCBLf7z3gu4U8tj+30aNcHT/VEDg +U3Q== X-Gm-Message-State: AJIora+eEmSyvhtIdJpJzG0dRQY6hNaHUKHle739n0MNnu6lzbNbehAF S2YNZARdKmrFWGXo8qaIXqwlR39sITbXYyVBH/Q= X-Received: by 2002:a05:6402:64c:b0:43c:ea8e:85d6 with SMTP id u12-20020a056402064c00b0043cea8e85d6mr1164234edx.269.1659050663929; Thu, 28 Jul 2022 16:24:23 -0700 (PDT) MIME-Version: 1.0 References: <874jz82kx0.wl-tiwai@suse.de> <87tu73p1o2.wl-tiwai@suse.de> In-Reply-To: <87tu73p1o2.wl-tiwai@suse.de> From: Dipanjan Das Date: Thu, 28 Jul 2022 16:24:12 -0700 Message-ID: Subject: Re: KASAN: vmalloc-out-of-bounds Write in snd_pcm_hw_params To: Takashi Iwai 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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? -- Thanks and Regards, Dipanjan