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]
Date:   Thu, 4 Jan 2018 05:29:19 -0800
From:   Christoph Hellwig <hch@...radead.org>
To:     Christian König 
        <ckoenig.leichtzumerken@...il.com>
Cc:     konrad.wilk@...cle.com, linux-kernel@...r.kernel.org,
        hch@...radead.org
Subject: Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v5

> @@ -713,6 +713,7 @@ void *
>  swiotlb_alloc_coherent(struct device *hwdev, size_t size,
>  		       dma_addr_t *dma_handle, gfp_t flags)
>  {
> +	bool warn = !(flags & __GFP_NOWARN);

This is still wrong.  __GFP_NOWARN has no meaning for DMA coherent
allocations, and if a driver expects it to do anything it's doing it
wrong.  This needs to check for DMA_ATTR_NO_WARN, and thus get the attrs
passed.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ