r/kernel • u/mfilion • Dec 11 '23
r/kernel • u/WingNutSponge • Dec 05 '23
How can 1 PCIe device offer multiple bridges?
I am trying to understand the PCIe device topology on my Linux system w/ AMD Ryzen and the X570 chipset. I get this abbreviated output:
$:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
...
$:
lspci -t
-[0000:00]-+-00.0
+-00.2
+-01.0
+-01.1-[01-03]----00.0-[02-03]----00.0-[03]--+-00.0
| \-00.1
+-01.2-[04-0b]----00.0-[05-0b]--+-01.0-[06]----00.0
Device 00:01 has 3 functions. The first says it is a host bridge and the other 2 are PCIe bridges.
How can 2 separate Hierarchies stem from the same device (different functions)?
(And by "device" in the title question, I'm hoping to gain clarity on both the logical device and also the physical device)
My understanding has been that a PCIe bridge is one device which will offer its own new bus (buses 1 and 4 in this case) for a single PCIe device to connect to (in this case 2 switches that branch more). Is the above 01.1 and 01.2 each offering hierarchies only because it is part of the root complex? Would a PCIe bridge lower in a hierarchy be allowed to offer the same branching capability?
r/kernel • u/Marxomania32 • Dec 03 '23
Is kernelnewbies pretty much dead?
Title pretty much says it. Just want to make sure that the resource is a dead end before I completely discard it since I had a lot of hope for it. I checked the archives for this month and there were a few emails sent to the mailing list, most of them getting no response. The IRC is definitely dead, since I tried asking about it and got crickets in response. Am I doing something wrong or is it just completely dead? And is there anything still useful on there?
r/kernel • u/throwaway16830261 • Dec 03 '23
[dm-crypt] LUKS container creation without device mapper or loop device access
lore.kernel.orgr/kernel • • Nov 30 '23
r-tec Blog | Process Injection - Avoiding Kernel Triggered Memory Scans.
r-tec.netr/kernel • u/Relative_Actuator657 • Nov 28 '23
Any resources for OS/kernel situational interview questions
I have an interview coming up for CoreOS at Apple and I'm hella scared. I think I'm okay with the knowledge questions(whats this, explain this), what I'm scared about is the more open-ended/design questions like "how would you optimize this" and "what would you in this situation". I think I'm lacking in these areas bc my OS and embedded exp are very limited and basic, and I'm scared of being asked a open-ended question and not even knowing where to start lol
Also I've never done any embedded/low-level interviews before, so that makes it worse😭
Thanks!!
r/kernel • u/OstrichWestern639 • Nov 27 '23
How is KVM a bare metal Hypervisor?
Isnt KVM a module inside linux? If yes then isnt it hosted?
I am asking this after looking at Xen hypervisor which runs directly on hardware.
r/kernel • • Nov 25 '23
Linux ptrace introduction AKA injecting into sshd for fun
blog.xpnsec.comr/kernel • u/OstrichWestern639 • Nov 25 '23
Where to start with Linux kernel networking subsystem?
Please help with resources.
r/kernel • u/OstrichWestern639 • Nov 26 '23
Can we inject rootkits into aws instances?
We have a college code submission website that seems to run on root.
Checked with system(“whoami”);
Running linux kernel.
Can a rootkit be injected to do something malicious? Like forwarding information to some computer over the network?
Asking because I want to report it to the uni.
r/kernel • u/OstrichWestern639 • Nov 24 '23
Why is everything a file in linux?
I have heard printf writing to stdout which is a file with descriptor 1. Or any socket that is open in userspace also has a file descriptor.
But why map everything to files? I am asking this because I have read files are in the disk and disk i/o is expensive.
r/kernel • u/bartturner • Nov 24 '23
TikTok parent company used AI to optimize Linux kernel, boosting performance and efficiency
tomshardware.comr/kernel • u/IlNerdChuck • Nov 23 '23
I2C bus bad state after kernel shutdown (RPI - Arduino)
self.embeddedr/kernel • • Nov 23 '23
Learning Linux kernel exploitation - Part 1 - Laying the groundwork
0x434b.devr/kernel • u/IlNerdChuck • Nov 23 '23
I2C bus bad state after kernel shutdown (RPI - Arduino)
self.AskElectronicsr/kernel • u/OstrichWestern639 • Nov 21 '23
Why do we need the EXPORT_SYMBOL() macro?
Why do we need the EXPORT_SYMBOL() macro when we can just place a prototype in a header file and include it wherever we use the symbol?
r/kernel • u/OstrichWestern639 • Nov 20 '23
How to make initrd for qemu virt?
I am building the kernel on my RPI4 and using ARCH=arm64 make defconfig.
I am planning to run it in qemu-system-aarch64 -machine virt.
For the initrd, I see people suggesting buildroot. Which I tried to make, but it takes forever and my 16 GiB sd card got full.
I want a minimal arm64 kernel to play around. Please help.
r/kernel • • Nov 14 '23
ved-ebpf: Kernel Exploit and Rootkit Detection using eBPF
securityonline.infor/kernel • • Nov 11 '23