Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2571280rwa; Mon, 22 Aug 2022 09:45:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR4udSrfBf2W56jU05O17I4e8kETpjxx0ZKKUWc+I3nYG8K/oBiKbTn8kJH9/SLlQNXdT7fv X-Received: by 2002:a63:e412:0:b0:41d:9c6a:7e with SMTP id a18-20020a63e412000000b0041d9c6a007emr17863075pgi.575.1661186738899; Mon, 22 Aug 2022 09:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661186738; cv=none; d=google.com; s=arc-20160816; b=JzUde5cx3XcyHZbERUZFfM4kUuQw+Z5XQP9kSvutNyKtzjW1Ic89nVauRv5bjN+q33 mDADKb8yAtF7RFukEh/cP57JV7MURhZ4zN0Wm/wABUJFvLwDsAK9O/gOWCDNBFgsFan9 WIutO1HyM09i8wQ08ZaC9Em7ltT1cO1+NMyVW89JMleUTEveia7qIoTAVkCrQAZnhmBb pky1/fM6IhIo9cW5W1nxLP4PvZqi9yvtWQqIpiFyPWW5C+2zo+joTCBMxsDjBJH3A7gN AuXEChibGiYnIgZBuZZ6cPdk8h2IjVSsp7+XDtks8fMxdhxEGfEi3i/CB+66152iiD6+ 6xOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=FvmQjkF9ZDVyA2Ag3uiBTxGfKnCghKIGSTohZ1i8iLk=; b=FDPHhVDJ6GfeLLROiogwkIAiHbvoQZXu3AV7Qd20b1YNmpP3vkYnNfX0j67FyQSyP5 6oQZuMFj+7Zj/fB+qt8a+HPNYdHZbXI6GquhY+F4+cp5DLPi5vd6RgcoC1NrnkUxFpq4 4bStJFVq9I0nEwnaiwhfOwk5oMJS2KN3wNXj5shJugBNV5Xm//VnT9l2jxROIZZvlhNY BMpTezINoSMRNW+Zp/ilPVvXFtxzEsjdRb8p5j7hJUlHkVS2f1JO+JmYMTZVi9hxLCQQ HWlQun9sBhVVyIJxRvk07lI69wrYMlfjVvU8+eWJsKtzopTFyKlK3rmSc2FR5zAVAUSw rFYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cFpOtxOt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a17090300cc00b0016f965f49dbsi12110291plc.485.2022.08.22.09.45.27; Mon, 22 Aug 2022 09:45:38 -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=@gmail.com header.s=20210112 header.b=cFpOtxOt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236630AbiHVQBD (ORCPT + 99 others); Mon, 22 Aug 2022 12:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236964AbiHVQAq (ORCPT ); Mon, 22 Aug 2022 12:00:46 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE60515A38; Mon, 22 Aug 2022 09:00:45 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id 2so10355825pll.0; Mon, 22 Aug 2022 09:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc; bh=FvmQjkF9ZDVyA2Ag3uiBTxGfKnCghKIGSTohZ1i8iLk=; b=cFpOtxOtzfwaOsqhR7c/P3zSbO5PHe4Aej+Z/5qu74aoA7L+quYCbnIn/S99JrbZL6 PD6Pi8OxWArtogsHXuK0ihoZSsvqkNvgBO7FdtcWCgu2qHt6ynk51RRP1aWdlYZua8+w gyArMnH/NQO4J2BidgzfPlHNYnvbekZidzdZRSquB8uKz8P4fu9jsZ6qwp2fEkQ+qKhc yQGPHJ6243rt874dTpW05S/lvzzfld9kNDo5y5pcoX8AsgPQpHPsl/A0jKmVEAHyw8Af 0jsOvYB+6Tr8FxPMlIY07LTcu8Dp7xFRvmn0J3Zod+6dGBgQ8SAxQy4bsT0eSjwE4D9M iJMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc; bh=FvmQjkF9ZDVyA2Ag3uiBTxGfKnCghKIGSTohZ1i8iLk=; b=qPdCEz9QqPZ+vFhBEd7HB0ZeweJ6LW/l2KGMj9n0xxFkHX5FmEB3xHQJyVqeK0nXJT Oq4oKg2ySP9ZPlUQHWoYM2Fx5scrsxzOCCXscFsstiGyXfR+3Bdgqbc/TRtHb2LJEfty N6zlXKBxnd79AjztNBrxOtgdn6V9cUaUnS052d/zHtUAoEuLMVSpf2E/0REaM101q19v kjNRBR4mFVf3bA8jPbrg0lmSjyCDIq28xEF3Zqy52mIhEfgVxraC+vOdJLDMAZLuWuLF 7wh59aofs4jyGczzbCxcUhfYd75NBUliyTvZd4xJI96Hojg28FgOaRhw0ZO6fJ85NHfy Q5Cg== X-Gm-Message-State: ACgBeo0L2SY6h0C6OUM46eOJgMFk+KwAnG7CcvCzMVSCrxZGTdllbp/z nbGd6Tp5J7Ls8pH8pne5ANs= X-Received: by 2002:a17:90a:ab15:b0:1f4:fc25:f180 with SMTP id m21-20020a17090aab1500b001f4fc25f180mr29314176pjq.144.1661184045466; Mon, 22 Aug 2022 09:00:45 -0700 (PDT) Received: from [127.0.0.1] ([103.159.189.130]) by smtp.gmail.com with ESMTPSA id g21-20020a170902d1d500b0016397da033csm8539060plb.62.2022.08.22.09.00.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Aug 2022 09:00:45 -0700 (PDT) Date: Mon, 22 Aug 2022 22:00:37 +0600 From: Khalid Masum To: Hawkins Jiawei , dan.carpenter@oracle.com CC: davem@davemloft.net, dhowells@redhat.com, edumazet@google.com, kuba@kernel.org, linux-afs@lists.infradead.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, marc.dionne@auristor.com, netdev@vger.kernel.org, pabeni@redhat.com, paskripkin@gmail.com, syzbot+7f0483225d0c94cb3441@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, yin31149@gmail.com Subject: Re: [PATCH] rxrpc: fix bad unlock balance in rxrpc_do_sendmsg User-Agent: K-9 Mail for Android In-Reply-To: <20220822153944.6204-1-yin31149@gmail.com> References: <20220822140532.GF2695@kadam> <20220822153944.6204-1-yin31149@gmail.com> Message-ID: <0ED076C1-6250-43EA-A7BE-948DFAEE851A@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 On August 22, 2022 9:39:43 PM GMT+06:00, Hawkins Jiawei wrote: >On Mon, 22 Aug 2022 at 22:06, Dan Carpenter wrote: >I trid this before, it doesn't work as Dan points out=2E I think >it seems that mutex_is_locked() only checks whether there is a task I see=2E >holding the mutex, but do not check whether it is current task holding >mutex=2E I also tried lockdep_is_held(), lockdep_is_held() seems can dete= ct Ok=2E >call->user_mutex is still held accurately, although this cannot be the pa= tch=2E Useful to know! Thanks for the information=2E -- Khalid Masum=20