Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21476080rwd; Thu, 29 Jun 2023 17:08:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlEx3Ls/ySMDISPiUADaJcuhSqANIU5lUjckad/Oo7KM1VlzIA+CogJrwWFL0yGiYdZD3sVt X-Received: by 2002:a92:d5c6:0:b0:33b:c0d8:26af with SMTP id d6-20020a92d5c6000000b0033bc0d826afmr714223ilq.7.1688083703000; Thu, 29 Jun 2023 17:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688083702; cv=none; d=google.com; s=arc-20160816; b=lOGLDMQE2KtZ0ein5rnbmJTh30yEwu3Nm8qiWPXlqqNbWpZdAumJh+4e9BacRHJbZE Y5G4xDVX3fVdZYFftJfHJMt5FRuOiGM9qCvc7L0Oxhx0SQk09THPUzyZNCLM3qFt4EF5 qV2eue6txrShaxvzRpcAMWQzc0+Az5OKnuoLUsI0fhsxgbryZfw6xR1wteKVVMuefl6Z 5rtdun4ipUhb/piCTK06M9di0p5DYtreqNfNTnf4w6WW5jC6mKMKWX2Pwrqp658uzTEM oDWUiRZ6YPOYDrXKfs2QaU+X9F7U70VB/7o4jdSP1HNQouccyEWtiOhWLmYNBtfQxOn/ MDuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=lgUdu2qp156h5P5sIiuRE2nkVehC4a1jKFyR45EG0Ec=; fh=p4jcC6qPA5R6qIqhMXvm4Q5Zg5H5ZjhkM/jXdOBVsQs=; b=cWzxwsa06u11Mqx+RsMszwSoFL2YeOwwFIxfJYpQK4Yv3Wu5ptOovcg4W4ofC19z+R T2PHAf30PWhyK3yndUBGvMu5OIjUyf8yvmzWcJ6t2+1Wl1SZQE5vJyqbjqbAOWVNGGE1 9zL/keieG/zuDVpIEUqlDbtAyIXLKvALp+7moVx643DpDmRwoLOxJQsrfRp5BGITsDwU 7gc++HRJRiLp6BsZ6R61yk1hMmcRvYydYo/iksk8IA54YUAPlL2zhny3frWgnzTL+HFD TFsv93e8Iwr1gIKbJ2NmiqCjU5OxwAXtzjUSJxp1EgBoHoBRKn07FTxvPflnVvDGTUAw /h4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CV8h5hcJ; 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=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a656084000000b00543ed2931d2si11603784pgu.456.2023.06.29.17.08.09; Thu, 29 Jun 2023 17:08:22 -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=@linux.microsoft.com header.s=default header.b=CV8h5hcJ; 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=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230333AbjF2Xu5 (ORCPT + 99 others); Thu, 29 Jun 2023 19:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbjF2Xu4 (ORCPT ); Thu, 29 Jun 2023 19:50:56 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96AA930DF; Thu, 29 Jun 2023 16:50:55 -0700 (PDT) Received: from CPC-beaub-VBQ1L.localdomain (unknown [4.155.48.123]) by linux.microsoft.com (Postfix) with ESMTPSA id 9185C208396A; Thu, 29 Jun 2023 16:50:54 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9185C208396A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1688082654; bh=lgUdu2qp156h5P5sIiuRE2nkVehC4a1jKFyR45EG0Ec=; h=From:To:Cc:Subject:Date:From; b=CV8h5hcJQpMcjs7dt45hr2utnsklSL8xlDt3bCxw5+dvGSlnU60MsS8jUO3Wbgo/o ILIU7MKrg8YBttpVFD+2m5I1A3PkqTBIryGBPDZZgikzzoxZ8vUvbEpAaWXhxUKDtw 9t4qpNk8P0W6LGKkOZ/5LfTj3M241DR5XQyq6Zcc= From: Beau Belgrave To: rostedt@goodmis.org, mhiramat@kernel.org Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 0/2] tracing/user_events: Fix struct arg size match check Date: Thu, 29 Jun 2023 23:50:47 +0000 Message-Id: <20230629235049.581-1-beaub@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 The edge case of struct fields having an extra size argument got missed when checking if events have the same name and arguments. This lead to events not being able to register if a matching event name was already created with a struct argument. This series simply fixes this and adds a self test to ensure we do not miss it again. Beau Belgrave (2): tracing/user_events: Fix struct arg size match check selftests/user_events: Test struct size match cases kernel/trace/trace_events_user.c | 3 +++ tools/testing/selftests/user_events/dyn_test.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) base-commit: 6995e2de6891c724bfeb2db33d7b87775f913ad1 -- 2.34.1