Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3875464rwd; Mon, 22 May 2023 23:01:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4o8wCQZmy7uEdbCLJRLg6ao/KaXMHqFSIIUvnhwRlMf8/8yPZysoPMcjeosapQt6NT9d6o X-Received: by 2002:a17:903:483:b0:1ad:eeea:32d7 with SMTP id jj3-20020a170903048300b001adeeea32d7mr13529040plb.48.1684821668914; Mon, 22 May 2023 23:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684821668; cv=none; d=google.com; s=arc-20160816; b=S6rdDWU79Qi5mjuN45Y///pLGFaQMm78Z7YDQNK10w2gzZjpVTs0cGOHqhNr/WqAvN n7Q5PsTJZy3N4EDyHHb+lCYzhls0wiLKCQH2Aghp1IqOsiNnJktvpkb9Qyt1IJR33m/E 6yjm3r/Znf+PELR000FcreIuZ5bktklwKfASvPAiuHCtN1cdTkddSZ4vGHBXSTXQDHUL V9lTCZ9bmk1ooG4YwqGKfclJLGYArni3YPuV7JTleEW9t1dFc3WzpF9ZgTrhyZcJTlaA Vwi6gbocmuihzfAlR7iYMWSng3icGdBDsabJtis4IB0vwJKMXuKWCd94K3D3W9mSd4tz KqTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=sWQQ4vHFSx81IsrwOaPXPuxPrCLnal4sepgxbBwQ8sE=; b=FIWy3RY/+eRYphNfBlYrNyUdis0biRqPJdPeBmZ9USblGRzWSAirpP849U0FAupDSP i2ckt18sit3HLR4vQ5rsbavMS5abnaxe8vWL/XZuEaoOjrvVSmY0EEet1fQ2uyJINdn/ VLVjF2C8canvl2DYRsO8DqpRiIygf8z2yg0pvHXfAFR+YtCXfsVpDH0BspfJRIi4o0pD jIJx9h6bI58bOS5tqEkcUs25MWK3RQ/BYqgqCIVxwP+SgzUYLeYi5M8ibwZ6lvO1KLkg 7mHzVDGeIA8+M+Wv72xFP766nxFOAQ1uP9lyPrCN6CamNm3rRfmZCMRSxvP8xfw4rMDZ fGqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=X4v13ZuH; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a63954f000000b0050bfa82c243si1859461pgn.17.2023.05.22.23.00.53; Mon, 22 May 2023 23:01:08 -0700 (PDT) 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=@linux.dev header.s=key1 header.b=X4v13ZuH; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232234AbjEWFuh (ORCPT + 99 others); Tue, 23 May 2023 01:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbjEWFug (ORCPT ); Tue, 23 May 2023 01:50:36 -0400 Received: from out-47.mta1.migadu.com (out-47.mta1.migadu.com [IPv6:2001:41d0:203:375::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7FEF115 for ; Mon, 22 May 2023 22:50:34 -0700 (PDT) Message-ID: <63b9f740-3762-2ec0-9750-eb8709c886a5@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684821033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sWQQ4vHFSx81IsrwOaPXPuxPrCLnal4sepgxbBwQ8sE=; b=X4v13ZuHk71ppTTAsYsbfcnKr+4NIS5dakIz8nas2xl2y9SHvYVY/TwlmB096XUNSxO8l5 fsAL2xUAi1eRr+PEQ/kVA5+xtVPBeY3jXdqcUf9ekorVADt9NWpHdD5vQKd0yYzn185HTW z8WTXlxk8DeCGeny8xPZ/iyx1U2K8Kw= Date: Tue, 23 May 2023 13:50:28 +0800 MIME-Version: 1.0 Subject: Re: [syzbot] [rdma?] INFO: trying to register non-static key in skb_dequeue (2) Content-Language: en-US To: Zhu Yanjun Cc: syzbot , jgg@ziepe.ca, leon@kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <000000000000a589d005fc52ee2d@google.com> <13528f21-0f36-4fa2-d34f-eecee6720bc1@linux.dev> <0d515e17-5386-61ba-8278-500620969497@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Guoqing Jiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 5/23/23 12:29, Zhu Yanjun wrote: > On Tue, May 23, 2023 at 12:10 PM Guoqing Jiang wrote: >> >> >> On 5/23/23 12:02, Zhu Yanjun wrote: >>> On Tue, May 23, 2023 at 11:47 AM Zhu Yanjun wrote: >>>> On Tue, May 23, 2023 at 10:26 AM Guoqing Jiang wrote: >>>>> >>>>> On 5/23/23 10:13, syzbot wrote: >>>>>> Hello, >>>>>> >>>>>> syzbot tried to test the proposed patch but the build/boot failed: >>>>>> >>>>>> failed to apply patch: >>>>>> checking file drivers/infiniband/sw/rxe/rxe_qp.c >>>>>> patch: **** unexpected end of file in patch >>>> This is not the root cause. The fix is not good. >>> This problem is about "INFO: trying to register non-static key. The >>> code is fine but needs lockdep annotation, or maybe" > This warning is from "lock is not initialized". This is a > use-before-initialized problem. Right, and it also applies to qp->sq.queue which is set to NULL while do cleanup still de-reference it. > The correct fix is to initialize the lock that is complained before it is used. The thing is it can't be initialized due to error, so I guess you want to always init them even for error cases. Guoqing