Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp187434lqo; Tue, 7 May 2024 17:14:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZvfzz2jgCiQ9je4JaEL9lWWP68OVGK0jvlodBJgzYjO35O0e0kzLZrSJYA96SUtdNxkBCEMJfu8QqzN+mVT8oSX8pvoEQwr9AM9rtDA== X-Google-Smtp-Source: AGHT+IGpEMORhM1OSu8YCk6oMPJUOL7agE4MsOVsR2VeZxPWCr4f+P44aJOAboY4UJvvn3h2+3mL X-Received: by 2002:a05:620a:40c9:b0:790:651c:4404 with SMTP id af79cd13be357-792b2745e04mr163669585a.59.1715127252003; Tue, 07 May 2024 17:14:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715127251; cv=pass; d=google.com; s=arc-20160816; b=SBl0U0lef4PEV82qlhI9/UCTthuXeWAv3qh+ptzZMr3NjVFAZH9aagcBdYj5y0z+JQ Zy1/NMoSlQ82bXSzfPwm+y0Ic7Z2/tz9/9YS+MLB13Gs/MOVR1PMxTJTbebpkEyYFrqN za0dE8MsFF8YGoHvwac1dj6cOnmJJ0GKDsiO+CScHw9CkejbtY+7lOx7hRG891dl95G6 S6iKjFqd8CglHsGZnoEci6C+taFwS8gD7bu9sQHzC/rKWfab11MxHOrb1O6I831l7roh YizTpnBiJmPvZ7bm48DT9Ji034PFY7nRpEsGdYH/uSWlkHerX/SccpYy39xm6+8IAlQP E5TA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=72kO8iGo1kgfvQlIZz3es1LYW1jOMkT12ewaI3WxIKE=; fh=FyqiekoJocHFC+G806oDMYkwhytMYOeLWDGRzlYTM1I=; b=JNFdmsjoZClNuPMrNzfHDDRggOcJACkRzMql52gjl/nyfGkhI5zZvCbhyUlkryxtF2 1HPwglynJGJKRxHBm+LbLzb0ytktgLBDBi+8+oiWtnnNne2w4yvm/y4tRNGwssQbqcKI 5MRDdsss9Pq3638VpPWuBuKPNqNpg6VfBYL+u/kfIWCE8TfOjDaPAlzdcqSSEYiZHaGt BLRiKtvyaRROHwBvJbjKRIDg0z/7p69g91CsR/lYbQwuwkoVKfqV9k1rpFkYdYYxsXbD H5WgCkGKK6o7gYtlZoXSPfrigTAeIehMQvrreOpD93W6kt7PIhY/jeBNu1pK0q27vXAB xESQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="e/XH1+Tl"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-172550-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172550-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g2-20020a05620a40c200b0079239fa987bsi14054563qko.763.2024.05.07.17.14.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 17:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172550-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="e/XH1+Tl"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-172550-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172550-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B85061C22FC2 for ; Wed, 8 May 2024 00:14:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6681A10FF; Wed, 8 May 2024 00:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="e/XH1+Tl" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23EF6380; Wed, 8 May 2024 00:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715127240; cv=none; b=aleL/vL6RFxBQAXrnxyJwEa+o5AxWTs3UL9u26XgaV/dy/Y1jeozKy6T80BTV5R/KfdlJDEB5MHGc9LBFbZIRNRQ2HpVsM+10kE2iSklrJR1H7TQLDqJAvyNcaTDhcSmgcdZTQU+AZzAVrcnTSe53ExB2JU5GGdbWfPYeJUvWgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715127240; c=relaxed/simple; bh=GlCEeAEgLZ6eSEO6V4RcNN3Nxo+5dphEQf9rK5qTLIo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ovZjz6rByjt7vzAaBECCIFpj+p/9XKWXBo5qRjvTG7LJ0PLQMorI9a9FOC3TPoodqc7MF5/bRihVoSUpGMfTp/JCQNuogampanba5M/MqjBv2XKY70Y3MY2CkpUJjW8FZj4ZD+cn9CJ63SJ9wJxzvtctyboV/4Lsmv29Egtbdaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=e/XH1+Tl; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715127239; x=1746663239; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GlCEeAEgLZ6eSEO6V4RcNN3Nxo+5dphEQf9rK5qTLIo=; b=e/XH1+Tlh3wBPhWFZQbT3NMkhld9bJkdKhl1YwPGsBTE6XSU6ncAUfEq dX9vgKsxn4aJO28Aj5GdJmEphe5RFRnV6mBeD6skA19zXL12gf9yP9DD/ ztHeWP+PN3BRnjXMx5tzPb0ZOsbSO4DeIMs2tqzQipJo/nRwHL9LKy0OW gPtlMDqYbN5SvTfoSOmWeece3Le5Wz0CbNRh/LmV4wyMR4cnwgpEFRAk5 rh9WfPP/dao+SsEyFw/2GHIULwimamr1iVyuVCulkLFBwA+omliPtOCqW e2L4yRi4eHWJySL0KGvQzrRvHFIsqeTkiMy5nrd0iRl9rwdXxG6YK6Ulr Q==; X-CSE-ConnectionGUID: LoSEYMXmQ7y5Kx2P55Lpdg== X-CSE-MsgGUID: Ev6x+5WESRuH9/Db7dXu2Q== X-IronPort-AV: E=McAfee;i="6600,9927,11066"; a="10899145" X-IronPort-AV: E=Sophos;i="6.08,143,1712646000"; d="scan'208";a="10899145" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 17:13:58 -0700 X-CSE-ConnectionGUID: QbTrsSMLROeDSb1g+9WU6Q== X-CSE-MsgGUID: 5PFvarIJSgWHv72qUsT3xA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,143,1712646000"; d="scan'208";a="33392980" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 07 May 2024 17:13:57 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s4UwT-0002ly-35; Wed, 08 May 2024 00:13:53 +0000 Date: Wed, 8 May 2024 08:13:11 +0800 From: kernel test robot To: Edward Adam Davis , syzbot+c48865e11e7e893ec4ab@syzkaller.appspotmail.com Cc: oe-kbuild-all@lists.linux.dev, bfoster@redhat.com, kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] bcachefs: fix oob in bch2_sb_clean_to_text Message-ID: <202405080720.SuCCdwWG-lkp@intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Edward, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.9-rc7 next-20240507] [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/Edward-Adam-Davis/bcachefs-fix-oob-in-bch2_sb_clean_to_text/20240507-172635 base: linus/master patch link: https://lore.kernel.org/r/tencent_816D842DE96C309554E8E2ED9ACC6078120A%40qq.com patch subject: [PATCH] bcachefs: fix oob in bch2_sb_clean_to_text config: i386-buildonly-randconfig-004-20240508 (https://download.01.org/0day-ci/archive/20240508/202405080720.SuCCdwWG-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240508/202405080720.SuCCdwWG-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202405080720.SuCCdwWG-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/bcachefs/sb-clean.c: In function 'bch2_sb_clean_to_text': >> fs/bcachefs/sb-clean.c:296:20: warning: comparison of distinct pointer types lacks a cast 296 | entry < vstruct_end(&clean->field); | ^ vim +296 fs/bcachefs/sb-clean.c 283 284 static void bch2_sb_clean_to_text(struct printbuf *out, struct bch_sb *sb, 285 struct bch_sb_field *f) 286 { 287 struct bch_sb_field_clean *clean = field_to_type(f, clean); 288 struct jset_entry *entry; 289 290 prt_printf(out, "flags: %x", le32_to_cpu(clean->flags)); 291 prt_newline(out); 292 prt_printf(out, "journal_seq: %llu", le64_to_cpu(clean->journal_seq)); 293 prt_newline(out); 294 295 for (entry = clean->start; > 296 entry < vstruct_end(&clean->field); 297 entry = vstruct_next(entry)) { 298 if (entry->type == BCH_JSET_ENTRY_btree_keys && 299 !entry->u64s) 300 continue; 301 302 bch2_journal_entry_to_text(out, NULL, entry); 303 prt_newline(out); 304 } 305 } 306 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki