From patchwork Wed Mar 2 00:43:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Liu X-Patchwork-Id: 12765325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB070C433F5 for ; Wed, 2 Mar 2022 00:44:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238783AbiCBAop convert rfc822-to-8bit (ORCPT ); Tue, 1 Mar 2022 19:44:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236504AbiCBAop (ORCPT ); Tue, 1 Mar 2022 19:44:45 -0500 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEEED5E776 for ; Tue, 1 Mar 2022 16:44:01 -0800 (PST) Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 221MYwGd014862 for ; Tue, 1 Mar 2022 16:44:01 -0800 Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3ehvdc8p6b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 01 Mar 2022 16:44:01 -0800 Received: from twshared6457.05.ash9.facebook.com (2620:10d:c085:208::11) by mail.thefacebook.com (2620:10d:c085:21d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 1 Mar 2022 16:44:00 -0800 Received: by devbig006.ftw2.facebook.com (Postfix, from userid 4523) id 17BA32B478458; Tue, 1 Mar 2022 16:43:50 -0800 (PST) From: Song Liu To: , CC: , , , , Song Liu Subject: [PATCH bpf-next 0/2] fixes for bpf_prog_pack Date: Tue, 1 Mar 2022 16:43:37 -0800 Message-ID: <20220302004339.3932356-1-song@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-FB-Internal: Safe X-Proofpoint-GUID: gBXC2hAs-50tet80EwM0l9CcufYndykj X-Proofpoint-ORIG-GUID: gBXC2hAs-50tet80EwM0l9CcufYndykj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-01_07,2022-02-26_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=fb_outbound_notspam policy=fb_outbound score=0 priorityscore=1501 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 clxscore=1015 impostorscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=325 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2203020001 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Two fixes for bpf_prog_pack. Song Liu (2): x86: disable HAVE_ARCH_HUGE_VMALLOC on 32-bit x86 bpf, x86: set header->size properly before freeing it arch/x86/Kconfig | 2 +- arch/x86/net/bpf_jit_comp.c | 6 +++++- kernel/bpf/core.c | 7 ++++--- 3 files changed, 10 insertions(+), 5 deletions(-) --- 2.30.2