Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2459726rwb; Mon, 19 Sep 2022 05:34:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kEQ58Zp7ulK8sWIXA3OBZ8zxduSFROlr8i/FWO80XHJBJUg0A0nRQuWsf7LLpg0JyaASg X-Received: by 2002:a17:906:cc10:b0:77a:fe95:eae2 with SMTP id ml16-20020a170906cc1000b0077afe95eae2mr12813750ejb.466.1663590845259; Mon, 19 Sep 2022 05:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663590845; cv=none; d=google.com; s=arc-20160816; b=Dsn/eeHB7zqz/T/c0DuNL+TFbcqVqFz4WJPe7T3LoAF096yv/Fwfv3wj0ilcPaMzlB UCbepwV/BcPp8jyu069Fvh37BJoPNCcJY1y/syVFXD6mTWGk5jloKWjOC3c0CHQVmIt1 eJ3xxI9woZ95eDvc/PxUQ/ynnmxvdZ1kfbWrIIFsXxEr2CEhF9ePD7qahG1/2czDVLnz hwNzzQb5hUionxTTPwqxhQxcLclOxZjaGzo6AAZJRwFOQbcJ0nGVrLn3MdKhg0D5FHlt cePSTwV9hOOcGsQuZxvma97kqtz3D8Vbyot2BP/6TSl8thmNA9WkfRPzBo7z4clMAoMd aoAA== 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=12fgk+jsYvG7v7iD5QGUvEAun3h93mPzfIrtFSud5yk=; b=ybjgA1xMzR6OENy8goZz8iBdXnJhy3hNil3Q6atYft07zdAQLFao/RbWlHEoWAEeZm k74PYzrpbvo6AFgBEpeE5zteltuhYIYq1nJPlM52/QP+zncGXEFJuEnb8eeEmHZmE96D RP5f+pkXjN20sAEAw9dwVL6KztabfAtsJ6V7BWbASkHTVJ2uA6gK+wYYhDzO6xcfWimb GngVlYS9isbuTieAsy6hQre/VOH9sQDheukrMAXwYXY/ZNpLsUYYuy1xpXFvV+3vUa7g roxGnes/kMc9tA/U7ZOtgdr6MMSmNPedvudojOy0NBA8eS/qZMH03/09sf8AVECx+/ed Kw4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f2gdwB7T; 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 d18-20020a17090694d200b00770880dff50si18256255ejy.586.2022.09.19.05.33.39; Mon, 19 Sep 2022 05:34:05 -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=f2gdwB7T; 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 S229519AbiISLmt (ORCPT + 99 others); Mon, 19 Sep 2022 07:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbiISLmp (ORCPT ); Mon, 19 Sep 2022 07:42:45 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7036812AEB; Mon, 19 Sep 2022 04:42:44 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id bh13so26525764pgb.4; Mon, 19 Sep 2022 04:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=12fgk+jsYvG7v7iD5QGUvEAun3h93mPzfIrtFSud5yk=; b=f2gdwB7ToyC22kyn/wBNG/E66gJHivgNo/FFXOq15ebhULX9DutOrQLsbhu1+VQZCo Yt6aKj9l7HMmF6T38Y6TSWQBcEX9m6xovV+v62UY7tcc9Jk1a1t6JGPKhOownshNXehd +v0EEZ7gYbvFORtfBKiXyBNPr2+fr/hjEwYl/BNRNZnxogFJWRUB9tqsP6jrOz6bsQk1 pUNBoaRULAQQhwFFCbrketPMy6YudlJ0wv2QcPFPmnLxl+LSzYq2r0639U0JGQFTO0k3 nmwr+bm6CY3oqM3c45zKZgBYwL74hyWWnztq5xEEWjqejn9SqYkZiAjsTyJFoo7VNVCU fcUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=12fgk+jsYvG7v7iD5QGUvEAun3h93mPzfIrtFSud5yk=; b=CMy6hJTkGPK90znrvTTFlaM5DskVIgHPgk1IQeFFqn786ceVqW/BsSojuSn4LKqAmu 5CIrFcI3Le17WgwpxFS4VtqEdc8FSwmjVP27vWC2Cs3xLYhdQLKZlkVkTXgZP8oi08/W EsOs5KYqt6pueDtVdH6lBzEoKcLGdcV2Falnuf0CzrhD6LMctqwWeKvfgNkgbm92ZP83 Y3ay3HPm4rG0jxWtu6iKkbQK0/MokiU00uGGZGp4x1Wu5MXyZKxNg9do34n26BHJ5vkh jjwy3JTSnTaKhkM/GZHB/0A4bb4HojX8ySX8XFFtkoKIj1bQFeEckYO83eFUnCcfw85Z zsqQ== X-Gm-Message-State: ACrzQf0jObRPQVvtUFYQ1+NqH5IJta8hlnK/mree/EdxqOdma88rOttz 3ppDOvxkbxYHjCy0i0tN2Po= X-Received: by 2002:a63:470e:0:b0:438:a091:5a3b with SMTP id u14-20020a63470e000000b00438a0915a3bmr15438641pga.332.1663587763924; Mon, 19 Sep 2022 04:42:43 -0700 (PDT) Received: from hyeyoo ([114.29.91.56]) by smtp.gmail.com with ESMTPSA id d2-20020a17090abf8200b00202d1745014sm6477476pjs.31.2022.09.19.04.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 04:42:43 -0700 (PDT) Date: Mon, 19 Sep 2022 20:42:37 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Vlastimil Babka Cc: Peter Collingbourne , Andrey Konovalov , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] kasan: call kasan_malloc() from __kmalloc_*track_caller() Message-ID: References: <20220914020001.2846018-1-pcc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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, Sep 16, 2022 at 07:32:50PM +0200, Vlastimil Babka wrote: > On 9/14/22 08:52, Hyeonggon Yoo wrote: > > Thanks for the Cc. > > > On Tue, Sep 13, 2022 at 07:00:01PM -0700, Peter Collingbourne wrote: > >> We were failing to call kasan_malloc() from __kmalloc_*track_caller() > >> which was causing us to sometimes fail to produce KASAN error reports > >> for allocations made using e.g. devm_kcalloc(), as the KASAN poison was > >> not being initialized. Fix it. > >> > >> Signed-off-by: Peter Collingbourne > >> Cc: # 5.15 > >> --- > >> The same problem is being fixed upstream in: > > The "upstream" here is now only in -next, not mainline yet, so we still > have more options at this point. > > >> https://lore.kernel.org/all/20220817101826.236819-6-42.hyeyoo@gmail.com/ > >> as part of a larger patch series, but this more targeted fix seems > >> more suitable for the stable kernel. Hyeonggon, maybe you can add > >> this patch to the start of your series and it can be picked up > >> by the stable maintainers. > ... > > > > Ah, I should have sent it to stable team ;) > > > > I think "Option 3" in Documentation/process/stable-kernel-rules.rst will be appropriate, > > So will resend this after the series goes to Linus's tree. > > I'll pick this for sending to Linus after rc6, which means the series in > slab.git / -next will afterwards cause a trivial conflict to resolve > when merging. AFAIK Linus prefers that over late rebasing. > It will also make it simple for stable. I think that is better option, thanks! > > > Thank you Peter! > > > -- Thanks, Hyeonggon