How Linux Kernel Runs Executables

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 214

  • @reyuki-i
    @reyuki-i 2 місяці тому +55

    For anyone using the Arch Linux distro, I recommend you use the pre-built version instead of build the bash from source. I spent hours figuring out how to build a static library for libtinfo as it's not available on the distro (yeah, I know, there's definitely a way to build it; I just lack knowledge and need to learn more ^^).

    • @nirlichtman
      @nirlichtman  2 місяці тому +8

      That's a good point, I haven't tried this on Arch but I'll pin this comment so it could help others as well, additionally here are instructions for downloading a prebuilt static bash on Ubuntu/Debian, after running this you will have bash-static in /tmp/bash-files/bin: "apt download bash-static && mkdir /tmp/bash-files && dpkg -x bash-static*.deb /tmp/bash-files"

    • @CryptAmine
      @CryptAmine 2 місяці тому +1

      You mean we should use pacstrap instead of building from source ? Cuz I've never seen someone building bash before anyways ( till now )

    • @reyuki-i
      @reyuki-i 2 місяці тому

      @@CryptAmine no, by prebuilt, I mean download the bash's binary from somewhere.. I recommend to pull it from the debian distro (the package name is bash-static), and extract it with dpkg-deb command. (it seems my comment was flagged as spam or smth, I need to rephrase it multiple times, so it passed the comment filter and finally visible to the public)

    • @k2ocean
      @k2ocean 2 місяці тому +3

      I just built the bash for just less than a minute, following the simple steps from the README file, I use Arch, and I downloaded the source code from the GNU site, maybe the problem is not in Arch, but in the specific settings of your system

    • @Ammonium-ow6pd
      @Ammonium-ow6pd 17 годин тому

      ​@@reyuki-i why would you download the binary from elsewhere? You should just do "pacman -S bash" to install it on Arch

  • @cubeman5303
    @cubeman5303 2 місяці тому +395

    Just what I needed 1.5h after I should've gone to bed.

    • @bastawa
      @bastawa 2 місяці тому +29

      @@cubeman5303 and here I am, 1:20am, watching this video and reading comments. we are doomed

    • @vladislav_artyukhov
      @vladislav_artyukhov 2 місяці тому +6

      ​@@bastawa actually, my recommendation in 1:30am

    • @ynav949
      @ynav949 2 місяці тому +7

      00:00 here
      and i gotta wake up in 5 hours for work

    • @bastawa
      @bastawa 2 місяці тому

      @@ynav949 This is so painful!!! Yesterday at 1:20 I just finished my work, but at least I didn't have to wake up so early!

    • @nya0783
      @nya0783 2 місяці тому

      @@cubeman5303 literally watching at 1:50 am, i need to wake up in 5 hours

  • @ASSASSIN2143
    @ASSASSIN2143 2 місяці тому +233

    Is it even legal to have such a cool explanation?

    • @petergerdes1094
      @petergerdes1094 2 місяці тому +11

      @@ASSASSIN2143 No, the FBI is on its way to protect those of us working in higher education.

  • @dazealex
    @dazealex 2 місяці тому +87

    I don't even need to do debugging right now, but interesting to watch as a C addict.

  • @Chris-on5bt
    @Chris-on5bt 2 місяці тому +105

    I like these videos because it it gives a good cross sectional exposure of knowledge:
    +GDB
    +C
    +Linux Kernel Hacking
    +Binary
    +Assembly
    +VMs
    +Unix commands
    Informative to me and sharing it with my friend who is getting spun up in computers.
    Alright nicely with the learning I am doing building the Ben Eater 6502 computer. Thank you!

    • @cybernit3
      @cybernit3 2 місяці тому +3

      Ya, I tried to grasp all this, but I need to learn how to use GDB properly, kernel building and then run this kernel in some VM. But he gives a nice simple example about
      how the kernel loads binary programs into memory. Thanks Nir Lichtman.

  • @peanutbutter8885
    @peanutbutter8885 2 місяці тому +63

    This is the coolest video I saw in quite a while, How do you even get started learning all this?

    • @darthcabs
      @darthcabs 2 місяці тому +3

      Exactly what I keep asking myself

    • @nirlichtman
      @nirlichtman  2 місяці тому +16

      Thanks! If you wanna get started I recommend taking a look at the learning resources I maintain in the welcome link on my channel

    • @nirlichtman
      @nirlichtman  2 місяці тому +7

      @LinuxIsBetter43 yes, because the core stuff remained similar and the book is high quality, but that is good point to keep in mind that the book is quite old and that the source of truth is always the source so it is a good idea to also examine the relavent source along with the according section in the book and to keep in mind that some information may be outdated

    • @nirlichtman
      @nirlichtman  2 місяці тому +5

      @LinuxIsBetter43 i will add this disclaimer in the welcome page later, its a good point

  • @nathanel1313
    @nathanel1313 2 місяці тому +14

    While I often watch other YT videos on 1.5 speed, I feel like I should watch Nir's videos on 0.75 speed. So dense, so good. Thank you.

  • @BabaTova
    @BabaTova 2 місяці тому +12

    I've been learning about kernel development lately, and every day I'm reminded how complicated and intricate the Linux kernel is. Incredible video as always, thank you!

    • @vilian9185
      @vilian9185 2 місяці тому +1

      That's why kernel development is devided in subsystems, and deve usually only specialize in one of them

    • @BabaTova
      @BabaTova 2 місяці тому

      @vilian9185 and then there is Linus Torvalds

    • @vilian9185
      @vilian9185 2 місяці тому

      @@BabaTova no, he also only review code of the subsystems that he knows, he never reviewed something from file system for example

  • @CryptAmine
    @CryptAmine 2 місяці тому +4

    I love you that when an ad starts i read the comments instead of skipping

  • @memiux
    @memiux 2 місяці тому +77

    nice!

    • @nirlichtman
      @nirlichtman  2 місяці тому +16

      😂

    • @mgord9518
      @mgord9518 2 місяці тому +5

      Thank God you included a newlineI hate when comments aren't formatted correctly

  • @olipellinger
    @olipellinger 2 місяці тому +4

    your tutorials are by far the most valuable ones for me (and trust me I have seen a lot others). Keep up the hard work! Really appreciate it!

  • @waldmensch2010
    @waldmensch2010 2 місяці тому +2

    your knowledge about kernel and debugging is brutal :D I use Linux over 30 years and everytime I look your videos, I feel like a noob, please more videos

  • @yaxlu
    @yaxlu 2 місяці тому +2

    Wow! I am so glad youtube recommended this to me. The knowledge here is worth several years of reading docs! Thank you!

  • @jorgext
    @jorgext 2 місяці тому +1

    I rarely comment on videos, but I need to say it here: this is a really good explanation. Congratulations on achieving such a nice and clear video.

  • @neodonkey
    @neodonkey 2 місяці тому +1

    Fantastic video! I learned so much in so little time. I learned a ton about using GDB, and seeing the internals work like this is fascinating. Thanks for doing this!

  • @sevensolutions77
    @sevensolutions77 2 місяці тому +3

    This is the exact type of content UA-cam needs. Thx 👍

  • @Finkelfunk
    @Finkelfunk 2 місяці тому +1

    This is so insanely cool! Just to see how the Kernel works on a deep level, really fun to watch!

  • @yannberthier8335
    @yannberthier8335 2 місяці тому

    Amazing, this is a very great way to learn something by practice. I see many videos explaining this with theoric approach, but you bring a completly different way to explain that topic. Thanks a lot !

  • @NistenTahiraj
    @NistenTahiraj 2 місяці тому +10

    it will never cease the bother me that the cracked linux dev I know that I learned the most from still uses a windos terminal

    • @vercolit
      @vercolit 2 місяці тому +4

      @@NistenTahiraj over my few years as a software engineer, I've really realised that the setup/tools senior engineers use are just what they feel comfortable with. I've seen cracked linux devs on windows, and shitty devs on openbsd/nixos.

    • @williandamascenomusic
      @williandamascenomusic 2 місяці тому

      It gives you an advantage, if you just broke the entire system, you can reinstall Ubuntu from scratch really easily

    • @vilian9185
      @vilian9185 2 місяці тому +2

      Don't matter how good linux is, windows still has better out-of-the-box experience and comes pre-installed, maybe in a future with more atomic Linux distros and better support that start changing(and btw 40% of devs uses Linux, so it's growing and windows becoming annoying lol)

    • @vilian9185
      @vilian9185 2 місяці тому

      ​@@williandamascenomusicsame thing if you use Ubuntu is a VM on linux, WSL is a VM after all

  • @seamenenjoyer
    @seamenenjoyer 28 днів тому

    I have no idea what I just watched, yet it was amazing.

  • @dev.rahulgurjar
    @dev.rahulgurjar 2 місяці тому +1

    Amazing, such a clear explanation ❤ from India🇮🇳

  • @logyross6883
    @logyross6883 2 місяці тому

    You never fail to make me realize how little I know about this stuff!🤣 keep up the great work!

  • @Name-gi8dr
    @Name-gi8dr 2 місяці тому +1

    Exactly what I have been wondering but not enough to research myself !

  • @jarno4054
    @jarno4054 25 днів тому

    Very interesting, this gives me a starting point to examine the linux kernel

  • @RaulAlmeida
    @RaulAlmeida 2 місяці тому +3

    Very nice explanation indeed. Thanks for such informative content.

  • @НиколайКучерявенко-з1ш

    This is so interesting and insightful, thank you for making such videos! I would so want to see more of these, please!

  • @Youshinaka
    @Youshinaka 2 місяці тому +1

    It’was really interesting tho I lack soo muck knowledge
    I need to learn more, you’re giving me some nice motivation

  • @koderkev42
    @koderkev42 2 місяці тому

    Dude this was amazing. I will be looking into more of your videos. You seem to know what you're talking about.

  • @scottdrake5159
    @scottdrake5159 Місяць тому

    Wow, just wow. This is wonderful work. Thank you.

  • @RooiGevaar19
    @RooiGevaar19 2 місяці тому

    אלוף! 😊 הסרטונים שלך מדהימים! ברכות מהלינוקס הפולני שלי! 😊

  • @rueda-roja
    @rueda-roja 2 місяці тому

    Very accurate (indeed no other hard currency other than the source code!) and enjoyable, thank you very much! One small addition would be to show the stack before and after iretq ;)

  • @UnrealOG137
    @UnrealOG137 2 місяці тому +2

    It is a crime that you only have 55k subscribers

    • @comosaycomosah
      @comosaycomosah Місяць тому

      it really is tbh he def deserves more but on the bright side at least he will be putting out vids lol

  • @TechLord79
    @TechLord79 2 місяці тому +1

    How cute - Win 3.x file manager in the task bar 😄 The epiphany alone how simple it is to create a minimalist Linux is golden and amazing! 👍

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      It's actually the open source continuation of it called winfile, Microsoft released the source a couple of years ago :)

    • @TechLord79
      @TechLord79 2 місяці тому

      @nirlichtman Thanks, yes I know - MS removed the 16-bit subsystem from the x64 OS line, so the original wouldn‘t run, and also not support long file names 😉 But I‘m sure you know.

  • @CharaVerKys
    @CharaVerKys 2 місяці тому

    nice video, ill see more from this channel, very interesting, i feel like if ill watch many of this ill know more about systems

  • @bhaveshverma8629
    @bhaveshverma8629 2 місяці тому

    Yup very deep dive. Bro how did you study so deep dive. I have 8 years of experience in coding but I don't have deeper knowledge like you. Very nice. Hope I can also achieve that level of knowledge

  • @ItachiUchiha-cw7zl
    @ItachiUchiha-cw7zl 2 місяці тому +1

    Great Video!! Wonderful explanation.

  • @nkamkar09
    @nkamkar09 2 місяці тому +3

    Niiiiiiiiiiir!!!!! How could you leave us for sooooooo long? 😢😢💔💔. Please don't ever disappear for so long. 🥰🥰

  • @RahulJain-wr6kx
    @RahulJain-wr6kx 2 місяці тому

    Awesome explanation in a small video 😊😊😊
    Thanks a huge ..

  • @lebanbo55
    @lebanbo55 2 місяці тому +12

    I happened to just research how the Windows kernel runs .exe programs yesterday and found that the two are very similar in their overall ideas. The difference is the specific function names.

    • @theairaccumulator7144
      @theairaccumulator7144 2 місяці тому +5

      @LinuxIsBetter43 Windows NT was made way before Linux had any semblance of popularity and the concept of "open source" as it's known today didn't exist back then. It was only a thing in hacker communities, corporations still used only proprietary or in-house solutions.

    • @piotrc966
      @piotrc966 2 місяці тому +4

      ​ @LinuxIsBetter43 WindowsNT was designed and written by an experienced team that already had VMS and the MICA project to its credit. Dave Cluter was in charge and the NT project took off in 1988. By 1993 it was a ready-to-sell project.
      Linux at that time was completely underdeveloped. E.g. threads didn't appear on Linux until 2000, and dynamic modules in 2003. Windows had these basic things since 1993. Linux was years behind.

  • @sparshpriyadarshi
    @sparshpriyadarshi 2 місяці тому +2

    its like a brain surgeon explaining how they do it with a POV explanation. love it.

  • @ricargoncalves
    @ricargoncalves 2 місяці тому +1

    Very good! Very informative! Love it!

  • @Jonathan-ru9zl
    @Jonathan-ru9zl 2 місяці тому +1

    Great work!
    In 6:48 how did you split gdb terminal to contain a vim window on the same path?

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      thanks! using Vim's windowing feature (I have a vid about multiple windows tips with Vim)

  • @CuteLittleHen
    @CuteLittleHen 2 місяці тому +2

    אח שלי, אתה מדהים! תוכן ברמה גבוהה!

  • @der.Schtefan
    @der.Schtefan 2 місяці тому +3

    make -j0 will adjust to the number of your CPU cores. Your NVMe SSD is fast enough to keep up with the I/O, even on a 24 threads processor.

  • @Sadiinso
    @Sadiinso 2 місяці тому +1

    Is there a reason as to why the first page of code isn't loaded as soon as the new process is "started" ? (why wait for it to immediately page fault instead ?)

    • @art0007i
      @art0007i 2 місяці тому

      @@Sadiinso my best guess is that it wouldn't save that much performance, and the page fault handling is a very generic mechanism that applies to a lot of cases outside of this one too

    • @nirlichtman
      @nirlichtman  2 місяці тому

      Yah, that's a good point, I thought about it as well, @art0007i makes a good point, indeed it probably wouldn't be much of a performance gain, especially considering that execve is a relatively "uncommon" operation

  • @eitantal726
    @eitantal726 2 місяці тому +2

    14:39 "iret" is interrupt-return, yes. But this is iretQ. what's the 'q' for?

    • @nirlichtman
      @nirlichtman  2 місяці тому +5

      q stands for quad-word since this is x64 (addresses are 64bit so "quad" bytes), I actually wanted to also show the instruction documentation in the Intel SDM but in the end decided not to since the video got longer than I anticipated

    • @eitantal726
      @eitantal726 2 місяці тому

      @@nirlichtman interesting. kind of like "NEAR"/"FAR" but for x64?

  • @amitkeren7771
    @amitkeren7771 2 місяці тому

    One of the greatest vids I saw!

  • @sophiatheodores7985
    @sophiatheodores7985 2 місяці тому +2

    can you talk about how wine picks up the windows executables you run on linux? pretty sure its a similar mechanism

  • @aioia3885
    @aioia3885 2 місяці тому +1

    that is really cool, great video! my only complaint is that you're not using the TUI mode of gdb, it's so much nicer in my opinion!

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      Thanks! I haven't used the TUI mode in a long time, maybe I'll give it another look some time

  • @MahdiSharifi-us7bl
    @MahdiSharifi-us7bl 2 місяці тому

    Excellent video. Loved it.

  • @dorovich4735
    @dorovich4735 2 місяці тому

    Very useful inormation about a lot of stuff, thank you!

  • @compositeboson123
    @compositeboson123 2 місяці тому

    nobody:
    nir in every video: lets build the linux kernel

  • @eitantal726
    @eitantal726 2 місяці тому

    12:00 what does this macro do? (other than calling a function with the same name)

    • @nirlichtman
      @nirlichtman  2 місяці тому

      Are you referring to the START_THREAD macro? in the flow demonstrated in the video it just passes through almost all the arguments to start_thread, except the first argument.

    • @eitantal726
      @eitantal726 2 місяці тому

      @@nirlichtman So it just omits the 1st argument & nothing else? my thinking is, if there's a macro, there's often a reason for a macro.

  • @EngineerNick
    @EngineerNick 2 місяці тому

    Nice! :) Thankyou for the amazing video and concice explanation!

  • @smithnigelw
    @smithnigelw 2 місяці тому

    Thank you. Really interesting. I must try this out myself.

  • @jonesy_b
    @jonesy_b 2 місяці тому

    understood barely anything of it, still hella cool video 🙏🙏🙏

  • @bagfleet
    @bagfleet 2 місяці тому +4

    Just curious. Why aren’t you daily driving linux instead of windows?

    • @nirlichtman
      @nirlichtman  2 місяці тому

      Check out the common questions on the welcome link on my channel

  • @yaseentahseen1300
    @yaseentahseen1300 Місяць тому

    Wow but how do windows exe executed in kernel and what is used in the kernel for it to ran because the kernel it self in sys32 folder is an exe so how do it ran?

  • @eliphazbouye
    @eliphazbouye 2 місяці тому +3

    very great video, but I have One question what is your process to learn, go deeper and more ?

    • @nirlichtman
      @nirlichtman  2 місяці тому +3

      A combination of reading docs, sections from books, watching videos/lectures, articles and alongside that working with debuggers and the source code to see things in practice. I have a list of recommended learning resources BTW on my welcome link on the channel.

    • @eliphazbouye
      @eliphazbouye 2 місяці тому

      @@nirlichtman Great thank you 😊

  • @samidaniel9629
    @samidaniel9629 Місяць тому

    Why we need to download bash src code and build it?

  • @katiagalkina4607
    @katiagalkina4607 2 місяці тому +1

    great as always! 😊

  • @evildragon1774
    @evildragon1774 2 місяці тому +2

    hmm this is interesting. I just knew that i have to learn gdb more deeply

    • @eitantal726
      @eitantal726 2 місяці тому +1

      Nah, I recommend the exact opposite. Familiarize yourself with debugging in general, ideally with a very graphically visible and user-friendly debugger a-la VSCode. When you understand these things, gdb will make perfect sense, albeit having very limited visibility. CLI gdb feels like driving a car, but with a terminal, rather than with my eyes and hands

  • @katze343
    @katze343 Місяць тому

    I got a segmentation fault when I compiled hello.c with the --entry main argument. Do you know what's going on?"

    • @nirlichtman
      @nirlichtman  Місяць тому

      You probably forgot to call the exit system call, it's important since now the entry point is your main function and not the standard library C entry point, so it's your responsibility to exit from the program.

    • @katze343
      @katze343 Місяць тому

      ​@@nirlichtmanThanks for your answer, but I have used _exit(0xa4). Everything works fine without --entry main.
      BTW. I'm using Ubuntu 22.04.3 LTS in WSL as my environment.

    • @nirlichtman
      @nirlichtman  Місяць тому

      Interesting, you can use GDB catchpoints feature to help figure out what's going on by catching the seg fault, take a look at "help catch" in GDB

    • @katze343
      @katze343 Місяць тому

      @@nirlichtman
      It's weird that I got SIGSEGV here. Should I reinstall glibc-static?
      mov eax, dword ptr fs:[0x18]

  • @Momentvm
    @Momentvm 2 місяці тому

    This channel is golden!

  • @Name-gi8dr
    @Name-gi8dr 2 місяці тому

    God damn, at the end I just noticed that he's using WSL. It's just so funny 😂

  • @aah134-K
    @aah134-K 2 місяці тому +5

    Welcome back

  • @knecht3000
    @knecht3000 2 місяці тому

    This is amazing content. So much information with almost no "magic" happening. However, I couldn't follow completely regarding the ip register 😅 the kernel loads the virtual address of the programs code section into the ip register of a task struct associated with the hello process that's not yet running right? But is there something happening before returning to user mode? I would have expect that the scheduler runs first and picks a task struct(which hello is now one of them) and in case it picks hello we end up in user mode where you end up but we could also end up at another user mode process. So I don't completely got where the scheduler schedules the hello process and writes it's register values to the HW. I guess what you showed was only writing to a task struct that will be written to hw when the process is scheduled?

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      Thanks! Regarding the instruction pointer, a few corrections, first notice that the kernel loads the address of the entry point function to the instruction pointer (and not the address of the beginning of the text section). secondly, an important clarification regarding execve, it does not create a new process but rather "switches" the process that called execve to be a different program, so the kernel does not need to create a new process in this flow (new process creation can be done with fork or clone for example, but both of them do not switch the process to be a totally different program, so a common flow is to first fork/clone and then execve). The scheduler will eventually kick in and re-estimate which process to run next, but after the kernel finishes handling the system call and the iret instruction is executed, control is returned back to the last user mode process that was run, which is now starting with the completely new program and with the instruction pointer set to the entry point

  • @0xgordo350
    @0xgordo350 2 місяці тому

    Nice video.
    Make us a video where you show how the kernel handles the algorithm to kill random proccess when it is out of memory

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      Thanks! I have a video on OOM, it's called something like what happens when Linux is out of memory

  • @tomershechner
    @tomershechner 2 місяці тому +4

    על איזה דיסטרו אתה אחי?
    עריכה: כאילו אני רואה שזה WSL, אבל איזה בחרת?

    • @nirlichtman
      @nirlichtman  2 місяці тому +4

      דביאן

    • @divadgnol67
      @divadgnol67 2 місяці тому

      @@tomershechner arch Linux??, maybe

    • @kaslmineer7999
      @kaslmineer7999 2 місяці тому

      Gibberish writing.

    • @comradepeter87
      @comradepeter87 2 місяці тому +3

      This sounds like it's straight out of some made-up Star Wars language. If not, I apologise for my ignorance.

    • @tomershechner
      @tomershechner 2 місяці тому

      @@comradepeter87 It's Hebrew

  • @nitsanbh
    @nitsanbh 2 місяці тому

    Wonderful as always

  • @FintMC
    @FintMC 2 місяці тому

    i am having trouble compiling the linux kernel on my machine:
    when running `make` after doing all configs and getting everything downloaded the build process terminates on libelf headers because there are macros that are undefined, and linux includes them with `-Werror` which turns warnings into errors.
    is there any easy way to fix this issue? i searched online and found this was a common issue but did seem to find any fix for it

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      Interesting haven't stumbled upon a problem like this, but in general you can config the kernel to not treat warnings as errors by going to the menuconfig -> general settings and unchecking that box, not an optimal solution since it wouldn't treat the source of the problem, but it can help you at least get past this right now and successfully build the kernel before investigating further if you would want.

    • @FintMC
      @FintMC 2 місяці тому

      ​@@nirlichtman i tried doing just that and with `defconfig` configuration and it seems to ignore that - still passes `-Werror=undef` to the compiler. just tried with `tinyconfig` instead and everything seems to work now.
      i checked and tinyconfig by default doesnt check warnings as errors
      Edit: checking the `64-bit kernel` option seems to trigger this no matter what

    • @nirlichtman
      @nirlichtman  2 місяці тому

      @@FintMC Hmm, may be a bug in the kernel, are you using the upstream master from torvalds? I would recommend trying to pinpoint the exact location in the makefiles where it still passes the warning as error flag, from what you have sent so far seems the problem is around ELFs so maybe it is related to the fs/ Makefiles, if you have an idea how to fix, you can submit a patch if you want

    • @FintMC
      @FintMC 2 місяці тому

      @@nirlichtman the errors seem to occur anywhere any libelf header is included, i tried to edit those directly to define undefined macros with 0s (bad solution but it works), now i get more other errors from the actual kernel code.
      i tried to edit the config to see whether there was the warning->error option and it appeared unset so i set it to 'n' and all warnings are still errors after rerunning make
      E: the config seems to update and unset the CONFIG_WERROR option, which still doesnt apply

    • @nirlichtman
      @nirlichtman  2 місяці тому

      If you use defconfig, but uncheck the ELF format support option in the executable formats supported menu in the menuconfig, does it build successfully?

  • @ThanassisTsiodras
    @ThanassisTsiodras 2 місяці тому

    Nice. BTW, your viewers may enjoy watching your GDB sessions more in TUI mode ("tui enable").

    • @nirlichtman
      @nirlichtman  2 місяці тому

      Thanks, I think I tried it a little bit a couple of years ago, but that is a good idea, I'll look into it again

  • @marekjakimowicz
    @marekjakimowicz Місяць тому

    What is "misc_format"? There is elf_format, script_format and misc_format. He explain two of this. But what is misc_format? Something from older kernerls?

    • @nirlichtman
      @nirlichtman  Місяць тому

      Misc format is a binary format that enables loading other custom binary formats that are not supported in the kernel, it does so by recognizing the type of the format and loading the appropriate kernel module that can handle it (more info about this in the kernel docs)

    • @nirlichtman
      @nirlichtman  Місяць тому +1

      Correction, it doesn't load an appropriate kernel module, but rather just invokes the appropriate interpreter binary, for more: docs.kernel.org/admin-guide/binfmt-misc.html

    • @marekjakimowicz
      @marekjakimowicz Місяць тому

      @@nirlichtman Thanks

  • @Cyclically
    @Cyclically 2 місяці тому

    underrated user

  • @divadgnol67
    @divadgnol67 2 місяці тому +2

    Thank you

  • @균서
    @균서 2 місяці тому

    wow very helpful thanks 😊

  • @Mysterious_debris_1111
    @Mysterious_debris_1111 2 місяці тому

    Omg, this sh*t is crazy, mind blowing videos

  • @王阿哥-q2d
    @王阿哥-q2d 2 місяці тому

    Can you tell me how you use Linux in a Windows terminal? I look forward to you making a video about your development environment.

    • @nirlichtman
      @nirlichtman  2 місяці тому

      I use Debian with WSL, I have some info about my setup in the welcome link on my channel

    • @王阿哥-q2d
      @王阿哥-q2d 2 місяці тому

      @@nirlichtman That's awesome! What model of laptop do you mainly use?

    • @nirlichtman
      @nirlichtman  2 місяці тому

      @王阿哥-q2d lenovo y50

    • @王阿哥-q2d
      @王阿哥-q2d 2 місяці тому

      @@nirlichtman Unbelievable! You've created so many amazing videos on a 10-year-old laptop. What hardware are you using for the laptop running OpenBSD?

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      @王阿哥-q2d yah i am generally a fan of older stuff, but the laptop still runs great :) i am using OpenBSD with a 2009 Sony Vaio P

  • @XTFFFF
    @XTFFFF 16 днів тому

    GDB is a bit difficult to use, I didn't understand the video (maybe it's because my skills aren't up to par)

  • @ahming2000
    @ahming2000 2 місяці тому

    15:25 Just do some additional research on this and found out that the "demand paging" was actually a cool example of "bug becomes a feature" 😂

  • @eitantal726
    @eitantal726 2 місяці тому +2

    how do you know all this? did you read it somewhere? trial & error? taught this? learned on-the-job?

    • @peanutbutter8885
      @peanutbutter8885 2 місяці тому

      I had the same question, What leads to here?

    • @nirlichtman
      @nirlichtman  2 місяці тому

      In general or referring to the demonstration in the video?

    • @eitantal726
      @eitantal726 2 місяці тому

      @@nirlichtman This video in particular, but yes, but also in general. How do you know so much? are the man pages really that good?

  • @mathmage420
    @mathmage420 15 днів тому +1

    11:15 "to shut gcc up". Gotta love code comments lol

  • @evilmortyofficial
    @evilmortyofficial 2 місяці тому +1

    Can you make a video about Kernel exploits?

    • @nirlichtman
      @nirlichtman  2 місяці тому +2

      I don't know a lot about that topic so no videos about that planned in the near future

  • @manofares1342
    @manofares1342 2 місяці тому +1

    לאן נעלמת? כבר דאגנו יאח

  • @suzukiaccess5022
    @suzukiaccess5022 2 місяці тому

    @nirlichtman how about a tutorial series on windbg?

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      I have a couple of windbg videos on my Windows diving playlist, and next video will be a Windows topic :)

    • @suzukiaccess5022
      @suzukiaccess5022 2 місяці тому

      @ thanks! I have watched and enjoyed those videos too. At some point, when you have time, make a video on using windbg to debug applications and read application memory dumps? The existing videos are focused towards windows internals

    • @nirlichtman
      @nirlichtman  2 місяці тому +1

      @suzukiaccess5022 oh you mean a source level application debugging video, and a video about analyzing crash dumps of apps that crashed? good ideas i'll consider those for future vids

  • @kebugcheck
    @kebugcheck 2 місяці тому

    Great job!!

  • @dylanh333
    @dylanh333 2 місяці тому

    That went *deep*

  • @JoeNopos
    @JoeNopos 2 місяці тому

    This is awesome! I mean ... nice!

  • @guilherme5094
    @guilherme5094 2 місяці тому

    👍Thanks!

  • @ansore2349
    @ansore2349 5 днів тому

    gooooood!!

  • @JoseLuisOchoaPadilla
    @JoseLuisOchoaPadilla 2 місяці тому +3

    now _this_ is debugging...

  • @kaslmineer7999
    @kaslmineer7999 2 місяці тому

    Really cool

  • @ChandrashekarCN
    @ChandrashekarCN 2 місяці тому

    💖💖💖💖

  • @lllsophisticatedlll
    @lllsophisticatedlll 2 місяці тому

    Love it

  • @iamwitchergeraltofrivia9670
    @iamwitchergeraltofrivia9670 2 місяці тому

    😊😊😊😊 always Kernel Security

  • @DocSineBell
    @DocSineBell 2 місяці тому

    I didn't understand shit but this is so cool anyway

  • @PrinceKumar-u4k4y
    @PrinceKumar-u4k4y 2 місяці тому +1

    His fun directory contains bash, mine contains games 😂😂

  • @arielguts
    @arielguts 2 місяці тому

    nir yamelech!!

  • @sayyedmohsenzahraee1372
    @sayyedmohsenzahraee1372 2 місяці тому

    nice hacks
    Could you tell me how to split the GDB and search for functions?

    • @nirlichtman
      @nirlichtman  2 місяці тому

      You mean split screen? I like using Vim built-in window managment commands (I have a vid on that). And to search functions in GDB, check out "info func" (help info)

  • @maxmustermann5590
    @maxmustermann5590 2 місяці тому

    Are you a wizard?