Patch "nospec: Allow index argument to have const-qualified type" has been added to the 4.14-stable tree