Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2591907rdg; Mon, 16 Oct 2023 08:52:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMBeQBEiBIDxfdz+53nmmr8cgngsDpNhJO1FXbp7xsGXmmQJkMjHfJw+/mXa+u547wEusf X-Received: by 2002:a17:902:d4c7:b0:1ca:200b:8dce with SMTP id o7-20020a170902d4c700b001ca200b8dcemr4754113plg.41.1697471548384; Mon, 16 Oct 2023 08:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697471548; cv=none; d=google.com; s=arc-20160816; b=xM5TzMSFmo5uqMAMJW1kK3YIc6n+6+ny4uU4Nix5QowJHl3z1NVAAZIBZUSfF7LkHR S4bYXLcwYy7TmPKPJrzjoeB3MirLaOOfWvbvIjqCG7c0/8qDaIN2ieW2WGdB7XYtJ/PC RAstrn/SiWNzyHEUKP/eDoszK5MLSMwMutuhGzJ1S8qUWH/wf3HiQtT3KV40fp5OluEY tDPk5TlYRkSwC6sq8higt6HlBkZcJR+smPoj+phRF67GEbni0hu8Ocb1gS9Y2pbqtdRa C365BisnehSAc3LMZBD28KqAsQBe7pLeED4192Qv8deGLWOTgekHOFyOKAGDuYAgeqiR wR+Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Kkrecyg9MSlkejZWTcnngg3UCxGc50nB7TzwwIlFSkg=; fh=yN3bN0/KoARSduKdiVmp6I8tdNsNG2NjGCueFicRUzA=; b=XHR3ZElrFmE14rS2bH+bl/x5zpp6K2n9TqJRTNfHXdoscBPGUtDG5fEp+bmUTT4m+A A3ldJPICQjsqefLxr+zlivjFJGfKC6yg7GDXr479djdyc51v43KiHGiyc0mB/mOKOXTV DqyI5lRpSqO+B+A+wq2hcl2A0L4e7TK1NtY3lPsenZndR/6Bj0qzv2u6AVRadMbWP/4S d2Hl3k24kVwT9rlCrNilykjYwbW1xcx0/Kf3tHY3T4z/sn7alOS3u2hE8UFRWbuXjfuV uJVm5ptpPPQvTLSTe7JBrcKTv1OJNY9krsoPQ07S4H2PsXTLmEUv5oBAPrnz6z6ZtzSw qbng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id k16-20020a170902761000b001bbcddc33dasi10035185pll.180.2023.10.16.08.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:52:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 19A5F8021889; Mon, 16 Oct 2023 08:52:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232802AbjJPPwN (ORCPT + 99 others); Mon, 16 Oct 2023 11:52:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233425AbjJPPwL (ORCPT ); Mon, 16 Oct 2023 11:52:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBAADF1 for ; Mon, 16 Oct 2023 08:52:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06237C433C7; Mon, 16 Oct 2023 15:52:07 +0000 (UTC) Date: Mon, 16 Oct 2023 11:53:42 -0400 From: Steven Rostedt To: Andrii Nakryiko Cc: Artem Savkov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, netdev@vger.kernel.org, Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Thomas Gleixner , linux-rt-users@vger.kernel.org, Jiri Olsa Subject: Re: [RFC PATCH bpf-next] bpf: change syscall_nr type to int in struct syscall_tp_t Message-ID: <20231016115342.30b3d357@gandalf.local.home> In-Reply-To: References: <20231005123413.GA488417@alecto.usersys.redhat.com> <20231012114550.152846-1-asavkov@redhat.com> <20231012094444.0967fa79@gandalf.local.home> <20231013100023.5b0943ec@rorschach.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:52:26 -0700 (PDT) On Fri, 13 Oct 2023 12:43:18 -0700 Andrii Nakryiko wrote: > > Correct. My Ack is based on the current way things are done upstream. > > It was just that linux-rt showed the issue, where the code was not as > > robust as it should have been. To me this was a correctness issue, not > > an issue that had to do with how things are done in linux-rt. > > I think we should at least add some BUILD_BUG_ON() that validates > offsets in syscall_tp_t matches the ones in syscall_trace_enter and > syscall_trace_exit, to fail more loudly if there is any mismatch in > the future. WDYT? If you want to, feel free to send a patch. > > > > > As for the changes in linux-rt, they are not upstream yet. I'll have my > > comments on that code when that happens. > > Ah, ok, cool. I'd appreciate you cc'ing bpf@vger.kernel.org in that > discussion, thank you! If I remember ;-) -- Steve