Thank you for reporting and providing the workaround, but this issue is already fixed in hdparm version 9.54+ds-1. See this bug for the details: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23891051
- Bug#898343: /lib/hdparm/hdparm-functions cause kernel at... Pali Rohár
- Bug#898343: /lib/hdparm/hdparm-functions cause kern... Alex Mestiashvili
- Bug#898343: /lib/hdparm/hdparm-functions cause ... Pali Rohár
- Bug#898343: /lib/hdparm/hdparm-functions ca... Alex Mestiashvili