From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6861C36BCC2 for ; Wed, 11 Feb 2026 10:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770807468; cv=none; b=ENq73YjpybfG7Jdf5YxkAWukE78Fna9BShTMpjpw3GLbSNdMY109/YxeMOPJqU7SwH0OYsVCTgD4YgzCxWu7EHwTuYV5tnMGcx2mev5V0/GIcssvqEhm8ThfgXfGU5ZmdmgE0xJAGE5TLm/q6XyYSvF/+LWZXVNw6XbVQUMpIWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770807468; c=relaxed/simple; bh=YkNcQ3NtAJBYnY/PDYgBtDin1rYL1T6RPzvptBiXatI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=qco5begnP+QzCFcB2ZowCnaCbxL5C0xHN0wW73LM8Xenq3PIucOAZM3MKOZeuuImF1qtUMb3wiWCbmwocGLeRwpGmYQwUcRtFatbzjMYLwDWb2b/oJf/eus8965741IwpP3uQ+b1kEDI26/UUyGWEmnUOay12cT+MAW3JRROufA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WOOy8Cgw; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WOOy8Cgw" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4805ef35864so56512335e9.0 for ; Wed, 11 Feb 2026 02:57:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770807464; x=1771412264; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1f6efIeKsPBmBdsMP945v7o1I22Mg2iVh32MUI/KTBg=; b=WOOy8CgwGsomPEx6PD8pZCYoK2xEk9UoLCr4uJFRIpLIKV40RHOpRnZEeuw+SLJHv4 E2/DVdcr8c0LkOOaAxWM1se12eZgrKQd8X9+uBeMyv/Pe1pOHWeuqlZHZVkiOnCie0eJ tQY/lEX5Bmk+UdiT8UZASPflLEUnncG/V0EGhc+y7OcfjiL+VV7qkQDIZMEl8Dtj6fzX LVUdj6UsH+EpXhQXp+U7OrIxuNVSBhlUgtnDAzziHmyQIiXVr2cEsYDPPFCTCQl9HCyk Bhkxv2hKwpO6uq40BTInyrTXL76gRmexnmNfGQ1zwyXQc/fz2KQeglEwGrW+Acn0veOU Poqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770807464; x=1771412264; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1f6efIeKsPBmBdsMP945v7o1I22Mg2iVh32MUI/KTBg=; b=Il4RPNUmLrssi25GMduCM3YCR6oUyDdzj8jJj2FLXSpqIQPfmtd/psqkUX9ni6zmHo +f0GEjPiCamo/+9ti+Bydbj9Gb3NzQ4CGzWvdjT0W4qVbC8oz04UJTrveFT/ObAKqdH8 eAj6pBjL3P6+mp3B+qjDL1Z1tgwrUtFvMQPbuBYQCZInwCf4hdOPFqI4hHdWoIGHg3G2 Wn21Lua3lbF9y7Fs4Z0JQn1Hmv9eGsq0c2pZKnCFX/avCRRoJHWa6+Jo7ZBrM4AEfh52 zE2LD7WcuVXv0mfsSj3tcTjd9UOicaqTqO96S4ro6loqaO2UrOUGGBC3BYlfaXX3zZvi zVNg== X-Forwarded-Encrypted: i=1; AJvYcCVIM3lwQwZEyU0zvSr8rth1qgKWPBLjd8yx2UKeJ7luuBKCfyOdnKaV4Cgkm7+FeQTMGdswUSOHaUX7Pl4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0m943PNfh+9yFNjlbzhfv4cKuHnoNH8MWdMZOpmKD3MzEXEeD pX+ovYCNdp4zaTHxYal0erFY+5a0e6CnQCeNWJ9Q24kbPv+EIW6cEKpuWbRL3M+6JDw= X-Gm-Gg: AZuq6aL0wuYAn/Ss2V1dhNAM/RkRRv8FFs6GZTAkq0eyULFyoo3gYTKOwXYs3601oya 5X1TDDcYL1OtEZLhc24K0+BqpVVv8vgs/uYGwIhGnJh72eihWbTi7vqdD7rRLPZdX5v6KE75qqL lLVQk8zA7rM9E2vEPoM3Rai9BVrTkj+IlUry6qjfYxD6nWrLSmoi41nN2/+bSLyDtKbAmdUOif6 vCcTJWVgxYZx1LVnXAAVC7mcNeN80W7ftT77q9w54zh3fXJChg4s0Or4nSTGSB1ArSzEAg6QUis o0pfKaZXOBPyJL51YN+sx0pVIuJRiZo0d0s38qYuQl/ZBZAZBlVuPpijNc6g3y7/WuFz3x6jMMy hYUoKSuEAcQX9lLoONsjYK4Q20EV3LYKXBrt5igbB+mepE6nlrtCcR5liDNfzGoxkqKJ0+i609w 18Bl8oY2MUrznCIRm5c0vNKB6BvhvFSklVeT6PcPA= X-Received: by 2002:a05:600d:17:b0:47e:e20e:bb9c with SMTP id 5b1f17b1804b1-4835dd89039mr20323065e9.8.1770807463537; Wed, 11 Feb 2026 02:57:43 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4836131d4d9sm5222705e9.25.2026.02.11.02.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Feb 2026 02:57:43 -0800 (PST) Date: Wed, 11 Feb 2026 13:57:39 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Ethan Ferguson , hirofumi@mail.parknet.co.jp Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Ethan Ferguson Subject: Re: [PATCH 1/2] fat: Add FS_IOC_GETFSLABEL ioctl Message-ID: <202602111747.QIBXIwpw-lkp@intel.com> 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: <20260210222310.357755-2-ethan.ferguson@zetier.com> Hi Ethan, kernel test robot noticed the following build warnings: url: https://github.com/intel-lab-lkp/linux/commits/Ethan-Ferguson/fat-Add-FS_IOC_GETFSLABEL-ioctl/20260211-062606 base: 9f2693489ef8558240d9e80bfad103650daed0af patch link: https://lore.kernel.org/r/20260210222310.357755-2-ethan.ferguson%40zetier.com patch subject: [PATCH 1/2] fat: Add FS_IOC_GETFSLABEL ioctl config: riscv-randconfig-r071-20260211 (https://download.01.org/0day-ci/archive/20260211/202602111747.QIBXIwpw-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 9.5.0 smatch version: v0.5.0-8994-gd50c5a4c 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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202602111747.QIBXIwpw-lkp@intel.com/ smatch warnings: fs/fat/file.c:160 fat_ioctl_get_volume_label() warn: maybe return -EFAULT instead of the bytes remaining? vim +160 fs/fat/file.c 5fc1746d68b8fb Ethan Ferguson 2026-02-10 156 static int fat_ioctl_get_volume_label(struct inode *inode, char __user *arg) 5fc1746d68b8fb Ethan Ferguson 2026-02-10 157 { 5fc1746d68b8fb Ethan Ferguson 2026-02-10 158 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); 5fc1746d68b8fb Ethan Ferguson 2026-02-10 159 5fc1746d68b8fb Ethan Ferguson 2026-02-10 @160 return copy_to_user(arg, sbi->vol_label, MSDOS_NAME); This should be: if (copy_to_user(arg, sbi->vol_label, MSDOS_NAME)) return -EFAULT; return 0; 5fc1746d68b8fb Ethan Ferguson 2026-02-10 161 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki