general protection fault in get_work_pool

12 views
Skip to first unread message

syzbot

unread,
Nov 6, 2020, 11:54:20 PM11/6/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b94de4d1 Linux 4.19.155
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1424f4fa500000
kernel config: https://syzkaller.appspot.com/x/.config?x=252047157acf1cb1
dashboard link: https://syzkaller.appspot.com/bug?extid=d44b41d5354c6eb3eb24
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

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

RBP: 00007efde29f3ca0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000c
R13: 00007ffd1e4bf5af R14: 00007efde29f49c0 R15: 000000000118bf2c
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 2131 Comm: syz-executor.4 Not tainted 4.19.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:get_work_pool+0xe5/0x1a0 kernel/workqueue.c:716
Code: e8 10 ff 25 00 4c 89 e0 5b 5d 41 5c c3 e8 03 ff 25 00 48 81 e3 00 fe ff ff 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 9c 00 00 00 4c 8b 23 e8 d9 fe 25 00 5b 5d 4c 89
RSP: 0018:ffff88803987f270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 5645440033706e00 RCX: ffffc9000e363000
RDX: 0ac8a880066e0dc0 RSI: ffffffff813ecf8d RDI: 0000000000000007
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000246 R14: ffffed10137488c8 R15: ffff888047dd6400
FS: 00007efde29f4700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016a9e60 CR3: 0000000093044000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
try_to_grab_pending+0x10d/0x6f0 kernel/workqueue.c:1235
__cancel_work_timer+0xa6/0x590 kernel/workqueue.c:2974
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:3268
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:0x45deb9
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007efde29f3c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002ba40 RCX: 000000000045deb9
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000004
RBP: 00007efde29f3ca0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000c
R13: 00007ffd1e4bf5af R14: 00007efde29f49c0 R15: 000000000118bf2c
Modules linked in:
---[ end trace be23cf228a3051b1 ]---
RIP: 0010:get_work_pool+0xe5/0x1a0 kernel/workqueue.c:716
Code: e8 10 ff 25 00 4c 89 e0 5b 5d 41 5c c3 e8 03 ff 25 00 48 81 e3 00 fe ff ff 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 9c 00 00 00 4c 8b 23 e8 d9 fe 25 00 5b 5d 4c 89
RSP: 0018:ffff88803987f270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 5645440033706e00 RCX: ffffc9000e363000
RDX: 0ac8a880066e0dc0 RSI: ffffffff813ecf8d RDI: 0000000000000007
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000246 R14: ffffed10137488c8 R15: ffff888047dd6400
FS: 00007efde29f4700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016a9e60 CR3: 0000000093044000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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

unread,
Nov 10, 2020, 12:00:24 PM11/10/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e98f3c42 Linux 4.14.205
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=108cd134500000
kernel config: https://syzkaller.appspot.com/x/.config?x=aedf03f70e8a75a5
dashboard link: https://syzkaller.appspot.com/bug?extid=55ea79a930ea771f2c76
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=133188a4500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10a8c38e500000

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

R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7993 Comm: syz-executor387 Not tainted 4.14.205-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b1718380 task.stack: ffff888096348000
RIP: 0010:get_work_pool+0x9f/0x140 kernel/workqueue.c:718
RSP: 0018:ffff88809634f370 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 37363d4d554e5000 RCX: 0000000000000000
RDX: 06e6c7a9aaa9ca00 RSI: 00000000ffffffff RDI: 0000000000000082
RBP: ffff88809634f3f8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000297 R14: ffffed1012da8b19 R15: ffff8880b1718380
FS: 0000000002562880(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020005540 CR3: 00000000a196b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
try_to_grab_pending+0xf2/0x610 kernel/workqueue.c:1237
__cancel_work_timer+0x90/0x460 kernel/workqueue.c:2923
rhashtable_free_and_destroy+0x26/0x710 lib/rhashtable.c:1073
mesh_table_free net/mac80211/mesh_pathtbl.c:70 [inline]
mesh_pathtbl_init+0x223/0x290 net/mac80211/mesh_pathtbl.c:863
ieee80211_mesh_init_sdata+0x2b4/0x650 net/mac80211/mesh.c:1459
ieee80211_setup_sdata+0xb29/0xf40 net/mac80211/iface.c:1476
ieee80211_if_add+0xce0/0x16b0 net/mac80211/iface.c:1885
ieee80211_add_iface+0x89/0x110 net/mac80211/cfg.c:124
rdev_add_virtual_intf net/wireless/rdev-ops.h:45 [inline]
nl80211_new_interface+0x44b/0x1360 net/wireless/nl80211.c:2990
genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x441869
RSP: 002b:00007ffdad47d758 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441869
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007ffdad47d770 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
Code: 89 c4 e8 f5 87 20 00 4c 89 e0 5b 41 5c c3 e8 e9 87 20 00 48 81 e3 00 fe ff ff 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 84 00 00 00 4c 8b 23 e8 bf 87 20 00 5b 4c 89
RIP: get_work_pool+0x9f/0x140 kernel/workqueue.c:718 RSP: ffff88809634f370
---[ end trace d391c17cfdc57a84 ]---


---
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

syzbot

unread,
Jan 9, 2021, 3:36:07 PM1/9/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit 42a387dc80c334ad78e604e0522b3d7a3f7113a5
Author: Eric Dumazet <edum...@google.com>
Date: Fri Dec 4 16:24:28 2020 +0000

mac80211: mesh: fix mesh_pathtbl_init() error path

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12c5e7db500000
start commit: e98f3c42 Linux 4.14.205
git tree: linux-4.14.y
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: mac80211: mesh: fix mesh_pathtbl_init() error path

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Mar 6, 2021, 11:54:14 PM3/6/21
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages