From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mail.toke.dk (Postfix) with ESMTPS id DD9CB9C26F3 for ; Tue, 15 Nov 2022 16:54:50 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RJbCUBCA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668527689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aAB2Hg+RMDMT5I1x428ws21lBRjRICs3mcInuPW5LFo=; b=RJbCUBCA1Yd5JuHlPhp+0Hq8S2tWef4t3kt1dvoe3HH2pTOiwVi8t+jeK4vk1+meAP8usS BLQUSot3pSdxLCJp/MMum3ANNbPTHeB3ZspcqtoIC3q3f32g9wfNYfSaLy1PaQ0LQRwu2w DvY+B5Y5eBVxvteWbiXQcSTKlzPAVZ8= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-292-c8HKmN87PeaWo26pVQU7hA-1; Tue, 15 Nov 2022 10:54:48 -0500 X-MC-Unique: c8HKmN87PeaWo26pVQU7hA-1 Received: by mail-ed1-f72.google.com with SMTP id f17-20020a056402355100b00466481256f6so10218166edd.19 for ; Tue, 15 Nov 2022 07:54:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aAB2Hg+RMDMT5I1x428ws21lBRjRICs3mcInuPW5LFo=; b=g1d3BvDCICXp4Go+EeRr4OYqNAJC64Ew1KzoV1nTLUesPTBLYuALSZjr2boPbguwcW WcWixTaIogyHi+N6CGRg7svTMZssS8baQMGg/mTlX2WSili+/XAxkLV9ioYHeSFFPQFL j7skt82zjbHnIbqm85zjiXHf2rIjbISg1gTFDBn8WYRKiuJ+SfpjCBS4sQZIn6NqGja1 tU8stcF2BAfzjRLmwgXypzLaWyiwPRxGVDEKMSvUZT9H77EREaYuhZUOyDiizdrMAIRJ hXYBIt01I1/+4g6z4RaJgUfVTR0WQR6tOT8we/uTKztYVPAlWTdlXurbodwp6ueK/ibx UZlQ== X-Gm-Message-State: ANoB5plvRzVhnJnUW/E14mbxtHws5VMFM8Ibf+vkhWHi40rOhwN6OxUo 5fmcRMv3abAcmi9Bk8gqsf0idDWPSnCTkElhJYXiQUL6wY6wXe10uAEZzcCqf9NknFpymzk5vZ3 ETqgezLYtq///mLf6aU6Z X-Received: by 2002:a17:906:2cd6:b0:78d:20f7:1294 with SMTP id r22-20020a1709062cd600b0078d20f71294mr15377383ejr.442.1668527686623; Tue, 15 Nov 2022 07:54:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cWcobPYDT3WRhyKVYgNuEsHOuqtMADP3XcGH3zCnehqQcGtUwi3vBUpyahiaXASHL4ecy3A== X-Received: by 2002:a17:906:2cd6:b0:78d:20f7:1294 with SMTP id r22-20020a1709062cd600b0078d20f71294mr15377338ejr.442.1668527686254; Tue, 15 Nov 2022 07:54:46 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id cf6-20020a170906b2c600b007ad94fd48dfsm5623540ejb.139.2022.11.15.07.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 07:54:45 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 2F0CE7A6CC4; Tue, 15 Nov 2022 16:54:45 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Stanislav Fomichev , bpf@vger.kernel.org In-Reply-To: <20221115030210.3159213-1-sdf@google.com> References: <20221115030210.3159213-1-sdf@google.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 15 Nov 2022 16:54:45 +0100 Message-ID: <87mt8si56i.fsf@toke.dk> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Message-ID-Hash: CPWTE25C3WHSPWBWTSVEEZH6L7GOFFNY X-Message-ID-Hash: CPWTE25C3WHSPWBWTSVEEZH6L7GOFFNY X-MailFrom: toke@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org X-Mailman-Version: 3.3.6 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next 00/11] xdp: hints via kfuncs List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Stanislav Fomichev writes: > - drop __randomize_layout > > Not sure it's possible to sanely expose it via UAPI. Because every > .o potentially gets its own randomized layout, test_progs > refuses to link. So this won't work if the struct is in a kernel-supplied UAPI header (which would include the __randomize_layout tag). But if it's *not* in a UAPI header it should still be included in a stable form (i.e., without the randomize tag) in vmlinux.h, right? Which would be the point: consumers would be forced to read it from there and do CO-RE on it... -Toke