From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-phx2.redhat.com ([209.132.183.24]:55795 "EHLO mx3-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932599AbcJQRrX (ORCPT ); Mon, 17 Oct 2016 13:47:23 -0400 Date: Mon, 17 Oct 2016 13:47:22 -0400 (EDT) From: CAI Qian To: linux-fsdevel Cc: Al Viro Message-ID: <538678693.94854.1476726442872.JavaMail.zimbra@redhat.com> In-Reply-To: <2113477597.94690.1476726267847.JavaMail.zimbra@redhat.com> Subject: [4.9-rc1] UBSAN: Undefined behaviour in fs/read_write.c:92:10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Not sure if it is important. [ 1416.162804] ================================================================================ [ 1416.172244] UBSAN: Undefined behaviour in fs/read_write.c:92:10 [ 1416.178851] signed integer overflow: [ 1416.182837] 7957419012188434030 + 5557116669773879724 cannot be represented in type 'long long int' [ 1416.192937] CPU: 35 PID: 8415 Comm: trinity-c35 Tainted: G W 4.9.0-rc1 #32 [ 1416.201874] Hardware name: Intel Corporation S2600WTT/S2600WTT, BIOS GRRFSDP1.86B.0271.R00.1510301446 10/30/2015 [ 1416.213236] ffff880817c5fc90 ffffffff81d23184 0000000041b58ab3 ffffffff8334713f [ 1416.221537] ffffffff81d230c4 ffff880817c5fcb8 ffff880817c5fc68 ffff880817c5fc80 [ 1416.229835] 4d1ed82b154619ac ffff880817c5fa78 dffffc0000000000 0000000049134770 [ 1416.238130] Call Trace: [ 1416.240867] [] dump_stack+0xc0/0x12c [ 1416.246699] [] ? _atomic_dec_and_lock+0xc4/0xc4 [ 1416.253600] [] ubsan_epilogue+0xd/0x8a [ 1416.259625] [] handle_overflow+0x211/0x260 [ 1416.266038] [] ? __ubsan_handle_negate_overflow+0x1b1/0x1b1 [ 1416.274100] [] ? __fdget_pos+0xa2/0xf0 [ 1416.280125] [] ? __fdget_pos+0xa2/0xf0 [ 1416.286154] [] ? mutex_lock_interruptible_nested+0xb40/0xb40 [ 1416.294315] [] ? __audit_syscall_exit+0x637/0x960 [ 1416.301406] [] __ubsan_handle_add_overflow+0xe/0x10 [ 1416.308694] [] generic_file_llseek_size+0x245/0x3c0 [ 1416.315980] [] ? syscall_slow_exit_work+0x4c0/0x4c0 [ 1416.323265] [] generic_file_llseek+0xf1/0x1d0 [ 1416.330046] [] xfs_file_llseek+0x2c/0x30 [xfs] [ 1416.336848] [] SyS_lseek+0xad/0x130 [ 1416.342582] [] ? __vfs_read+0x990/0x990 [ 1416.348703] [] do_syscall_64+0x19d/0x540 [ 1416.354924] [] entry_SYSCALL64_slow_path+0x25/0x25 [ 1416.362103] ================================================================================ [ 1733.283169] ================================================================================ [ 1733.292595] UBSAN: Undefined behaviour in fs/read_write.c:109:12 [ 1733.299300] signed integer overflow: [ 1733.303290] 8463800222054987125 + 6560120580878238959 cannot be represented in type 'long long int' [ 1733.313390] CPU: 69 PID: 8584 Comm: trinity-c204 Tainted: G W 4.9.0-rc1 #32 [ 1733.322421] Hardware name: Intel Corporation S2600WTT/S2600WTT, BIOS GRRFSDP1.86B.0271.R00.1510301446 10/30/2015 [ 1733.333781] ffff8807d5737c90 ffffffff81d23184 0000000041b58ab3 ffffffff8334713f [ 1733.342077] ffffffff81d230c4 ffff8807d5737cb8 ffff8807d5737c68 ffff8807d5737c80 [ 1733.350420] 5b0a3ae94afa04ef ffff8807d5737a78 dffffc0000000000 00000000172a58fb [ 1733.358718] Call Trace: [ 1733.361473] [] dump_stack+0xc0/0x12c [ 1733.367306] [] ? _atomic_dec_and_lock+0xc4/0xc4 [ 1733.374207] [] ubsan_epilogue+0xd/0x8a [ 1733.380232] [] handle_overflow+0x211/0x260 [ 1733.386644] [] ? __ubsan_handle_negate_overflow+0x1b1/0x1b1 [ 1733.394710] [] ? __lock_acquire+0xa21/0x1710 [ 1733.401320] [] ? __fdget_pos+0xa2/0xf0 [ 1733.407348] [] ? debug_smp_processor_id+0x17/0x20 [ 1733.414439] [] ? get_lock_stats+0x1d/0x120 [ 1733.420855] [] ? generic_file_llseek_size+0x8d/0x3c0 [ 1733.428242] [] __ubsan_handle_add_overflow+0xe/0x10 [ 1733.435527] [] generic_file_llseek_size+0x379/0x3c0 [ 1733.442814] [] ? syscall_slow_exit_work+0x4c0/0x4c0 [ 1733.450092] [] generic_file_llseek+0xf1/0x1d0 [ 1733.456861] [] xfs_file_llseek+0x2c/0x30 [xfs] [ 1733.463663] [] SyS_lseek+0xad/0x130 [ 1733.469398] [] ? __vfs_read+0x990/0x990 [ 1733.475528] [] do_syscall_64+0x19d/0x540 [ 1733.481753] [] entry_SYSCALL64_slow_path+0x25/0x25 [ 1733.488941] ================================================================================