Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4440518pxv; Tue, 6 Jul 2021 00:34:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6WQ9AGi6iiWD1tYr3GrOTr5sHkOZgKeXDL8DdpFRxPlYzhlqVezQHU/lZJYsZHb2fZXoA X-Received: by 2002:a17:906:1c45:: with SMTP id l5mr17519557ejg.514.1625556881952; Tue, 06 Jul 2021 00:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625556881; cv=none; d=google.com; s=arc-20160816; b=fQ88xPdxg6VvEXzlnw0wYHVZ4xBCqJQ/HchYltFilPbNLs+LdMOt//fCqvR+E1vBJL u44YJu00f8FxC+ZwILXMgvKH0PG1nbCjlSpmJ3H5XfNeYxmXpGstJYKTE0+l4bAeNGHI jxL1Jc3zscZlooNisoFn7Uw61nUEnQGtNRsPU5RQqdeJHGbiMRPcCP7XcowmE3czdZhk Sfe27qGVFbTYMitSlILTY14OnquOP2+2j/cKbbiE3Y8R5ceqsFjn6tsEww+mwsFcg8Es +TtfeaYIQinNB4Zfs0QoonANl5UXLUFUL6lF33pvABfLsULPN/KqEwQUMiurEwsJUEfK TBtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lZ4qsYbOJ5hS/I1BBboGbRI6TUSy9NGSN+NVfKexDWc=; b=Dvnw/ugRzfbq+JTxeZYumhx8Mgn8nJKCIQJFFNahdzklQlI9Xwz62opQhtxvKvXH6D lIoRLwRmfzzQrb6vpKZnF95OkeToAd6MavghVxXycWonpdE4WWRMpw7zkBzkoGz4Z3bo P0XMScAOftYfyRIybG/jEoKIWLKkmd3ZnanrjSf3G7pJaiYcF/g1/T8VMXy9h7V8t/kT qpLsMpIuy8MHAfVk64Q5UGkgN+yCJHafVzY/HBXUxODl7oPbikVjEGsfVC+3bf9cwnPc 6t2xy00ZE9SAHquUtMPCLuUhVlK9D0gd4LAeh8dHVHxSuFkvIV0h1Holw8J0tiPemZPI H1gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PhCbiGcZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf25si12968159edb.295.2021.07.06.00.34.19; Tue, 06 Jul 2021 00:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PhCbiGcZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbhGFHf4 (ORCPT + 99 others); Tue, 6 Jul 2021 03:35:56 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:17948 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230282AbhGFHfz (ORCPT ); Tue, 6 Jul 2021 03:35:55 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1667WfZi143499; Tue, 6 Jul 2021 03:32:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=lZ4qsYbOJ5hS/I1BBboGbRI6TUSy9NGSN+NVfKexDWc=; b=PhCbiGcZuCjrVr7RVfiKZTdhjQC3hcHQGkqVQK+GlCErkl3PRk7yidz2Zj6VhzcN3E+I O5Z5aQVri6V8RH0x9gqMmp7ydfOHU0BETz73vt/IZCKNRGBxuBr6DkP7NhVqijQIaeo5 JagX461F/wtMPROuDPFsESpn6nklVRqfG6bcvjuFmxU6WsHUV/wme/tuuLMMeGYlWvWJ KH5xWNzmsoZc6j+QkiLgA7CsH6G+U1Wy+t3CjuNIBzxhHhY8BesuyBqwjvGgPQANTtth metdNZ9WJ51Fxc7tKpVsmrZDl8XFRDgy+n22H4lpG7ldvPNRvl05480It8lPCrdrYk7t nA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 39mbkds3bu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jul 2021 03:32:43 -0400 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1667WhJ6143675; Tue, 6 Jul 2021 03:32:43 -0400 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com with ESMTP id 39mbkds393-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jul 2021 03:32:43 -0400 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1667WXwa011758; Tue, 6 Jul 2021 07:32:33 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06fra.de.ibm.com with ESMTP id 39jf5hgknw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jul 2021 07:32:33 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1667WUGT21758398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 Jul 2021 07:32:30 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6E35752051; Tue, 6 Jul 2021 07:32:30 +0000 (GMT) Received: from bangoria.ibmuc.com (unknown [9.199.43.134]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2464C5204E; Tue, 6 Jul 2021 07:32:23 +0000 (GMT) From: Ravi Bangoria To: naveen.n.rao@linux.ibm.com, mpe@ellerman.id.au, ast@kernel.org, daniel@iogearbox.net Cc: ravi.bangoria@linux.ibm.com, sandipan@linux.ibm.com, paulus@samba.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] bpf powerpc: Add BPF_PROBE_MEM support for 64bit JIT Date: Tue, 6 Jul 2021 13:02:07 +0530 Message-Id: <20210706073211.349889-1-ravi.bangoria@linux.ibm.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: TQkSYD5K5pP8OT5IyTc7z8mncuFrIcBn X-Proofpoint-ORIG-GUID: eiPqO5UqTagzaLt96Gqsr8r_wUgwew9O X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-06_02:2021-07-02,2021-07-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=880 phishscore=0 priorityscore=1501 spamscore=0 malwarescore=0 adultscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107060037 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch #1, #2 are simple cleanup patches. Patch #3 adds BPF_PROBE_MEM support with PowerPC 64bit JIT compiler. Patch #4 adds explicit addr > TASK_SIZE_MAX check to handle bad userspace pointers. Ravi Bangoria (4): bpf powerpc: Remove unused SEEN_STACK bpf powerpc: Remove extra_pass from bpf_jit_build_body() bpf powerpc: Add BPF_PROBE_MEM support for 64bit JIT bpf powerpc: Add addr > TASK_SIZE_MAX explicit check arch/powerpc/net/bpf_jit.h | 8 ++- arch/powerpc/net/bpf_jit_comp.c | 25 ++++++-- arch/powerpc/net/bpf_jit_comp32.c | 4 +- arch/powerpc/net/bpf_jit_comp64.c | 100 +++++++++++++++++++++++++++++- 4 files changed, 124 insertions(+), 13 deletions(-) -- 2.26.3