Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1522504rwa; Sun, 21 Aug 2022 10:11:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR43nDrLV3WBf/hzkFJwMJ9mBAaSXxnpOygul7T5foqv0RFOzqaMyTxd7p8QtO0t42zFCb/m X-Received: by 2002:a17:902:8498:b0:172:a201:5c12 with SMTP id c24-20020a170902849800b00172a2015c12mr16510453plo.166.1661101901318; Sun, 21 Aug 2022 10:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661101901; cv=none; d=google.com; s=arc-20160816; b=hVprbZyRmyT1cg5QRwGxMxFJUxwZJZwNGTzoEpRyxaubZKMp+5pw4kSesZk5n4pblN tRoK+uf3u4eeCEYo/Im8wBtiYZVanK+zRxokRw2xio0PxCg47TnjTRBwCRaaAh3Lv3VL +R7bMj1xT99/oGSRpKJI96SWMZeikc34tBT8bxew2t18jrHox8QAqBftMNTUq8Y4/pVv wCEIEZvtGtUibbX1jdIveKSEOtA4ctO058Y+ZT/UlCNNP4eXCHHj8fpBKcvxoQsSvt11 Gu5TFTezahyFiDngtL/43QBOWMuyomQhoqln2vpNmGEBdFLoBFYxk2bvZi+ED25Lfzuv CeIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=y69JmQlO6FygAih7FHMgiwqqOzWkTBxWLh4obbN+5DM=; b=PFIsNRbdnYn0P8Tuj0lurar27bPNI0Rq4BMdQN8AdGykpBy8zoXdB4Cej7pfbYOx2R kRz0tCcwsOnZN7zhz64ZFhUg3Wsj6+qxI5Gpof0EAJFAxSGQ5yoH6prZ4Zq7AeHZVKdV n9/vN0oyP6qwaBW06xxEnoGrEcKCHr/LjWr3pvC+Thuf2gfdXt61ChH6y4MM/kBrhRDg MNdxzd3rTMkCs7U97oY8gTUJG/KcKU0rBiT8CyAuQy2Q8u3Eih35rzGBnn1++yWAitoO +awZO3DGNwlMrAp/xeAHmK+8IsDHU8wJwd2M5HROaRdJMsvidFMhxu38eij2pkxTyPo5 hU2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WatGo1Hq; 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 m17-20020a63ed51000000b00429f7ed4eccsi10788321pgk.97.2022.08.21.10.11.20; Sun, 21 Aug 2022 10:11:41 -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=WatGo1Hq; 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 S231454AbiHUQm2 (ORCPT + 99 others); Sun, 21 Aug 2022 12:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbiHUQm0 (ORCPT ); Sun, 21 Aug 2022 12:42:26 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32214186C3; Sun, 21 Aug 2022 09:42:25 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id q16so4571822ile.1; Sun, 21 Aug 2022 09:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=y69JmQlO6FygAih7FHMgiwqqOzWkTBxWLh4obbN+5DM=; b=WatGo1HqGwc6NN7+6dxL4nxUpCMnVnAQ7FAErNyVGjjar/FZ7SHLo4HhBbWcIy5cHm ysld1P9Kta6ZTyHqq1aEfzXWW+D5AOJF70AL2AO9Pv+ME0vTC7W77A30+QS17+/p/52B NLk+HybNDZcQUzmjXr1dskNR/Mvyc9+dQTNYslgmVUttVMbVI97zf4uTdMxhSlmSSzdf dqM53EByXmUp4k0xcXkFnek/HTMpR1GA3PdCqYqJipjg/NlodF7qRoL3oFsrEWyJQ6qX 1k1EoSmwv6MnaPhUeCPYgOI3zm34smjIaSN55y/OngHNwlXF2O9ZQjTqJ8SAMmEMTY/x KK+w== 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; bh=y69JmQlO6FygAih7FHMgiwqqOzWkTBxWLh4obbN+5DM=; b=F9PNjbsy73CbjHP9eS1pzDoEuDgehg9++L2PU1cwXhkdZqeLt27ZrKRrpeup9rNzRF MDHcikM4TXnFzx9RZSfE+/3fFLEFvD2c0cC2ruyTS8Kk9fVhIbO0TUYMU/OHkDgbME5B GhMqaYAUwYIjVjVniz7521sIawOKHBNbFqQQccSZJvUHq/ZsN78vyzQQlVjeS7CR841I ZsoRVEygUyqG/0h5PZ+HZI7FcKkIW5rjYgKbVXN2ExWHDBzg5wNC8FwZiWY6u5UDP1Is 6EaaUtFuURkS7o4pif20p6JaMw4mgqxs2Y9NRAeaauKUiua95a6fef+mOSu9fLoLM5j8 pcyg== X-Gm-Message-State: ACgBeo0n4O2QVHCBPS0luUA+8yRuiMKsqZ8p/qdC5flWFwP2qUWNfSVK BQgfpNwdcabWAcCjHcg19lsvS0LGFujNKpXwtgM= X-Received: by 2002:a05:6e02:1c0e:b0:2df:622c:37cd with SMTP id l14-20020a056e021c0e00b002df622c37cdmr8248699ilh.234.1661100144528; Sun, 21 Aug 2022 09:42:24 -0700 (PDT) MIME-Version: 1.0 References: <000000000000ce327f05d537ebf7@google.com> <20220821125751.4185-1-yin31149@gmail.com> In-Reply-To: From: Khalid Masum Date: Sun, 21 Aug 2022 22:42:13 +0600 Message-ID: Subject: Re: [PATCH] rxrpc: fix bad unlock balance in rxrpc_do_sendmsg To: Hawkins Jiawei Cc: syzbot+7f0483225d0c94cb3441@syzkaller.appspotmail.com, David Howells , Marc Dionne , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:NETWORKING [GENERAL]" , syzkaller-bugs , Linux Kernel Mailing List , Pavel Skripkin , linux-kernel-mentees , linux-afs@lists.infradead.org Content-Type: text/plain; charset="UTF-8" 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 Sun, Aug 21, 2022 at 9:58 PM Khalid Masum wrote: > > On Sun, Aug 21, 2022 at 6:58 PM Hawkins Jiawei wrote: > > > The interruptible version fails to acquire the lock. So why is it okay to > force it to acquire the mutex_lock since we are in the interrupt context? Sorry, I mean, won't the function lose its ability of being interruptible? Since we are forcing it to acquire the lock. > > return sock_intr_errno(*timeo); > > + } > > } > > } > > thanks, > -- Khalid Masum