Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675100 - kernel 4.19.8: kernel: Undefined behaviour in ./include/uapi/linux/swab.h:179:9
Summary: kernel 4.19.8: kernel: Undefined behaviour in ./include/uapi/linux/swab.h:179:9
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:52 UTC by segmentation fault
Modified: 2019-06-11 11:45 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:52:59 UTC
UBSAN messages from my dmesg output:

[ 1202.086307] ================================================================================
[ 1202.086308] UBSAN: Undefined behaviour in ./include/uapi/linux/swab.h:179:9
[ 1202.086309] load of misaligned address 0000000023eea967 for type 'const __u32'
[ 1202.086309] which requires 4 byte alignment
[ 1202.086310] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1202.086311] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1202.086311] Call Trace:
[ 1202.086312]  <IRQ>
[ 1202.086314]  dump_stack+0xa1/0x11b
[ 1202.086315]  ubsan_epilogue+0x9/0x40
[ 1202.086317]  ubsan_type_mismatch_common+0x17b/0x190
[ 1202.086319]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1202.086320]  tcp_sacktag_write_queue+0x27cd/0x2fd0
[ 1202.086323]  ? vprintk_emit+0xfc/0x330
[ 1202.086325]  tcp_ack+0xb66/0x2970
[ 1202.086327]  tcp_rcv_established+0x367/0x1350
[ 1202.086329]  tcp_v4_do_rcv+0x119/0x630
[ 1202.086330]  tcp_v4_rcv+0x1dec/0x2170
[ 1202.086332]  ip_local_deliver_finish+0x106/0x6a0
[ 1202.086334]  ip_local_deliver+0xc4/0x1c0
[ 1202.086335]  ? ip_sublist_rcv+0x7f0/0x7f0
[ 1202.086337]  ip_rcv+0x7b/0x100
[ 1202.086338]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1202.086339]  ? ip_local_deliver+0x1c0/0x1c0
[ 1202.086340]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1202.086342]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1202.086343]  netif_receive_skb_internal+0x42/0x180
[ 1202.086344]  napi_gro_receive+0x13e/0x1d0
[ 1202.086346]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1202.086348]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1202.086350]  net_rx_action+0x39b/0x11d0
[ 1202.086352]  __do_softirq+0x1ee/0x86e
[ 1202.086354]  irq_exit+0xae/0x110
[ 1202.086355]  do_IRQ+0xa1/0x150
[ 1202.086357]  common_interrupt+0xf/0xf
[ 1202.086357]  </IRQ>
[ 1202.086359] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1202.086360] 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
[ 1202.086360] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1202.086362] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1202.086362] RDX: 0000000000000096 RSI: 000000003161f9ae RDI: 0000000000000000
[ 1202.086363] RBP: ffffffff96b9b3d8 R08: 0000000000000000 R09: 0000000000000000
[ 1202.086364] R10: ffffb716000d7e08 R11: 0000000000000425 R12: 0000000000000007
[ 1202.086364] R13: 0000000000000004 R14: 00000117e1d26493 R15: 0000000000000000
[ 1202.086366]  ? cpuidle_enter_state+0x10f/0x650
[ 1202.086367]  do_idle+0x1ec/0x2c0
[ 1202.086368]  cpu_startup_entry+0x77/0x90
[ 1202.086370]  start_secondary+0x206/0x2e0
[ 1202.086371]  secondary_startup_64+0xb6/0xc0
[ 1202.086372] ================================================================================


[ 1202.086373] ================================================================================
[ 1202.086374] UBSAN: Undefined behaviour in ./include/uapi/linux/swab.h:179:9
[ 1202.086374] load of misaligned address 00000000dc38e923 for type 'const __u32'
[ 1202.086375] which requires 4 byte alignment
[ 1202.086376] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1202.086376] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1202.086377] Call Trace:
[ 1202.086377]  <IRQ>
[ 1202.086379]  dump_stack+0xa1/0x11b
[ 1202.086380]  ubsan_epilogue+0x9/0x40
[ 1202.086382]  ubsan_type_mismatch_common+0x17b/0x190
[ 1202.086383]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1202.086385]  tcp_sacktag_write_queue+0x27a7/0x2fd0
[ 1202.086386]  ? vprintk_emit+0xfc/0x330
[ 1202.086388]  tcp_ack+0xb66/0x2970
[ 1202.086390]  tcp_rcv_established+0x367/0x1350
[ 1202.086392]  tcp_v4_do_rcv+0x119/0x630
[ 1202.086393]  tcp_v4_rcv+0x1dec/0x2170
[ 1202.086395]  ip_local_deliver_finish+0x106/0x6a0
[ 1202.086396]  ip_local_deliver+0xc4/0x1c0
[ 1202.086398]  ? ip_sublist_rcv+0x7f0/0x7f0
[ 1202.086399]  ip_rcv+0x7b/0x100
[ 1202.086400]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1202.086401]  ? ip_local_deliver+0x1c0/0x1c0
[ 1202.086402]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1202.086404]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1202.086405]  netif_receive_skb_internal+0x42/0x180
[ 1202.086406]  napi_gro_receive+0x13e/0x1d0
[ 1202.086408]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1202.086410]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1202.086412]  net_rx_action+0x39b/0x11d0
[ 1202.086414]  __do_softirq+0x1ee/0x86e
[ 1202.086416]  irq_exit+0xae/0x110
[ 1202.086417]  do_IRQ+0xa1/0x150
[ 1202.086418]  common_interrupt+0xf/0xf
[ 1202.086419]  </IRQ>
[ 1202.086420] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1202.086421] 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
[ 1202.086422] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1202.086423] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1202.086423] RDX: 0000000000000096 RSI: 000000003161f9ae RDI: 0000000000000000
[ 1202.086424] RBP: ffffffff96b9b3d8 R08: 0000000000000000 R09: 0000000000000000
[ 1202.086425] R10: ffffb716000d7e08 R11: 0000000000000425 R12: 0000000000000007
[ 1202.086425] R13: 0000000000000004 R14: 00000117e1d26493 R15: 0000000000000000
[ 1202.086427]  ? cpuidle_enter_state+0x10f/0x650
[ 1202.086428]  do_idle+0x1ec/0x2c0
[ 1202.086429]  cpu_startup_entry+0x77/0x90
[ 1202.086431]  start_secondary+0x206/0x2e0
[ 1202.086432]  secondary_startup_64+0xb6/0xc0
[ 1202.086433] ================================================================================


[ 1202.086434] ================================================================================
[ 1202.086434] UBSAN: Undefined behaviour in ./include/uapi/linux/swab.h:179:9
[ 1202.086435] load of misaligned address 0000000023eea967 for type 'const __u32'
[ 1202.086435] which requires 4 byte alignment
[ 1202.086436] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P           O    T 4.19.8-gentoo #4
[ 1202.086437] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1202.086437] Call Trace:
[ 1202.086438]  <IRQ>
[ 1202.086439]  dump_stack+0xa1/0x11b
[ 1202.086441]  ubsan_epilogue+0x9/0x40
[ 1202.086442]  ubsan_type_mismatch_common+0x17b/0x190
[ 1202.086444]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1202.086445]  tcp_sacktag_write_queue+0x2c62/0x2fd0
[ 1202.086447]  tcp_ack+0xb66/0x2970
[ 1202.086449]  tcp_rcv_established+0x367/0x1350
[ 1202.086450]  tcp_v4_do_rcv+0x119/0x630
[ 1202.086452]  tcp_v4_rcv+0x1dec/0x2170
[ 1202.086454]  ip_local_deliver_finish+0x106/0x6a0
[ 1202.086455]  ip_local_deliver+0xc4/0x1c0
[ 1202.086456]  ? ip_sublist_rcv+0x7f0/0x7f0
[ 1202.086458]  ip_rcv+0x7b/0x100
[ 1202.086459]  ? nf_hook.constprop.9+0x2f0/0x2f0
[ 1202.086460]  ? ip_local_deliver+0x1c0/0x1c0
[ 1202.086461]  __netif_receive_skb_one_core+0x6b/0xd0
[ 1202.086463]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1202.086464]  netif_receive_skb_internal+0x42/0x180
[ 1202.086465]  napi_gro_receive+0x13e/0x1d0
[ 1202.086467]  ? swiotlb_sync_single_for_cpu+0x10/0x10
[ 1202.086469]  rtl8169_poll+0x3a2/0x1630 [r8169]
[ 1202.086470]  net_rx_action+0x39b/0x11d0
[ 1202.086472]  __do_softirq+0x1ee/0x86e
[ 1202.086474]  irq_exit+0xae/0x110
[ 1202.086475]  do_IRQ+0xa1/0x150
[ 1202.086477]  common_interrupt+0xf/0xf
[ 1202.086477]  </IRQ>
[ 1202.086479] RIP: 0010:cpuidle_enter_state+0x116/0x650
[ 1202.086479] 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
[ 1202.086480] RSP: 0018:ffffb716000d7e48 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9
[ 1202.086481] RAX: 0000000000000000 RBX: ffffd715ffd08a00 RCX: 000000000000001f
[ 1202.086482] RDX: 0000000000000096 RSI: 000000003161f9ae RDI: 0000000000000000
[ 1202.086482] RBP: ffffffff96b9b3d8 R08: 0000000000000000 R09: 0000000000000000
[ 1202.086483] R10: ffffb716000d7e08 R11: 0000000000000425 R12: 0000000000000007
[ 1202.086483] R13: 0000000000000004 R14: 00000117e1d26493 R15: 0000000000000000
[ 1202.086485]  ? cpuidle_enter_state+0x10f/0x650
[ 1202.086486]  do_idle+0x1ec/0x2c0
[ 1202.086487]  cpu_startup_entry+0x77/0x90
[ 1202.086489]  start_secondary+0x206/0x2e0
[ 1202.086490]  secondary_startup_64+0xb6/0xc0
[ 1202.086491] ================================================================================
Comment 1 segmentation fault 2019-01-10 12:53:35 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 2 Mike Pagano gentoo-dev 2019-06-11 11:45:10 UTC
Detection of undefined behavior via the UndefinedBehaviorSanitizer can be reported upstream at https://bugzilla.kernel.org