Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5293373pxj; Wed, 9 Jun 2021 14:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhiXGt+jOCPiSn2KTkEznSOENmZqBmmTs45f85TcKLA3V1+X6U8xJccWPRSe75cfzuBVeo X-Received: by 2002:aa7:d846:: with SMTP id f6mr1228310eds.341.1623272406318; Wed, 09 Jun 2021 14:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623272406; cv=none; d=google.com; s=arc-20160816; b=BWwpXaIM2GKFjXEcKgmS5Vp6wdQK0m672dz+UmcX9pjGrGZS8m442VYgVF2DdS4ffr 2oMQsbXBlhcqkjNxpHyMN3N6YNiFBN6+tWKJdscwumGX+XeTYTjhLcwW3Qfm9jX7bzFb jRgA5cKsvc1YVgpVxQWemY2yuEvEo6CdeahsxZQ1pbaSF6X/Uef9t0S5tlMem/RAcV0A 9uhXE4ljJuuLjD913rXU3y9fDeRMMVde0XkjfIVgaCTPrWba/ivWN71uVlC4c1LWuyyF 7eqvxRcWAxz6OpUNxGJLk0rH64W1vmbN3DWRZJ1ZjUgDvhIEEYVJEfbF3ewL8OF5+3xS Blfg== 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=4Ti/GPYedshBkKNipdnY5GrhF2dqxzDVtiSSzRhLNtI=; b=tkZaDJQhSGzlk7y//SAKdcIzJp91qSkvM5KuvyxPmqqehLjn1yeNH586jAsR7ouPyt mTpMiKAzTQnOcu/Ljx2GctZCc4SA/NxUua5dqGBIElh0nDg1KDK/3mcfyZoL2SF+GDMx rLO69BzfivpYrBInwaEvU7m2Y5teKagUXtLat0ZURBk1V4HHcJtfpYhLPkZd/80DKLnX /QZNZSf7ayY+27maWz4ZABZMWUra9x+2SWSOIB2/n7zRSU7nhcdETYYhZJVbq7r/dGnn DN7P+GErNERpVq/prSeiys27bykWOOPo58j1wSRHkv9XZbfYIXqaAMhZN/l1pAOMjllN oOkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="fM3/ODYV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg13si606130ejb.35.2021.06.09.13.59.39; Wed, 09 Jun 2021 14:00:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="fM3/ODYV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbhFIU6h (ORCPT + 99 others); Wed, 9 Jun 2021 16:58:37 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:46899 "EHLO mail-lj1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbhFIU6f (ORCPT ); Wed, 9 Jun 2021 16:58:35 -0400 Received: by mail-lj1-f178.google.com with SMTP id e11so1563385ljn.13 for ; Wed, 09 Jun 2021 13:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4Ti/GPYedshBkKNipdnY5GrhF2dqxzDVtiSSzRhLNtI=; b=fM3/ODYVa9wR1hn9nb8YfgPISH77MdgxAUdLzKr7W2e3Sr96ga6sYy1IUgVhfy8HbG mdCa640pJmKm5DwoFKNcgsTdX7NuOiKkWvi8/ekGVtCCMyzFvrX4ZVRTFSlNwFLRZrNU IxbmSwfgKrqUgHefveb3h1xo0hr4FLtngRpQM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4Ti/GPYedshBkKNipdnY5GrhF2dqxzDVtiSSzRhLNtI=; b=qJozhYv1uyTcDiJLzz5y6zo2+XS1FTcGSYtt/af9Zaqgjjxlf/OIu7siBk0UBNHBOh 0yz2eQ/bU1V7eL6a5gBctA205bl29UFpFJ85L21YretLJV7PGiREcLYxRiotoCejtyfb 2XtbhxnXqps/ReBTmSJnPl8yVP3AGWdOscmKeiiPXp7RfYu1HBkhj+1vJZxsZymxim7z aLfh0KUlprqudWOPr5wPjafe9zftAwxnHMEFRaOMC4YB2YiO+XRvaxSq32oz1bopRteI s6uB2UepowiPNtS/kfd1Z8MrTDyC3oCsUwHn/QdYfEXq3Q50KvERQRq/1GvV0iA7zLvT C8IQ== X-Gm-Message-State: AOAM530ymdtDpwh1mS2EJRUSUFGRwfEZeB2aJR3CB31oybytd+Jzh0oz qWKgOn/XnCbs8bqydi0cZrUmn5s22ktIrEGdxKA= X-Received: by 2002:a2e:5718:: with SMTP id l24mr1229242ljb.500.1623272123359; Wed, 09 Jun 2021 13:55:23 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id b12sm91686lfc.44.2021.06.09.13.55.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 13:55:20 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id bn21so1651139ljb.1 for ; Wed, 09 Jun 2021 13:55:20 -0700 (PDT) X-Received: by 2002:a2e:2ac6:: with SMTP id q189mr1226604ljq.61.1623272120266; Wed, 09 Jun 2021 13:55:20 -0700 (PDT) MIME-Version: 1.0 References: <20210607125734.1770447-1-liangyan.peng@linux.alibaba.com> <71fa2e69-a60b-0795-5fef-31658f89591a@linux.alibaba.com> <20210609165154.3eab1749@oasis.local.home> In-Reply-To: <20210609165154.3eab1749@oasis.local.home> From: Linus Torvalds Date: Wed, 9 Jun 2021 13:55:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tracing: Correct the length check which causes memory corruption To: Steven Rostedt Cc: James Wang , Liangyan , Linux Kernel Mailing List , Ingo Molnar , Xunlei Pang , yinbinbin@alibabacloud.com, wetp , stable , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 9, 2021 at 1:52 PM Steven Rostedt wrote: > > That said, even though I'm almost done with my tests on this patch, and > was going to send you a pull request later today, I can hold off and > have Liangyan send a v2 using struct_size and with the clean ups you > suggested. I think the cleanups could be separate. I in no way _hate_ Liangyan's patch, it's just that when looking at it I just went "that code is very confusing". So I'm certainly also ok with just getting that ugly fix, and then hope for a cleanup later. Maybe with a comment or two. Thanks, Linus