Received: by 10.223.164.202 with SMTP id h10csp526608wrb; Tue, 7 Nov 2017 10:02:30 -0800 (PST) X-Google-Smtp-Source: ABhQp+Th6Jkh+5Q/MeC6DWVw2P1iAkpHqmkQKR02oC5l8yO6R453GEjgF86TAD4vxjOpcHeAgbEt X-Received: by 10.101.97.167 with SMTP id i7mr19489447pgv.449.1510077750242; Tue, 07 Nov 2017 10:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510077750; cv=none; d=google.com; s=arc-20160816; b=b5q6g5OjUVn9RWydQNHUVoyAUzut2oaeD53vIJguPrhUbKPehfHpEwvD5xkvjuKEP+ llw85CmPmzbUVIlCcW4uJ6Mjh5gGt8CglGfsKgGoHQn/zmAjRtrcxAfpyhEONKzxYAkr SyaGpRO33C4MWdEYxFW04zLeF27IUd7HTHa8lht5JHUXRXUNbas3llqSJoRJv0V6p0Lp hVOqe2h7l+iTNGZnZ0pm0opIYKIz59Ki2Xay08OJfOgtr28g2RlnUzSMUgDeNbb7ZLfq EDHG+Q3a7R1EOrijEX4aF54pbFdgyH9uzz4A9A25TOuF10soHszXpAoE+RFVH8Ikd3cc Ishw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-signature:arc-authentication-results; bh=sx4xIUgW00oOKfbHSMcOvo0VMewlUPz2XnfGEIzS09c=; b=zffiQwdQZFf2VTc9P6nhxU78ZxRb9ARX8anXymaDBqazAbL+LUIzPsog+JfDt/m1JX v+//HaBhPNP5i22z0mxjhoG9AXerMuFqaNIndTaqW2VnUmbegxuDiohxjlhstmITzoqi JiESUi8FMenu4vvpCttp9iFXHnVp/fTGX9+iAHJ9+HKq0RAQTv/bNLuH1RE4vIH3Dsnj q1i9g10mf3VW5s4YG6N+XtXN6w4o17enf2YomK6IddpUf7k9GLNPitw6B8DuqFrm6GvQ ZrBTpXOB0p11wiEiOMeRAyQ0PnsP9OrsMw7W+RJkccpfZI8OSCrEamuDVQVtR/cfYCGx hb4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=iNf4aLCy; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=PYYcIxny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k126si1849537pfc.348.2017.11.07.10.02.01; Tue, 07 Nov 2017 10:02:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=iNf4aLCy; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=PYYcIxny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932487AbdKGIJV (ORCPT + 91 others); Tue, 7 Nov 2017 03:09:21 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:56836 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932418AbdKGIJS (ORCPT ); Tue, 7 Nov 2017 03:09:18 -0500 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA788iDN001433; Tue, 7 Nov 2017 00:09:03 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : references : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=sx4xIUgW00oOKfbHSMcOvo0VMewlUPz2XnfGEIzS09c=; b=iNf4aLCyycggH6kD+h2fAwS7y++7mnF7XP64+/nZ39EHi6v/KiVSjHWgPRK3+9EORTh2 MsNzm9bQZxaCTu1177pPlfIEzVZZ7/18fyJDs2rfG7cdDq6F1V/gpNAx1XbiY8N2H+BJ AhjkO4+OeBzx8b9oG6r8u+0vLIVEJEwYRgk= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2e37tt8502-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 07 Nov 2017 00:09:03 -0800 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.27) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 7 Nov 2017 03:09:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sx4xIUgW00oOKfbHSMcOvo0VMewlUPz2XnfGEIzS09c=; b=PYYcIxnyAAwsMtt2Rqq2UPmkjl6d3lr+m91Vb0mVYFR0lQB/dJRt5tKjyFML+Qqm3hwo/oi4YhcjPJ3rYYYd6LOsJvPSEbsBnQQI1WQfkOZzWDQgVMXhujlVlcckMr6qpT4rSb+b37Y4cwGOGvrJk0XucVhLTRAwoS6aeNRLdFs= Received: from [IPv6:2620:10d:c0e1:1110:8000::2009] (2620:10d:c094:180::1:1f55) by DM3PR15MB0971.namprd15.prod.outlook.com (2603:10b6:0:10::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Tue, 7 Nov 2017 08:08:57 +0000 Subject: Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members To: "Naveen N. Rao" , , Sandipan Das References: <20171103065833.8076-1-sandipan@linux.vnet.ibm.com> <94a4761f-1b51-8b70-fb7f-3cea91c69717@fb.com> <1509815348.8zu63uatdo.naveen@linux.ibm.com> <4acdc081-341d-ee91-a591-b1d331a8c8d5@fb.com> <1509982000.092la4257a.naveen@linux.ibm.com> CC: Brendan Gregg , , Martin KaFai Lau , Kees Cook , From: Alexei Starovoitov Message-ID: Date: Tue, 7 Nov 2017 17:08:41 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1509982000.092la4257a.naveen@linux.ibm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c094:180::1:1f55] X-ClientProxiedBy: SG2PR01CA0097.apcprd01.prod.exchangelabs.com (2603:1096:3:15::23) To DM3PR15MB0971.namprd15.prod.outlook.com (2603:10b6:0:10::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 496ddaec-f849-4a45-2c98-08d525b6cdd8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603249);SRVR:DM3PR15MB0971; X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB0971;3:QbUn7Ec8BQDIcZJbzroVHvpqsKwLooUroE82o+9jlm4pjJexYDrkNVrjDpUnNZaWJEjVkTtSaT56MAUW8xSc3oJCzHktCJqioU3MKv7HnBHzmPCRBD9cihY5Kqr5L28edj5JxnsnAZQmip5+T31BcqQGkidh1le2R6RzBHVIFHb6hsPmhR9eojcvC2y5ZAyE26KFYHp7zTBio5Lt9bKvqanuKYeJsGFaXfjvxCFBxroPxhdz2zUq6NXuO0qOq4dR;25:fIl8PjnuNYbTjN8xT+mpt5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xpeykguTQ68ojwJYPThJJW/aGxCG+8ppNZO44zws+fBgj24uTHyOqhPeOqoHVSUN3r8dL;4:lF4zMlLEHb4OA6J4Ctxm3fGLFEptmIM36Wlv97kfHA2Sc8GeEFxosgpAVYYa2NxpOkuGM1zj3UYaIKpXp4Lv58J0tTCvB/PvAm/5l3bOu3xANqpTDqcQ8jpCVacy/wuMliWDQWPritAtE7OIf080Cu5TFqXqJNRn19rVThSlbJAfSzrWmTJK4Ba2Qef9AupUg/RUGFwJZyB2y3a9FVGNjgP8o3fMp6z6ZKA4xAqwxig1eFjaUw0lem5u4pENfDrPbKsYlv2E7j9lXfh+Y9vX4A== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(11241501159)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3231021)(3002001)(93006095)(93001095)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM3PR15MB0971;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM3PR15MB0971; X-Forefront-PRVS: 0484063412 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(189002)(24454002)(199003)(39060400002)(8676002)(47776003)(65956001)(65806001)(86362001)(2906002)(305945005)(229853002)(31686004)(36756003)(8936002)(189998001)(67846002)(31696002)(23676003)(97736004)(6486002)(81156014)(25786009)(81166006)(50466002)(1706002)(76176999)(54356999)(50986999)(53546010)(7736002)(6116002)(65826007)(105586002)(5660300001)(101416001)(478600001)(106356001)(2950100002)(58126008)(110136005)(83506002)(93886005)(33646002)(6666003)(316002)(54906003)(230700001)(4326008)(68736007)(53936002)(6246003)(64126003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3PR15MB0971;H:[IPv6:2620:10d:c0e1:1110:8000::2009];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTNQUjE1TUIwOTcxOzIzOlhCWVVvWG9KUS9mZUNsck9kTCt2R2RTbTFQ?= =?utf-8?B?NlltODh1cEN4SURxR2dBeXU3SUdjbzFadlFDQzVsY3JMNHZjcXZERm15Mjlq?= =?utf-8?B?bXczSkE3VnhSUk9tNXpRNXo3OG50aFE5akdPVmREZzAzSFJVQWdvWjBzZWZ3?= =?utf-8?B?SkRsdncvaHpCTUlpQ0crKzYwR1J2M0ZBbGZhays4RUJwYkt1WStrUDR0Y3Vi?= =?utf-8?B?Rlp1K0tXSUUwQmVoZnRVcDdVeFVPQmpLL3poeXppd3pxeWpmNTllZU5SVC9k?= =?utf-8?B?Z2pPL1dHRUxMQjdYU2NhQldwaFVUdk83TXM4a3ZBYm9JU2RpdzYvRHFuemRF?= =?utf-8?B?Q2xjeFpSZUxCZlVSSXZ6ZEZ3RlQvSVpSRm5nVUpRRG1wSXBrTzBWOXphNHBS?= =?utf-8?B?b1FuY3F0bGFVTmk2a1E1bjhhUk5uaFpqbjRsNUJmTGdLNkxiMGNiTVI3aDZP?= =?utf-8?B?bFMzdzh2ZjFud1ZseHloaE90UXNuRHZPaC9sdlJUeCtoZ1h3b2VZK3N1THcw?= =?utf-8?B?NVg0TnZkTW5pT2k2ODU4Y0IzOUplQkljSE9MeERMV2N4R2psK0ZIZ3ZMYy9q?= =?utf-8?B?NGxGZVhpNnBhMWlFUXpvME1tR25ZaHdaSEljN1c0dzFSMmcyZ1FjV1F0U2ky?= =?utf-8?B?Nkt4bGxqNTNQdzJxVVJqVWdXYWdNSUNuVF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w/BAnazzJB5CK1RKuI37wsa/uL3FuoDmLEpGM2t9WBFV6ot4A4BxBjiyEUm5Q7LXCkIuYdPgvP5b1kb1ZqXw86elUiJ7WCYtwMHTxWyYM7p72gM+w0hg7xPg3v6ki578M+zZsPE3pe4Jdrzb6PubEgbFK4ac84Yalrcu44CwQmQIsTV3J+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB0971;20:+eD0kbpLwDft/1fgc1dp+OYbeZA/NP1y5gi9cSuzYeKEfrbO7z6WMrgMC2fQgRH+RM/PZgOO7ZXtFhzhxx6WiFrNlynWzXYA4sliBJKbt7W6037EyjIdWJ4QyMVy7KTnq50XWCdzlLDhRYySRZqVRHJyrWkKUi/Y6cjrfyA8CbE= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2017 08:08:57.5095 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 496ddaec-f849-4a45-2c98-08d525b6cdd8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR15MB0971 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-07_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/7/17 12:55 AM, Naveen N. Rao wrote: >> I thought such struct shouldn't change layout. >> If it is we need to fix include/linux/compiler-clang.h to do that >> anon struct as well. > > We considered that, but it looked to be very dependent on the version of > gcc used to build the kernel. But, this may be a simpler approach for > the shorter term. > why it would depend on version of gcc? We just need this, no? diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index de179993e039..4e29ab6187cb 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -15,3 +15,6 @@ * with any version that can compile the kernel */ #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + +#define randomized_struct_fields_start struct { +#define randomized_struct_fields_end }; since offsets are mandated by C standard. From 1583405923534791846@xxx Tue Nov 07 11:19:21 +0000 2017 X-GM-THRID: 1583027203607239623 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread