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-next>] [day] [month] [year] [list]
Date:   Wed, 15 Feb 2017 09:19:37 -0800
From:   Greg KH <gregkh@...uxfoundation.org>
To:     lixiubo@...s.chinamobile.com
Cc:     agrover@...hat.com, mchristi@...hat.com, namei.unix@...il.com,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] uio: add UIO_MEM_CUSTOM support

On Wed, Feb 15, 2017 at 12:43:06PM +0800, lixiubo@...s.chinamobile.com wrote:
> From: Xiubo Li <lixiubo@...s.chinamobile.com>
> 
> This will allow UIO based drivers, like TCMU, have opportunities to
> implement their own mmap magics.
> 
> Signed-off-by: Xiubo Li <lixiubo@...s.chinamobile.com>
> ---
>  drivers/uio/uio.c          | 2 ++
>  include/linux/uio_driver.h | 1 +
>  2 files changed, 3 insertions(+)
> 
> diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
> index fba021f..6ca0ae0 100644
> --- a/drivers/uio/uio.c
> +++ b/drivers/uio/uio.c
> @@ -708,6 +708,8 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma)
>  		case UIO_MEM_LOGICAL:
>  		case UIO_MEM_VIRTUAL:
>  			return uio_mmap_logical(vma);
> +		case UIO_MEM_CUSTOM:
> +			return 0;

How does this help?

Can you provide an update to the documentation in
Documentation/driver-api/uio-howto.rst to show how to use this?

thanks,

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ