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: <77171ea8-c8d9-5f8d-caf0-76bd5ca03f0c@infradead.org>
Date:   Tue, 13 Jun 2023 07:16:31 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Sergei Shtepa <sergei.shtepa@...am.com>, axboe@...nel.dk,
        hch@...radead.org, corbet@....net, snitzer@...nel.org
Cc:     viro@...iv.linux.org.uk, brauner@...nel.org, willy@...radead.org,
        dlemoal@...nel.org, wsa@...nel.org,
        heikki.krogerus@...ux.intel.com, ming.lei@...hat.com,
        gregkh@...uxfoundation.org, linux-block@...r.kernel.org,
        linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-fsdevel@...r.kernel.org, Donald Buczek <buczek@...gen.mpg.de>
Subject: Re: [PATCH v4 02/11] block: Block Device Filtering Mechanism



On 6/13/23 05:34, Sergei Shtepa wrote:
> 
> 
> On 6/13/23 03:51, Randy Dunlap wrote:
>>
>> On 6/9/23 04:58, Sergei Shtepa wrote:
>>> diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h
>>> index b7b56871029c..7904f157b245 100644
>>> --- a/include/uapi/linux/fs.h
>>> +++ b/include/uapi/linux/fs.h
>>> @@ -189,6 +189,9 @@ struct fsxattr {
>>>   * A jump here: 130-136 are reserved for zoned block devices
>>>   * (see uapi/linux/blkzoned.h)
>>>   */
>>> +#define BLKFILTER_ATTACH	_IOWR(0x12, 140, struct blkfilter_name)
>>> +#define BLKFILTER_DETACH	_IOWR(0x12, 141, struct blkfilter_name)
>>> +#define BLKFILTER_CTL		_IOWR(0x12, 142, struct blkfilter_ctl)
>>
>> Please update Documentation/userspace-api/ioctl/ioctl-number.rst
>> with the blkfilter ioctl number usage.
> 
> It seems to me that there is no need to change anything in the table of
> numbers for 'blkfilter'. I think the existing record is enough:
> 
> 0x10  20-2F  arch/s390/include/uapi/asm/hypfs.h
> 0x12  all    linux/fs.h
>              linux/blkpg.h

Yes, OK.

> Maybe it would probably be correct to specify the file 'uapi/linux/fs.h'?
> And maybe we need to specify the request numbers for blksnap?

Yes.

> add ioctls numbers for blksnap
> 
> Asked-by: Randy Dunlap <rdunlap@...radead.org>

Acked-by: Randy Dunlap <rdunlap@...radead.org>

Thanks.

> Signed-off-by: Sergei Shtepa <sergei.shtepa@...am.com>
> ---
>  Documentation/userspace-api/ioctl/ioctl-number.rst | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst b/Documentation/userspace-api/ioctl/ioctl-number.rst
> index 176e8fc3f31b..96af64988251 100644
> --- a/Documentation/userspace-api/ioctl/ioctl-number.rst
> +++ b/Documentation/userspace-api/ioctl/ioctl-number.rst
> @@ -202,6 +202,7 @@ Code  Seq#    Include File                                           Comments
>  'V'   C0     linux/ivtvfb.h                                          conflict!
>  'V'   C0     linux/ivtv.h                                            conflict!
>  'V'   C0     media/si4713.h                                          conflict!
> +'V'   00-1F  uapi/linux/blksnap.h                                    conflict!
>  'W'   00-1F  linux/watchdog.h                                        conflict!
>  'W'   00-1F  linux/wanrouter.h                                       conflict! (pre 3.9)
>  'W'   00-3F  sound/asound.h                                          conflict!

-- 
~Randy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ