lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMdWSLJ8dNDnY0nUHre3W2FUNm4Jf+divKqmAgQR5tnBfQ6jA@mail.gmail.com>
Date:   Thu, 7 Sep 2017 12:08:22 +0530
From:   Allen <allen.lkml@...il.com>
To:     Joe Perches <joe@...ches.com>
Cc:     linux-kernel@...r.kernel.org, x86@...nel.org
Subject: Re: [PATCH 1/1] x86:mm:return -ENOMEM if kzalloc() fails

> On Thu, 2017-09-07 at 11:56 +0530, Allen Pais wrote:
>>  Currently on failure the value returned from kzalloc() is -1.
>> It should return -ENOMEM.
>>
>
> Looks like there are quite a few of these:
> (probably several false positives too)

 The list is long. If the maintainers are okay with these clean-ups,
i'll go ahead and get all of them done.

- Allen

> $ git grep -A3 alloc.*GFP|grep -B3 -P "return\s+\-\d+"
> arch/powerpc/platforms/cell/spider-pci.c:       dummy_page_va = kmalloc(PAGE_SIZE, GFP_KERNEL);
> arch/powerpc/platforms/cell/spider-pci.c-       if (!dummy_page_va) {
> arch/powerpc/platforms/cell/spider-pci.c-               pr_err("SPIDERPCI-IOWA:Alloc dummy_page_va failed.\n");
> arch/powerpc/platforms/cell/spider-pci.c-               return -1;
> --
> --

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ