Various 'undefined behaviour' messages for net/core/dev.c: kernel: ================================================================================ kernel: UBSAN: Undefined behaviour in net/core/dev.c:9475:2 kernel: member access within misaligned address 00000000c464e914 for type 'struct net_device' kernel: which requires 64 byte alignment kernel: CPU: 4 PID: 8745 Comm: kworker/u16:0 Tainted: P O T 4.19.8-gentoo #1 kernel: Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017 kernel: Workqueue: netns cleanup_net kernel: Call Trace: kernel: dump_stack+0xa1/0x11b kernel: ubsan_epilogue+0x9/0x40 kernel: ubsan_type_mismatch_common+0x17b/0x190 kernel: __ubsan_handle_type_mismatch+0x43/0x60 kernel: default_device_exit+0x13b/0x1a0 kernel: ? dev_change_net_namespace+0xa50/0xa50 kernel: ops_exit_list+0x52/0x110 kernel: cleanup_net+0x293/0x640 kernel: ? _raw_spin_unlock_irq+0xa/0x20 kernel: process_one_work+0x3a3/0xd70 kernel: worker_thread+0xba/0xd90 kernel: ? __schedule+0x4b6/0x1740 kernel: ? process_one_work+0xd70/0xd70 kernel: ? process_one_work+0xd70/0xd70 kernel: kthread+0x170/0x230 kernel: ? kthread_create_worker_on_cpu+0x70/0x70 kernel: ret_from_fork+0x3a/0x50 kernel: ================================================================================ ================================================================================ kernel: UBSAN: Undefined behaviour in net/core/dev.c:7941:2 kernel: member access within misaligned address 00000000ed2239aa for type 'struct net_device' kernel: which requires 64 byte alignment kernel: CPU: 4 PID: 8745 Comm: kworker/u16:0 Tainted: P O T 4.19.8-gentoo #1 kernel: Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017 kernel: Workqueue: netns cleanup_net kernel: Call Trace: kernel: dump_stack+0xa1/0x11b kernel: ubsan_epilogue+0x9/0x40 kernel: ubsan_type_mismatch_common+0x17b/0x190 kernel: __ubsan_handle_type_mismatch+0x43/0x60 kernel: rollback_registered_many+0x8b6/0xb80 kernel: ? printk+0x4d/0x69 kernel: ? __rtnl_unlock+0x22/0x60 kernel: ? netdev_run_todo+0xa9/0x630 kernel: unregister_netdevice_many+0x48/0x2d0 kernel: default_device_exit_batch+0x1cc/0x2f0 kernel: ? init_wait_entry+0xe0/0xe0 kernel: cleanup_net+0x293/0x640 kernel: ? _raw_spin_unlock_irq+0xa/0x20 kernel: process_one_work+0x3a3/0xd70 kernel: worker_thread+0xba/0xd90 kernel: ? __schedule+0x4b6/0x1740 kernel: ? process_one_work+0xd70/0xd70 kernel: ? process_one_work+0xd70/0xd70 kernel: kthread+0x170/0x230 kernel: ? kthread_create_worker_on_cpu+0x70/0x70 kernel: ret_from_fork+0x3a/0x50 kernel: ================================================================================ ================================================================================ kernel: UBSAN: Undefined behaviour in net/core/dev.c:1495:2 kernel: member access within misaligned address 00000000578e8c1d for type 'struct net_device' kernel: which requires 64 byte alignment kernel: CPU: 4 PID: 8745 Comm: kworker/u16:0 Tainted: P O T 4.19.8-gentoo #1 kernel: Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017 kernel: Workqueue: netns cleanup_net kernel: Call Trace: kernel: dump_stack+0xa1/0x11b kernel: ubsan_epilogue+0x9/0x40 kernel: ubsan_type_mismatch_common+0x17b/0x190 kernel: __ubsan_handle_type_mismatch+0x43/0x60 kernel: dev_close_many+0x3ab/0x3f0 kernel: rollback_registered_many+0x21d/0xb80 kernel: ? printk+0x4d/0x69 kernel: ? __rtnl_unlock+0x22/0x60 kernel: ? netdev_run_todo+0xa9/0x630 kernel: unregister_netdevice_many+0x48/0x2d0 kernel: default_device_exit_batch+0x1cc/0x2f0 kernel: ? init_wait_entry+0xe0/0xe0 kernel: cleanup_net+0x293/0x640 kernel: ? _raw_spin_unlock_irq+0xa/0x20 kernel: process_one_work+0x3a3/0xd70 kernel: worker_thread+0xba/0xd90 kernel: ? __schedule+0x4b6/0x1740 kernel: ? process_one_work+0xd70/0xd70 kernel: ? process_one_work+0xd70/0xd70 kernel: kthread+0x170/0x230 kernel: ? kthread_create_worker_on_cpu+0x70/0x70 kernel: ret_from_fork+0x3a/0x50 kernel: ================================================================================ ================================================================================ kernel: UBSAN: Undefined behaviour in net/core/dev.c:1501:2 kernel: member access within misaligned address 00000000578e8c1d for type 'struct net_device' kernel: which requires 64 byte alignment kernel: CPU: 5 PID: 8745 Comm: kworker/u16:0 Tainted: P O T 4.19.8-gentoo #1 kernel: Hardware name: ASUSTeK COMPUTER INC. G752VY/G752VY, BIOS G752VY.304 06/29/2017 kernel: Workqueue: netns cleanup_net kernel: Call Trace: kernel: dump_stack+0xa1/0x11b kernel: ubsan_epilogue+0x9/0x40 kernel: ubsan_type_mismatch_common+0x17b/0x190 kernel: __ubsan_handle_type_mismatch+0x43/0x60 kernel: dev_close_many+0x2fb/0x3f0 kernel: rollback_registered_many+0x21d/0xb80 kernel: ? printk+0x4d/0x69 kernel: ? __rtnl_unlock+0x22/0x60 kernel: ? netdev_run_todo+0xa9/0x630 kernel: unregister_netdevice_many+0x48/0x2d0 kernel: default_device_exit_batch+0x1cc/0x2f0 kernel: ? init_wait_entry+0xe0/0xe0 kernel: cleanup_net+0x293/0x640 kernel: ? _raw_spin_unlock_irq+0xa/0x20 kernel: process_one_work+0x3a3/0xd70 kernel: worker_thread+0xba/0xd90 kernel: ? __schedule+0x4b6/0x1740 kernel: ? process_one_work+0xd70/0xd70 kernel: ? process_one_work+0xd70/0xd70 kernel: kthread+0x170/0x230 kernel: ? kthread_create_worker_on_cpu+0x70/0x70 kernel: ret_from_fork+0x3a/0x50 kernel: ================================================================================ 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
Detection of undefined behavior via the UndefinedBehaviorSanitizer can be reported upstream at https://bugzilla.kernel.org