Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1854691rdb; Mon, 9 Oct 2023 05:20:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9qDu0gRDC7o2Sy9s6A5fLfZuhVt+cPqBJkKp0Snu53wX/F55akMlE9H3gASLLEvjk6OMN X-Received: by 2002:a17:902:dac3:b0:1bb:b86e:8d60 with SMTP id q3-20020a170902dac300b001bbb86e8d60mr15704957plx.46.1696854002386; Mon, 09 Oct 2023 05:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696854002; cv=none; d=google.com; s=arc-20160816; b=bpTm2TFw4FsYGswHBA6SJfmw0Hhy/8Ct41CBWL4mwlv9t4yhFKBS8LD+H6Xa4u6X8b O2mGWpQx8hw/adFTckdFIN+IfQxmPEbeR5tO1lJf4yq1ZETEY+yAG6SgpSpciLH500/x RcTN5mA0gXqCuaUnFw94kjIFGNTwMN2zskFbpd4cODgK9jYelyMCI0EkUbCadEanHnvK mvDdzLENT6rkK9l95lHyyWBXEeX+g/3TnzPNK3x4NpFRbn5bcK1hwpUk06BXbkS+3f+R S0VVPXZ+UtRK87DAgOZDGxxGzIAHk0l+GS+BiUVsX0+MpJ5D5M1IZbR1eTJKGTey3WCk GHsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=m6/vE8g+hycoIkP+nnT3t3DO9SbrtMni1szfWJaCTpw=; fh=D7uhrQnmQG6xf11gbvfi3iQ1A4p/6GZN4OQA8frEvwo=; b=oENa2iRiIa3i1rDHsDaQu7+8Ld+UjTMrmSeEVmdQSVlhuPDR9q8+6B8gXfcduMoWcO FIck8bYM1Z3npeSP+nUblLHi6AMWubh2Pm+OWw3MHduttYzNh/Kr5NzeFW7yAO63wWoY HxfE+4No4/G0V4bYW9iekqMG7A2y3XT6H9l6ZrW38l33dOUhJIKDOSiqJ/ZrHG82KSz9 4El5jzqyKw8o99ekydc6t0FOGHJg8UT34HzgDHVGPiJu/zU2N2v5dQXoSwhZgFapM4SO H27gP6lWRNvojGhAhPdIZLY6aRjZ9ttztIezJ0s1oXL4WL0RDFSimdt3FSvi4wNAC16q X4xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ksmgt78e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id f5-20020a170902684500b001bbcb3d9265si9207338pln.68.2023.10.09.05.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:20:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ksmgt78e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 226A080A90F9; Mon, 9 Oct 2023 05:20:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376284AbjJIMTw (ORCPT + 99 others); Mon, 9 Oct 2023 08:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346742AbjJIMTl (ORCPT ); Mon, 9 Oct 2023 08:19:41 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC6AD4C for ; Mon, 9 Oct 2023 05:17:46 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-65b162328edso25603846d6.2 for ; Mon, 09 Oct 2023 05:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696853865; x=1697458665; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=m6/vE8g+hycoIkP+nnT3t3DO9SbrtMni1szfWJaCTpw=; b=Ksmgt78eZCTVL7OvUzBCZMR3vY8PA9pxzs6jKdssmGzByEuoa7acNQtWXG02WSwI/c wSKpWJZbiGJBjpGrGxFbDVjAZqLS+jlqm9NRq/XJ/lz6Gu4Rx8+jC1fEI+SLfKVNDTwK tYrqCxzGVijOKKtLTpTTOjEAF8K4h8qNow08q0OxJbj7QuBRwl7lDAoDVU+AgpUmgIqM A61Jc+DWXAGIZzb8WD2Ra/MtDYjjzUFspEpHqlcy6A1/71YYOJoPy02qYWARwD19EQ/q qsFnZENxttHYueFdrEcwhVnZZa5QW1H+aqRgZtIxj4AyaoHcP5d3feDC8bq1kk2PPXCh dXiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696853865; x=1697458665; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m6/vE8g+hycoIkP+nnT3t3DO9SbrtMni1szfWJaCTpw=; b=HSZIB9zlULbR8pTZaonsR5A/1LhgbdrsxIe9HLmQf50AS/xY5BRmde0/87XutUq7Rj iFJYcl4G0OHjhS6mL/46spWTrOO/VinlF8+GZFudt+4Rzzf5CVvBlCs2v2pz2DH5MHEY m1CfusEccVrjdPa/sqbkz8Yqr2QInpkWEdbtLhszj9xmiZT0o0igEi+P6p1lBN2/9WMn nz4L6FJ4c/ENQkb+4t7FAppMWQPcKnv4N7yornHLWaFbzy8rUKrtzF7/+aH7q0Su/Pp6 Fy42E4QxUuyuSSkQSWx2YqWRJJjAmaNumbeoiWhLINskVcoDDmPsmgndA8UOeTLwE2c3 GfEA== X-Gm-Message-State: AOJu0YzVsMqd0UeEQLoLSb/yUlpjcv3SGhAdrNBjZ6e1a1M2tajWwGlc n6b5lU/xtUo1CEJSdBd1frSfsrWUTtmWvy5DHEe8VQ== X-Received: by 2002:a0c:c409:0:b0:64f:3699:90cd with SMTP id r9-20020a0cc409000000b0064f369990cdmr15621669qvi.42.1696853865508; Mon, 09 Oct 2023 05:17:45 -0700 (PDT) MIME-Version: 1.0 References: <293d73bcd89932bc026263d3df8ee281ad3f621f.1694625260.git.andreyknvl@google.com> In-Reply-To: <293d73bcd89932bc026263d3df8ee281ad3f621f.1694625260.git.andreyknvl@google.com> From: Alexander Potapenko Date: Mon, 9 Oct 2023 14:17:09 +0200 Message-ID: Subject: Re: [PATCH v2 18/19] kasan: check object_size in kasan_complete_mode_report_info To: andrey.konovalov@linux.dev Cc: Marco Elver , Andrey Konovalov , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Oscar Salvador , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 05:20:00 -0700 (PDT) On Wed, Sep 13, 2023 at 7:18=E2=80=AFPM wrote: > > From: Andrey Konovalov > > Check the object size when looking up entries in the stack ring. > > If the size of the object for which a report is being printed does not > match the size of the object for which a stack trace has been saved in > the stack ring, the saved stack trace is irrelevant. > > Signed-off-by: Andrey Konovalov Reviewed-by: Alexander Potapenko