lkml.org 
[lkml]   [2020]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectWARNING in set_precision (2)
From
Hello,

syzbot found the following crash on:

HEAD commit: 1ece2fbe ptp: clockmatrix: Rework clockmatrix version info..
git tree: net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1709d58ee00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ff06bf0a19e7467d
dashboard link: https://syzkaller.appspot.com/bug?extid=6693adf1698864d21734
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15380c66e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=131916aee00000

The bug was bisected to:

commit 2b4a8990b7df55875745a80a609a1ceaaf51f322
Author: Michal Kubecek <mkubecek@suse.cz>
Date: Fri Dec 27 14:55:18 2019 +0000

ethtool: introduce ethtool netlink interface

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11c40c66e00000
final crash: https://syzkaller.appspot.com/x/report.txt?x=13c40c66e00000
console output: https://syzkaller.appspot.com/x/log.txt?x=15c40c66e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+6693adf1698864d21734@syzkaller.appspotmail.com
Fixes: 2b4a8990b7df ("ethtool: introduce ethtool netlink interface")

netlink: 179916 bytes leftover after parsing attributes in process
`syz-executor273'.
------------[ cut here ]------------
precision 33020 too large
WARNING: CPU: 0 PID: 9618 at lib/vsprintf.c:2471 set_precision+0x150/0x180
lib/vsprintf.c:2471
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 9618 Comm: syz-executor273 Not tainted 5.5.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x197/0x210 lib/dump_stack.c:118
panic+0x2e3/0x75c kernel/panic.c:221
__warn.cold+0x2f/0x3e kernel/panic.c:582
report_bug+0x289/0x300 lib/bug.c:195
fixup_bug arch/x86/kernel/traps.c:174 [inline]
fixup_bug arch/x86/kernel/traps.c:169 [inline]
do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267
do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:286
invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:set_precision+0x150/0x180 lib/vsprintf.c:2471
Code: 24 07 e8 23 30 9f f9 5b 41 5c 41 5d 41 5e 5d c3 e8 15 30 9f f9 89 de
48 c7 c7 60 c1 f7 88 c6 05 64 4b a1 02 01 e8 5f de 6f f9 <0f> 0b e9 60 ff
ff ff be 08 00 00 00 4c 89 e7 e8 4c e5 dc f9 e9 04
RSP: 0018:ffffc90001d87280 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 00000000000080fc RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815e8fc6 RDI: fffff520003b0e42
RBP: ffffc90001d872a0 R08: ffff88808d0702c0 R09: fffffbfff165f9ab
R10: fffffbfff165f9aa R11: ffffffff8b2fcd57 R12: ffffc90001d87320
R13: 0000000000000000 R14: ffffc90001d87327 R15: ffffc90001d87360
vsnprintf+0xa7b/0x19a0 lib/vsprintf.c:2547
kvasprintf+0xb2/0x170 lib/kasprintf.c:22
kasprintf+0xbb/0xf0 lib/kasprintf.c:59
hwsim_del_radio_nl+0x63a/0x7e0 drivers/net/wireless/mac80211_hwsim.c:3625
genl_family_rcv_msg_doit net/netlink/genetlink.c:672 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:717 [inline]
genl_rcv_msg+0x67d/0xea0 net/netlink/genetlink.c:734
netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477
genl_rcv+0x29/0x40 net/netlink/genetlink.c:745
netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
netlink_unicast+0x58c/0x7d0 net/netlink/af_netlink.c:1328
netlink_sendmsg+0x91c/0xea0 net/netlink/af_netlink.c:1917
sock_sendmsg_nosec net/socket.c:643 [inline]
sock_sendmsg+0xd7/0x130 net/socket.c:663
____sys_sendmsg+0x753/0x880 net/socket.c:2342
___sys_sendmsg+0x100/0x170 net/socket.c:2396
__sys_sendmsg+0x105/0x1d0 net/socket.c:2429
__do_sys_sendmsg net/socket.c:2438 [inline]
__se_sys_sendmsg net/socket.c:2436 [inline]
__x64_sys_sendmsg+0x78/0xb0 net/socket.c:2436
do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401f9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7
48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff
ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe53b2d788 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401f9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a80
R13: 0000000000401b10 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

\
 
 \ /
  Last update: 2020-01-10 19:45    [W:0.026 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site