Forums before death by AOL, social media and spammers... "We can't have nice things"
|    linux.debian.kernel    |    Debian kernel discussions    |    2,884 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,067 of 2,884    |
|    mc36 to All    |
|    Bug#1118437: null pointer dereference in    |
|    20 Oct 25 06:50:01    |
      XPost: linux.debian.bugs.dist       From: csmate@nop.hu              hi,              freertr.org xsk dataplane is triggering a null pointer de-reference after       sending              a single ip packet from user space to an xsk socket bound to a veth interface.              the same code works fine when using physical interfaces to send packets to...              it does not matter if an ip address is assigned to the veth pair or not...              please find below the reproducer code with some comments on how to use it...              tldr: create a veth pair, bring them up, compile and run the c code...              this happens 10/10 on host or in qemu-system-x86_64-kvm running 6.16.12 or       6.17.2...              if it does not belongs here, just let me know....              have a nice day,              csaba                     ------------------------------------------------------[cut]-----       ---------------------------------------------------                     p4emu login: [ 119.074634] BUG: kernel NULL pointer dereference, address:       0000000000000000       [ 119.076747] #PF: supervisor read access in kernel mode       [ 119.078334] #PF: error_code(0x0000) - not-present page       [ 119.079855] PGD 0 P4D 0       [ 119.080648] Oops: Oops: 0000 [#1] SMP NOPTI       [ 119.081993] CPU: 2 UID: 1 PID: 927 Comm: p4xsk.bin Not tainted       6.16.12+deb14-cloud-amd64 #1 PREEMPT(lazy) Debian 6.16.12-1       [ 119.085247] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS       1.17.0-debian-1.17.0-1 04/01/2014       [ 119.088065] RIP: 0010:xsk_destruct_skb+0xd0/0x180       [ 119.089502] Code: 40 10 48 89 cf 89 28 e8 9e 7e 07 00 48 89 df 48 83 c4 18       5b 5d 41 5c 41 5d 41 5e 41 5f e9 c8 cc da ff 48 8b 7b 30 4c 8d 5b 30 <48> 8b       07 4c 8d 67 f8 4c 8d 70       f8 49 39 fb 74 b7 48 89 5c 24 10 4c       [ 119.094947] RSP: 0018:ffffcd5b4012cd48 EFLAGS: 00010002       [ 119.096499] RAX: ffffcd5b40fcf000 RBX: ffff898e05dfcf00 RCX:        fff898e043cf9e8       [ 119.098612] RDX: ffff898e048ccc80 RSI: 0000000000000246 RDI:        000000000000000       [ 119.100687] RBP: 0000000000000001 R08: 0000000000000000 R09:        fff898e01d21900       [ 119.102794] R10: 0000000000000000 R11: ffff898e05dfcf30 R12:        fff898e05f95000       [ 119.104880] R13: ffff898e043cf900 R14: ffff898e7dd32bd0 R15:        000000000000002       [ 119.107000] FS: 00007f0cd9e0a6c0(0000) GS:ffff898ede530000(0000)       knlGS:0000000000000000       [ 119.109358] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033       [ 119.111080] CR2: 0000000000000000 CR3: 00000000043ba003 CR4:        000000000372ef0       [ 119.113175] Call Trace:       [ 119.113996] |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca