Re: [dm-devel] [dm-devel resend] dm mpath: fix UAF in multipath_message()

2023-05-18 Thread lilingfeng (A)
在 2022/10/18 3:56, Mike Snitzer 写道: On Mon, Oct 10 2022 at 10:41P -0400, Luo Meng wrote: From: Luo Meng If dm_get_device() create dd in multipath_message(), and then call table_deps() after dm_put_table_device(), it will lead to concurrency UAF bugs. One of the concurrency UAF can be shown

Re: [dm-devel] [PATCH v7 2/5] block: Introduce provisioning primitives

2023-05-18 Thread Christoph Hellwig
On Thu, May 18, 2023 at 03:33:23PM -0700, Sarthak Kukreti wrote: > +EXPORT_SYMBOL(blkdev_issue_provision); IFF this gets in in some form, please make sure all exports for new block layer functionality are EXPORT_SYMBOL_GPL, thanks. -- dm-devel mailing list dm-devel@redhat.com https://listman.redh

Re: [dm-devel] [PATCH v7 1/5] block: Don't invalidate pagecache for invalid falloc modes

2023-05-18 Thread Christoph Hellwig
On Thu, May 18, 2023 at 03:33:22PM -0700, Sarthak Kukreti wrote: > Only call truncate_bdev_range() if the fallocate mode is > supported. This fixes a bug where data in the pagecache > could be invalidated if the fallocate() was called on the > block device with an invalid mode. > > Fixes: 25f4c414

Re: [dm-devel] [PATCH v7 0/5] Introduce provisioning primitives

2023-05-18 Thread Christoph Hellwig
FYI, I really don't think this primitive is a good idea. In the concept of non-overwritable storage (NAND, SMR drives) the entire concept of a one-shoot 'provisioning' that will guarantee later writes are always possible is simply bogus. -- dm-devel mailing list dm-devel@redhat.com https://listma