syzbot


WARNING: syz-executor still has locks held!

Status: fixed on 2019/07/24 12:46
Reported-by: syzbot+b70f2aabc707c69c9239@syzkaller.appspotmail.com
Fix commit: a72173ecfc67 Revert "exec: make de_thread() freezable"
First crash: 1967d, last: 1955d
Cause bisection: introduced by (bisect log) :
commit c22397888f1eed98cd59f0a88f2a5f6925f80e15
Author: Chanho Min <chanho.min@lge.com>
Date: Mon Nov 12 03:54:45 2018 +0000

  exec: make de_thread() freezable

Crash: WARNING: syz-executor still has locks held! (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
WARNING: syz-executor still has locks held! 12 (14) 2019/03/22 10:36

Sample crash report:
audit: type=1800 audit(1543896872.272:30): pid=5898 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0

====================================
WARNING: syz-executor286/6054 still has locks held!
4.20.0-rc5+ #141 Not tainted
------------------------------------
1 lock held by syz-executor286/6054:
 #0: 000000009ccdb9e0 (&sig->cred_guard_mutex){+.+.}, at: prepare_bprm_creds+0x53/0x120 fs/exec.c:1405

stack backtrace:
CPU: 0 PID: 6054 Comm: syz-executor286 Not tainted 4.20.0-rc5+ #141
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+0x244/0x39d lib/dump_stack.c:113
 print_held_locks_bug kernel/locking/lockdep.c:4362 [inline]
 debug_check_no_locks_held.cold.49+0x93/0x9f kernel/locking/lockdep.c:4368
 try_to_freeze include/linux/freezer.h:66 [inline]
 freezer_count include/linux/freezer.h:128 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 de_thread fs/exec.c:1115 [inline]
 flush_old_exec+0x1ea2/0x2480 fs/exec.c:1262
 load_elf_binary+0xa9a/0x5cf0 fs/binfmt_elf.c:869
 search_binary_handler+0x17d/0x570 fs/exec.c:1654
 exec_binprm fs/exec.c:1696 [inline]
 __do_execve_file.isra.33+0x1661/0x25d0 fs/exec.c:1820
 do_execveat_common fs/exec.c:1867 [inline]
 do_execveat fs/exec.c:1895 [inline]
 __do_sys_execveat fs/exec.c:1976 [inline]
 __se_sys_execveat fs/exec.c:1968 [inline]
 __x64_sys_execveat+0xed/0x130 fs/exec.c:1968
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x445789
Code: e8 6c b6 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 2b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f30e3e86db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000142
RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000445789
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00000000006dac20 R08: 0000000000001000 R09: 0000000000000000
R10: 0000000000000

Crashes (233):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/04 04:17 upstream 0072a0c14d5b 03f94a45 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/12/03 21:30 upstream 2595646791c3 819002b0 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/12/03 21:02 upstream 2595646791c3 819002b0 .config console log report syz C ci-upstream-kasan-gce
2018/12/03 20:27 upstream 2595646791c3 819002b0 .config console log report syz C ci-upstream-kasan-gce-root
2018/12/01 05:53 upstream b6839ef26e54 d8988561 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/30 21:31 upstream 94f371cb7394 ade12e91 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/30 21:14 upstream 94f371cb7394 ade12e91 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/11/30 20:23 upstream 94f371cb7394 ade12e91 .config console log report syz C ci-upstream-kasan-gce
2018/11/28 15:57 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/28 10:00 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/28 09:18 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce
2018/11/28 03:27 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/27 22:24 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/11/27 18:58 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/27 18:13 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce
2018/11/25 16:34 upstream e195ca6cb6f2 3d3ec907 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/11/25 16:33 upstream e195ca6cb6f2 3d3ec907 .config console log report syz C ci-upstream-kasan-gce
2018/11/25 16:32 upstream e195ca6cb6f2 3d3ec907 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/25 16:07 upstream e195ca6cb6f2 3d3ec907 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/24 16:13 upstream 7c98a4261827 ecc7c870 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/24 12:09 upstream 7c98a4261827 ecc7c870 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/24 12:06 upstream 7c98a4261827 ecc7c870 .config console log report syz C ci-upstream-kasan-gce
2018/11/24 11:46 upstream 7c98a4261827 ecc7c870 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/12/03 21:02 upstream 2595646791c3 819002b0 .config console log report syz C ci-upstream-kasan-gce-386
2018/11/30 20:52 upstream 94f371cb7394 ade12e91 .config console log report syz C ci-upstream-kasan-gce-386
2018/11/28 09:41 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-386
2018/11/27 17:46 upstream ef78e5ec9214 4b6d14f2 .config console log report syz C ci-upstream-kasan-gce-386
2018/11/25 16:33 upstream e195ca6cb6f2 3d3ec907 .config console log report syz C ci-upstream-kasan-gce-386
2018/11/24 17:55 upstream 7c98a4261827 ecc7c870 .config console log report syz C ci-upstream-kasan-gce-386
2018/11/24 16:38 upstream 7c98a4261827 ecc7c870 .config console log report syz ci-upstream-kasan-gce-root
2018/11/24 13:29 upstream 7c98a4261827 ecc7c870 .config console log report syz ci-upstream-kasan-gce
2018/11/24 13:26 upstream 7c98a4261827 ecc7c870 .config console log report syz ci-upstream-kasan-gce-selinux-root
2018/11/24 13:25 upstream 7c98a4261827 ecc7c870 .config console log report syz ci-upstream-kasan-gce-smack-root
2018/11/24 13:02 upstream 7c98a4261827 ecc7c870 .config console log report syz ci-upstream-kasan-gce-386
2018/12/05 15:20 upstream 0072a0c14d5b ac6c0578 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/05 08:42 upstream 0072a0c14d5b f162ad97 .config console log report ci-upstream-kasan-gce-root
2018/12/05 04:34 upstream 0072a0c14d5b f162ad97 .config console log report ci-upstream-kasan-gce
2018/12/05 03:52 upstream 0072a0c14d5b f162ad97 .config console log report ci-upstream-kasan-gce-root
2018/12/05 02:01 upstream 0072a0c14d5b f162ad97 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/04 20:40 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce
2018/12/04 19:40 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/04 17:26 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-root
2018/12/04 15:43 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce
2018/12/04 14:00 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-root
2018/12/04 12:24 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-root
2018/12/04 12:18 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/04 08:11 upstream 0072a0c14d5b 03f94a45 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/04 00:47 upstream 0072a0c14d5b 03f94a45 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/03 19:46 upstream 2595646791c3 819002b0 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/03 13:47 upstream 2595646791c3 819002b0 .config console log report ci-upstream-kasan-gce
2018/12/03 09:52 upstream 6a512726090a 7dcaeaf3 .config console log report ci-upstream-kasan-gce
2018/12/03 07:41 upstream 6a512726090a 7dcaeaf3 .config console log report ci-upstream-kasan-gce
2018/12/03 05:18 upstream 6a512726090a 7dcaeaf3 .config console log report ci-upstream-kasan-gce
2018/12/03 04:01 upstream 6a512726090a 7dcaeaf3 .config console log report ci-upstream-kasan-gce-root
2018/12/03 01:48 upstream 6a512726090a 7dcaeaf3 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/03 00:29 upstream 6a512726090a 7dcaeaf3 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/02 19:28 upstream 4b78317679c4 e0d8c853 .config console log report ci-upstream-kasan-gce-root
2018/12/02 15:37 upstream 4b78317679c4 e0d8c853 .config console log report ci-upstream-kasan-gce-root
2018/12/02 09:52 upstream 4b78317679c4 5a581673 .config console log report ci-upstream-kasan-gce
2018/12/01 22:45 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce-root
2018/12/01 21:06 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce
2018/12/01 18:10 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/01 14:59 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/01 11:16 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce-root
2018/12/01 08:50 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/01 07:46 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce
2018/12/01 04:16 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce
2018/12/01 02:16 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/30 23:31 upstream 94f371cb7394 ade12e91 .config console log report ci-upstream-kasan-gce-root
2018/11/24 10:18 upstream 7c98a4261827 ecc7c870 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/05 18:32 upstream 0072a0c14d5b ac6c0578 .config console log report ci-upstream-kasan-gce-386
2018/12/05 14:13 upstream 0072a0c14d5b ac6c0578 .config console log report ci-upstream-kasan-gce-386
2018/12/04 09:55 upstream 0072a0c14d5b 03f94a45 .config console log report ci-upstream-kasan-gce-386
2018/12/03 18:38 upstream 2595646791c3 819002b0 .config console log report ci-upstream-kasan-gce-386
2018/12/02 14:00 upstream 4b78317679c4 e0d8c853 .config console log report ci-upstream-kasan-gce-386
2018/12/02 07:03 upstream 4b78317679c4 5a581673 .config console log report ci-upstream-kasan-gce-386
2018/12/02 01:34 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce-386
2018/12/01 23:55 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce-386
2018/12/01 13:03 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce-386
2018/12/01 06:11 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce-386
2018/12/01 05:50 upstream b6839ef26e54 d8988561 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.