Apply vanilla 3.11.6 patches
Merge branch 'master' into vanilla-ravion