From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16E5AC6FA82 for ; Mon, 19 Sep 2022 11:42:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A7BD1940008; Mon, 19 Sep 2022 07:42:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A28ED940007; Mon, 19 Sep 2022 07:42:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8F0FD940008; Mon, 19 Sep 2022 07:42:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 802CF940007 for ; Mon, 19 Sep 2022 07:42:45 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 476F4AC694 for ; Mon, 19 Sep 2022 11:42:45 +0000 (UTC) X-FDA: 79928647890.13.72FBBFD Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by imf27.hostedemail.com (Postfix) with ESMTP id 07AEB40002 for ; Mon, 19 Sep 2022 11:42:44 +0000 (UTC) Received: by mail-pg1-f170.google.com with SMTP id h188so26494059pgc.12 for ; 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=OxdwQea02g0OVnWE8iQlAxPxEDmIYSy7+VPkQ6p1BAW8WASSRkBYaVWm5ftuZd1MBm K1TPN9JCXQxquUDPd+EQVZ7Om4lE7lCyWpIIxg1SWlQIIa7S+TLEMb5GW9C2DL0vb4bK qguqhMlC76xpj+14nf0+fPGRQiL2HpMq5Ub0olnZARoyNnClmdJKpin1Ad58TGQjniqk Fp5mU2HLBX4zvPdIoThMwZC7JwToPCcdUfZvgP24atcBSWoWUGbw//FANmeGmrDKrUsb 4brFox3VdBVjQmu+hn4ZkEsCp0THwBV9r7Y+oFrr7Oj5rkwrISuXGjYQkZo2xrbGsHBE bNRg== X-Gm-Message-State: ACrzQf1BvwuGdERGROY549EX8zXEzmtymeAFaq/bTzKBze3sNQEXa4ji L+L7kijQUqqcYS/WsJyEXVI= X-Google-Smtp-Source: AMsMyM6kpoD2oqdXy4WNlaZYYtAcZHuKJrbF/B7xnmdAvXI+BrhTwqCTkTVgUqB4meawbHJECeRXNQ== 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: ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663587765; a=rsa-sha256; cv=none; b=DJO0w/YRAZQlPXOtKAsZtPEadwzflbEFMY0HAwcrPGbbGAzpRd5YSHPnBlN7eaCpca9GEK q701TdPiyeiyDu4kd4LoRViNyhTisRmI9XsXI/DhmCaszEDuVFnndu/CmlykM68gLucyY4 3Bl4A3lm3AA/e00NO4T41muOCvAxZR4= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f2gdwB7T; spf=pass (imf27.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.215.170 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663587765; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=12fgk+jsYvG7v7iD5QGUvEAun3h93mPzfIrtFSud5yk=; b=TD3VK3TBVIAGpkaqWqZq5bl2w64JvuEilfOxb2HOw7YtOnrH49LEh45adRGuERtKPgDF5V daaW6b4LvQtOdnHZvI6G5EaAIA5DQpXVVGfeICXzqpz69WTQqfSpb3kOLAbgL2dlbb5Ye7 HSmMr34aP2oObHxRKbM7SZn4HThZJ9Y= X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 07AEB40002 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f2gdwB7T; spf=pass (imf27.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.215.170 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Stat-Signature: towueji14b8mw5uyfz1pwdzy4zaoiin1 X-HE-Tag: 1663587764-938423 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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