Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp341578lqb; Thu, 23 May 2024 22:54:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXV5mT4bv11Wf/qcqc6L7Ccy6vteJqW5Rvto+aufEssxqM2s1QYqhwC9Xc7Mrco1ncIrhRcWsI0dMDvVFwFVXHbYq2LODASAorfoxXO+g== X-Google-Smtp-Source: AGHT+IF5bqWvpA8kBXOhrUr7jIxe4QIAvKvAk1nj46agSQihklLs2ri2adKdFGGccP8g3yieHxdb X-Received: by 2002:a67:eb96:0:b0:47f:fe4:a39b with SMTP id ada2fe7eead31-48a38365f18mr1519953137.0.1716530079285; Thu, 23 May 2024 22:54:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716530079; cv=pass; d=google.com; s=arc-20160816; b=kt2iRBTe41eTveusGhNd7QzUNzh/ZfyH/XRfqS+mbcTcAGPz2sA6y7Cthzmn3h4KYY 2DdZb8AkiqERBcekslffNCii2Q0AjlO3x2W/WvnlpjOD4ZYQ/MxSPqk6Kpf1Iri2w6dc IME8jhvm4JMfKMERCi3L+AWBsYJm5MTyYd3pVMlmczoq7XThJz7kowj0ye9UNlVI5Gb+ knnR2Lr/jXZHI5B01cq/VesQE7K5mfsueu0dALXaicTSY5cvKsUXgwbXy0Y0mVl2QtdH jeoG2wQCs/ywi1q5yOQcsBTet8n+koXTGnNS8K1PFJrRuK5hctKhlemEIuPRwDRnTEXA PfFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=RBvSJJQqgRbOhj6qSHFcjAV4W8LlOCyypRPVn9upiE4=; fh=1eulV3AZ2U6J/gT6QSV5XhioEBo60hCIFgRIfL/hutk=; b=rmdBpcxrgMcf/UF3soVvrzoDO7d1RZAfnOKP/ScoTAWloUMbgaihuOqbBRbscZ9S04 7T0SeAEWvTOnF9NsV5AmjY+t7qUm3EX0Ie2jwhsGi2au4FTzt0gIaYxIeuQc4UBy1h4w 75+niVadb7TEFhNN76/s8LBZqaY8gvaFWYtMxw/PL6/MzjggCK7U/yZ39N9RKwqrmHnM OtP/OQg8vOm0oMc8PCbchIXl9GH/GUoMwlwgp4DJ1aKglamjOsaF4nNLIQfd9k0OrrAa b58pTpIjIZZyu1qXjTEPFRmdYnShoXlvpaLbkDbYijuBeUkJU1zWRb/BYLwudV800/Vz klTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mQUq88SS; 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-188342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188342-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b26c7si10902591cf.456.2024.05.23.22.54.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 22:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mQUq88SS; 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-188342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188342-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 0972F1C20C37 for ; Fri, 24 May 2024 05:54:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7587D127E18; Fri, 24 May 2024 05:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mQUq88SS" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 D79B91272D6 for ; Fri, 24 May 2024 05:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716530073; cv=none; b=ScXE1jBdAdTsQTjpF2EfKsRfGaGu//TnBgcCl0v205D7+WZ6rDVsG/zKMtu15rj/LrnM6E2zt5ixBB7gqz+1fzadUzIKghACbhkZJUDSx9r4poevjmiL+5Lk31Xvuum42deDcKTaJdqJStKBihivoXp6hPaFESJt9txsF4gy2SM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716530073; c=relaxed/simple; bh=wR8rUQACo/Q4pIO6BcwJTj40/z8mHALtyajLOOSORS8=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Wt+LoZTDZDcyDzF96axezDMezZpuY+PXUaLAglpAnHiGSTuZ/QMngVlXziBB6B7Jo6vyXriwGCCZjLCMDrDFlFHoeFU9Xs1TRJ98YfmEJXOZMxSyA81JJGXxiNaSmK8K8lRqxdaeamXe7qPt6cSKuzqFRC8MaVHi6Yo9UQkLciE= 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=mQUq88SS; arc=none smtp.client-ip=192.198.163.15 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=1716530072; x=1748066072; h=date:from:to:cc:subject:message-id:mime-version; bh=wR8rUQACo/Q4pIO6BcwJTj40/z8mHALtyajLOOSORS8=; b=mQUq88SSrxtcQ9/dfaAJhdKkWKa0iyAfrkRMOsntiMAkc5qeBUpMwaYk c7K14ozWwmqCxOh8zAspLhOlYEjv+YapNsT4FMyBVhgPTVC6VPV2w/ULI VJ0DkQV8JNy/rA3/Tzii/BjSvQnOLi2WG845Zr7G78OaI4aLz7CXl2m3Q t9YwQR/8DPf2L6mtF2KVjSyb1T4AV3lbLIPBxHBBUrPTDevsfk0+O7MdT rAr51nJfpx8FKTUNm2LbOHqk++uZjMkLv+6LQiPgElB4KkPDjLR06R8w3 feebhGlpV7BcgeATW/E25Uy4iPOCulXEsYHDEO2leIXzspbiAgdzNX7mA w==; X-CSE-ConnectionGUID: NuJL7HRcQXyBNtg/tm5vRA== X-CSE-MsgGUID: Z5E1M1TvS4eIjucLaonzAA== X-IronPort-AV: E=McAfee;i="6600,9927,11081"; a="13079015" X-IronPort-AV: E=Sophos;i="6.08,184,1712646000"; d="scan'208";a="13079015" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 22:54:32 -0700 X-CSE-ConnectionGUID: lXZLfJuYSUWYrD/CVMvlAA== X-CSE-MsgGUID: J8lFF2VeRnmMBbSpa8FSPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,184,1712646000"; d="scan'208";a="38481817" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa004.fm.intel.com with ESMTP; 23 May 2024 22:54:30 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sANsp-0003w5-25; Fri, 24 May 2024 05:54:27 +0000 Date: Fri, 24 May 2024 13:53:35 +0800 From: kernel test robot To: Alexander Egorenkov Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Alexander Gordeev , Heiko Carstens Subject: arch/s390/kernel/ipl.c:1973 sys_vmcmd_on_reboot_store() warn: unsigned 'len' is never less than zero. Message-ID: <202405241351.CnSo0Sim-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6d69b6c12fce479fde7bc06f686212451688a102 commit: 247576bf624a200b9d4dba6126e760af0d5ebe0e s390/ipl: Do not accept z/VM CP diag X'008' cmds longer than max length date: 9 days ago config: s390-randconfig-r081-20240524 (https://download.01.org/0day-ci/archive/20240524/202405241351.CnSo0Sim-lkp@intel.com/config) compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6) 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/202405241351.CnSo0Sim-lkp@intel.com/ smatch warnings: arch/s390/kernel/ipl.c:1973 sys_vmcmd_on_reboot_store() warn: unsigned 'len' is never less than zero. arch/s390/kernel/ipl.c:1974 sys_vmcmd_on_panic_store() warn: unsigned 'len' is never less than zero. arch/s390/kernel/ipl.c:1975 sys_vmcmd_on_halt_store() warn: unsigned 'len' is never less than zero. arch/s390/kernel/ipl.c:1976 sys_vmcmd_on_poff_store() warn: unsigned 'len' is never less than zero. arch/s390/kernel/ipl.c:1977 sys_vmcmd_on_restart_store() warn: unsigned 'len' is never less than zero. vim +/len +1973 arch/s390/kernel/ipl.c 99ca4e582d4a40 Michael Holzheu 2008-01-26 1972 99ca4e582d4a40 Michael Holzheu 2008-01-26 @1973 DEFINE_IPL_ATTR_STR_RW(vmcmd, on_reboot, "%s\n", "%s\n", vmcmd_on_reboot); 99ca4e582d4a40 Michael Holzheu 2008-01-26 @1974 DEFINE_IPL_ATTR_STR_RW(vmcmd, on_panic, "%s\n", "%s\n", vmcmd_on_panic); 99ca4e582d4a40 Michael Holzheu 2008-01-26 @1975 DEFINE_IPL_ATTR_STR_RW(vmcmd, on_halt, "%s\n", "%s\n", vmcmd_on_halt); 99ca4e582d4a40 Michael Holzheu 2008-01-26 @1976 DEFINE_IPL_ATTR_STR_RW(vmcmd, on_poff, "%s\n", "%s\n", vmcmd_on_poff); 7dd6b3343fdc19 Michael Holzheu 2011-08-03 @1977 DEFINE_IPL_ATTR_STR_RW(vmcmd, on_restart, "%s\n", "%s\n", vmcmd_on_restart); 99ca4e582d4a40 Michael Holzheu 2008-01-26 1978 :::::: The code at line 1973 was first introduced by commit :::::: 99ca4e582d4a4088969681efff97be44d98421a1 [S390] kernel: Shutdown Actions Interface :::::: TO: Michael Holzheu :::::: CC: Martin Schwidefsky -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki