Re: [dm-devel] [PATCH] dm-table: Check that a dm device doesn't reference itself

2023-02-07 Thread Demi Marie Obenour
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Tue, Feb 07, 2023 at 10:21:40PM -0600, Benjamin Marzinski wrote: > If a dm device table references itself, it will crash the kernel with an > infinite recursion. Check for a self-reference in dm_get_device(). This > is a quick check, but it won't

[dm-devel] [PATCH] dm-table: Check that a dm device doesn't reference itself

2023-02-07 Thread Benjamin Marzinski
If a dm device table references itself, it will crash the kernel with an infinite recursion. Check for a self-reference in dm_get_device(). This is a quick check, but it won't catch more complicated circular references. Signed-off-by: Benjamin Marzinski --- drivers/md/dm-table.c | 2 ++ 1 file