Re: [ammarfaizi2-block:akpm/mm/mm-stable 29/237] mm/gup_test.c:257:13-14: WARNING kvmalloc is used to allocate this memory at line 248 (fwd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12.12.22 17:26, Julia Lawall wrote:
The concern is that pages is allocated with kvcalloc, but freed later
using kfree.


Indeed, that's wrong. Will send a fix. Thanks!

julia

---------- Forwarded message ----------
Date: Sat, 10 Dec 2022 22:02:56 +0800
From: kernel test robot <lkp@xxxxxxxxx>
To: oe-kbuild@xxxxxxxxxxxxxxx
Cc: lkp@xxxxxxxxx, Julia Lawall <julia.lawall@xxxxxxx>
Subject: [ammarfaizi2-block:akpm/mm/mm-stable 29/237] mm/gup_test.c:257:13-14:
     WARNING kvmalloc is used to allocate this memory at line 248

BCC: lkp@xxxxxxxxx
CC: oe-kbuild-all@xxxxxxxxxxxxxxx
CC: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>
CC: "GNU/Weeb Mailing List" <gwml@xxxxxxxxxxxxxxxx>
TO: David Hildenbrand <david@xxxxxxxxxx>
CC: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
CC: Linux Memory Management List <linux-mm@xxxxxxxxx>
CC: Yang Li <yang.lee@xxxxxxxxxxxxxxxxx>

tree:   https://github.com/ammarfaizi2/linux-block akpm/mm/mm-stable
head:   3b91010500eba3601e906b0e92cf84fab4d895d1
commit: c77369b437f983a862bb6741814670d4ad38478c [29/237] mm/gup_test: start/stop/read functionality for PIN LONGTERM test
:::::: branch date: 11 hours ago
:::::: commit date: 5 weeks ago
config: arm-randconfig-c44-20221209
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Reported-by: Julia Lawall <julia.lawall@xxxxxxx>

cocci warnings: (new ones prefixed by >>)
mm/gup_test.c:257:13-14: WARNING kvmalloc is used to allocate this memory at line 248


--
Thanks,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux