Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4293162rwb; Tue, 8 Nov 2022 15:07:24 -0800 (PST) X-Google-Smtp-Source: AMsMyM6p9qt4Qf0zhBJgrL8RKojbSpzPBaJiZ+KvxOrTI/OodZwfaHvMJVBkawkflG6wVaFTW/pI X-Received: by 2002:aa7:c981:0:b0:461:522c:ce0d with SMTP id c1-20020aa7c981000000b00461522cce0dmr56151107edt.169.1667948844557; Tue, 08 Nov 2022 15:07:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667948844; cv=pass; d=google.com; s=arc-20160816; b=WBJk/aVguMw/sNAIXac3YqX2JsLRHsyR+I1wxOKOUwp6ak1dOxd5jd4nnfy1IOrCrU bPpCLh/EL8VLcRJ/bD5eZKPoVZiVGYZDSaIROd7qjIQmM9xAp/uIs5IJzHjkejywbM2p /0vtuXbOkevTT5bGA8mfMzjOLGEuy89A8SeyUF3AK5ElqOwuzZuMjDa01gOCjoOT+bHf +9l/H0vsPEMmvLafqDlP/f6mmsMH1PwmSaL8zCyuygOk8c/qf/Mnj2wqN/rsp0Of1H/V 5tc4KrfFSz5g98BDm4j7TJqI00C5uvgCmmvfA+buPzdJJKR9wWbJeJtnEIdLJHnTdxQo SQNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=/aeC5P4a6geIBycwczBlQ0s+Lqao1x8HrCtNp5ECyTQ=; b=eAjCTUh4Kup4SL5QgQRsr5VeYPnLzuYf2EHscEAjh34huYHYsIK5YOAm7GTYIH7wSS ag7LjRSATDg7Yg6APhcE3nNu9QqtCNtzeDdzfNj+zgUrWnpzdYTA29ENLPK6P73XAVlR V/d3b5EE6nYN8Yd+lkeClpAZhTd+i69//65nxi0sZN5icXAfu2y4Ca8oPWTs+wt29OSW MJkSw7sZL5MYsNMA8Lldgww9SEsOuQDz6H+c5Ef3xNGywzR4vTuU8k0l2A/PI7ZDIhyE Ah+VBSj55Xxqt0yzZp/ZQP4LgJgQ141DN1f3VLOceoA4tZxoiJC0OSA+MUktktVt1e96 mqcQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b=Wxal9tea; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=meta.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020aa7da02000000b00461c9bb5205si12543788eds.152.2022.11.08.15.07.02; Tue, 08 Nov 2022 15:07:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b=Wxal9tea; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=meta.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbiKHWIL (ORCPT + 92 others); Tue, 8 Nov 2022 17:08:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiKHWIC (ORCPT ); Tue, 8 Nov 2022 17:08:02 -0500 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE541E726; Tue, 8 Nov 2022 14:07:59 -0800 (PST) Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A8JRKGO024346; Tue, 8 Nov 2022 14:06:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=s2048-2021-q4; bh=/aeC5P4a6geIBycwczBlQ0s+Lqao1x8HrCtNp5ECyTQ=; b=Wxal9tea1bDoTxFwdr8YE+LhGEr+brXxn3ajrocOpoQd2agjzB6eIdXqprfAW7dgR7de v1SxKTNsxJdco8jenU5Z52LshNbZrDHHpT6DUQPA+N/gel/snrEM8erVCbr80RZy8B57 8iEh+x8pIHGUA1OVn+2cMPKwkJ19qqRojVg+wnHrFikCXDomDnUQYroettk9KVZNjzYS 9G5wj/7RqMMUR+BcxwHr0S8ZlWLvtJKniHz+kWQ7yahMztyBYlIRBIrS4pN2hgIqWgVJ UkurK74n27se5qEz6zCCmXT72KRGi50LV94gVSjHEQdngqZUEQKBMyj6xY4NGtcaAM+r Vg== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2104.outbound.protection.outlook.com [104.47.55.104]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3kqh9wf2d7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Nov 2022 14:06:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EEVUYpcVgVzrh/w/NP1y5u/2oQhUnyyq6H/hXGvzf0Bl4u7JXksUCqy9+0IsOXObnF+dLmKlOR03co7K4We6DdLpUqqJfeB0DWCwYcY79nFFUnP6irhSO5QDz2NsBH8rsrjV6E1hq8KZ2/UPZSWayLdtMdSv/NROJL0LuvOzKlLzkrKDMqohyNXxZvsN90MQK0Nb7K2tI5ZIWLb48fIDutk3eBFRmBsGElqr67aoh/lmrEfWgCiXnzzKkmWFVkK/jFiRzPnXSrTYyMzTXs6X11A0DP1imuXCZY1y3IZG6Dv3/9HzKnudv8t4fQrsnhLMnPE3IjEOEJI6cHl9XlsHUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/aeC5P4a6geIBycwczBlQ0s+Lqao1x8HrCtNp5ECyTQ=; b=QoKnrqIG2Tc2ZG/ho6dT89NuFbv6JAveP2tvM4EeL54QuqJz8xLQH/C6Bmn+LIdCzgsV2TiVQUghvO+WFmhH9sndvcQ6yRdDkpC4ni3EIRZOo/1V7wP7kpp4tMkIRquM3aYUA4zq3tyun+Qvo+ZKaMfqkZi5AvoY94SsrLYIYLOyonQ/YpTAYwXg+t1UIjnriuSx0BOjcDLlT81v+WzOHcAdxvjCXHxlFz63mwQ10c8kxPRf2hBvHXqwil6vUEiafgdYGh/8WR9slThH74mDmnimex2rb7/MX2mbsHpQaT4m5+HrmUX/bXu19boycJ4m5/Szwv0z8ar14XWI7Qphbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meta.com; dmarc=pass action=none header.from=meta.com; dkim=pass header.d=meta.com; arc=none Received: from SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) by BN8PR15MB3396.namprd15.prod.outlook.com (2603:10b6:408:a7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.24; Tue, 8 Nov 2022 22:06:17 +0000 Received: from SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::1f2:1491:9990:c8e3]) by SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::1f2:1491:9990:c8e3%4]) with mapi id 15.20.5791.027; Tue, 8 Nov 2022 22:06:17 +0000 Message-ID: Date: Tue, 8 Nov 2022 14:06:14 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [RFC PATCH v1 2/2] selftests: bpf: add a test when bpf_probe_read_kernel_str() returns EFAULT Content-Language: en-US To: Francis Laniel , linux-kernel@vger.kernel.org Cc: Alban Crequy , Alban Crequy , Andrew Morton , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , linux-mm@kvack.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20221108195211.214025-1-flaniel@linux.microsoft.com> <20221108195211.214025-3-flaniel@linux.microsoft.com> From: Yonghong Song In-Reply-To: <20221108195211.214025-3-flaniel@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0334.namprd03.prod.outlook.com (2603:10b6:a03:39c::9) To SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR1501MB2064:EE_|BN8PR15MB3396:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a55f573-7f81-447b-a00c-08dac1d575c5 X-FB-Source: Internal X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a5Ez905mlT+39EhayGlUlizYnd8kjgZj07kK3VAtidiaL1TNLuvAEX4me8e76MiUokqAskFuLhfzFrAZeu+nwMgfwurNroPbig4sxwCn1GgLVP4JkiNaOjERoLrkUE+LCWyL54e7/XkPNA9/3jn1t2IjV8zTq1+w/9NWASBz429pgiMGVe+ktI+uu0yMxcLClsoK5z+U3NYMk2sGH/OPd0UEG1iVRgiDsS3UYNPlUxoCh7Wdoi4oheggSuOQLgNIsdVysQsD5jaW39LUocIzZLG9RyInE2dX6iflT5thZpULBTGHINeNBmOFtv1ohm+CxytK2olNMK2N3zO7oK6rFFehJABaQ2IiTOFGV8UrM8AzxbJBVKDsUleJam+i4MKHkI/dzXdi1MHN+mCWAxsGWBuYV3PJsfPwqnpjReHJyTQvRNGIz8+g8n5wiDmSQZZfcbCYxEJjlesyItpGHP+IQEV3qMGJAsO/ZD3+JpY4Ml85U0GOyWRQdtQ1eezDuy2p1E7eJgTrB9BXKd6p1Hb9vy75gnsuRdKpKqqsMEFgZKGxaFU4e52bz/5Wo8mSOwxfiB33BnrJxvBsV+DdbGtvaeQEz3xc1SMGf2ddoeFU5sCZZybKw4ADzp4RiveUp7N1YaPcNNHx58dfL5aWit+Y5Ijn5oyqTrHiLrVXQ3v5M6KHcjmTg+fLIO+bepEmBxK9QWTe86Mqkr9gdMBBPadUHFknbw7HEcgMFWNjnx2wvefy4M88ZYJoDyjPXD02pZ3WyHLWIX4of0XNKGyyCX0mEmHSDN6t+ET5ks8hCOYTclA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR1501MB2064.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(366004)(396003)(346002)(39860400002)(451199015)(4326008)(66946007)(66476007)(66556008)(2906002)(53546011)(6506007)(6666004)(45080400002)(478600001)(6486002)(86362001)(31696002)(186003)(8676002)(36756003)(2616005)(6512007)(54906003)(316002)(5660300002)(7416002)(31686004)(8936002)(41300700001)(38100700002)(4744005)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSp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hDMmE4cnRkREI2?= =?utf-8?B?NFpHVzBFWFk1Z3BpSVVKM0JTKzIxUXBzRmxHRG5yankrSUVWL2JJci9RdVVO?= =?utf-8?B?eS9iNTBGRytTTko2cWQrQTcrZVNyNlhKZ2FCRThpVXp2eVBxSEU5TzF2R0Zm?= =?utf-8?B?QzNZMk0yU1VQeEFNc2NNcWF5Z3NHckgxOVpENnZxbmREMWdVOWRUN1YzdjZB?= =?utf-8?B?SzBqZzFtd3FwaGUyeTdpVVM0ekNrb0E3WVhGd1p2Z2hsdUp4WG5sbE1FUzlV?= =?utf-8?B?RXNubXhvSFBxdStPVE1EVSttTWl6ci9rMXQwVWE1aWNwdTd0VzJ0Rk85WE1Z?= =?utf-8?B?OCs1RWcwOEFPSXhBa2dUeE1BRHVsVXZ2c2pDSWo4bnRkNVhMUGxoMXg1OWd5?= =?utf-8?B?U1I5SnVSYytYTld1OWFlQ1BBUS84by9VSzdCSGR2bzBmbjUwUHJxcFo0S2Zz?= =?utf-8?B?ZWc9PQ==?= X-OriginatorOrg: meta.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a55f573-7f81-447b-a00c-08dac1d575c5 X-MS-Exchange-CrossTenant-AuthSource: SN6PR1501MB2064.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2022 22:06:17.6926 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mHThuFdnty+ZIaarWlkYg9oGDqA6tz64qS06zVoCjCJJt035YbzigT6S+yFgcKhr X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR15MB3396 X-Proofpoint-ORIG-GUID: 8MuyCova3LIRHPm0SFoZYNVmQ20OjlLB X-Proofpoint-GUID: 8MuyCova3LIRHPm0SFoZYNVmQ20OjlLB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-07_11,2022-11-08_01,2022-06-22_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/22 11:52 AM, Francis Laniel wrote: > From: Alban Crequy > > This commit tests previous fix of bpf_probe_read_kernel_str(). > > Signed-off-by: Alban Crequy > Signed-off-by: Francis Laniel Acked-by: Yonghong Song