syzbot


BUG: sleeping function called from invalid context in __do_page_fault

Status: upstream: reported C repro on 2019/08/18 01:17
Reported-by: syzbot+bdc436f2f85b2ea3be27@syzkaller.appspotmail.com
First crash: 1939d, last: 1172d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: sleeping function called from invalid context in __do_page_fault C inconclusive 24 1487d 1950d 0/1 upstream: reported C repro on 2019/08/06 03:38
upstream BUG: sleeping function called from invalid context in __do_page_fault kernel 2 1783d 1818d 0/28 auto-closed as invalid on 2020/05/19 13:57
Fix bisection attempts (16)
Created Duration User Patch Repo Result
2021/10/23 03:10 15m bisect fix linux-4.19.y error job log
2021/09/22 07:36 28m bisect fix linux-4.19.y OK (0) job log log
2021/08/23 06:58 30m bisect fix linux-4.19.y OK (0) job log log
2021/07/24 06:09 27m bisect fix linux-4.19.y OK (0) job log log
2021/06/23 23:30 25m bisect fix linux-4.19.y OK (0) job log log
2021/05/24 23:00 30m bisect fix linux-4.19.y OK (0) job log log
2021/04/24 22:04 32m bisect fix linux-4.19.y OK (0) job log log
2021/03/25 13:33 23m bisect fix linux-4.19.y OK (0) job log log
2021/02/23 11:18 25m bisect fix linux-4.19.y OK (0) job log log
2021/02/19 06:46 19m bisect fix linux-4.19.y error job log
2021/01/19 13:23 24m bisect fix linux-4.19.y OK (0) job log log
2020/12/20 12:58 24m bisect fix linux-4.19.y OK (0) job log log
2020/11/20 12:34 24m bisect fix linux-4.19.y OK (0) job log log
2020/05/10 09:15 26m bisect fix linux-4.19.y OK (0) job log log
2020/01/03 15:31 25m bisect fix linux-4.19.y OK (0) job log log
2019/12/04 10:41 24m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003
RBP: 00007ffd0e7a1c30 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1355
in_atomic(): 0, irqs_disabled(): 1, pid: 6542, name: syz-executor839
4 locks held by syz-executor839/6542:
 #0: 000000005b0e53d8 (cb_lock){++++}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:637
 #1: 00000000085edd05 (genl_mutex){+.+.}, at: genl_lock net/netlink/genetlink.c:33 [inline]
 #1: 00000000085edd05 (genl_mutex){+.+.}, at: genl_rcv_msg+0x15d/0x1b0 net/netlink/genetlink.c:625
 #2: 00000000ed4f8b63 (rtnl_mutex){+.+.}, at: nl80211_pre_doit+0x34f/0x660 net/wireless/nl80211.c:13085
 #3: 00000000214a26bd (&mm->mmap_sem){++++}, at: __do_page_fault+0x3e2/0xe00 arch/x86/mm/fault.c:1341
irq event stamp: 4170
hardirqs last  enabled at (4169): [<ffffffff81aaeef0>] kfree+0x110/0x250 mm/slab.c:3823
hardirqs last disabled at (4170): [<ffffffff8149ceb5>] try_to_grab_pending+0xb5/0x720 kernel/workqueue.c:1212
softirqs last  enabled at (2462): [<ffffffff861bdc37>] rollback_registered_many+0x937/0xf00 net/core/dev.c:8199
softirqs last disabled at (2460): [<ffffffff861ce4e9>] spin_lock_bh include/linux/spinlock.h:334 [inline]
softirqs last disabled at (2460): [<ffffffff861ce4e9>] netif_addr_lock_bh include/linux/netdevice.h:3996 [inline]
softirqs last disabled at (2460): [<ffffffff861ce4e9>] dev_mc_flush+0x19/0x30 net/core/dev_addr_lists.c:835
CPU: 0 PID: 6542 Comm: syz-executor839 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+0x22c/0x33e lib/dump_stack.c:118
 ___might_sleep.cold+0x6a/0x7e kernel/sched/core.c:6196
 __do_page_fault+0x40d/0xe00 arch/x86/mm/fault.c:1355
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205
RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline]
RIP: 0010:try_to_grab_pending+0xcd/0x720 kernel/workqueue.c:1228
Code: 3c 02 00 0f 85 56 05 00 00 4c 89 6d 00 e8 ab 82 2d 00 31 ff 44 89 e6 e8 41 05 28 00 45 84 e4 0f 85 da 01 00 00 e8 03 04 28 00 <f0> 48 0f ba 2b 00 41 0f 92 c4 31 ff 44 89 e6 e8 1f 05 28 00 45 84
RSP: 0018:ffff888084a97120 EFLAGS: 00010093
RAX: ffff8880893065c0 RBX: 0000000000000080 RCX: ffffffff8149cebf
RDX: 0000000000000000 RSI: ffffffff8149cecd RDI: 0000000000000001
RBP: ffff888084a97198 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000293 R14: dffffc0000000010 R15: ffff8880893065c0
 __cancel_work_timer+0xa6/0x5c0 kernel/workqueue.c:2974
 rhashtable_free_and_destroy+0x2b/0xa50 lib/rhashtable.c:1145
 mesh_table_free net/mac80211/mesh_pathtbl.c:72 [inline]
 mesh_pathtbl_unregister+0x42/0x9a net/mac80211/mesh_pathtbl.c:827
 ieee80211_teardown_sdata+0x216/0x2d0 net/mac80211/iface.c:1126
 rollback_registered_many+0x97d/0xf00 net/core/dev.c:8202
 rollback_registered+0xe9/0x1b0 net/core/dev.c:8230
 unregister_netdevice_queue+0x1de/0x400 net/core/dev.c:9292
 unregister_netdevice include/linux/netdevice.h:2614 [inline]
 ieee80211_if_remove+0x213/0x330 net/mac80211/iface.c:1919
 ieee80211_del_iface+0x12/0x20 net/mac80211/cfg.c:144
 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline]
 cfg80211_destroy_ifaces+0x1f4/0x7c0 net/wireless/core.c:317
 nl80211_new_interface+0x8f/0x15b0 net/wireless/nl80211.c:3222
 genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602
 genl_rcv_msg+0xdf/0x1b0 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+0x717/0xcc0 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc7/0x130 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8f0 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/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4418e9
Code: e8 5c ac 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 1b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd0e7a1c18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004418e9
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003
RBP: 00007ffd0e7a1c30 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
BUG: unable to handle kernel NULL pointer dereference at 0000000000000080
PGD a3eb8067 P4D a3eb8067 PUD 8fdc3067 PMD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6542 Comm: syz-executor839 Tainted: G        W         4.19.152-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline]
RIP: 0010:try_to_grab_pending+0xcd/0x720 kernel/workqueue.c:1228
Code: 3c 02 00 0f 85 56 05 00 00 4c 89 6d 00 e8 ab 82 2d 00 31 ff 44 89 e6 e8 41 05 28 00 45 84 e4 0f 85 da 01 00 00 e8 03 04 28 00 <f0> 48 0f ba 2b 00 41 0f 92 c4 31 ff 44 89 e6 e8 1f 05 28 00 45 84
RSP: 0018:ffff888084a97120 EFLAGS: 00010093
RAX: ffff8880893065c0 RBX: 0000000000000080 RCX: ffffffff8149cebf
RDX: 0000000000000000 RSI: ffffffff8149cecd RDI: 0000000000000001
RBP: ffff888084a97198 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000293 R14: dffffc0000000010 R15: ffff8880893065c0
FS:  0000000000c45880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000080 CR3: 00000000a7700000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __cancel_work_timer+0xa6/0x5c0 kernel/workqueue.c:2974
 rhashtable_free_and_destroy+0x2b/0xa50 lib/rhashtable.c:1145
 mesh_table_free net/mac80211/mesh_pathtbl.c:72 [inline]
 mesh_pathtbl_unregister+0x42/0x9a net/mac80211/mesh_pathtbl.c:827
 ieee80211_teardown_sdata+0x216/0x2d0 net/mac80211/iface.c:1126
 rollback_registered_many+0x97d/0xf00 net/core/dev.c:8202
 rollback_registered+0xe9/0x1b0 net/core/dev.c:8230
 unregister_netdevice_queue+0x1de/0x400 net/core/dev.c:9292
 unregister_netdevice include/linux/netdevice.h:2614 [inline]
 ieee80211_if_remove+0x213/0x330 net/mac80211/iface.c:1919
 ieee80211_del_iface+0x12/0x20 net/mac80211/cfg.c:144
 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline]
 cfg80211_destroy_ifaces+0x1f4/0x7c0 net/wireless/core.c:317
 nl80211_new_interface+0x8f/0x15b0 net/wireless/nl80211.c:3222
 genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602
 genl_rcv_msg+0xdf/0x1b0 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+0x717/0xcc0 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc7/0x130 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8f0 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/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4418e9
Code: e8 5c ac 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 1b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd0e7a1c18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004418e9
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003
RBP: 00007ffd0e7a1c30 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: 0000000000000080
---[ end trace 46f50f6f7177ff44 ]---
RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline]
RIP: 0010:try_to_grab_pending+0xcd/0x720 kernel/workqueue.c:1228
Code: 3c 02 00 0f 85 56 05 00 00 4c 89 6d 00 e8 ab 82 2d 00 31 ff 44 89 e6 e8 41 05 28 00 45 84 e4 0f 85 da 01 00 00 e8 03 04 28 00 <f0> 48 0f ba 2b 00 41 0f 92 c4 31 ff 44 89 e6 e8 1f 05 28 00 45 84
RSP: 0018:ffff888084a97120 EFLAGS: 00010093
RAX: ffff8880893065c0 RBX: 0000000000000080 RCX: ffffffff8149cebf
RDX: 0000000000000000 RSI: ffffffff8149cecd RDI: 0000000000000001
RBP: ffff888084a97198 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000293 R14: dffffc0000000010 R15: ffff8880893065c0
FS:  0000000000c45880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000080 CR3: 00000000a7700000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/21 06:48 linux-4.19.y ad326970d25c ff4a3345 .config console log report syz C ci2-linux-4-19
2020/08/12 21:47 linux-4.19.y c14d30dc9987 0d7bd2e0 .config console log report syz C ci2-linux-4-19
2020/01/20 03:55 linux-4.19.y dc4ba5be1bab 0342f8c7 .config console log report syz C ci2-linux-4-19
2019/08/18 00:16 linux-4.19.y a5aa80588fcd 55bf8926 .config console log report syz C ci2-linux-4-19
2020/09/25 21:57 linux-4.19.y d09b80172c22 4a006f63 .config console log report info ci2-linux-4-19
2020/09/09 14:57 linux-4.19.y c37da90efff5 0ea7a887 .config console log report ci2-linux-4-19
2020/09/07 16:00 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
2020/09/03 04:24 linux-4.19.y f6d5cb9e2c06 abf9ba4f .config console log report ci2-linux-4-19
2020/09/02 04:04 linux-4.19.y f6d5cb9e2c06 abf9ba4f .config console log report ci2-linux-4-19
2020/08/31 05:54 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report ci2-linux-4-19
2020/08/30 12:01 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report ci2-linux-4-19
2020/08/30 04:12 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report ci2-linux-4-19
2020/08/27 12:41 linux-4.19.y f6d5cb9e2c06 816e0689 .config console log report ci2-linux-4-19
2020/08/25 20:24 linux-4.19.y d18b78abc0c6 344da168 .config console log report ci2-linux-4-19
2020/08/21 02:09 linux-4.19.y a834132bd465 70160577 .config console log report ci2-linux-4-19
2020/08/21 01:05 linux-4.19.y a834132bd465 70160577 .config console log report ci2-linux-4-19
2020/08/03 20:27 linux-4.19.y 13af6c74b14a 96dd3623 .config console log report ci2-linux-4-19
2020/08/02 23:47 linux-4.19.y 13af6c74b14a 96dd3623 .config console log report ci2-linux-4-19
2020/07/31 15:48 linux-4.19.y 205a42ce2861 8df85ed9 .config console log report ci2-linux-4-19
2020/07/31 15:30 linux-4.19.y 205a42ce2861 8df85ed9 .config console log report ci2-linux-4-19
2020/07/28 22:55 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/24 10:09 linux-4.19.y 20b3a3dfdf6c 70c104a1 .config console log report ci2-linux-4-19
2020/07/24 09:58 linux-4.19.y 20b3a3dfdf6c 70c104a1 .config console log report ci2-linux-4-19
2020/07/08 03:07 linux-4.19.y 399849e4654e 08fc4ef1 .config console log report ci2-linux-4-19
2020/07/06 13:12 linux-4.19.y 399849e4654e ac5a135b .config console log report ci2-linux-4-19
2020/06/21 17:55 linux-4.19.y 3fc898571b97 4f2acff9 .config console log report ci2-linux-4-19
2020/06/13 20:58 linux-4.19.y 3fc898571b97 dbce178a .config console log report ci2-linux-4-19
2020/06/05 16:36 linux-4.19.y 4707d8e57273 d36418e9 .config console log report ci2-linux-4-19
2020/06/02 04:13 linux-4.19.y 2d16cf4817bc a0331e89 .config console log report ci2-linux-4-19
2020/04/10 09:15 linux-4.19.y dda0e2920330 a8c6a3f8 .config console log report ci2-linux-4-19
2020/03/14 18:17 linux-4.19.y 569209711609 749688d2 .config console log report ci2-linux-4-19
2020/03/08 10:04 linux-4.19.y 7472c4028e23 2e9971bb .config console log report ci2-linux-4-19
2020/03/04 06:11 linux-4.19.y a083db76118d 1f73b64b .config console log report ci2-linux-4-19
2020/03/01 03:33 linux-4.19.y a083db76118d c88c7b75 .config console log report ci2-linux-4-19
2020/03/01 03:23 linux-4.19.y a083db76118d c88c7b75 .config console log report ci2-linux-4-19
2020/02/09 17:08 linux-4.19.y b499cf4b3a90 6ece2ea5 .config console log report ci2-linux-4-19
2020/02/05 06:01 linux-4.19.y 32ee7492f104 93e5e335 .config console log report ci2-linux-4-19
2020/02/04 17:43 linux-4.19.y 32ee7492f104 93e5e335 .config console log report ci2-linux-4-19
2020/02/04 01:01 linux-4.19.y 32ee7492f104 93e5e335 .config console log report ci2-linux-4-19
2020/02/03 02:06 linux-4.19.y 32ee7492f104 93e5e335 .config console log report ci2-linux-4-19
2020/01/31 00:35 linux-4.19.y 7cdefde351b6 5ed23f9a .config console log report ci2-linux-4-19
2020/01/30 21:11 linux-4.19.y 7cdefde351b6 5ed23f9a .config console log report ci2-linux-4-19
2020/01/29 11:27 linux-4.19.y 88d6de67e390 c8e81ce4 .config console log report ci2-linux-4-19
2020/01/23 04:23 linux-4.19.y dc4ba5be1bab 3334d684 .config console log report ci2-linux-4-19
2020/01/20 18:36 linux-4.19.y dc4ba5be1bab c40da18c .config console log report ci2-linux-4-19
2020/01/20 06:19 linux-4.19.y dc4ba5be1bab 0342f8c7 .config console log report ci2-linux-4-19
2020/01/18 14:47 linux-4.19.y dc4ba5be1bab 3de7aabb .config console log report ci2-linux-4-19
2020/01/18 12:07 linux-4.19.y dc4ba5be1bab 3de7aabb .config console log report ci2-linux-4-19
2020/01/18 03:57 linux-4.19.y dc4ba5be1bab 3de7aabb .config console log report ci2-linux-4-19
2020/01/17 18:15 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/17 17:49 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/17 17:47 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/17 17:46 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/16 21:23 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.