public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Shreeya Patel <shreeya.patel@collabora.com>,
	krisman@collabora.com, linux-kernel@vger.kernel.org,
	linux-fsdevel@vger.kernel.org
Cc: kbuild-all@lists.01.org, kernel@collabora.com,
	gustavo.padovan@collabora.com, andre.almeida@collabora.com,
	Shreeya Patel <shreeya.patel@collabora.com>
Subject: Re: [PATCH 3/3] fs: unicode: Make UTF-8 encoding loadable
Date: Sun, 14 Mar 2021 08:46:44 +0800	[thread overview]
Message-ID: <202103140834.aMm7MzPq-lkp@intel.com> (raw)
In-Reply-To: <20210313231214.383576-5-shreeya.patel@collabora.com>

[-- Attachment #1: Type: text/plain, Size: 2636 bytes --]

Hi Shreeya,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on ext4/dev]
[also build test WARNING on f2fs/dev-test linux/master linus/master v5.12-rc2 next-20210312]
[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/0day-ci/linux/commits/Shreeya-Patel/Make-UTF-8-encoding-loadable/20210314-071604
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
config: riscv-randconfig-r022-20210314 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.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/0day-ci/linux/commit/85f4765787c386a4b949afaf9721046c0e85955a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Shreeya-Patel/Make-UTF-8-encoding-loadable/20210314-071604
        git checkout 85f4765787c386a4b949afaf9721046c0e85955a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In function 'utf8_parse_version',
       inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7:
>> fs/unicode/utf8mod.c:175:2: warning: 'strncpy' specified bound 12 equals destination size [-Wstringop-truncation]
     175 |  strncpy(version_string, version, sizeof(version_string));
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/strncpy +175 fs/unicode/utf8mod.c

   164	
   165	static int utf8_parse_version(const char *version, unsigned int *maj,
   166				      unsigned int *min, unsigned int *rev)
   167	{
   168		substring_t args[3];
   169		char version_string[12];
   170		static const struct match_token token[] = {
   171			{1, "%d.%d.%d"},
   172			{0, NULL}
   173		};
   174	
 > 175		strncpy(version_string, version, sizeof(version_string));
   176	
   177		if (match_token(version_string, token, args) != 1)
   178			return -EINVAL;
   179	
   180		if (match_int(&args[0], maj) || match_int(&args[1], min) ||
   181		    match_int(&args[2], rev))
   182			return -EINVAL;
   183	
   184		return 0;
   185	}
   186	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25216 bytes --]

      reply	other threads:[~2021-03-14  0:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13 23:12 [PATCH 0/3] Make UTF-8 encoding loadable Shreeya Patel
2021-03-13 23:12 ` [PATCH 1/3] fs: unicode: Rename function names from utf8 to unicode Shreeya Patel
2021-03-13 23:12 ` [PATCH 2/3] fs: unicode: Rename utf8-core file to unicode-core Shreeya Patel
2021-03-13 23:12 ` [PATCH 3/3] fs: unicode: Add utf8 module and a unicode layer Shreeya Patel
2021-03-14  1:49   ` Gabriel Krisman Bertazi
2021-03-14 14:46     ` Shreeya Patel
2021-03-15  4:22       ` Gabriel Krisman Bertazi
2021-03-13 23:12 ` [PATCH 3/3] fs: unicode: Make UTF-8 encoding loadable Shreeya Patel
2021-03-14  0:46   ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202103140834.aMm7MzPq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andre.almeida@collabora.com \
    --cc=gustavo.padovan@collabora.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@collabora.com \
    --cc=krisman@collabora.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shreeya.patel@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox