What decides the answer is the lane-control signal over the middle lane. A green arrow pointing down allows driving in the lane it is lit over, and the red X on this signal is not lit now. The lane is separated on both sides by
markings; when the lane-control signal is on, these markings may be crossed from either side if they separate lanes going the same way. So you may move from the right lane to the middle one for any reason, not just to pass the truck, as with any lane change, giving way to those already driving in it