From nobody Tue Sep 10 12:24:07 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X32ty5v0Yz5WPS0; Tue, 10 Sep 2024 12:24:10 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X32ty309fz442f; Tue, 10 Sep 2024 12:24:10 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 0A68489284; Tue, 10 Sep 2024 12:24:08 +0000 (UTC) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 48ACO7oj094058; Tue, 10 Sep 2024 12:24:07 GMT (envelope-from phk) Message-Id: <202409101224.48ACO7oj094058@critter.freebsd.dk> To: Vadim Goncharov cc: tcpdump-workers@lists.tcpdump.org, freebsd-arch@FreeBSD.org, freebsd-hackers@FreeBSD.org, freebsd-net@FreeBSD.org, tech-net@NetBSD.org, Alexander Nasonov Subject: Re: BPF64: proposal of platform-independent hardware-friendly backwards-compatible eBPF alternative In-reply-to: <20240910144557.4d95052a@nuclight.lan> From: "Poul-Henning Kamp" References: <20240910040544.125245ad@nuclight.lan> <202409100638.48A6cor2090591@critter.freebsd.dk> <20240910144557.4d95052a@nuclight.lan> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <94056.1725971047.1@critter.freebsd.dk> Content-Transfer-Encoding: 8bit Date: Tue, 10 Sep 2024 12:24:07 +0000 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4X32ty309fz442f -------- Vadim Goncharov writes: > It's easy for your Lua code (or whatever) code to hang kernel by > infinite loop. Or crash it by access on arbitrary pointer. Lua has pointers now ? > Your "counter proposal" was essentially available for all these decades > in form "oh, just write KLD in C instead of that limited tcpdump". You're yelling at the guy who implemented a (very fast!) firewall where the rules were compiled to C code in a KLD. > > If we are going to reinvent "Channel Programs" 67 years after IBM > > came up with them for their 709 vacuum tube computer, at the very > > least we should use a sensible language syntax. > > Don't know what that is, quick googling […] Well, you probably should do some more research then, because unawareness of history is /the/ major cause of pointlessly repeating mistakes. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.