Conversation

I'm reading this chapter because it began with this master class of snark that made me say "gosh maybe I don't know all the basics, I'd better not skip it"

1
1
2

@ljs you don't want your readers to get too cocky

1
0
2
@brenns10 lol the second they hit the anon VMA stuff all such feeling will disappear and be replaced with despair
1
1
6

@ljs @brenns10 did you see that anon_vma ->degree confusion bug that was fixed in 2022, where an assumption in vma mergability checks is broken and you get an anon page mapped in a VMA which is not connected to the page's anon_vma, and that leads to anon_vma UAF?
https://project-zero.issues.chromium.org/issues/42451486

3
0
2
@jann @ljs @brenns10 my colleague managed to create a livepatch that somehow avoided adding the new fields, and I've reviewed it as that it should be working, but forgot all the details since ;)
1
0
2

@ljs @brenns10 one of those bug reports that probably involved me drawing a bunch of possible scenarios on paper...
the reproducer requires five fork() calls, plus some VMA splitting and merging blob_dizzy_face

2
0
2

@vbabka @brenns10 @ljs oh yes, this patch was how I learned that security fixes that change struct layouts can be very annoying for people

0
0
2
@jann @ljs @brenns10 ha, I believe I was discarding these kind of my own drawings among other stuff just week ago
0
0
2
@jann @brenns10 fucking hell Jann why are you like this

Oh wait this is like cotton candy for exploit writers sigh.

Well at least I didn't take on maintainership responsibility recently... Oh wait FUCK
0
0
3
@jann @brenns10 merging much nicer now due to some genius
0
0
2

@vbabka It's the early access PDF for "Building a Debugger". So far so good! I've only just gotten to chapter 3 but clearly I enjoy the author's sense of humor which makes it easier reading. I'm excited to get to some of the DWARF handling chapters especially.

https://nostarch.com/building-a-debugger

2
0
1

@brenns10 @vbabka According to the Table of Contents, the kernel support for debuggers (gdbserver I guess) isn't part of the content, right? I've always been interested in learning more, but I never took a look.

1
0
1
@brenns10 @vbabka How is the chapter about DWARF?
1
0
1

@andersonc0d3
@vbabka Yeah it's definitely not a book focusing on debuggers for kernels. There's a small section in chapter 22 about remote debugging but it's just a "FYI this exists" sort of thing.

If you did want to see an example of gdbserver support in a kernel debugger you could check this new pull request for gdbserver support in drgn, hot off the presses from Daniel Thompson, kgdb co-maintainer :)

https://github.com/osandov/drgn/pull/444

1
0
1

@jarkko @vbabka I'll let you know when I get there!

1
0
2
@brenns10 @vbabka I have to give kudos to anyone who dares to make any sense of DWARF :-)
1
0
1
@jarkko @brenns10 my impression is that these days people rather invent new stuff to avoid using dwarf where possible ;)
2
1
3
@vbabka @jarkko @brenns10 honestly I prefer being called a 'short king' guys
2
0
2

printf of persia πŸ‡ΊπŸ‡¦πŸ‡¨πŸ‡ΏπŸ‘ƒπŸ’¨

@ljs @brenns10 @jarkko @vbabka it's 'short and thin king' now

0
1
2
@ljs @brenns10 @jarkko that means "short but needs a king size bed"?
1
0
1

printf of persia πŸ‡ΊπŸ‡¦πŸ‡¨πŸ‡ΏπŸ‘ƒπŸ’¨

@ljs @brenns10 @jarkko @vbabka worst human, best ape!

0
1
3
@vbabka @brenns10 ya it's sick, something like ACPI feels cleanest thing ever engineered compared to DWARF
0
0
1