make -C tools/testing/selftests TARGETS=net TEST_PROGS=l2_tos_ttl_inherit..sh TEST_GEN_PROGS="" run_tests
make: Entering directory '/home/virtme/testing-3/tools/testing/selftests'
make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net'
make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net'
TAP version 13
1..1
# timeout set to 6000
# selftests: net: l2_tos_ttl_inherit.sh
# ┌────────┬───────┬───────┬──────────────┬──────────────┬───────┬────────┐
[ 923.850977][ T5733] gre: GRE over IPv4 demultiplexor driver
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ Type │ outer | inner │ tos │ ttl │ vlan │ result │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ gre │ 4 │ 4 │ inherit 0x90 │ inherit 2 │ false │[ 926.290785][ T5756] ip_gre: GRE over IPv4 tunneling driver
OK │
# │ gre │ 4 │ 4 │ inherit 0x4c │ inherit 31 │ true │ OK │
# │ gre │ 4 │ 4 │ fixed 0xb8 │ fixed 117 │ false │ OK │
# │ gre │ 4 │ 4 │ fixed 0xe0 │ fixed 228 │ true │ OK │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ gre │ 4 │ 6 │ inherit 0x3c │ inherit 158 │ false │ OK │
# │ gre │ 4 │ 6 │ inherit 0x74 │ inherit 172 │ true │ OK │
# │ gre │ 4 │ 6 │ fixed 0x68 │ fixed 126 │ false │ OK │
# │ gre │ 4 │ 6 │ fixed 0xc8 │ fixed 142 │ true │ OK │
# ├───────────────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ gre │ 4 │ other │ inherit 0xc4 │ inherit 157 │ false │ OK │
# │ gre │ 4 │ other │ inherit 0x34 │ inherit 26 │ true │ OK │
# │ gre │ 4 │ other │ fixed 0x50 │ fixed 38 │ false │ OK │
# │ gre │ 4 │ other │ fixed 0x60 │ fixed 101 │ true │ OK │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ Type │ outer | inner │ tos │ ttl │ vlan │ result │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ gre │ 6 │ 4 │ inherit 0xf4 inherit 146 │ false │[ 995.085220][ T6335] ip6_gre: GRE over IPv6 tunneling driver
OK │
# │ gre │ 6 │ 4 │ inherit 0xd4 │ inherit 20 │ true │ OK │
# │ gre │ 6 │ 4 │ fixed 0x80 │ fixed 246 │ false │ OK │
# │ gre │ 6 │ 4 │ fixed 0x20 │ fixed 167 │ true │ OK │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ gre │ 6 │ 6 │ inherit 0x64 │ inherit 229 │ false │ OK │
# │ gre │ 6 │ 6 │ inherit 0x3c │ inherit 182 │ true │ OK │
# │ gre │ 6 │ 6 │ fixed 0x74 │ fixed 236 │ false │ OK │
# │ gre │ 6 │ 6 │ fixed 0x30 │ fixed 242 │ true │ OK │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ gre │ 6 │ other │ inherit 0x04 │ inherit 220 │ false │ OK │
[ 1041.546499][ C0] ip6_tunnel: tep0 xmit: Local address not yet configured!
# │ gre │ 6 │ other │ inherit 0x68 │ inherit 133 │ true │ OK │
[ 1048.139202][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured!
# │ gre │ 6 │ other │ fixed 0x70 │ fixed 233 │ false │ OK │
[ 1053.706214][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured!
# │ gre │ 6 │ other │ fixed 0x44 │ fixed 155 │ true │ OK │
[ 1059.978210][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured!
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ Type │ outer | inner │ tos │ ttl │ vlan │ result │
# ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤
# │ vxlan │ 4 │ 4 │ inherit 0xf8 │ inherit 208 │ false │ OK │
[ 1064.774865][ T71] ==================================================================
[ 1064.775347][ T71] BUG: KASAN: use-after-free in vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 1064.775788][ T71] Read of size 8 at addr ffff888009a80bf0 by task kworker/u8:1/71
[ 1064.776191][ T71]
[ 1064.776325][ T71] CPU: 0 PID: 71 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1
[ 1064.776720][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1064.777344][ T71] Workqueue: netns cleanup_net
[ 1064.777600][ T71] Call Trace:
[ 1064.777772][ T71]
[ 1064.777925][ T71] dump_stack_lvl+0x64/0xb0
[ 1064.778157][ T71] print_address_description.constprop.0+0x2c/0x3b0
[ 1064.778504][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 1064.778837][ T71] print_report+0xb5/0x270
[ 1064.779059][ T71] ? kasan_addr_to_slab+0x4e/0x90
[ 1064.779312][ T71] kasan_report+0xbe/0xf0
[ 1064.779548][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 1064.779870][ T71] vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 1064.780182][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan]
[ 1064.780530][ T71] ? nft_offload_netdev_event+0x158/0x3b0 [nf_tables]
[ 1064.780937][ T71] ? mirred_device_event+0x185/0x210 [act_mirred]
[ 1064.781270][ T71] notifier_call_chain+0x9a/0x290
[ 1064.781534][ T71] unregister_netdevice_many_notify+0x55a/0x1180
[ 1064.781854][ T71] ? mutex_is_locked+0x17/0x50
[ 1064.782095][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10
[ 1064.782431][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10
[ 1064.782745][ T71] default_device_exit_batch+0x228/0x2c0
[ 1064.783040][ T71] ? __pfx_default_device_exit_batch+0x10/0x10
[ 1064.783360][ T71] ? mutex_is_locked+0x17/0x50
[ 1064.783600][ T71] ? nexthop_net_exit_batch_rtnl+0x83/0x210
[ 1064.783899][ T71] cleanup_net+0x4f3/0xb50
[ 1064.784125][ T71] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1064.784411][ T71] ? __pfx_cleanup_net+0x10/0x10
[ 1064.784666][ T71] ? lock_acquire+0x1c1/0x220
[ 1064.784904][ T71] ? process_one_work+0x714/0x1310
[ 1064.785177][ T71] process_one_work+0x78c/0x1310
[ 1064.785442][ T71] ? hlock_class+0x4e/0x130
[ 1064.785669][ T71] ? __pfx_process_one_work+0x10/0x10
[ 1064.785944][ T71] ? assign_work+0x16c/0x240
[ 1064.786182][ T71] worker_thread+0x73d/0x1010
[ 1064.786426][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 1064.786753][ T71] ? __pfx_worker_thread+0x10/0x10
[ 1064.787009][ T71] ? __pfx_worker_thread+0x10/0x10
[ 1064.787264][ T71] kthread+0x28f/0x360
[ 1064.787472][ T71] ? __pfx_kthread+0x10/0x10
[ 1064.787704][ T71] ret_from_fork+0x31/0x70
[ 1064.787930][ T71] ? __pfx_kthread+0x10/0x10
[ 1064.788173][ T71] ret_from_fork_asm+0x1b/0x30
[ 1064.788426][ T71]
[ 1064.788583][ T71]
[ 1064.788704][ T71] The buggy address belongs to the physical page:
[ 1064.789023][ T71] page:ffffea000026a000 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9a80
[ 1064.789532][ T71] flags: 0x80000000000000(node=0|zone=1)
[ 1064.789811][ T71] page_type: 0xffffffff()
[ 1064.790037][ T71] raw: 0080000000000000 ffff88802e601c38 ffff88802e601c38 0000000000000000
[ 1064.790473][ T71] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[ 1064.790891][ T71] page dumped because: kasan: bad access detected
[ 1064.791207][ T71]
[ 1064.791332][ T71] Memory state around the buggy address:
[ 1064.791610][ T71] ffff888009a80a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 1064.792006][ T71] ffff888009a80b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 1064.792403][ T71] >ffff888009a80b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 1064.792805][ T71] ^
[ 1064.793182][ T71] ffff888009a80c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 1064.793578][ T71] ffff888009a80c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 1064.793983][ T71] ==================================================================
[ 1064.794488][ T71] Disabling lock debugging due to kernel taint
# │ vxlan │ 4 │ 4 │ inherit 0x88 │ inherit 208 │ true │ OK │
# │ vxlan │ 4 │ 4 │ fixed 0x80 │ fixed 7 │ false │ OK │
# │ vxlan │ 4 │ 4 │ fixed 0xa4 │ fixed 49 │ true │ OK │
[ 1077.911374][ T71] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI
[ 1077.912019][ T71] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf]
[ 1077.912480][ T71] CPU: 1 PID: 71 Comm: kworker/u8:1 Tainted: G B 6.8.0-rc2-virtme #1
[ 1077.912953][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1077.913599][ T71] Workqueue: netns cleanup_net
[ 1077.913875][ T71] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan]
[ 1077.914249][ T71] Code: 00 00 00 48 b9 00 00 00 00 00 fc ff df 49 89 c0 48 89 44 24 08 49 c1 e8 03 4d 8d 24 08 eb 2c 48 8d 53 30 48 89 d0 48 c1 e8 03 <80> 3c 08 00 0f 85 e0 00 00 00 48 8b 43 30 49 89 dd 48 83 e8 30 49
[ 1077.915280][ T71] RSP: 0018:ffffc9000051f980 EFLAGS: 00010a07
[ 1077.915584][ T71] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000
[ 1077.916016][ T71] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009800c44
[ 1077.916411][ T71] RBP: 1ffff920000a3f33 R08: 1ffff11000a7c21a R09: ffffc9000051f9b8
[ 1077.916806][ T71] R10: ffffffffbb950f57 R11: ffff8880053e1000 R12: ffffed1000a7c21a
[ 1077.917201][ T71] R13: ffff888009800bc0 R14: ffff8880077a4000 R15: ffff8880053e1000
[ 1077.917598][ T71] FS: 0000000000000000(0000) GS:ffff88802e800000(0000) knlGS:0000000000000000
[ 1077.918057][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1077.918400][ T71] CR2: 00007fe0dd5f80e0 CR3: 0000000033534001 CR4: 0000000000770ef0
[ 1077.918800][ T71] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1077.919194][ T71] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 1077.919596][ T71] PKRU: 55555554
[ 1077.919775][ T71] Call Trace:
[ 1077.919952][ T71]
[ 1077.920104][ T71] ? die_addr+0x41/0xa0
[ 1077.920317][ T71] ? exc_general_protection+0x149/0x220
[ 1077.920616][ T71] ? asm_exc_general_protection+0x26/0x30
[ 1077.920925][ T71] ? vxlan_netdevice_event+0x19e/0x340 [vxlan]
[ 1077.921274][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan]
[ 1077.921636][ T71] ? nft_offload_netdev_event+0x158/0x3b0 [nf_tables]
[ 1077.922049][ T71] ? mirred_device_event+0x185/0x210 [act_mirred]
[ 1077.922397][ T71] notifier_call_chain+0x9a/0x290
[ 1077.922681][ T71] unregister_netdevice_many_notify+0x55a/0x1180
[ 1077.923037][ T71] ? mutex_is_locked+0x17/0x50
[ 1077.923299][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10
[ 1077.923649][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10
[ 1077.924001][ T71] ? __wake_up+0x44/0x60
[ 1077.924267][ T71] default_device_exit_batch+0x228/0x2c0
[ 1077.924571][ T71] ? __pfx_default_device_exit_batch+0x10/0x10
[ 1077.924894][ T71] ? mutex_is_locked+0x17/0x50
[ 1077.925160][ T71] ? nexthop_net_exit_batch_rtnl+0x83/0x210
[ 1077.925485][ T71] cleanup_net+0x4f3/0xb50
[ 1077.925738][ T71] ? lock_acquire+0x1c1/0x220
[ 1077.925987][ T71] ? __pfx_cleanup_net+0x10/0x10
[ 1077.926278][ T71] ? lock_acquire+0x1c1/0x220
[ 1077.926539][ T71] ? process_one_work+0x714/0x1310
[ 1077.926829][ T71] process_one_work+0x78c/0x1310
[ 1077.927087][ T71] ? hlock_class+0x4e/0x130
[ 1077.927343][ T71] ? __pfx_process_one_work+0x10/0x10
[ 1077.927641][ T71] ? assign_work+0x16c/0x240
[ 1077.927917][ T71] worker_thread+0x73d/0x1010
[ 1077.928165][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 1077.928537][ T71] ? __pfx_worker_thread+0x10/0x10
[ 1077.928826][ T71] ? __pfx_worker_thread+0x10/0x10
[ 1077.929106][ T71] kthread+0x28f/0x360
[ 1077.929322][ T71] ? __pfx_kthread+0x10/0x10
[ 1077.929576][ T71] ret_from_fork+0x31/0x70
[ 1077.929824][ T71] ? __pfx_kthread+0x10/0x10
[ 1077.930066][ T71] ret_from_fork_asm+0x1b/0x30
[ 1077.930317][ T71]
[ 1077.930473][ T71] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel ip6_gre ip_gre gre xt_mark nft_compat nf_tables libcrc32c sch_ingress act_mirred cls_basic sch_fq_codel
[ 1077.931867][ T71] ---[ end trace 0000000000000000 ]---
[ 1077.932249][ T71] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan]
[ 1077.932608][ T71] Code: 00 00 00 48 b9 00 00 00 00 00 fc ff df 49 89 c0 48 89 44 24 08 49 c1 e8 03 4d 8d 24 08 eb 2c 48 8d 53 30 48 89 d0 48 c1 e8 03 <80> 3c 08 00 0f 85 e0 00 00 00 48 8b 43 30 49 89 dd 48 83 e8 30 49
[ 1077.933683][ T71] RSP: 0018:ffffc9000051f980 EFLAGS: 00010a07
[ 1077.933992][ T71] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000
[ 1077.934495][ T71] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009800c44
[ 1077.934927][ T71] RBP: 1ffff920000a3f33 R08: 1ffff11000a7c21a R09: ffffc9000051f9b8
[ 1077.935448][ T71] R10: ffffffffbb950f57 R11: ffff8880053e1000 R12: ffffed1000a7c21a
[ 1077.935870][ T71] R13: ffff888009800bc0 R14: ffff8880077a4000 R15: ffff8880053e1000
[ 1077.936307][ T71] FS: 0000000000000000(0000) GS:ffff88802e800000(0000) knlGS:0000000000000000
[ 1077.936798][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1077.937145][ T71] CR2: 00007fe0dd5f80e0 CR3: 0000000033534001 CR4: 0000000000770ef0
[ 1077.937608][ T71] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1077.938025][ T71] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 1077.938465][ T71] PKRU: 55555554
[ 1077.938648][ T71] Kernel panic - not syncing: Fatal exception
[ 1077.939069][ T71] Kernel Offset: 0x36000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 1077.939647][ T71] ---[ end Kernel panic - not syncing: Fatal exception ]---
WAIT TIMEOUT stdout
Ctrl-C stdout
Ctrl-C stdout
WAIT TIMEOUT stdout