17,839 questions
2
votes
1
answer
40
views
Handshake fails with RST after destination address modification of TCP packets in Netfilter hooks
I am implementing a destination NAT-like behavior by hooking into NF_INET_PRE_ROUTING and NF_INET_LOCAL_OUT to modify the destination IP address and recalculate the checksums.
nf_tracer_handler(void *...
0
votes
0
answers
20
views
Show a splash screen just after kernel boot (before Weston starts)
I want to Show a splash screen during or just after kernel boot (before Weston starts). Possibly write raw image data directly to framebuffer or use fbv, psplash, or something similar.
Questions: Is ...
3
votes
2
answers
111
views
Question about retry logic in usb-skeleton.c skel_read()
I'm a computer science undergraduate student studying Linux kernel USB device drivers.
While analyzing the skel_read() function in usb-skeleton.c, I noticed what seems like inconsistent retry logic. I'...
Advice
0
votes
0
replies
33
views
Show a splash screen during or just after kernel boot (before Weston starts)
I want to: Show a splash screen during or just after kernel boot (before Weston starts). Possibly write raw image data directly to framebuffer or use fbv, psplash, or something similar. Questions: Is ...
Best practices
0
votes
2
replies
124
views
Can Linux kernel software mechanisms track the sequence of accessed memory pages, or is hardware support required?
I want to generate a memory access trace in Linux where every fixed number of memory accesses (e.g., every 32 accesses) are grouped and recorded as one batch. Is it possible to implement this kind of “...
1
vote
1
answer
42
views
how to edit vlan-id of a sub-interface directly in linux? [closed]
I want to change vlan-id directly and I don't want to delete and recreate sub-interface with new vlan-id.
0
votes
0
answers
86
views
Trying to enable PWM on Pin 63 for the Colibri-IMX8X
I want to enable PWM on Pin 63 (PWM_H - ADMA.FTM.CH2) on the Toradex Colibri IMX8X. To do this I tried modifying three device tree files: imx8qxp-ss-adma.dtsi, imx8x-colibri.dtsi, imx8x-colibri-eval-...
0
votes
1
answer
112
views
Change a linux kernel config option from y to m, including its reverse dependencies
I want to build phylink support (CONFIG_PHYLINK) as a module. In my config, some reverse dependencies of CONFIG_PHYLINK are configured as builtin (=y). Is there some tool that helps to switch all ...
2
votes
1
answer
236
views
Kernel panic during ROP chain: GDB stepping mismatch and unexpected register state
I am working on a Linux x64 kernel exploitation CTF challenge. I have constructed a ROP chain to execute commit_creds(prepare_kernel_cred(0)).
However, I am encountering a major inconsistency between ...
1
vote
0
answers
65
views
Creating IpSet with libipset in c,Create command keeps failing Error: Invalid create command: missing settype
I'm trying to create ipset through libipset from application layer. below i pasted the code for an function which tries to create an ipset with the help of libipset. but for some reason it's not ...
-1
votes
1
answer
93
views
Passing kernel lsm parameter through U-boot
I'm trying to set
lsm=landlock,lockdown,yama,integrity,apparmor,bpf
on a Arch Linux ARM system.
The options seems to be set in /boot/boot.txt. In its original form, it looks like this:
# After ...
0
votes
0
answers
110
views
How to build a Yocto Linux image for i.MX8QXP MEK when NXP does not provide a BSP enable with Xen virtualisation Support?
I am trying to build a Linux image for the NXP i.MX 8QuadXPlus (i.MX8QXP) Multisensory Enablement Kit (MEK). NXP’s official BSP release (L6.x / L5.x / L5.15.x) does not provide it for Xen ...
3
votes
0
answers
200
views
In-Order Delivery of UIO Interrupts for Userspace Driver [closed]
I have multiple UIO interrupts defined. I am using Linux 6.12 without the realtime config (so, using the default scheduler, CFS).
My userspace driver is using poll in a loop to watch these interrupts ...
Advice
0
votes
3
replies
98
views
Enforce probe order for device tree overlay fragments
I am building a dto for a display using an Ilitek 9806e controller and a Goodix Gt911 touch controller.
These two components share a single reset line, so this reset line should only be asserted once ...
0
votes
2
answers
92
views
How to reliably map glibc dynamic symbols (e.g., open@glibc) to kernel syscalls (e.g., openat)?
I am trying to build a mapping between the dynamic symbols in ELF files (from glibc) and the actual kernel syscalls they invoke.
My environment is x86_64 Ubuntu 22.04.
What I've Tried
Parsing man 2 ...