Bug #12538
closedAn image with a long clone chain blows up kernel stack
0%
Description
#I create a rbd block named r1
rbd -p rbd create r1 --size 1024
#then create a snapshot of r1
rbd -p rbd snap create --image r1 --snap r1-s1
#then protect this snapshot and clone a new block from this snapshot
rbd snap protect --image r1 --snap r1-s1
rbd clone --image r1 --snap r1-s1 --dest r2
#then create a snapshot of r2 , protect the snapshot , clone a new block named r3
rbd snap create --image r2 --snap r2-s1
rbd snap protect --image r2 --snap r2-s1
rbd clone --image r2 --snap r2-s1 --dest r3
#Do the same thing as above, loop 100 times (for example, you can cycle more)
#then I get a block named r101(get from 100 times clone)
#then I try to map this block?I use this command
rbd -p rbd map r101
#then my system crash
#In the below picture,You can see some infomation about system crash
This happens in the real machine, rather than the virtual machine, and I also tested on the virtual machine, found the same problem
Files