syzbot


INFO: task hung in ima_file_free (4)

Status: upstream: reported C repro on 2024/11/02 15:21
Subsystems: integrity lsm
[Documentation on labels]
Reported-by: syzbot+8036326eebe7d0140944@syzkaller.appspotmail.com
First crash: 559d, last: 2d13h
Cause bisection: failed (error log, bisect log)
  
Discussions (9)
Title Replies (including bot) Last reply
[syzbot] Monthly lsm report (Apr 2026) 6 (7) 2026/05/10 04:02
[syzbot] Monthly integrity report (Oct 2025) 0 (1) 2025/10/13 08:32
[syzbot] Monthly lsm report (Sep 2025) 0 (1) 2025/09/27 20:43
[syzbot] Monthly integrity report (Sep 2025) 0 (1) 2025/09/02 21:06
[syzbot] Monthly integrity report (Jun 2025) 0 (1) 2025/06/25 14:15
[syzbot] Monthly integrity report (Dec 2024) 1 (2) 2024/12/11 08:54
[syzbot] Monthly lsm report (Nov 2024) 0 (1) 2024/11/23 10:02
[syzbot] Monthly integrity report (Nov 2024) 0 (1) 2024/11/06 08:33
[syzbot] [integrity?] [lsm?] [erofs?] INFO: task hung in ima_file_free (4) 0 (1) 2024/11/02 15:21
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in ima_file_free (2) lsm integrity 1 3 1229d 1239d 0/29 auto-obsoleted due to no activity on 2023/04/11 01:41
upstream INFO: task hung in ima_file_free (3) integrity lsm 1 8 665d 702d 0/29 auto-obsoleted due to no activity on 2024/10/14 00:32
upstream INFO: task hung in ima_file_free integrity lsm 1 1 1577d 1577d 0/29 closed as invalid on 2022/02/08 09:50
Last patch testing requests (9)
Created Duration User Patch Repo Result
2026/03/07 14:29 18m retest repro upstream error
2025/12/18 12:18 17m retest repro upstream report log
2025/09/02 18:10 16m retest repro upstream report log
2025/06/24 17:38 17m retest repro upstream report log
2025/05/18 14:37 23m retest repro linux-next OK log
2025/04/15 17:09 17m retest repro upstream report log
2025/03/09 11:21 1m retest repro linux-next error
2025/02/04 13:32 18m retest repro upstream report log
2024/11/26 12:41 16m retest repro upstream report log

Sample crash report:
INFO: task syz.0.17:5832 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.17        state:D stack:27528 pid:5832  tgid:5832  ppid:5744   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5388 [inline]
 __schedule+0x1295/0x67a0 kernel/sched/core.c:7189
 __schedule_loop kernel/sched/core.c:7268 [inline]
 schedule+0xdd/0x390 kernel/sched/core.c:7283
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7340
 __mutex_lock_common kernel/locking/mutex.c:726 [inline]
 __mutex_lock+0xced/0x1b10 kernel/locking/mutex.c:820
 ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
 security_file_release+0x10e/0x120 security/security.c:2424
 __fput+0x359/0xb50 fs/file_table.c:504
 task_work_run+0x150/0x240 kernel/task_work.c:233
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 __exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
 exit_to_user_mode_loop+0x107/0x4f0 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline]
 do_syscall_64+0x706/0xf80 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6c1e39cdd9
RSP: 002b:00007ffc054e3498 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f6c1e617da0 RCX: 00007f6c1e39cdd9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f6c1e617da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007f6c1e617cb0 R11: 0000000000000246 R12: 000000000001375f
R13: 00007f6c1e615fac R14: 000000000001348a R15: 00007ffc054e35a0
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: ffffffff8e7e54e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
 #0: ffffffff8e7e54e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
 #0: ffffffff8e7e54e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x3d/0x184 kernel/locking/lockdep.c:6775
2 locks held by getty/5367:
 #0: ffff8880383f90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000322b2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x419/0x14f0 drivers/tty/n_tty.c:2211
1 lock held by syz.0.17/5832:
 #0: ffff88807b597ed0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff88807b597ed0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.0.17/5833:
1 lock held by syz.1.18/5873:
 #0: ffff888075c6e060 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff888075c6e060 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.1.18/5874:
1 lock held by syz.2.19/5920:
 #0: ffff88807b597dc8 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff88807b597dc8 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.2.19/5921:
1 lock held by syz.3.20/5957:
 #0: ffff888076231ed0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff888076231ed0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.3.20/5958:
1 lock held by syz.4.21/6001:
 #0: ffff888076231dc8 (&ima_iint_mutex_key[depth]
#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.4.21/6002:
1 lock held by syz.5.22/6051:
 #0: ffff888076231cc0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff888076231cc0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.5.22/6052:
1 lock held by syz.6.23/6095:
 #0: ffff888076231bb8 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff888076231bb8 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.6.23/6096:
1 lock held by syz.7.24/6141:
 #0: ffff88807b597cc0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:215 [inline]
 #0: ffff88807b597cc0 (&ima_iint_mutex_key[depth]#2){+.+.}-{4:4}, at: ima_file_free+0x146/0x340 security/integrity/ima/ima_main.c:251
1 lock held by syz.7.24/6142:
2 locks held by modprobe/6154:
 #0: ffff8880b843b2a0 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2c/0x140 kernel/sched/core.c:652
 #1: ffff8880b8424648 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:225 [inline]
 #1: ffff8880b8424648 (psi_seq){-.-.}-{0:0}, at: __schedule+0x2f15/0x67a0 kernel/sched/core.c:7183

=============================================

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 nmi_cpu_backtrace.cold+0x12d/0x151 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x1d7/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 __sys_info lib/sys_info.c:157 [inline]
 sys_info+0x141/0x190 lib/sys_info.c:165
 check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
 watchdog+0xcb1/0x1030 kernel/hung_task.c:561
 kthread+0x370/0x450 kernel/kthread.c:436
 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 5921 Comm: syz.2.19 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:sha256_transform_rorx+0x879/0x1110 lib/crypto/x86/sha256-avx2-asm.S:606
Code: 43 7b f0 ea 19 03 5c 3c 68 c5 e5 73 d2 13 c4 43 7b f0 f2 0b 09 d6 45 89 df 41 31 c7 c4 63 7b f0 e1 0d 45 31 f5 c5 ed 73 d2 11 <45> 21 d7 c4 43 7b f0 f2 06 c5 ed ef d3 41 01 d9 44 21 c6 45 31 f5
RSP: 0018:ffffc90003286e40 EFLAGS: 00000286
RAX: 00000000bb2b1f54 RBX: 0000000088862601 RCX: 0000000029719769
RDX: 0000000059ce25f6 RSI: 0000000079ffb7ff RDI: 0000000000000000
RBP: ffffc90003287068 R08: 0000000078cc2a30 R09: 0000000076c01dab
R10: 00000000a645c7f6 R11: 0000000016dd8603 R12: 00000000bb494b8c
R13: 00000000dc3733eb R14: 00000000fed4c8b8 R15: 00000000adf69957
FS:  00007f1f69ffe6c0(0000) GS:ffff888124472000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562d33f51168 CR3: 0000000075a0a000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 sha256_blocks_avx2+0x49/0x90 lib/crypto/x86/sha256.h:31
 sha256_blocks lib/crypto/x86/sha256.h:58 [inline]
 __sha256_update+0x188/0x1c0 lib/crypto/sha256.c:208
 crypto_sha256_update+0x23/0x30 crypto/sha256.c:142
 crypto_shash_finup+0x34b/0x6b0 crypto/shash.c:123
 crypto_shash_update include/crypto/hash.h:1006 [inline]
 ima_calc_file_hash_tfm+0x299/0x350 security/integrity/ima/ima_crypto.c:233
 ima_calc_file_hash+0x1e3/0x380 security/integrity/ima/ima_crypto.c:280
 ima_collect_measurement+0x94f/0xb30 security/integrity/ima/ima_api.c:300
 process_measurement+0xdfe/0x2350 security/integrity/ima/ima_main.c:425
 ima_file_check+0xc3/0x110 security/integrity/ima/ima_main.c:685
 security_file_post_open+0xc4/0x210 security/security.c:2755
 do_open fs/namei.c:4701 [inline]
 path_openat+0x1418/0x31a0 fs/namei.c:4858
 do_file_open+0x20e/0x430 fs/namei.c:4887
 do_sys_openat2+0x10d/0x1e0 fs/open.c:1364
 do_sys_open fs/open.c:1370 [inline]
 __do_sys_open fs/open.c:1378 [inline]
 __se_sys_open fs/open.c:1374 [inline]
 __x64_sys_open+0xfe/0x1d0 fs/open.c:1374
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1f6a99cdd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1f69ffe028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f1f6ac15fa0 RCX: 00007f1f6a99cdd9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000
RBP: 00007f1f6aa32d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1f6ac16038 R14: 00007f1f6ac15fa0 R15: 00007ffd08230ef8
 </TASK>

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/09 21:08 upstream 70390501d194 29233ece .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in ima_file_free
2024/10/29 15:14 upstream e42b1a9a2557 66aeb999 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root INFO: task hung in ima_file_free
2026/04/13 19:42 upstream 26ff969926a0 9530ccf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ima_file_free
2026/02/21 14:15 upstream a95f71ad3e2e 6e7b5511 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2026/01/08 06:47 upstream f0b9d8eb98df d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/12/24 02:06 upstream b927546677c8 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ima_file_free
2025/12/19 19:30 upstream dd9b004b7ff3 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/12/01 10:50 upstream 7d0a66e4bb90 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/11/11 20:22 upstream 4427259cc7f7 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/11/10 22:36 upstream 4ea7c1717f3f 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/09/27 01:16 upstream fec734e8d564 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/09/11 11:49 upstream 7aac71907bde fdeaa69b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in ima_file_free
2025/04/28 06:40 upstream b4432656b36e c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in ima_file_free
2025/11/20 01:40 upstream 8b690556d8fe 26ee5237 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in ima_file_free
2025/05/19 14:32 upstream a5806cd506af f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in ima_file_free
2024/11/12 12:27 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in ima_file_free
2026/02/19 19:21 linux-next 44982d352c33 73a252ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2026/01/30 06:57 linux-next 33a647c659ff bfa73b7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/12/22 08:17 linux-next cc3aa43b44bd d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/12/04 12:05 linux-next bc04acf4aeca d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/12/04 05:14 linux-next b2c27842ba85 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/12/01 09:38 linux-next 7d31f578f323 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/11/21 18:56 linux-next d724c6f85e80 c31c1b0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/11/10 21:29 linux-next ab40c92c74c6 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/10/05 23:14 linux-next 47a8d4b89844 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/09/24 02:25 linux-next ce7f1a983b07 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/09/15 16:23 linux-next 590b221ed425 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/07/01 11:32 linux-next 1343433ed389 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/06/30 00:49 linux-next 2aeda9592360 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/06/02 11:55 linux-next 3a83b350b5be 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/02/23 11:08 linux-next e5d3fd687aac d34966d1 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
2025/02/23 07:10 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in ima_file_free
* Struck through repros no longer work on HEAD.