From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D0D8C282CD for ; Wed, 30 Jan 2019 04:05:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EBFF2080F for ; Wed, 30 Jan 2019 04:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548821104; bh=ZY8BuPk0d4/L24dkqIkoqF4AozPwslu/27mCj12rkng=; h=From:To:CC:Subject:Date:List-ID:From; b=WtNdQkWuf6heInb4r5TRYOkd1k4Mi27R3mylInZ25VJGYJFbw4FcjpFlV2rWr1Y6K p6GgJ3fGVZo6fvwURfhDECivNgy+4kUlAjY6lard+CxiZgAYus/PqEPjJcdAzg9XMB rpOU/bZfy3gq+RrIwdQjoHR+nyiXm1yBJ+YhpJkc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729091AbfA3EFD convert rfc822-to-8bit (ORCPT ); Tue, 29 Jan 2019 23:05:03 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:45956 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727672AbfA3EFC (ORCPT ); Tue, 29 Jan 2019 23:05:02 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.27/8.16.0.27) with SMTP id x0U43WGw031069 for ; Tue, 29 Jan 2019 20:05:01 -0800 Received: from mail.thefacebook.com ([199.201.64.23]) by m0089730.ppops.net with ESMTP id 2qb3gv04vw-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 29 Jan 2019 20:05:01 -0800 Received: from mx-out.facebook.com (2620:10d:c081:10::13) by mail.thefacebook.com (2620:10d:c081:35::126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1531.3; Tue, 29 Jan 2019 20:05:00 -0800 Received: by devbig007.ftw2.facebook.com (Postfix, from userid 572438) id 79CC4760C91; Tue, 29 Jan 2019 20:04:58 -0800 (PST) Smtp-Origin-Hostprefix: devbig From: Alexei Starovoitov Smtp-Origin-Hostname: devbig007.ftw2.facebook.com To: CC: , , , , , Smtp-Origin-Cluster: ftw2c04 Subject: [PATCH bpf-next 0/4] bpf: fixes for lockdep and deadlock Date: Tue, 29 Jan 2019 20:04:54 -0800 Message-ID: <20190130040458.2544340-1-ast@kernel.org> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-30_03:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In addition to preempt_disable patch for socket filters https://patchwork.ozlabs.org/patch/1032437/ the first three patches fix various lockdep false positives. Last patch fixes potential deadlock in stackmap access from tracing bpf prog and from syscall. Alexei Starovoitov (3): bpf: fix lockdep false positive in percpu_freelist bpf: fix lockdep false positive in stackmap bpf: fix lockdep false positive in bpf_prog_register Martin KaFai Lau (1): bpf: Fix syscall's stackmap lookup potential deadlock kernel/bpf/hashtab.c | 4 ++-- kernel/bpf/percpu_freelist.c | 41 +++++++++++++++++++++++++----------- kernel/bpf/percpu_freelist.h | 4 ++++ kernel/bpf/stackmap.c | 2 +- kernel/bpf/syscall.c | 12 +++++++++-- kernel/trace/bpf_trace.c | 14 ++---------- 6 files changed, 48 insertions(+), 29 deletions(-) -- 2.20.0