From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934193AbcAZKJl (ORCPT ); Tue, 26 Jan 2016 05:09:41 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:33746 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934179AbcAZKI1 (ORCPT ); Tue, 26 Jan 2016 05:08:27 -0500 Date: Tue, 26 Jan 2016 10:08:22 +0000 From: Chris Bainbridge To: linux-kernel@vger.kernel.org Cc: aryabinin@virtuozzo.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org Subject: UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:2 Message-ID: <20160126100822.GA5054@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Booting 4.5.0-rc1 with new UBSAN checker enabled: [ 3.805449] ================================================================================ [ 3.805453] UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:2 [ 3.805455] signed integer overflow: [ 3.805456] -1720106381 + -1531247276 cannot be represented in type 'int' [ 3.805460] CPU: 3 PID: 3235 Comm: cups-browsed Not tainted 4.5.0-rc1 #252 [ 3.805461] Hardware name: Apple Inc. MacBookPro10,2/Mac-AFD8A9D944EA4843, BIOS MBP102.88Z.0106.B0A.1509130955 09/13/2015 [ 3.805465] 0000000000000000 0000000000000000 ffffffffa4bb0554 ffff88025f2c37c8 [ 3.805468] ffffffff81b2e7d9 0000000000000001 ffff88025f2c37f8 ffff88025f2c37e0 [ 3.805470] ffffffff81bcb87d ffffffff84b16a74 ffff88025f2c3868 ffffffff81bcbc4d [ 3.805471] Call Trace: [ 3.805478] [] dump_stack+0x45/0x6c [ 3.805483] [] ubsan_epilogue+0xd/0x40 [ 3.805485] [] handle_overflow+0xbd/0xe0 [ 3.805490] [] ? csum_partial_copy_nocheck+0xf/0x20 [ 3.805493] [] ? get_random_bytes+0x4f/0x100 [ 3.805496] [] __ubsan_handle_add_overflow+0xe/0x10 [ 3.805500] [] ip_idents_reserve+0x9a/0xd0 [ 3.805503] [] __ip_select_ident+0xc9/0x160 [ 3.805506] [] __ip_make_skb+0x83a/0x1e70 [ 3.805509] [] ? ip_setup_cork+0x4d0/0x4d0 [ 3.805511] [] ip_push_pending_frames+0x1d/0x50 [ 3.805514] [] ip_send_unicast_reply+0x3df/0xa80 [ 3.805517] [] ? ac6_proc_exit+0x40/0x40 [ 3.805521] [] tcp_v4_send_reset+0x4e4/0xe40 [ 3.805524] [] tcp_v4_rcv+0x979/0x1db0 [ 3.805527] [] ip_local_deliver_finish+0x139/0x600 [ 3.805529] [] ip_local_deliver+0x10a/0x1a0 [ 3.805532] [] ? ip_rcv_finish+0xb10/0xb10 [ 3.805534] [] ip_rcv_finish+0x23d/0xb10 [ 3.805536] [] ip_rcv+0x45d/0xa30 [ 3.805540] [] ? wake_up_q+0x12/0xd0 [ 3.805543] [] ? inet_del_offload+0x40/0x40 [ 3.805545] [] ? ip_local_deliver+0x1a0/0x1a0 [ 3.805549] [] __netif_receive_skb_core+0xd2c/0x1c30 [ 3.805552] [] __netif_receive_skb+0x29/0x190 [ 3.805556] [] ? rcu_gp_kthread_wake+0x6e/0xb0 [ 3.805559] [] process_backlog+0x116/0x5d0 [ 3.805562] [] net_rx_action+0x395/0x9c0 [ 3.805566] [] __do_softirq+0xbc/0x590 [ 3.805569] [] do_softirq_own_stack+0x1c/0x30 [ 3.805572] [] do_softirq.part.17+0x1d/0x20 [ 3.805575] [] __local_bh_enable_ip+0x94/0xc0 [ 3.805577] [] ip_finish_output2+0x219/0x880 [ 3.805580] [] ip_finish_output+0x280/0x690 [ 3.805582] [] ip_output+0x100/0x210 [ 3.805585] [] ? ip_fragment.constprop.24+0x190/0x190 [ 3.805588] [] ip_local_out+0x3b/0x80 [ 3.805590] [] ip_queue_xmit+0x274/0x1000 [ 3.805593] [] ? __skb_clone+0x5b/0x550 [ 3.805595] [] tcp_transmit_skb+0x7b6/0x2260 [ 3.805598] [] tcp_connect+0xf2d/0x1fe0 [ 3.805601] [] ? secure_tcp_sequence_number+0x7c/0xd0 [ 3.805603] [] tcp_v4_connect+0x4a7/0x15f0 [ 3.805607] [] __inet_stream_connect+0xf1/0x880 [ 3.805609] [] ? _raw_spin_unlock_bh+0x26/0x40 [ 3.805612] [] ? __inet_stream_connect+0x880/0x880 [ 3.805615] [] inet_stream_connect+0x38/0x80 [ 3.805618] [] SYSC_connect+0xe7/0x170 [ 3.805622] [] ? selinux_file_fcntl+0x8a/0x100 [ 3.805625] [] ? security_file_fcntl+0x48/0x80 [ 3.805629] [] ? SyS_fcntl+0x542/0x8b0 [ 3.805632] [] SyS_connect+0x9/0x10 [ 3.805634] [] entry_SYSCALL_64_fastpath+0x12/0x6a [ 3.805636] ================================================================================