Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6146292rdb; Thu, 14 Dec 2023 09:25:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8oQSj7o+czGKCUoNr5XQ05nhZn9dxjXQqdITrm26dUkj5s+j2HybORZg/c/U+E5sRmX6t X-Received: by 2002:a17:902:ea04:b0:1d0:6ffe:a11 with SMTP id s4-20020a170902ea0400b001d06ffe0a11mr12782820plg.111.1702574720627; Thu, 14 Dec 2023 09:25:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702574720; cv=pass; d=google.com; s=arc-20160816; b=QcMc3ZROMQi8yWrprf5nfGd27N6xBX4CcII+JvF64G9UToPzMSwMDfXSouVotm8tOQ bKbDABNNap5lUEgMQExat5JbcAKzGPDlpQDWPD+PPsyEIOjtTwc4ntxpf2+0el9u64lk YxN9LhQ/CBjp75eojEnPswkHeHg5MXO9+NbbnLAOyfDRXx2Od8CWWCl7gILvDOTnAGV5 inon7MBuB6QqVyBSnytVRPQIwAU+g+1W73AnZe+aaHcOdH9Ufoc33uJFhqaGdVH7SQXM 6gsWJJHiCKFwsGNykI4j51UxAbDfXYe8BjzHo3dv7+rHO9mjqPcd4bxMK1GwAyd4vRVe 9Czg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=wt/4epX/ikd630E8H32vudYEFiqhHNATnHTpC4Gl3Zw=; fh=MWDP0/IABKBkNAWrXQs51gY7IfeuDrtGxzy1OCCOGoQ=; b=BqoVBF6R6UUn/e5WX/DNmwTGHwEUWgbX8dxFtS1ZPCd8TqoZny9ScWZLDucfjsNL/6 BYQSwSKhUmh/6GieEX38mywcVCOCIuMy90xdWqgX490gBMpmAoSAYj1WnJ5tBo9u68Nv 6NYSuVXy7+gkt9xqiq8EiWwyYTduSnzLv/rK4CYcOY4R4GJVYzkSL6S3yAsHp/XK9MAY 1VfXXr5SgKZ4c4CGBS9qzDl3l8jK/+khsuQx90Ex/rSk7MZHnzDqlUDqs122hyGE9tdm 5Bb0ZdgvtFUl0VSFVqWyx6ymZHb5I3pf/11zdrXLPI6NBxCFjg6AFQYbteRGToeDgOtx 908w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=etSC+Grb; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t18-20020a170902e85200b001d0b5954eb1si11545848plg.143.2023.12.14.09.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 09:25:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=etSC+Grb; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1209680ABFF9; Thu, 14 Dec 2023 09:25:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444010AbjLNRZJ (ORCPT + 99 others); Thu, 14 Dec 2023 12:25:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLNRZH (ORCPT ); Thu, 14 Dec 2023 12:25:07 -0500 Received: from sender-of-o51.zoho.in (sender-of-o51.zoho.in [103.117.158.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A18499; Thu, 14 Dec 2023 09:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702574669; cv=none; d=zohomail.in; s=zohoarc; b=IsS9jqdNboH+DokAUmHWqUdAxp2O47MBBHJTb7Dh8wac4DUOZx6ULC2KgjpbCybyXSew3T3QjTNtSSSviySJT2YlYw3WIDIDIK3w+78z2iokrFcqLBobXwVL1ZfGJzb6c8kE1T8RR7SqZZofNhHN5WLHrCVFLUbiYX0kMFBYyqs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1702574669; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=wt/4epX/ikd630E8H32vudYEFiqhHNATnHTpC4Gl3Zw=; b=ZyHXlsU/0eZB83l9Agr4vd5hcci3vL+DaRyfcEEynFd+JkKBbXJyjibopQHAdHthgTBAzu8JQnTVM7JdNnOd4aD7SmUXrFPfI2QC98jEwbHlFavo0k6+5GOY88UCHh9z2V8dVYbGc3ABiiarecKmNL58NKJHEs/cH7QMfdcWNFI= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1702574669; s=zmail; d=siddh.me; i=code@siddh.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=wt/4epX/ikd630E8H32vudYEFiqhHNATnHTpC4Gl3Zw=; b=etSC+GrbFdDpLBWHJIudygbqtoqUN7XpxfaMwsjjYlbPfUMzayWDO1fyy3AVXh1C R9R7xOxYRVhe55/ALgDAvIVatCgtQ/5JTbl0Wqi6J8P36Ucre+efHrFt6NHxNHY0yBx 0ah92EK14DJOFL1Gxunv4Gis3uvVeg5zdm2mHn/U= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1702574638401587.2154477246745; Thu, 14 Dec 2023 22:53:58 +0530 (IST) Date: Thu, 14 Dec 2023 22:53:58 +0530 From: Siddh Raman Pant To: "Krzysztof Kozlowski" Cc: "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Suman Ghosh" , "netdev" , "linux-kernel" , "syzbot+bbe84a4010eeea00982d" Message-ID: <18c695b4512.5afde007311004.1718468931473736202@siddh.me> In-Reply-To: <1813902b-6afc-4539-96b2-050df6fc75c1@linaro.org> References: <6a26e3b65817bb31cb11c8dde5b1b420071d944e.1702404519.git.code@siddh.me> <1813902b-6afc-4539-96b2-050df6fc75c1@linaro.org> Subject: Re: [PATCH net-next v5 1/2] nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Dec 2023 09:25:19 -0800 (PST) On Wed, 13 Dec 2023 13:10:16 +0530, Krzysztof Kozlowski wrote: > > - if (sk_acceptq_is_full(parent)) { > > - reason = LLCP_DM_REJ; > > - release_sock(&sock->sk); > > - sock_put(&sock->sk); > > - goto fail; > > - } > > + if (sk_acceptq_is_full(parent)) > > + goto fail_put_sock; > > I would argue that you reshuffle here more code than needed for the fix. > > This should fix only missing dev reference, not reshuffle code. It's a > bugfix, not cleanup. So this should not be done? I did it because you told to extend the cleanup label in v3 discussion. Thanks, Siddh