Re: [LSF/MM/BPF TOPIC] eBFP for block devices

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

 



On Mon, May 2, 2022 at 11:53 AM Martin K. Petersen
<martin.petersen@xxxxxxxxxx> wrote:
>
>
> Gabriel,
>
> > Cc'ing Khazhy since Google might have some applications for this to
> > filter IOs based on the blocks being accessed, in the context of
> > safeguarding specific regions from accidental overwrites / application
> > error.
Yeah, we have a few potential use cases for something like this - one
is interested in filtering based on issuing user. A separate use case
would be filtering based on regions - for this I do wonder how
appropriate something like eBPF would be, especially if we wanted the
filters to have some guarantees of existing so long as the data we're
protecting exists.
>
> We've been working in this area too. It possible to write BPF filters to
> protect block ranges using should_fail_bio().

It'd be nice to have a "proper" api vs. ALLOW_ERROR_INJECTION, which
feels more debug-y and has the drawback of
CONFIG_FUNCTION_ERROR_INJECTION being all-or-nothing

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux