Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp154733rdb; Thu, 30 Nov 2023 00:43:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3k0Rtr4rrPUOzgzidqzRGw6TyV0Ju/dABJ6AbqdT6F6n+GwWbF5C6brGCkLpUoj8idFUg X-Received: by 2002:a17:90a:1a5d:b0:27f:df1a:caab with SMTP id 29-20020a17090a1a5d00b0027fdf1acaabmr22922984pjl.21.1701333817144; Thu, 30 Nov 2023 00:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701333817; cv=none; d=google.com; s=arc-20160816; b=q0yagj/RIrVtKdzptzDI5s0LWA785dh/JP7XZXfsyyfzdHKhJ84JFJ92fRJQGNIbf4 9TaFP34igGZdOVaGXBOlJyoWjm+KNiFqJIgExCefLh4cbK/3I3S2JuLVHMITGQhjYPjD gZcMtJGjTD31ClwDxlD6Rtpxo646DqgopiftMJ5SayBFP91gFlyKplvlbdJ90ejppblC 3sGGVteAMiIEVfvdi8Kkk/ye+iU3Yhq9/LPOWLOp96wCVmpxZYiG/uIYmVr5lb0wfAwk wfvsJc9JVEtL85NHsDjUz3h19rgxQn9Z6XJpAOabihABknH5OA8gir4co3GZXJATSUW+ hUZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=mkxVeHpdPTesg4Gj8MIqsgF3u8iigyFeiw0iWW5TmH0=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=QugYfV1vCaUFj69nNmzweNQ9T++8xZVRxkeV2b35EGMyPgRmPSPHQVbKh6y6uuRKUu jrhfRau56iqgaL2+P8VCqcvFYctdLWRlJEwpsMbpYVSHAFgxrFgJsHAEoM8uLFSPY01b JQx6jLGR3Z598X5aCd0tLNFi8Mhjrhbp6qL4RqTRn5KEC7QCLWnnobUYABFEYEJMxNqV +F0Rnm9EdzivFYtRQ8+stDhaaUCTChP4ogCAn30lHM7nZVEprOVqjCe2vuB1lr7R7H+3 TNZ066MTtDQp+8O2JAbWBp9IuCecWnuSqhLYGOvh3C4TZdbukD95g2GYeNSe0Fi69tNt ar5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id br24-20020a17090b0f1800b0028525cfb9f9si869807pjb.105.2023.11.30.00.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 00:43:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C5FCD8039446; Thu, 30 Nov 2023 00:43:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbjK3InL (ORCPT + 99 others); Thu, 30 Nov 2023 03:43:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344989AbjK3InJ (ORCPT ); Thu, 30 Nov 2023 03:43:09 -0500 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063D5A2 for ; Thu, 30 Nov 2023 00:43:16 -0800 (PST) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-1cfba9f385aso7778625ad.0 for ; Thu, 30 Nov 2023 00:43:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701333795; x=1701938595; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mkxVeHpdPTesg4Gj8MIqsgF3u8iigyFeiw0iWW5TmH0=; b=wlAfHoNVV6a13qCNUztRvCCn67uZvLxJ/zQj+X8Nv021xfa5FDRHM3ouGzBKP5mToy 0ridUg0V36z0647cUNiQt7vUuOSde44WKIVEreB3rap6lXPDBszd7CgGnzv9I2plqhP6 y0MFBebpQcPQw8BG4mOb55OOnomdZyGy76yyGOmleaUxs2H2AsdJCpdL/mR4D0FNrEfq ZdNGCmSwAZqGOp8wwnX80Sc17JQRwNPu6xBdb9gels9F11Q/BcB8SoqzLemfxEX7RUJs TttHcTedZx8t/SAXlR73/tn+IYFZEQmuBGZys6aPrFppWQVtYd1RxoKfLQ/mL+ZZxDwi QSPA== X-Gm-Message-State: AOJu0Yy1/O3EuKrRd1mmIHW36sriKGbQTlX9IiYhW/97DQjofRgk3NQJ 6q+B1PuiE/5rNJPGJ7RjqY0lfAETzZau1U1UQvfCzICJdDsXPHQ= MIME-Version: 1.0 X-Received: by 2002:a17:903:451:b0:1cf:923e:fafc with SMTP id iw17-20020a170903045100b001cf923efafcmr4210356plb.7.1701333795618; Thu, 30 Nov 2023 00:43:15 -0800 (PST) Date: Thu, 30 Nov 2023 00:43:15 -0800 In-Reply-To: <000000000000db858c05f06f30b0@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000884543060b5aa428@google.com> Subject: Re: [syzbot] task hung in exfat_write_inode From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 00:43:34 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: task hung in exfat_write_inode Author: lizhi.xu@windriver.com #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f9ff5644bcc0 diff --git a/fs/exfat/file.c b/fs/exfat/file.c index bfdfafe00993..4bdcdf126a21 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -132,14 +132,18 @@ int __exfat_truncate(struct inode *inode) clu.dir += num_clusters; clu.size -= num_clusters; } else { + mutex_unlock(&sbi->s_lock); while (num_clusters > 0) { last_clu = clu.dir; + mutex_lock(&sbi->s_lock); if (exfat_get_next_cluster(sb, &(clu.dir))) return -EIO; + mutex_unlock(&sbi->s_lock); num_clusters--; clu.size--; } + mutex_lock(&sbi->s_lock); } } else { ei->flags = ALLOC_NO_FAT_CHAIN;