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 57C9EC61DA4 for ; Fri, 24 Feb 2023 15:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbjBXP7U (ORCPT ); Fri, 24 Feb 2023 10:59:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjBXP7R (ORCPT ); Fri, 24 Feb 2023 10:59:17 -0500 Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197E052DC4 for ; Fri, 24 Feb 2023 07:59:14 -0800 (PST) Received: by mail-vs1-xe29.google.com with SMTP id f31so22478911vsv.1 for ; Fri, 24 Feb 2023 07:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uci-edu.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Gd69EcZCaUWq2XBOql8CdtpydmZmAMMmEq6g8NUqXt8=; b=tGDiDpZtZ3IlXb3hdHUpdMGN6Mc2ceiOUNHQeVQ6wOs1kUEu9JO9BJnNVrFqoKS40H 5SWk4a13Ax4TMwWcm28c5XTIAZ4cI5rorOw33Gs4JbfQq9Oa4QUEIZP8HC5HtyqvW1iv ToyjrmHlDdgs1Kq5pVqeTyp+Mj120KojhqqnFn83RP3jBtjdjKf5Og0erGu5iQ4rmuhQ +Yt/wGhcpBGQdcEXFwUFgSuRVGP0EnCi6Xm+qNaG+d9NsbgQDnyN5xeyNaTvvjq1lfvH 2FimKaHzPi3cG8oywOsh5dwrMmQFLz28+OOPc86Ba3fnR+NLNxZ7VpttdPRyRQay/qKf saig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gd69EcZCaUWq2XBOql8CdtpydmZmAMMmEq6g8NUqXt8=; b=jdbWC7fiTW2vOazCTquQ8dUPLc6TtdN9uJK1rCfv60oRwsDo0aD3eRlOdzloI9LmFx 41uK9rdyg4uWAVR4euN47g2BTnR7Rv+1pZaK49wLbSbFTOattzbUnfNoINvM1FG7BhPN 0bw9ot8qAbLy2ArYeK2W7XMTsdbL5T680mVoln1RZq3erxDdbhTX6b2ZHrbPRk6VPoI2 OlVWiFmygTPXwVCj7PHdG1B8J28dgE0XSRqUAVur7jg13EHbdC9GXlWCYS56oAhwUP3k ZCLXwBim9WGxnOJ5LUL15p6X13Y9awxwkrCUsFp7YnlnTq4U0QEyFZI6OhNapfq+eZ4v TyTw== X-Gm-Message-State: AO0yUKXaEq47TA9Wld0blkxNwm0D3nub8RLSwJ2Y0KI6ur7KE3+fPF9s 3cHFjnrK2gdYImXk39bzrmJc8qyMxujHKrFODYcYIg== X-Google-Smtp-Source: AK7set/KI+iUwduWO9CjC/25Tn1VECwdWc9hn6tyIYx7PJjaFLuC3ooyBXaLcnwEOpXlC5KI3HZYLILzctcW0ReEpz8= X-Received: by 2002:a67:e3cb:0:b0:415:5ec3:e507 with SMTP id k11-20020a67e3cb000000b004155ec3e507mr2851813vsm.5.1677254353140; Fri, 24 Feb 2023 07:59:13 -0800 (PST) MIME-Version: 1.0 References: <87a614h62a.fsf@cloudflare.com> In-Reply-To: <87a614h62a.fsf@cloudflare.com> From: Hsin-Wei Hung Date: Fri, 24 Feb 2023 09:58:37 -0600 Message-ID: Subject: Re: A potential deadlock in sockhash map To: Jakub Sitnicki Cc: John Fastabend , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jakub, Thanks for following up. Sorry that I did not receive the previous reply. The latest version I tested is 5.19 (3d7cb6b04c3f) and we can reproduce the issue with the BPF PoC included. Since we modified Syzkaller, we do not have a Syzkaller reproducer. I will follow John's suggestion to test the latest kernel and bpf tree. I will follow up if the issue still reproduces. Thanks, Hsin-Wei On Fri, Feb 24, 2023 at 8:51 AM Jakub Sitnicki wrote: > > Hi, > > On Mon, Feb 20, 2023 at 07:39 AM -06, Hsin-Wei Hung wrote: > > I think my previous report got blocked since it contained HTML > > subparts so I am sending it again. Our bpf runtime fuzzer (a > > customized syzkaller) triggered a lockdep warning in the bpf subsystem > > indicating a potential deadlock. We are able to trigger this bug on > > v5.15.25 and v5.19. The following code is a BPF PoC, and the lockdep > > warning is attached at the end. > > Not sure if you've seen John's reply to the previous report: > > https://urldefense.com/v3/__https://lore.kernel.org/all/63dddcc92fc31_6bb15208e9@john.notmuch/__;!!CzAuKJ42GuquVTTmVmPViYEvSg!PU-LFxMnx4b-GmTXGI0hYjBiq8vkwrFrlf_b0N5uzy8do5kPFiNcuZJbby-19TtOH2rJoY9UwOvzFArd$ > > Are you also fuzzing any newer kernel versions? Or was v5.19 the latest? > > Did syzkaller find a reproducer? > > Thanks, > Jakub