From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 13E433887016 for ; Tue, 26 Jan 2021 23:42:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 13E433887016 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=moxielogic.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=green@moxielogic.com Received: by mail-ot1-x335.google.com with SMTP id d1so18018629otl.13 for ; Tue, 26 Jan 2021 15:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=moxielogic-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T1mjrAqjVRrfAjQcFZ8Hu44sNF9FxiGqhQVNvvXY/pc=; b=0LvS2Cn7c6h/jMuSifgq7D3wGpU6PBkjpsnDCKNPdOKgn4OaSar29qcxmND27O4LJq v02EFVnlz3rS1rbZEWuqLx1HFsjVCG1CzjoFG/tCidmlnbAUYcfkm834usPBJ/Tqzo7y bQRapChuIkUIkGhtt/JOvZ34BtsrfFzVhxkOatoCHXgBDkmVXvpMTvT00Oo7SCX99B4d sCGg97hmNJGsIW4/CZWN5BviasyCyad9YY1WcMtDc3fniPe0TQfhYVOBZETK62mCgLE5 z70yHNDzx9GYCCa5X8sjjGS+81VwTLeXUSjP6CsuKyy3kgczl1vmjKz7Yb+Mu382ysC3 mmPw== 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=T1mjrAqjVRrfAjQcFZ8Hu44sNF9FxiGqhQVNvvXY/pc=; b=NA3xY/u0Pdfw760178Ii6lvgCskT4I8tRQBUyDFRuowJBCNu6itWvJZPtclWQDQuXi /VDT4XMWhQlKxA1miitxL8SR44b1Nobwj1ISscFX6aSxJAM3GLYykx98SREHOAViSoSe EzCYawNx3xzMjzuX1ecQyYL+fz5hdcp2ZH9DoLIIi9RPbZYl8VTYZJfoEtSTc5XEnSbb +Kk12hzbp7b3eUL9c9jrYEdJWGhzCgDUFj14qyTVp6IjMrvZBFYllOUeQqRxnH4ObNcV kqz57VeusL7o7ghZOstUTKOIWPfYVuWioudz/X+25SuO339WUPDw5gxiRgiB5Z+YYtLj 0nmA== X-Gm-Message-State: AOAM533nL0WzHP6GRlRQf1a+fpgG1n4zbZzOj4MzbqKpzCMTdHW4rtOs fsgyVDqTZgBNdzKJZLc/cyAABEvs1QSObzpQrzRriw== X-Google-Smtp-Source: ABdhPJw+L3QxV42ZkTBe6dYLD91OwuMy3Md7fs7gY9wQ8WS4PFGtEvc0YnW7SZiCNtBRb7Z1gPikMrUhFUbIacwfqtA= X-Received: by 2002:a05:6830:902:: with SMTP id v2mr5689651ott.56.1611704521515; Tue, 26 Jan 2021 15:42:01 -0800 (PST) MIME-Version: 1.0 References: <20210115184653.124913-1-madvenka@linux.microsoft.com> In-Reply-To: <20210115184653.124913-1-madvenka@linux.microsoft.com> From: Anthony Green Date: Tue, 26 Jan 2021 18:41:50 -0500 Message-ID: Subject: Re: [RFC PATCH v3 0/5] Libffi Static Trampolines To: "Madhavan T. Venkataraman" Cc: libffi-discuss , fweimer@redhat.com, DJ Delorie X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libffi-discuss@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libffi-discuss mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2021 23:42:03 -0000 Madhaven, Thank you for your continued efforts here. On Fri, Jan 15, 2021 at 1:47 PM wrote: > Trampoline API > ============== > > There is a lot of dynamic code out there. They all have the same security > issue. Dynamic code can be re-written into static code provided the data > required by the static code can be passed to it just like we pass the > closure > pointer to an ABI handler. > > So, the same trampoline functions used by libffi internally need to be > made available to the rest of the world in the form of an API. The > following API has been defined in this solution: > I need a better explanation around why this new API is required, and this new capability isn't just an implementation detail supporting the old API. Thanks, AG