Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675108 - kernel 4.19.8: Undefined behaviour in net/unix/garbage.c:301:2
Summary: kernel 4.19.8: Undefined behaviour in net/unix/garbage.c:301:2
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:11 UTC by segmentation fault
Modified: 2019-06-11 11:48 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:11:19 UTC
From dmesg:

[49842.288770] ================================================================================
[49842.288773] UBSAN: Undefined behaviour in net/unix/garbage.c:301:2
[49842.288775] member access within misaligned address 00000000ad237f88 for type 'struct unix_sock'
[49842.288776] which requires 64 byte alignment
[49842.288779] CPU: 3 PID: 9668 Comm: FS Broker 9666 Tainted: P           O    T 4.19.8-gentoo #4
[49842.288780] Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017
[49842.288780] Call Trace:
[49842.288789]  dump_stack+0xa1/0x11b
[49842.288792]  ubsan_epilogue+0x9/0x40
[49842.288794]  ubsan_type_mismatch_common+0x17b/0x190
[49842.288797]  __ubsan_handle_type_mismatch+0x43/0x60
[49842.288800]  unix_gc+0x944/0xc40
[49842.288803]  unix_release_sock+0x2e1/0x660
[49842.288807]  ? __sock_release+0x210/0x210
[49842.288809]  unix_release+0x19/0x50
[49842.288810]  __sock_release+0x6d/0x210
[49842.288813]  sock_close+0xc/0x10
[49842.288816]  __fput+0x163/0x5d0
[49842.288819]  task_work_run+0xa1/0x140
[49842.288822]  exit_to_usermode_loop+0x131/0x170
[49842.288824]  do_syscall_64+0x1b2/0x280
[49842.288827]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[49842.288829] RIP: 0033:0x7f6d7b9866ee
[49842.288831] Code: 33 34 25 28 00 00 00 75 69 48 83 c4 28 c3 66 0f 1f 44 00 00 89 7c 24 0c e8 cf fa ff ff 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2d 89 d7 89 44 24 0c e8 0f fb ff ff 8b 44 24
[49842.288833] RSP: 002b:00007f6d38cf8be0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
[49842.288835] RAX: 0000000000000000 RBX: 00000000000000a2 RCX: 00007f6d7b9866ee
[49842.288836] RDX: 0000000000000000 RSI: 00007f6d38cf8b90 RDI: 000000000000009d
[49842.288837] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000020
[49842.288838] R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000010
[49842.288839] R13: 00007f6d38cfae90 R14: 00007f6d38cfbea0 R15: 00007f6d40ba96f0
[49842.288841] ================================================================================


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 1 Mike Pagano gentoo-dev 2019-06-11 11:48:17 UTC
Detection of undefined behavior via the UndefinedBehaviorSanitizer can be reported upstream at https://bugzilla.kernel.org