Hi Tang Junhui-- Thank you, this is a good fix. My repro script is: --- #!/bin/sh rm imgfile dd if=/dev/sda3 of=imgfile bs=1024 count=262144 dd if=/dev/zero of=imgfile bs=512 seek=510638080 count=1 losetup -f imgfile --- Where 510638080 is the size of the device. dmesg output isn't perfect: [ 65.919927] bcache: register_cache() error opening loop0: duplicate cache set member [ 65.919929] bcache: register_bcache() error opening /dev/loop0: (null) But at least no crash :D Would you like to slightly improve output and write a commit message? If not I can do it. This should cc: stable. I found a related (worse) problem with duplicate backing device-- sysfs complains but it actually attaches with the same UUID / has incorrect behavior. I will work on fixing that in the next few days for another submission to Jens, together with your fix. Thanks, Mike -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html