They look like pupae of some sort, I wouldn't let them live to find out of what. Your tree looks like it has enough problems and it might be the preceding larval stage that caused the damage, you don't want adults laying eggs.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.