Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6234739ybh; Wed, 7 Aug 2019 20:04:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxdJNLcrz/dEhW6rYpNgp8OCUKvxCEfIMqBvVjQ/RbQSqM2i9h9F0uDq3i7MOFCx/RhM/E X-Received: by 2002:a17:90a:fa18:: with SMTP id cm24mr1603889pjb.120.1565233483187; Wed, 07 Aug 2019 20:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565233483; cv=none; d=google.com; s=arc-20160816; b=Xl3NH+azQgir7n0OeReM0EWdGC6NlW1V4V9j3LLJO5G1u48t1aODGVZx+PmlzQMItt 8NfEQ4DUH7cdQkg0iwXbRpYItYdj6Aji6N/k8VgAXF1XGJISNzsL/E5zjjmBnJPkyvyE ZrTl0H/q/0DtnsRv+FCdf9DTxB3b1Z04KL7dzaY0hvHss6GZR75+WvxKxUnqLa98dNQ6 oD/1XhR4R8D6DJa1P2NGikysFzJWtF4S+t7uPuSI92/e8HOMJXivbducCPqiFUi3ZlyF BF3kYRgsxEUXXR4ZmsiAfbecA92OrdIzZ+1sjE1cFFkGKRgoDTcEV/Z4TOEm3VtfdIl3 irGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uhcu6xOGh0/vPS6rYI2QAPo0SG+AQ8r92R0hDh0e9R8=; b=mmxTGX0SGGOmEW/VkeBbaWmpB+12dswQaWQA9auxtlS3KrayrptNWGqRUnEZegtOIn hX3qV8lLXuDjUKn6oYWrwaiUbyPPnz8HGHmYAWNHIw0GW8rrl83sT0b9e4wPaBKtmBXJ mymjxrn5zre7GKc/fDWtYmk8Ym75zdiOFRCvlBPpi4n9IFmM2oUpuiX7LVsFP1ZgcRHo 8Gkv18Y7htx3zQ/hSyBvzJkXXEQ/D0TgWtqmTEQjazMLyjuf/q8kKRY0UtXRN7RyQVX2 6q0mzqEb8GvmShvsOoIzR+wPlEkbAGEIv/CurymyJMzpHMGTTj2a0gdDdRErXAJkz4fd l+Qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si57353584pgb.276.2019.08.07.20.04.19; Wed, 07 Aug 2019 20:04:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388123AbfHHDEC (ORCPT + 99 others); Wed, 7 Aug 2019 23:04:02 -0400 Received: from mga11.intel.com ([192.55.52.93]:19466 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387536AbfHHDEC (ORCPT ); Wed, 7 Aug 2019 23:04:02 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2019 20:04:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,358,1559545200"; d="scan'208";a="182465060" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 07 Aug 2019 20:04:00 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hvYie-0008mq-1Y; Thu, 08 Aug 2019 11:04:00 +0800 Date: Thu, 8 Aug 2019 11:03:04 +0800 From: kbuild test robot To: "zhangyi (F)" Cc: kbuild-all@01.org, linux-ext4@vger.kernel.org, tytso@mit.edu, jack@suse.cz, adilger.kernel@dilger.ca, yi.zhang@huawei.com Subject: Re: [PATCH v2] ext4: fix potential use after free in system zone via remount with noblock_validity Message-ID: <201908081107.DkPpgosg%lkp@intel.com> References: <1564755566-4378-1-git-send-email-yi.zhang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1564755566-4378-1-git-send-email-yi.zhang@huawei.com> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi "zhangyi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [cannot apply to v5.3-rc3 next-20190807] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/zhangyi-F/ext4-fix-potential-use-after-free-in-system-zone-via-remount-with-noblock_validity/20190804-163619 reproduce: # apt-get install sparse # sparse version: v0.6.1-rc1-7-g2b96cd8-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) include/linux/sched.h:609:43: sparse: sparse: bad integer constant expression include/linux/sched.h:609:73: sparse: sparse: invalid named zero-width bitfield `value' include/linux/sched.h:610:43: sparse: sparse: bad integer constant expression include/linux/sched.h:610:67: sparse: sparse: invalid named zero-width bitfield `bucket_id' include/linux/rbtree.h:84:9: sparse: sparse: incompatible types in comparison expression (different address spaces): include/linux/rbtree.h:84:9: sparse: struct rb_node [noderef] * include/linux/rbtree.h:84:9: sparse: struct rb_node * >> fs/ext4/block_validity.c:252:9: sparse: sparse: incompatible types in comparison expression (different address spaces): >> fs/ext4/block_validity.c:252:9: sparse: struct rb_node [noderef] * >> fs/ext4/block_validity.c:252:9: sparse: struct rb_node * vim +252 fs/ext4/block_validity.c 246 247 /* Called when the filesystem is unmounted */ 248 void ext4_release_system_zone(struct super_block *sb) 249 { 250 struct ext4_system_zone *entry, *n; 251 > 252 rcu_assign_pointer(EXT4_SB(sb)->system_blks.rb_node, NULL); 253 254 rbtree_postorder_for_each_entry_safe(entry, n, 255 &EXT4_SB(sb)->system_blks, node) 256 call_rcu(&entry->rcu, destroy_system_zone); 257 } 258 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation