Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #89691

Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space

From mc36 <csmate@nop.hu>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space
Date 2025-10-21 15:10 +0200
Message-ID <LIkhH-6Rxq-13@gated-at.bofh.it> (permalink)
References (4 earlier) <LI5LH-6HIS-1@gated-at.bofh.it> <LIkhH-6Rxq-15@gated-at.bofh.it> <LIkhH-6Rxq-17@gated-at.bofh.it> <LHJBv-6stc-1@gated-at.bofh.it> <LIkhH-6Rxq-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


hi,

you both are crazy good, thank you so much for both of your effort! :)


if you're in a need for some more complicated xsk tests, just let me know, freertr

have a dataplane and a socat-alike tool with an xsk based packetio for a while....

br,

cs

On 10/21/25 14:25, Jason Xing wrote:
> On Tue, Oct 21, 2025 at 6:52   PM Fernando Fernandez Mancera
> <fmancera@suse.de> wrote:
>>
>>
>>
>> On 10/20/25 11:31 PM, mc36 wrote:
>>> hi,
>>>
>>> On 10/20/25 11:04, Jason Xing wrote:
>>>>
>>>> I followed your steps you attached in your code:
>>>> ////// gcc xskInt.c -lxdp
>>>> ////// sudo ip link add veth1 type veth
>>>> ////// sudo ip link set veth0 up
>>>> ////// sudo ip link set veth1 up
>>>
>>> ip link set dev veth1 address 3a:10:5c:53:b3:5c
>>>
>>>> ////// sudo ./a.out
>>>>
>>> that will do the trick on a recent kerlek....
>>>
>>> its the destination mac in the c code....
>>>
>>> ps: chaining in the original reporter from the fedora land.....
>>>
>>>
>>> have a nice day,
>>>
>>> cs
>>>
>>>
>>
>> hi, FWIW I have reproduced this and I bisected it, issue was introduced
>> at 30f241fcf52aaaef7ac16e66530faa11be78a865 - working on a patch.
> 
> Exactly. I simply reverted it and its dependencies and didn't see any
> crash then. It was newly introduced, hopefully it will not bring much
> trouble. As I replied before, I will take a look tomorrow morning.
> 
> Thanks,
> Jason

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-20 06:50 +0200
  Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space Jason Xing <kerneljasonxing@gmail.com> - 2025-10-20 08:50 +0200
    Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-20 09:20 +0200
    Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-20 11:00 +0200
      Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space Jason Xing <kerneljasonxing@gmail.com> - 2025-10-20 11:10 +0200
        Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-20 12:00 +0200
        Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-20 23:40 +0200
          Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-21 15:10 +0200
            Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-21 15:50 +0200
          Bug#1118437: null pointer dereference in interrupt after receiving an ip packet on veth from xsk from user space mc36 <csmate@nop.hu> - 2025-10-21 17:40 +0200

csiph-web