The San Francisco 49ers signed Pro Bowl defensive tackle Justin Smith to a two-year extension on Wednesday.