Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp375186imw; Thu, 14 Jul 2022 03:04:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sTDLya8fdrK41grqux3pA/5osIm7a0kEg6kKqbHLFGEQdLraRgjPhRO2T9m4rfyI/KTVTf X-Received: by 2002:a05:6402:3307:b0:43a:826c:d8b4 with SMTP id e7-20020a056402330700b0043a826cd8b4mr11303636eda.32.1657793087608; Thu, 14 Jul 2022 03:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657793087; cv=none; d=google.com; s=arc-20160816; b=hxoaBM9GyprAidjqW7tHiPCO9uOyJxS4faa9BKDAzPnEvqLAvC7BtNXHHam8txhlyB Ji+Ta8Bd9vit2IcG5BmWfImmoFgwpj32ghAnPnpwUB0eajqxy2a3p77sn5VEdVCBek1q 96aIgdeyj/vzGSvPoPOhYxOvl3ppdsqw/cet18bdL1N2pVfz1+GEHZAfKI3mK9d566MF WsOO56L9EsxrJ2MhJyQkg6oSFYj3ErUUKRhwfES+kDKJutv2KY1MIRiqCsYa56jG88ZD vT3WT3y7mi24+SlavCLw8BvY9X9KPU2UZEsynwXiRUNRAtLuOWQsRCjzhSCMk954I4EZ xNlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=edzbImnU0uWazlw0JhtFFrf4rtZZ9UxOGUez9+BPL2s=; b=fyMUKvji7rHrNw/BiMHYhgIzxxYdruI9DI002BykSEUgRyyK10HzwrekYgNpl/q7XZ cIJ5sTHSeJntxt0Dr++3R/ynqVTgGv6jw46v0uFSQQgPA/y9Za+zpu0zGXGNiZm37HE/ vW27N9TSyRIPJ/PNiCbp690NU8Jv71XcAP+QUnBX3v43EKONQfN/FUMbqBqwsuueGEmc lYeUKuws4UbTJLQua2L6XcdsiI15G6uA8xUFa02B4s8VsPGVnCK5jtFns8pLyEW2FLeP FLtc8lENDy0uUL9r6d8/xvm1K8FkNIcgPt7rKItg4zo5I7iIwrw1L8TQrIMTLxfAsAQr nnJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NY2eWcq9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk17-20020a1709077f9100b0072b87f68d25si1568099ejc.542.2022.07.14.03.04.21; Thu, 14 Jul 2022 03:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@intel.com header.s=Intel header.b=NY2eWcq9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235697AbiGNKBM (ORCPT + 99 others); Thu, 14 Jul 2022 06:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235515AbiGNKBK (ORCPT ); Thu, 14 Jul 2022 06:01:10 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C449237 for ; Thu, 14 Jul 2022 03:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657792870; x=1689328870; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=efDAd+7JgTLKjA9wG2qUW/eO+wkP/iHL17gNm1UCSfs=; b=NY2eWcq9dZNV329PHsvhC42XdcEIhfEp1M/IezLkF2fX+tf1zNx40x9v OFVkyiB+NFCuCj4djrniOer7bDT3yH/2UKk9tIw4MRLiH+vyjEYlUymkN uh/kQazzrPbAX+RtL9cObXUtrIWxwM4qFKd1Iqi3uF2nPnyfcC/lfOEsV 2Zh8i0WhXhw04LqwHnJGEuMYC72aYQA/GqUTf/l11VJD1HzT8komO7Lj3 F/aw29SiLLu7ODDCBmKsAstL6bPI6bQUQAf9Sn3evEKkDfrAwNsFQ4mVi sTNWsmFQtCGne2gKAnMQRXeSwd2/3U/YvegswdCm8vIQA6l8UCSljAG93 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10407"; a="265258444" X-IronPort-AV: E=Sophos;i="5.92,269,1650956400"; d="scan'208";a="265258444" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 03:01:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,269,1650956400"; d="scan'208";a="722668106" Received: from lkp-server01.sh.intel.com (HELO fd2c14d642b4) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 14 Jul 2022 03:01:08 -0700 Received: from kbuild by fd2c14d642b4 with local (Exim 4.95) (envelope-from ) id 1oBved-0000QA-GD; Thu, 14 Jul 2022 10:01:07 +0000 Date: Thu, 14 Jul 2022 18:00:54 +0800 From: kernel test robot To: Artem Blagodarenko , linux-ext4@vger.kernel.org Cc: kbuild-all@lists.01.org, adilger.kernel@dilger.ca, andrew.perepechko@hpe.com, Artem Blagodarenko Subject: Re: [PATCH v4] ext4: truncate during setxattr leads to kernel panic Message-ID: <202207141731.mergfpu3-lkp@intel.com> References: <20220711145735.53676-1-artem.blagodarenko@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220711145735.53676-1-artem.blagodarenko@gmail.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,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-ext4@vger.kernel.org Hi Artem, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tytso-ext4/dev] [also build test WARNING on linus/master v5.19-rc6 next-20220713] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Artem-Blagodarenko/ext4-truncate-during-setxattr-leads-to-kernel-panic/20220711-232350 base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20220714/202207141731.mergfpu3-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/600aeea1cc6d36f380862bb88e50b670e0a57e4f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Artem-Blagodarenko/ext4-truncate-during-setxattr-leads-to-kernel-panic/20220711-232350 git checkout 600aeea1cc6d36f380862bb88e50b670e0a57e4f # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash fs/ext4/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/ext4/xattr.c:1563:15: warning: no previous prototype for 'delayed_iput' [-Wmissing-prototypes] 1563 | noinline void delayed_iput(struct inode *inode, struct delayed_iput_work *work) | ^~~~~~~~~~~~ vim +/delayed_iput +1563 fs/ext4/xattr.c 1562 > 1563 noinline void delayed_iput(struct inode *inode, struct delayed_iput_work *work) 1564 { 1565 if (!inode) { 1566 kfree(work); 1567 return; 1568 } 1569 1570 if (!work) { 1571 iput(inode); 1572 } else { 1573 INIT_WORK(&work->work, delayed_iput_fn); 1574 work->inode = inode; 1575 queue_work(EXT4_SB(inode->i_sb)->s_misc_wq, &work->work); 1576 } 1577 } 1578 -- 0-DAY CI Kernel Test Service https://01.org/lkp