Oil prices are rising as the war with Iran threatens to drag on, but U.S. stocks are nevertheless hanging near their records.