Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4706963iob; Sun, 8 May 2022 22:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXWXUYPwU/uZ1r6oZY6/Y0KZ/kXU9iDV1l9v+B3+lo8aYa3EG8U0+x7hQhyEbyXjl3CwpP X-Received: by 2002:a17:902:ec8c:b0:15e:a371:ad7d with SMTP id x12-20020a170902ec8c00b0015ea371ad7dmr14674052plg.12.1652075077525; Sun, 08 May 2022 22:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652075077; cv=none; d=google.com; s=arc-20160816; b=tLZHSeFMOPl9G2QB5oNUy7vd2C6KIiNixjVUnTrjkausK7iHPWKGPzQZ5092b9f0xv cNIU0PtXaAQI+qllJheVb8YEt0EUDT/dXjj28Zu9yzJ/rI4HcOo0Q//3n8x3g+BX1DaY oj8NtUz1a7JpKnMFvLt3Ml8tN5DqBmNm0aWG+nC6eNnFIpTFYU7aa9Ph0EfaC97El1e9 2+i5MqOMQnMMNQSPnq2633y7yQ5is94vSjmipObuMYNxywyDGkBQMVt6xmiNkTV5+aAR zisBKMT/o1ly7MuCMlDrH7HcrTjQhApp5BLA8XCFkzfqbbczIR8oxtdMfJPtlGQ4G9F3 QkwA== 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=sdw4BMRZPxIKxv+58qAtz9J7sX88lFIoh2VL+ouGmUQ=; b=RGqr1xlwhQA4qLt0CirD5ISD9BWDpvDrk+A/NjL7pN0nrhebVj6/1U732AIWu16fA9 4LseudvCBmQdvgUj6JaUiWapbI1/3iTK9YFnoi1fIOLRWhmHMpz9FnXlig7JK0IfY1cj CKBDrnrTCH1jkeoCMhjjoBDv3d7vCnW546fAYxDmh2QOD7+bTDiI9Cuy6E17f52hpGXl VtjMDEmH5iYSCdTXq4F3hD7gVmvMPGL6GAxUqdTFxX4khnopYQWib8eFQ+dRuPw8iDlU X1c8kahbzFyOzifF7HiJRKRw/YQFDG6x+Wvxa0YtFiWS5TrhkwP1QNuiEFNIc3K7RH71 x5Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SSYRXYOv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o17-20020a170902d4d100b00153b2d164b7si11960598plg.191.2022.05.08.22.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:44:37 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SSYRXYOv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D77E9131F12; Sun, 8 May 2022 22:44:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387675AbiEFAzz (ORCPT + 99 others); Thu, 5 May 2022 20:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241986AbiEFAzz (ORCPT ); Thu, 5 May 2022 20:55:55 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172BE1EEEA; Thu, 5 May 2022 17:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651798334; x=1683334334; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RXBway8aqei9K09kwNWoZBifM54ZYmb3DHugyR1DrrE=; b=SSYRXYOv/dsqv8NAe25PQB2ZqVMsK/dKt4WbJ2P2aEXkHERSoW0a+bLW nllkvgmnzOKpyacYp8vkR/2KLn/knxK4OR+HAx5doqF3sflh1lVSTSrqs HbUvL/wLOJDgrx991P9OhqJarxCly/hWkSnpQfEBO/1J1Q/p9vBhR1fQB 5Rub0NLigmY2ixHoNCJMALUSyfu9VLWXz3PwfZ+YctnA8yS+iLWxQi7Rx wW5SGskzuoTxChxEUnIoKLtXdlftUGWZfJZl/NNOJszKMsJNsDKh21aVr Ahrm2SwNJqo3ZPjy9SdD8EU7A0fhj+s1bbD3JDsiFKZIiJFbNxbQofEcU g==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="268201722" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="268201722" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 17:52:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="585667620" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 05 May 2022 17:52:11 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nmmCZ-000CtK-7u; Fri, 06 May 2022 00:52:11 +0000 Date: Fri, 6 May 2022 08:51:44 +0800 From: kernel test robot To: Dan Moulding , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, linux-doc@vger.kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, corbet@lwn.net, Dan Moulding Subject: Re: [PATCH 1/1] init: Add "hostname" kernel parameter Message-ID: <202205060821.6KCNxZBf-lkp@intel.com> References: <20220505180651.22849-2-dmoulding@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220505180651.22849-2-dmoulding@me.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org Hi Dan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on hnaz-mm/master linus/master v5.18-rc5 next-20220505] [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] url: https://github.com/intel-lab-lkp/linux/commits/Dan-Moulding/Allow-setting-hostname-before-userspace-starts/20220506-023146 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 107c948d1d3e61d10aee9d0f7c3d81bbee9842af config: riscv-randconfig-r042-20220505 (https://download.01.org/0day-ci/archive/20220506/202205060821.6KCNxZBf-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/1071875b349d9b8307eb0f4d23dda06a2301fe03 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Dan-Moulding/Allow-setting-hostname-before-userspace-starts/20220506-023146 git checkout 1071875b349d9b8307eb0f4d23dda06a2301fe03 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): init/version.c: In function 'early_hostname': >> init/version.c:45:9: warning: 'strncpy' specified bound 65 equals destination size [-Wstringop-truncation] 45 | strncpy(init_uts_ns.name.nodename, arg, bufsize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/strncpy +45 init/version.c 39 40 static int __init early_hostname(char *arg) 41 { 42 size_t bufsize = sizeof(init_uts_ns.name.nodename); 43 size_t maxlen = bufsize - 1; 44 > 45 strncpy(init_uts_ns.name.nodename, arg, bufsize); 46 if (strlen(arg) > maxlen) { 47 pr_warn("hostname parameter exceeds %zd characters and will be truncated", 48 maxlen); 49 init_uts_ns.name.nodename[maxlen] = '\0'; 50 } 51 return 0; 52 } 53 early_param("hostname", early_hostname); 54 -- 0-DAY CI Kernel Test Service https://01.org/lkp