syzbot


general protection fault in get_work_pool

Status: fixed on 2021/01/09 22:02
Reported-by: syzbot+55ea79a930ea771f2c76@syzkaller.appspotmail.com
Fix commit: 42a387dc80c3 mac80211: mesh: fix mesh_pathtbl_init() error path
First crash: 1471d, last: 1441d
Fix bisection: fixed by (bisect log) :
commit 42a387dc80c334ad78e604e0522b3d7a3f7113a5
Author: Eric Dumazet <edumazet@google.com>
Date: Fri Dec 4 16:24:28 2020 +0000

  mac80211: mesh: fix mesh_pathtbl_init() error path

  
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in get_work_pool 1 1475d 1475d 0/1 auto-closed as invalid on 2021/03/07 04:54
android-44 general protection fault in get_work_pool C 5 2280d 2051d 0/2 public: reported C repro on 2019/04/11 08:44
android-414 general protection fault in get_work_pool 4 2100d 2048d 0/1 auto-closed as invalid on 2019/08/20 09:55
upstream general protection fault in get_work_pool net C done 24 2052d 2455d 13/28 fixed on 2019/11/03 21:23
upstream general protection fault in get_work_pool (2) kvm 5 156d 156d 0/28 closed as invalid on 2024/08/16 18:24
android-49 general protection fault in get_work_pool C 24 2140d 2049d 0/3 public: reported C repro on 2019/04/13 00:00
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2021/01/09 17:33 3h01m bisect fix linux-4.14.y OK (1) job log
2020/12/10 17:00 33m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
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 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/10 17:00 linux-4.14.y e98f3c4269fd cca87986 .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.