3.8: update to latest mainline

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>