WARNING in rhashtable_free_and_destroy

9 views
Skip to first unread message

syzbot

unread,
Oct 25, 2020, 2:22:16 PM10/25/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ad326970 Linux 4.19.152
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1588f11c500000
kernel config: https://syzkaller.appspot.com/x/.config?x=1ec7667b405157e
dashboard link: https://syzkaller.appspot.com/bug?extid=5ea8a75fa398f831d5bf
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16bc8d1c500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=104faeef900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5ea8a7...@syzkaller.appspotmail.com

RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003
RBP: 0000000000000005 R08: 0000000000000002 R09: 0000000000003231
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000004030e0 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8167 at kernel/workqueue.c:2919 __flush_work.cold+0x29/0x33 kernel/workqueue.c:2919
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8167 Comm: syz-executor539 Not tainted 4.19.152-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+0x1fc/0x2fe lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x61 kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__flush_work.cold+0x29/0x33 kernel/workqueue.c:2919
Code: ce e8 9e c7 24 00 48 c7 c7 c0 3c 69 88 e8 a1 c1 0f 00 0f 0b e9 85 24 ff ff e8 86 c7 24 00 48 c7 c7 c0 3c 69 88 e8 89 c1 0f 00 <0f> 0b 45 31 f6 e9 6a 24 ff ff e8 6b c7 24 00 48 c7 c7 c0 3c 69 88
RSP: 0018:ffff88809d517150 EFLAGS: 00010286
RAX: 0000000000000024 RBX: ffff8880aa1fe840 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814fd8d1 RDI: ffffed1013aa2e1c
RBP: ffff88809d5172c0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 1ffff11013aa2e5b R14: 0000000000000001 R15: ffff8880af8702c0
__cancel_work_timer+0x412/0x590 kernel/workqueue.c:3015
rhashtable_free_and_destroy+0x2b/0x970 lib/rhashtable.c:1145
mesh_table_free net/mac80211/mesh_pathtbl.c:72 [inline]
mesh_pathtbl_init+0xd9/0x100 net/mac80211/mesh_pathtbl.c:798
ieee80211_mesh_init_sdata+0x28e/0x550 net/mac80211/mesh.c:1461
ieee80211_setup_sdata+0xcbb/0xf70 net/mac80211/iface.c:1459
ieee80211_if_add+0xe19/0x17c0 net/mac80211/iface.c:1871
ieee80211_add_iface+0x99/0x160 net/mac80211/cfg.c:125
rdev_add_virtual_intf net/wireless/rdev-ops.h:45 [inline]
nl80211_new_interface+0x531/0x1570 net/wireless/nl80211.c:3265
genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4424d9
Code: e8 4c b0 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 eb 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd8989b488 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffd8989b490 RCX: 00000000004424d9
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003
RBP: 0000000000000005 R08: 0000000000000002 R09: 0000000000003231
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000004030e0 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report 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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages