All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [akpm-mm:mm-unstable 415/450] mm/damon/vaddr-test.h:29 __link_vmas() warn: sleeping in atomic context
Date: Wed, 25 Jan 2023 20:12:30 +0800	[thread overview]
Message-ID: <202301252036.TH20hzb5-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: "Liam R. Howlett" <Liam.Howlett@oracle.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
CC: SeongJae Park <sj@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head:   fae3ac15a11571e4975f0ad7fd8d1c18dd02de1f
commit: e10f9e4f684eeabb68f1b52a7224a0efbb126cc7 [415/450] mm/damon/vaddr-test.h: stop using vma_mas_store() for maple tree store
:::::: branch date: 14 hours ago
:::::: commit date: 2 days ago
config: openrisc-randconfig-m041-20230123 (https://download.01.org/0day-ci/archive/20230125/202301252036.TH20hzb5-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 12.1.0

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>

smatch warnings:
mm/damon/vaddr-test.h:29 __link_vmas() warn: sleeping in atomic context

vim +29 mm/damon/vaddr-test.h

17ccae8bb5c928 SeongJae Park   2021-09-07  16  
e10f9e4f684eea Liam R. Howlett 2023-01-20  17  static int __link_vmas(struct maple_tree *mt, struct vm_area_struct *vmas,
d0cf3dd47f0d5d Liam R. Howlett 2022-09-06  18  			ssize_t nr_vmas)
17ccae8bb5c928 SeongJae Park   2021-09-07  19  {
e10f9e4f684eea Liam R. Howlett 2023-01-20  20  	int i, ret = -ENOMEM;
d0cf3dd47f0d5d Liam R. Howlett 2022-09-06  21  	MA_STATE(mas, mt, 0, 0);
17ccae8bb5c928 SeongJae Park   2021-09-07  22  
17ccae8bb5c928 SeongJae Park   2021-09-07  23  	if (!nr_vmas)
e10f9e4f684eea Liam R. Howlett 2023-01-20  24  		return 0;
17ccae8bb5c928 SeongJae Park   2021-09-07  25  
d0cf3dd47f0d5d Liam R. Howlett 2022-09-06  26  	mas_lock(&mas);
e10f9e4f684eea Liam R. Howlett 2023-01-20  27  	for (i = 0; i < nr_vmas; i++) {
e10f9e4f684eea Liam R. Howlett 2023-01-20  28  		mas_set_range(&mas, vmas[i].vm_start, vmas[i].vm_end - 1);
e10f9e4f684eea Liam R. Howlett 2023-01-20 @29  		if (mas_store_gfp(&mas, &vmas[i], GFP_KERNEL))
e10f9e4f684eea Liam R. Howlett 2023-01-20  30  			goto failed;
e10f9e4f684eea Liam R. Howlett 2023-01-20  31  	}
e10f9e4f684eea Liam R. Howlett 2023-01-20  32  
e10f9e4f684eea Liam R. Howlett 2023-01-20  33  	ret = 0;
e10f9e4f684eea Liam R. Howlett 2023-01-20  34  failed:
d0cf3dd47f0d5d Liam R. Howlett 2022-09-06  35  	mas_unlock(&mas);
e10f9e4f684eea Liam R. Howlett 2023-01-20  36  	return ret;
17ccae8bb5c928 SeongJae Park   2021-09-07  37  }
17ccae8bb5c928 SeongJae Park   2021-09-07  38  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-01-25 12:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202301252036.TH20hzb5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.