Li, On 4/25/23 00:55, Li Lingfeng wrote: > From: Li Lingfeng <lilingfeng3@xxxxxxxxxx> > > Previously commit 077a4033541f ("block: don't allow a disk link holder > to itself") prevent user from reloading dm with itself. However, user > can reload dm with its ancestor which will trigger dead loop and result > in oom. > > Test procedures: > 1) dmsetup create test --table "0 20971520 linear /dev/sdd 0" > 2) dmsetup create test1 --table "0 20971520 linear /dev/sdd 20971520" > 3) dmsetup suspend test > 4) dmsetup reload test --table "0 2048 linear /dev/mapper/test1 0" > 5) dmsetup resume test > 6) dmsetup suspend test1 > 7) dmsetup reload test1 --table "0 2048 linear /dev/mapper/test 0" > 8) dmsetup resume test1 > Can you please add blktest for this one ? -ck