Homebrew Clarification Thread - What is going on?

  • Thread starter Thread starter JustPingo
  • Start date Start date
  • Views Views 647,864
  • Replies Replies 5,356
  • Likes Likes 103
Status
Not open for further replies.
Hey, I'm not really a 3ds programmer guy, although I am a professional developer, and in watching the video again and reading through your guys' source code, I noticed that you are allocating only one kernel object, modifying its attributes to contain a memchunk header (exactly as described in the video) but then you seem to have the intention of overwriting the vtable pointer of that single allocated object. I'm not sure that makes sense. The memchunk header you are allocating against occurs after the vtable pointer, so unless I'm mistaken, that first vtable pointer isn't part of the memory that's being mapped to userland and you aren't going to be able to overwrite it.

Instead, I think you need to create multiple kernel objects as shown in the video, and you can only overwrite the vtable pointers on the other objects which got swept up in the allocation from the first one.

There's a slide in the video where derrek highlights the slab heap in red that shows what I'm talking about pretty clearly.
 
Last edited by Bull Moose 2016,
Hey, I'm not really a 3ds programmer guy, although I am a professional developer, and in watching the video again and reading through your guys' source code, I noticed that you are allocating only one kernel object, modifying its attributes to contain a memchunk header (exactly as described in the video) but then you seem to have the intention of overwriting the vtable pointer of that single allocated object. I'm not sure that makes sense. The memchunk header you are allocating against occurs after the vtable pointer, so unless I'm mistaken, that first vtable pointer isn't part of the memory that's being mapped to userland and you aren't going to be able to overwrite it.

Instead, I think you need to create multiple kernel objects as shown in the video, and you can only overwrite the vtable pointers on the other objects which got swept up in the allocation from the first one.

There's a slide in the video where derrek highlights the slap heap in red that shows what I'm talking about pretty clearly.

This is not really the place for this, go post it on the repo

https://github.com/Steveice10/memchunkhax2/issues
 
Ok, so, last question. Before downgrading it's pretty obvious i'll have to uninstall menuhax, right?
I think that there will be an easy way to do it:
  • Remove the SD card while booting
  • Put the SD card back
  • Switch theme to a colored one and switch back to default
And that's done.
 
  • Like
Reactions: Substance12
I'm so excited to see this happen. It feels like the psp scene all over again. downgrading n shit lol

:) good work guys
 
Ok, so, last question. Before downgrading it's pretty obvious i'll have to uninstall menuhax, right?

Well, I would advise to do it.
Maybe this is not your case if did not intend to use CFW at all, but I had some problems when I did a 10.3 w/ menuhax sytem transfer to a emuNAND.
I was caught in an infinity boot loop between sysnand (already with 9.2 w/ menuhax) and the emunand also having menuhax, because I could not remove SD card during emunand boot, for obvious reason.
It took some time to figure out a way to properly boot emunand and uninstall it's unecessary menuhax.
 
I'm stuck on 10.3 ;( sucks I gotta wait for memchunkhax

If you mean to downgrade and if you had a n3DS, you would've had to wait for memchunkhax2 anyway because snshax is not being worked on anymore.

If you mean to access homebrew, you can use the new browserhax.
 
If you mean to downgrade and if you had a n3DS, you would've had to wait for memchunkhax2 anyway because snshax is not being worked on anymore.

If you mean to access homebrew, you can use the new browserhax.

he might be referring to kernel abilities like cias etc.
 
Well, I would advise to do it.
Maybe this is not your case if did not intend to use CFW at all, but I had some problems when I did a 10.3 w/ menuhax sytem transfer to a emuNAND.
I was caught in an infinity boot loop between sysnand (already with 9.2 w/ menuhax) and the emunand also having menuhax, because I could not remove SD card during emunand boot, for obvious reason.
It took some time to figure out a way to properly boot emunand and uninstall it's unecessary menuhax.
No; don't ever remove menuhax. I gave instructions to remove it when downgraded.

--------------------- MERGED ---------------------------

Would ironhax be good for downgrading from 10.3 to 9.2?
Any *hax is.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum