Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675102 - kernel 4.19.8: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:876:28
Summary: kernel 4.19.8: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-10 12:57 UTC by segmentation fault
Modified: 2019-06-11 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description segmentation fault 2019-01-10 12:57:31 UTC
UBSAN message from dmesg (boot messages):

[ 1262.162171] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:876:28
[ 1262.162172] member access within misaligned address 00000000a7b76105 for type 'const struct tcphdr'
[ 1262.162173] which requires 4 byte alignment
[ 1262.162175] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1262.162176] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1262.162176] Call Trace:
[ 1262.162178]  <IRQ>
[ 1262.162183]  dump_stack+0xa1/0x11b
[ 1262.162185]  ubsan_epilogue+0x9/0x40
[ 1262.162188]  ubsan_type_mismatch_common+0x17b/0x190
[ 1262.162189]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162197]  tcp_packet+0x2202/0x4d30 [nf_conntrack]
[ 1262.162200]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162204]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1262.162208]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1262.162212]  nf_hook_slow+0x61/0x120
[ 1262.162213]  ip_rcv+0xd4/0x100
[ 1262.162215]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1262.162216]  ? ip_local_deliver+0x1c0/0x1c0
[ 1262.162218]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1262.162221]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162222]  netif_receive_skb_internal+0x42/0x180
[ 1262.162223]  napi_gro_receive+0x13e/0x1d0
[ 1262.162225]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162228]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1262.162230]  net_rx_action+0x39b/0x11d0
[ 1262.162233]  __do_softirq+0x1ee/0x86e
[ 1262.162235]  irq_exit+0xae/0x110
[ 1262.162237]  do_IRQ+0xa1/0x150
[ 1262.162239]  common_interrupt+0xf/0xf
[ 1262.162240]  </IRQ>
[ 1262.162243] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1262.162245] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1262.162245] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1262.162247] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1262.162248] RDX: 000000000000009d RSI: 000000003161f9ae RDI: 0000000000000000
[ 1262.162248] RBP: ffffffff96b9b378 R08: 0000000000000000 R09: 0000000000000006
[ 1262.162249] R10: ffffb716000d7e08 R11: 0000000000000000 R12: 0000000000000006
[ 1262.162250] R13: 0000000000000004 R14: 00000125dea39f2b R15: 0000000000000000
[ 1262.162252]  ? cpuidle_enter_state+0x10f/0x650
[ 1262.162253]  do_idle+0x1ec/0x2c0
[ 1262.162255]  cpu_startup_entry+0x77/0x90
[ 1262.162257]  start_secondary+0x206/0x2e0
[ 1262.162259]  secondary_startup_64+0xb6/0xc0
[ 1262.162260] ================================================================================


[ 1262.162261] ================================================================================
[ 1262.162262] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:878:28
[ 1262.162263] member access within misaligned address 00000000a7b76105 for type 'const struct tcphdr'
[ 1262.162263] which requires 4 byte alignment
[ 1262.162264] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1262.162265] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1262.162265] Call Trace:
[ 1262.162266]  <IRQ>
[ 1262.162267]  dump_stack+0xa1/0x11b
[ 1262.162269]  ubsan_epilogue+0x9/0x40
[ 1262.162271]  ubsan_type_mismatch_common+0x17b/0x190
[ 1262.162272]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162277]  tcp_packet+0x21ab/0x4d30 [nf_conntrack]
[ 1262.162279]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162283]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1262.162287]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1262.162289]  nf_hook_slow+0x61/0x120
[ 1262.162291]  ip_rcv+0xd4/0x100
[ 1262.162292]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1262.162293]  ? ip_local_deliver+0x1c0/0x1c0
[ 1262.162295]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1262.162296]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162297]  netif_receive_skb_internal+0x42/0x180
[ 1262.162299]  napi_gro_receive+0x13e/0x1d0
[ 1262.162300]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162303]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1262.162304]  net_rx_action+0x39b/0x11d0
[ 1262.162306]  __do_softirq+0x1ee/0x86e
[ 1262.162308]  irq_exit+0xae/0x110
[ 1262.162310]  do_IRQ+0xa1/0x150
[ 1262.162311]  common_interrupt+0xf/0xf
[ 1262.162312]  </IRQ>
[ 1262.162313] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1262.162314] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1262.162314] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1262.162316] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1262.162316] RDX: 000000000000009d RSI: 000000003161f9ae RDI: 0000000000000000
[ 1262.162317] RBP: ffffffff96b9b378 R08: 0000000000000000 R09: 0000000000000006
[ 1262.162317] R10: ffffb716000d7e08 R11: 0000000000000000 R12: 0000000000000006
[ 1262.162318] R13: 0000000000000004 R14: 00000125dea39f2b R15: 0000000000000000
[ 1262.162320]  ? cpuidle_enter_state+0x10f/0x650
[ 1262.162321]  do_idle+0x1ec/0x2c0
[ 1262.162322]  cpu_startup_entry+0x77/0x90
[ 1262.162324]  start_secondary+0x206/0x2e0
[ 1262.162325]  secondary_startup_64+0xb6/0xc0
[ 1262.162326] ================================================================================


[ 1262.162327] ================================================================================
[ 1262.162327] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:336:36
[ 1262.162328] member access within misaligned address 00000000a7b76105 for type 'const struct tcphdr'
[ 1262.162328] which requires 4 byte alignment
[ 1262.162329] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1262.162330] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1262.162330] Call Trace:
[ 1262.162331]  <IRQ>
[ 1262.162332]  dump_stack+0xa1/0x11b
[ 1262.162334]  ubsan_epilogue+0x9/0x40
[ 1262.162336]  ubsan_type_mismatch_common+0x17b/0x190
[ 1262.162337]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162342]  tcp_packet+0x218d/0x4d30 [nf_conntrack]
[ 1262.162344]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162347]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1262.162351]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1262.162354]  nf_hook_slow+0x61/0x120
[ 1262.162355]  ip_rcv+0xd4/0x100
[ 1262.162356]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1262.162358]  ? ip_local_deliver+0x1c0/0x1c0
[ 1262.162358]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1262.162360]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162361]  netif_receive_skb_internal+0x42/0x180
[ 1262.162362]  napi_gro_receive+0x13e/0x1d0
[ 1262.162364]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162367]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1262.162368]  net_rx_action+0x39b/0x11d0
[ 1262.162370]  __do_softirq+0x1ee/0x86e
[ 1262.162372]  irq_exit+0xae/0x110
[ 1262.162373]  do_IRQ+0xa1/0x150
[ 1262.162375]  common_interrupt+0xf/0xf
[ 1262.162375]  </IRQ>
[ 1262.162376] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1262.162377] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1262.162378] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1262.162379] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1262.162380] RDX: 000000000000009d RSI: 000000003161f9ae RDI: 0000000000000000
[ 1262.162380] RBP: ffffffff96b9b378 R08: 0000000000000000 R09: 0000000000000006
[ 1262.162381] R10: ffffb716000d7e08 R11: 0000000000000000 R12: 0000000000000006
[ 1262.162381] R13: 0000000000000004 R14: 00000125dea39f2b R15: 0000000000000000
[ 1262.162383]  ? cpuidle_enter_state+0x10f/0x650
[ 1262.162384]  do_idle+0x1ec/0x2c0
[ 1262.162385]  cpu_startup_entry+0x77/0x90
[ 1262.162387]  start_secondary+0x206/0x2e0
[ 1262.162388]  secondary_startup_64+0xb6/0xc0
[ 1262.162389] ================================================================================
Comment 1 segmentation fault 2019-01-10 12:58:40 UTC
[ 1262.162390] ================================================================================
[ 1262.162390] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:337:16
[ 1262.162391] member access within misaligned address 00000000a7b76105 for type 'const struct tcphdr'
[ 1262.162392] which requires 4 byte alignment
[ 1262.162392] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1262.162393] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1262.162393] Call Trace:
[ 1262.162394]  <IRQ>
[ 1262.162395]  dump_stack+0xa1/0x11b
[ 1262.162397]  ubsan_epilogue+0x9/0x40
[ 1262.162398]  ubsan_type_mismatch_common+0x17b/0x190
[ 1262.162400]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162404]  tcp_packet+0x2109/0x4d30 [nf_conntrack]
[ 1262.162406]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162410]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1262.162414]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1262.162416]  nf_hook_slow+0x61/0x120
[ 1262.162418]  ip_rcv+0xd4/0x100
[ 1262.162419]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1262.162420]  ? ip_local_deliver+0x1c0/0x1c0
[ 1262.162421]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1262.162423]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162424]  netif_receive_skb_internal+0x42/0x180
[ 1262.162425]  napi_gro_receive+0x13e/0x1d0
[ 1262.162427]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162429]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1262.162430]  net_rx_action+0x39b/0x11d0
[ 1262.162433]  __do_softirq+0x1ee/0x86e
[ 1262.162434]  irq_exit+0xae/0x110
[ 1262.162436]  do_IRQ+0xa1/0x150
[ 1262.162437]  common_interrupt+0xf/0xf
[ 1262.162438]  </IRQ>
[ 1262.162439] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1262.162440] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1262.162440] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1262.162441] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1262.162442] RDX: 000000000000009d RSI: 000000003161f9ae RDI: 0000000000000000
[ 1262.162443] RBP: ffffffff96b9b378 R08: 0000000000000000 R09: 0000000000000006
[ 1262.162443] R10: ffffb716000d7e08 R11: 0000000000000000 R12: 0000000000000006
[ 1262.162444] R13: 0000000000000004 R14: 00000125dea39f2b R15: 0000000000000000
[ 1262.162445]  ? cpuidle_enter_state+0x10f/0x650
[ 1262.162447]  do_idle+0x1ec/0x2c0
[ 1262.162448]  cpu_startup_entry+0x77/0x90
[ 1262.162449]  start_secondary+0x206/0x2e0
[ 1262.162451]  secondary_startup_64+0xb6/0xc0
[ 1262.162452] ================================================================================


[ 1262.162452] ================================================================================
[ 1262.162453] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:337:38
[ 1262.162454] member access within misaligned address 00000000a7b76105 for type 'const struct tcphdr'
[ 1262.162454] which requires 4 byte alignment
[ 1262.162455] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1262.162455] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1262.162456] Call Trace:
[ 1262.162456]  <IRQ>
[ 1262.162458]  dump_stack+0xa1/0x11b
[ 1262.162459]  ubsan_epilogue+0x9/0x40
[ 1262.162461]  ubsan_type_mismatch_common+0x17b/0x190
[ 1262.162462]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162467]  tcp_packet+0x20e5/0x4d30 [nf_conntrack]
[ 1262.162469]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162473]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1262.162477]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1262.162479]  nf_hook_slow+0x61/0x120
[ 1262.162480]  ip_rcv+0xd4/0x100
[ 1262.162481]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1262.162483]  ? ip_local_deliver+0x1c0/0x1c0
[ 1262.162484]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1262.162485]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162486]  netif_receive_skb_internal+0x42/0x180
[ 1262.162487]  napi_gro_receive+0x13e/0x1d0
[ 1262.162489]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162491]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1262.162493]  net_rx_action+0x39b/0x11d0
[ 1262.162495]  __do_softirq+0x1ee/0x86e
[ 1262.162497]  irq_exit+0xae/0x110
[ 1262.162498]  do_IRQ+0xa1/0x150
[ 1262.162499]  common_interrupt+0xf/0xf
[ 1262.162500]  </IRQ>
[ 1262.162501] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1262.162502] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1262.162503] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1262.162504] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1262.162504] RDX: 000000000000009d RSI: 000000003161f9ae RDI: 0000000000000000
[ 1262.162505] RBP: ffffffff96b9b378 R08: 0000000000000000 R09: 0000000000000006
[ 1262.162505] R10: ffffb716000d7e08 R11: 0000000000000000 R12: 0000000000000006
[ 1262.162506] R13: 0000000000000004 R14: 00000125dea39f2b R15: 0000000000000000
[ 1262.162508]  ? cpuidle_enter_state+0x10f/0x650
[ 1262.162509]  do_idle+0x1ec/0x2c0
[ 1262.162510]  cpu_startup_entry+0x77/0x90
[ 1262.162512]  start_secondary+0x206/0x2e0
[ 1262.162513]  secondary_startup_64+0xb6/0xc0
[ 1262.162514] ================================================================================


[ 1262.162514] ================================================================================
[ 1262.162515] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:879:28
[ 1262.162516] member access within misaligned address 00000000a7b76105 for type 'const struct tcphdr'
[ 1262.162516] which requires 4 byte alignment
[ 1262.162517] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1262.162517] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1262.162518] Call Trace:
[ 1262.162518]  <IRQ>
[ 1262.162520]  dump_stack+0xa1/0x11b
[ 1262.162521]  ubsan_epilogue+0x9/0x40
[ 1262.162523]  ubsan_type_mismatch_common+0x17b/0x190
[ 1262.162524]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162529]  tcp_packet+0x20a6/0x4d30 [nf_conntrack]
[ 1262.162531]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1262.162534]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1262.162538]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1262.162540]  nf_hook_slow+0x61/0x120
[ 1262.162542]  ip_rcv+0xd4/0x100
[ 1262.162543]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1262.162544]  ? ip_local_deliver+0x1c0/0x1c0
[ 1262.162545]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1262.162547]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162548]  netif_receive_skb_internal+0x42/0x180
[ 1262.162549]  napi_gro_receive+0x13e/0x1d0
[ 1262.162551]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1262.162553]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1262.162554]  net_rx_action+0x39b/0x11d0
[ 1262.162557]  __do_softirq+0x1ee/0x86e
[ 1262.162558]  irq_exit+0xae/0x110
[ 1262.162560]  do_IRQ+0xa1/0x150
[ 1262.162561]  common_interrupt+0xf/0xf
[ 1262.162562]  </IRQ>
[ 1262.162563] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1262.162564] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1262.162564] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1262.162565] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1262.162566] RDX: 000000000000009d RSI: 000000003161f9ae RDI: 0000000000000000
[ 1262.162566] RBP: ffffffff96b9b378 R08: 0000000000000000 R09: 0000000000000006
[ 1262.162567] R10: ffffb716000d7e08 R11: 0000000000000000 R12: 0000000000000006
[ 1262.162568] R13: 0000000000000004 R14: 00000125dea39f2b R15: 0000000000000000
[ 1262.162569]  ? cpuidle_enter_state+0x10f/0x650
[ 1262.162570]  do_idle+0x1ec/0x2c0
[ 1262.162571]  cpu_startup_entry+0x77/0x90
[ 1262.162573]  start_secondary+0x206/0x2e0
[ 1262.162574]  secondary_startup_64+0xb6/0xc0
[ 1262.162575] ================================================================================
Comment 2 segmentation fault 2019-01-10 12:59:19 UTC
System info:

Portage 2.3.51 (python 3.6.5-final-0, hardened/linux/amd64, gcc-7.3.0, glibc-2.27-r6, 4.19.8-gentoo x86_64)
=================================================================
System uname: Linux-4.19.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    40976340 total,  16220132 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 13 Dec 2018 12:15:01 +0000
Head commit of repository gentoo: 057645ffcdb86bd24e7c965f6e1aa03db33abb4c
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.12.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4-r2::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Comment 3 segmentation fault 2019-01-10 13:03:42 UTC
[ 1604.040689] ================================================================================
[ 1604.040691] UBSAN: Undefined behaviour in net/netfilter/nf_conntrack_proto_tcp.c:968:17
[ 1604.040692] member access within misaligned address 000000004afcfbcc for type 'const struct tcphdr'
[ 1604.040693] which requires 4 byte alignment
[ 1604.040695] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1604.040696] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1604.040696] Call Trace:
[ 1604.040698]  <IRQ>
[ 1604.040703]  dump_stack+0xa1/0x11b
[ 1604.040706]  ubsan_epilogue+0x9/0x40
[ 1604.040708]  ubsan_type_mismatch_common+0x17b/0x190
[ 1604.040710]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1604.040718]  tcp_packet+0x2615/0x4d30 [nf_conntrack]
[ 1604.040722]  ? udp_queue_rcv_skb+0x4a4/0xf50
[ 1604.040724]  ? __ubsan_handle_type_mismatch+0x43/0x60
[ 1604.040728]  ? nf_ct_get_tuple+0x403/0x690 [nf_conntrack]
[ 1604.040733]  nf_conntrack_in+0x2b6/0x900 [nf_conntrack]
[ 1604.040736]  nf_hook_slow+0x61/0x120
[ 1604.040738]  ip_rcv+0xd4/0x100
[ 1604.040740]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1604.040741]  ? ip_local_deliver+0x1c0/0x1c0
[ 1604.040743]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1604.040746]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1604.040760]  netif_receive_skb_internal+0x42/0x180
[ 1604.040761]  napi_gro_receive+0x13e/0x1d0
[ 1604.040763]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1604.040768]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1604.040770]  net_rx_action+0x39b/0x11d0
[ 1604.040772]  __do_softirq+0x1ee/0x86e
[ 1604.040775]  irq_exit+0xae/0x110
[ 1604.040776]  smp_apic_timer_interrupt+0xb3/0x270
[ 1604.040778]  apic_timer_interrupt+0xf/0x20
[ 1604.040779]  </IRQ>
[ 1604.040781] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1604.040783] Code: 48 c7 44 24 18 00 00 00 00 0f 1f 44 00 00 31 ff e8 9f 82 ba fe 45 84 ff 0f 85 5d 02 00 00 e8 61 2d d6 fe fb 66 0f 1f 44 00 00 <4c> 8b 2c 24 4d 29 f5 0f 80 fa 02 00 00 4c 89 e8 48 ba cf f7 53 e3
[ 1604.040784] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
[ 1604.040785] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1604.040786] RDX: 00000000000000c5 RSI: 000000003161f9ae RDI: 0000000000000000
[ 1604.040787] RBP: ffffffff96b9b438 R08: 0000000000000000 R09: 0000000000000000
[ 1604.040787] R10: ffffb716000d7e08 R11: ffffa4454dc82ef0 R12: 0000000000000008
[ 1604.040788] R13: 0000000000000004 R14: 000001757813c43f R15: 0000000000000000
[ 1604.040790]  ? cpuidle_enter_state+0x10f/0x650
[ 1604.040792]  do_idle+0x1ec/0x2c0
[ 1604.040793]  cpu_startup_entry+0x77/0x90
[ 1604.040795]  start_secondary+0x206/0x2e0
[ 1604.040797]  secondary_startup_64+0xb6/0xc0
[ 1604.040798] ================================================================================
Comment 4 Mike Pagano gentoo-dev 2019-06-11 11:47:51 UTC
Detection of undefined behavior via the UndefinedBehaviorSanitizer can be reported upstream at https://bugzilla.kernel.org