Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp12263ybh; Tue, 10 Mar 2020 18:11:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu9Dh6Joj1asbb32ICSbKSig2EI5obOV8VgEh9RUkAvJN3yEWyA0StBzelgxjDgCgPD2izG X-Received: by 2002:a9d:1708:: with SMTP id i8mr436215ota.250.1583889062243; Tue, 10 Mar 2020 18:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583889062; cv=none; d=google.com; s=arc-20160816; b=SXwebeK8FuLD0BGhR/6eg6inWdklm5YhZONsb1xi4D1xIXvnV0mErNwgMUj7e7xH+b eLVgLkbcK/fxNc+3olmvN2WNYLGt2b84bfjxLO5y+BiltACXmVeYnzIK/3JV5PgQlFC5 n7Rirmdjyki4RIz8bHXulMJDtjctKlqe0fAXmEXLPMSLd6WV+J5He6XYAzz14dB3i+iQ 7KRz3EHamJ3zGJaJR3jsLXT/xXQUz/hLZW1+WNsWnnWTQq1c23182KpOdfxT6uyi4Yr/ 2t5JWD/4uyZ88gPoQlIf1Ij8kxDBKwc/mSFCqHiLYKUSDyFgMG55R2SQ9bUHXFg1C+f9 er3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FfWEwRjnWrI+e8fHcACmfkZeIDdYu59pur6KndMjjNY=; b=w0jo4y1sYC1soOEvgV3Y2a1Cs/RdeK1DFYJFugOJR/h0mzPn11xyUSoFHwUHZ+4uMm wFssVmN0wg4yCgd7GAcmKNK3azJDQ5fuLFrrB0KSG37ZbhpZHZfrlpmsL+hVOdQQBAPe 7wITter8eHWzhLv14QZlmFRbSuA/K1CtGoMQTwFh1m530+dTQ4kQlHVZ0uXXFctsyo3o Xs3+tMN8yXCHmuy21dtGZ25G3Nva3dOow3nD5Itu/JuE403rnrenAlBIt5ro478Co1HI C1dmOvKrnPYnl8PC0r3KumIGaaiCyvHozSRvi947fYY6FXnx5PiH1AS2/C5mSzAVTDXf 7jng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dixj4Z0Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si209219otk.241.2020.03.10.18.10.48; Tue, 10 Mar 2020 18:11:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dixj4Z0Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728075AbgCKBKC (ORCPT + 99 others); Tue, 10 Mar 2020 21:10:02 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39060 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbgCKBJc (ORCPT ); Tue, 10 Mar 2020 21:09:32 -0400 Received: by mail-wm1-f68.google.com with SMTP id f7so286887wml.4; Tue, 10 Mar 2020 18:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FfWEwRjnWrI+e8fHcACmfkZeIDdYu59pur6KndMjjNY=; b=Dixj4Z0YJlggYSUyUQ/N9K0iThizcZjLO5mZ0kvDXMOeW/zwZcQauhE3tLJNSllkoK 80A5vpgifCRcyJxHA6rElCdLyN5yP8L1/cYjeSkp8sApvioSr0RhOv22ecMIAb1NYTpa REPR/NkIA4C2Ccfqoobtar0T44RnX5Xfx4leimnUWNMcxwQ24x3USvnVXQdsW5d7VE6I GdlFxWjKVcOw3pqvzBMvpM2DkECy6oAJXKac34Iy4ZZfaQPb5x5ODzYR05dvvDC3NmW1 zQhhha3u1jR56yzq1wg8w+UHevJhetmbsCgSRL5kFfrfyk0JowhjrHX+xOv0cyyM9xRB hq5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FfWEwRjnWrI+e8fHcACmfkZeIDdYu59pur6KndMjjNY=; b=j7j6gMvHNXXQGf1qCflY3CQUovuau3mthP5ms4O5ft9epTWa8iNXGI5W0dkxSZLhLn qtbtQIwklyupXH/swdL+ZtKltA2G0y3GYvpQTnVosTNckmBkWbzJ2m+PonOVhmA2NNfQ EbMQImWuBNUY7778M1bRWhjtuu8AI1SvFCCmMWPCfp8TRYLhTanKRLHHLrcuhzWiNEr1 f+jPlB9X28oFQGaMC0ugFpeByiwtiUSj06T7+vZwuQJdBT/PMxIV/nXGkN0SEdPFlfrT vUI0mf8gyuKfvasmQ7dvO4hN6LgKP3f/2NBDCS4S3jzMK4lOqc7io3mbRDkjvwcik1Sz 5PTg== X-Gm-Message-State: ANhLgQ2cuRdtblifYEqLQ1K0wVq75sUFI69rshxlQ9pSYnum6gFafzlR CPbrGmBPpNI2tOZrPVmy8w== X-Received: by 2002:a1c:a345:: with SMTP id m66mr381869wme.114.1583888968391; Tue, 10 Mar 2020 18:09:28 -0700 (PDT) Received: from ninjahost.lan (host-2-102-15-144.as13285.net. [2.102.15.144]) by smtp.googlemail.com with ESMTPSA id i6sm36658097wra.42.2020.03.10.18.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 18:09:28 -0700 (PDT) From: Jules Irenge To: boqun.feng@gmail.com Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, Eric Dumazet , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski Subject: [PATCH 3/8] tcp: Add missing annotation for tcp_child_process() Date: Wed, 11 Mar 2020 01:09:03 +0000 Message-Id: <20200311010908.42366-4-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200311010908.42366-1-jbi.octave@gmail.com> References: <0/8> <20200311010908.42366-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports warning at tcp_child_process() warning: context imbalance in tcp_child_process() - unexpected unlock The root cause is the missing annotation at tcp_child_process() Add the missing __releases(&((child)->sk_lock.slock)) annotation Signed-off-by: Jules Irenge --- net/ipv4/tcp_minisocks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index ad3b56d9fa71..0e8a5b6e477c 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c @@ -817,6 +817,7 @@ EXPORT_SYMBOL(tcp_check_req); int tcp_child_process(struct sock *parent, struct sock *child, struct sk_buff *skb) + __releases(&((child)->sk_lock.slock)) { int ret = 0; int state = child->sk_state; -- 2.24.1