From: Chris Bainbridge <chris.bainbridge@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: aryabinin@virtuozzo.com, johannes@sipsolutions.net,
sgruszka@redhat.com, linux-wireless@vger.kernel.org,
netdev@vger.kernel.org
Subject: UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34
Date: Tue, 26 Jan 2016 11:11:23 +0000 [thread overview]
Message-ID: <20160126111123.GD5054@localhost> (raw)
4.5.0-rc1 with the new UBSAN checker:
[ 2624.978741] ================================================================================
[ 2624.978749] UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34
[ 2624.978752] signed integer overflow:
[ 2624.978754] -32768 * 1000000 cannot be represented in type 'int'
[ 2624.978759] CPU: 1 PID: 5362 Comm: kworker/u16:2 Not tainted 4.5.0-rc1 #252
[ 2624.978762] Hardware name: Apple Inc. MacBookPro10,2/Mac-AFD8A9D944EA4843, BIOS MBP102.88Z.0106.B0A.1509130955 09/13/2015
[ 2624.978770] Workqueue: phy1 rt2800usb_work_txdone
[ 2624.978773] 0000000000000000 0000000000000000 00000000000f4240 ffff8801e5d23990
[ 2624.978778] ffffffff81b2e7d9 0000000000000007 ffff8801e5d239c0 ffff8801e5d239a8
[ 2624.978782] ffffffff81bcb87d ffffffff850b928c ffff8801e5d23a30 ffffffff81bcbc4d
[ 2624.978785] Call Trace:
[ 2624.978792] [<ffffffff81b2e7d9>] dump_stack+0x45/0x6c
[ 2624.978797] [<ffffffff81bcb87d>] ubsan_epilogue+0xd/0x40
[ 2624.978802] [<ffffffff81bcbc4d>] handle_overflow+0xbd/0xe0
[ 2624.978807] [<ffffffff81b4f73f>] ? number+0x35f/0x600
[ 2624.978812] [<ffffffff81bcbc9e>] __ubsan_handle_mul_overflow+0xe/0x10
[ 2624.978819] [<ffffffff82b0e27c>] minstrel_calc_rate_stats+0x58c/0x5f0
[ 2624.978823] [<ffffffff82b11d18>] minstrel_ht_update_stats.isra.4+0x148/0xdd0
[ 2624.978827] [<ffffffff82b13223>] minstrel_ht_tx_status+0x683/0x1120
[ 2624.978832] [<ffffffff82a1e0c8>] ieee80211_tx_status+0xff8/0x2d10
[ 2624.978836] [<ffffffff8218a11c>] rt2x00lib_txdone+0x42c/0x11a0
[ 2624.978841] [<ffffffff812110aa>] ? update_curr+0x15a/0x400
[ 2624.978846] [<ffffffff821a3265>] rt2800_txdone_entry+0xc5/0x1b0
[ 2624.978850] [<ffffffff821c331f>] rt2800usb_work_txdone+0x6ff/0xbb0
[ 2624.978854] [<ffffffff811dc3b6>] process_one_work+0x266/0xc00
[ 2624.978857] [<ffffffff811dce56>] worker_thread+0x96/0xd40
[ 2624.978861] [<ffffffff811dcdc0>] ? process_scheduled_works+0x70/0x70
[ 2624.978865] [<ffffffff811e91d8>] kthread+0x108/0x180
[ 2624.978869] [<ffffffff811e90d0>] ? kthread_create_on_node+0x210/0x210
[ 2624.978874] [<ffffffff82b40d9f>] ret_from_fork+0x3f/0x70
[ 2624.978878] [<ffffffff811e90d0>] ? kthread_create_on_node+0x210/0x210
[ 2624.978880] ================================================================================
WARNING: multiple messages have this Message-ID (diff)
From: Chris Bainbridge <chris.bainbridge-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: aryabinin-5HdwGun5lf+gSpxsJD1C4w@public.gmane.org,
johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org,
sgruszka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34
Date: Tue, 26 Jan 2016 11:11:23 +0000 [thread overview]
Message-ID: <20160126111123.GD5054@localhost> (raw)
4.5.0-rc1 with the new UBSAN checker:
[ 2624.978741] ================================================================================
[ 2624.978749] UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34
[ 2624.978752] signed integer overflow:
[ 2624.978754] -32768 * 1000000 cannot be represented in type 'int'
[ 2624.978759] CPU: 1 PID: 5362 Comm: kworker/u16:2 Not tainted 4.5.0-rc1 #252
[ 2624.978762] Hardware name: Apple Inc. MacBookPro10,2/Mac-AFD8A9D944EA4843, BIOS MBP102.88Z.0106.B0A.1509130955 09/13/2015
[ 2624.978770] Workqueue: phy1 rt2800usb_work_txdone
[ 2624.978773] 0000000000000000 0000000000000000 00000000000f4240 ffff8801e5d23990
[ 2624.978778] ffffffff81b2e7d9 0000000000000007 ffff8801e5d239c0 ffff8801e5d239a8
[ 2624.978782] ffffffff81bcb87d ffffffff850b928c ffff8801e5d23a30 ffffffff81bcbc4d
[ 2624.978785] Call Trace:
[ 2624.978792] [<ffffffff81b2e7d9>] dump_stack+0x45/0x6c
[ 2624.978797] [<ffffffff81bcb87d>] ubsan_epilogue+0xd/0x40
[ 2624.978802] [<ffffffff81bcbc4d>] handle_overflow+0xbd/0xe0
[ 2624.978807] [<ffffffff81b4f73f>] ? number+0x35f/0x600
[ 2624.978812] [<ffffffff81bcbc9e>] __ubsan_handle_mul_overflow+0xe/0x10
[ 2624.978819] [<ffffffff82b0e27c>] minstrel_calc_rate_stats+0x58c/0x5f0
[ 2624.978823] [<ffffffff82b11d18>] minstrel_ht_update_stats.isra.4+0x148/0xdd0
[ 2624.978827] [<ffffffff82b13223>] minstrel_ht_tx_status+0x683/0x1120
[ 2624.978832] [<ffffffff82a1e0c8>] ieee80211_tx_status+0xff8/0x2d10
[ 2624.978836] [<ffffffff8218a11c>] rt2x00lib_txdone+0x42c/0x11a0
[ 2624.978841] [<ffffffff812110aa>] ? update_curr+0x15a/0x400
[ 2624.978846] [<ffffffff821a3265>] rt2800_txdone_entry+0xc5/0x1b0
[ 2624.978850] [<ffffffff821c331f>] rt2800usb_work_txdone+0x6ff/0xbb0
[ 2624.978854] [<ffffffff811dc3b6>] process_one_work+0x266/0xc00
[ 2624.978857] [<ffffffff811dce56>] worker_thread+0x96/0xd40
[ 2624.978861] [<ffffffff811dcdc0>] ? process_scheduled_works+0x70/0x70
[ 2624.978865] [<ffffffff811e91d8>] kthread+0x108/0x180
[ 2624.978869] [<ffffffff811e90d0>] ? kthread_create_on_node+0x210/0x210
[ 2624.978874] [<ffffffff82b40d9f>] ret_from_fork+0x3f/0x70
[ 2624.978878] [<ffffffff811e90d0>] ? kthread_create_on_node+0x210/0x210
[ 2624.978880] ================================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2016-01-26 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-26 11:11 Chris Bainbridge [this message]
2016-01-26 11:11 ` UBSAN: Undefined behaviour in net/mac80211/rc80211_minstrel.h:47:34 Chris Bainbridge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160126111123.GD5054@localhost \
--to=chris.bainbridge@gmail.com \
--cc=aryabinin@virtuozzo.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sgruszka@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.