Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675104 - kernel 4.19.8: Undefined behaviour in ./include/linux/etherdevice.h:139:17
Summary: kernel 4.19.8: Undefined behaviour in ./include/linux/etherdevice.h:139:17
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-10 13:01 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 13:01:18 UTC
From dmesg:

[ 1444.974217] ================================================================================
[ 1444.974220] UBSAN: Undefined behaviour in ./include/linux/etherdevice.h:139:17
[ 1444.974221] load of misaligned address 00000000a426742c for type 'const u64'
[ 1444.974222] which requires 8 byte alignment
[ 1444.974224] CPU: 4 PID: 9228 Comm: Socket Thread Tainted: P           O    T 4.19.8-gentoo #4
[ 1444.974225] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1444.974225] Call Trace:
[ 1444.974231]  dump_stack+0xa1/0x11b
[ 1444.974234]  ubsan_epilogue+0x9/0x40
[ 1444.974236]  ubsan_type_mismatch_common+0x17b/0x190
[ 1444.974238]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1444.974240]  eth_type_trans+0x35a/0x510
[ 1444.974243]  loopback_xmit+0x161/0x480
[ 1444.974246]  dev_hard_start_xmit+0x111/0x4d0
[ 1444.974248]  ? validate_xmit_skb+0x4ab/0xcc0
[ 1444.974250]  ? refcount_inc_checked+0x6/0x50
[ 1444.974251]  __dev_queue_xmit+0xec3/0x2460
[ 1444.974254]  ? __local_bh_enable_ip+0x4e/0xa0
[ 1444.974255]  ? __neigh_create+0x712/0xf50
[ 1444.974257]  ? neigh_resolve_output+0x20d/0x810
[ 1444.974259]  ? ip_finish_output2+0x32b/0xa80
[ 1444.974261]  ip_finish_output2+0x32b/0xa80
[ 1444.974263]  ? ip_output+0xca/0x230
[ 1444.974264]  ip_output+0xca/0x230
[ 1444.974266]  ? ip_fragment.constprop.15+0x1b0/0x1b0
[ 1444.974267]  __tcp_transmit_skb+0xaee/0x2e00
[ 1444.974269]  tcp_connect+0x1506/0x3270
[ 1444.974271]  ? ip_route_output_key_hash+0x9e/0x130
[ 1444.974273]  tcp_v4_connect+0x6f2/0x14b0
[ 1444.974276]  ? follow_hugetlb_page+0x230/0xbd0
[ 1444.974277]  __inet_stream_connect+0x131/0x9d0
[ 1444.974279]  ? __inet_stream_connect+0x9d0/0x9d0
[ 1444.974280]  inet_stream_connect+0x36/0x80
[ 1444.974283]  __sys_connect+0xb8/0x190
[ 1444.974285]  __x64_sys_connect+0x2c/0x80
[ 1444.974287]  do_syscall_64+0x85/0x280
[ 1444.974289]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[ 1444.974291] RIP: 0033:0x7f6d7b986a9f
[ 1444.974292] Code: 44 00 00 89 54 24 0c 48 89 34 24 89 7c 24 08 e8 27 f7 ff ff 8b 54 24 0c 48 8b 34 24 41 89 c0 8b 7c 24 08 b8 2a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c 44 89 c7 89 44 24 08 e8 5d f7 ff ff 8b 44
[ 1444.974293] RSP: 002b:00007f6d61afc540 EFLAGS: 00000293 ORIG_RAX: 000000000000002a
[ 1444.974295] RAX: ffffffffffffffda RBX: 00007f6d61afc900 RCX: 00007f6d7b986a9f
[ 1444.974296] RDX: 0000000000000010 RSI: 00007f6d61afc900 RDI: 0000000000000095
[ 1444.974296] RBP: 00007f6d61afc900 R08: 0000000000000000 R09: 0000000000000007
[ 1444.974297] R10: 00007f6d61afc6a0 R11: 0000000000000293 R12: 00007f6d3af2d7f0
[ 1444.974298] R13: 0000000000000014 R14: 0000000000000010 R15: 0000000000000001
[ 1444.974299] ================================================================================


[ 1444.974300] ================================================================================
[ 1444.974313] UBSAN: Undefined behaviour in ./include/linux/etherdevice.h:351:14
[ 1444.974314] load of misaligned address 00000000a426742c for type 'const u64'
[ 1444.974314] which requires 8 byte alignment
[ 1444.974316] CPU: 4 PID: 9228 Comm: Socket Thread Tainted: P           O    T 4.19.8-gentoo #4
[ 1444.974316] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[ 1444.974316] Call Trace:
[ 1444.974318]  dump_stack+0xa1/0x11b
[ 1444.974320]  ubsan_epilogue+0x9/0x40
[ 1444.974321]  ubsan_type_mismatch_common+0x17b/0x190
[ 1444.974323]  __ubsan_handle_type_mismatch+0x43/0x60
[ 1444.974324]  eth_type_trans+0x422/0x510
[ 1444.974326]  loopback_xmit+0x161/0x480
[ 1444.974328]  dev_hard_start_xmit+0x111/0x4d0
[ 1444.974329]  ? validate_xmit_skb+0x4ab/0xcc0
[ 1444.974330]  ? refcount_inc_checked+0x6/0x50
[ 1444.974332]  __dev_queue_xmit+0xec3/0x2460
[ 1444.974333]  ? __local_bh_enable_ip+0x4e/0xa0
[ 1444.974335]  ? __neigh_create+0x712/0xf50
[ 1444.974336]  ? neigh_resolve_output+0x20d/0x810
[ 1444.974338]  ? ip_finish_output2+0x32b/0xa80
[ 1444.974339]  ip_finish_output2+0x32b/0xa80
[ 1444.974341]  ? ip_output+0xca/0x230
[ 1444.974342]  ip_output+0xca/0x230
[ 1444.974343]  ? ip_fragment.constprop.15+0x1b0/0x1b0
[ 1444.974345]  __tcp_transmit_skb+0xaee/0x2e00
[ 1444.974347]  tcp_connect+0x1506/0x3270
[ 1444.974348]  ? ip_route_output_key_hash+0x9e/0x130
[ 1444.974350]  tcp_v4_connect+0x6f2/0x14b0
[ 1444.974351]  ? follow_hugetlb_page+0x230/0xbd0
[ 1444.974353]  __inet_stream_connect+0x131/0x9d0
[ 1444.974354]  ? __inet_stream_connect+0x9d0/0x9d0
[ 1444.974355]  inet_stream_connect+0x36/0x80
[ 1444.974356]  __sys_connect+0xb8/0x190
[ 1444.974358]  __x64_sys_connect+0x2c/0x80
[ 1444.974360]  do_syscall_64+0x85/0x280
[ 1444.974361]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[ 1444.974362] RIP: 0033:0x7f6d7b986a9f
[ 1444.974363] Code: 44 00 00 89 54 24 0c 48 89 34 24 89 7c 24 08 e8 27 f7 ff ff 8b 54 24 0c 48 8b 34 24 41 89 c0 8b 7c 24 08 b8 2a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c 44 89 c7 89 44 24 08 e8 5d f7 ff ff 8b 44
[ 1444.974364] RSP: 002b:00007f6d61afc540 EFLAGS: 00000293 ORIG_RAX: 000000000000002a
[ 1444.974365] RAX: ffffffffffffffda RBX: 00007f6d61afc900 RCX: 00007f6d7b986a9f
[ 1444.974365] RDX: 0000000000000010 RSI: 00007f6d61afc900 RDI: 0000000000000095
[ 1444.974366] RBP: 00007f6d61afc900 R08: 0000000000000000 R09: 0000000000000007
[ 1444.974367] R10: 00007f6d61afc6a0 R11: 0000000000000293 R12: 00007f6d3af2d7f0
[ 1444.974367] R13: 0000000000000014 R14: 0000000000000010 R15: 0000000000000001
[ 1444.974368] ================================================================================
Comment 1 segmentation fault 2019-01-10 13:01:37 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:47:59 UTC
Detection of undefined behavior via the UndefinedBehaviorSanitizer can be reported upstream at https://bugzilla.kernel.org