DF-4900 / poc_phase2.sh
#!/bin/sh # DF-4900 phase 2 (fatal): the 513th live device gets unit 512, whose # encoded minor aliases unit 0 (live) -> dm_dev_insert KKASSERT panic. mark() { echo "DF4900: $*" > /dev/console; } mark "start" i=0 while [ $i -lt 513 ]; do dmsetup create $(printf e%04d $i) --notable >/dev/null 2>&1 || { mark "create failed at $i (no panic)"; exit 1; } if [ $((i % 64)) -eq 0 ]; then mark "created $i"; fi i=$((i+1)) done mark "created all 513 (no panic -- not reproduced)" |