syzbot


INFO: task hung in process_measurement (3)

Status: upstream: reported on 2023/03/02 09:48
Reported-by: syzbot+4b297cf339d6105aa815@syzkaller.appspotmail.com
First crash: 653d, last: 648d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in process_measurement 1 510d 510d 0/3 auto-obsoleted due to no activity on 2023/10/31 09:35
linux-4.19 INFO: task hung in process_measurement 2 1840d 1916d 0/1 auto-closed as invalid on 2020/03/29 20:33
upstream INFO: task hung in process_measurement integrity lsm C done inconclusive 52 1234d 2266d 0/28 closed as invalid on 2022/02/08 10:56
upstream INFO: task hung in process_measurement (2) integrity lsm C done 471 1h45m 462d 0/28 upstream: reported C repro on 2023/09/09 08:36
linux-4.14 INFO: task hung in process_measurement 3 1735d 1791d 0/1 auto-closed as invalid on 2020/07/13 00:59
linux-6.1 INFO: task hung in process_measurement 39 152d 161d 0/3 auto-obsoleted due to no activity on 2024/09/23 07:47
linux-5.15 INFO: task hung in process_measurement (2) 97 52d 161d 0/3 upstream: reported on 2024/07/05 20:51
linux-4.19 INFO: task hung in process_measurement (2) 1 1509d 1509d 0/1 auto-closed as invalid on 2021/02/23 17:00

Sample crash report:
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
INFO: task syz-executor.1:18508 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D24600 18508   8106 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
 rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:72
 inode_lock include/linux/fs.h:748 [inline]
 process_measurement+0x926/0x1440 security/integrity/ima/ima_main.c:205
 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391
 do_last fs/namei.c:3425 [inline]
 path_openat+0x7e4/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f4d4d3020f9
Code: Bad RIP value.
RSP: 002b:00007f4d47453168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f4d4d422050 RCX: 00007f4d4d3020f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f4d4d35dae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffed6f2a68f R14: 00007f4d47453300 R15: 0000000000022000
INFO: task syz-executor.1:18513 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D27424 18513   8106 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512
 f2fs_setattr+0x5b6/0x12b0 fs/f2fs/file.c:852
 notify_change+0x70b/0xfc0 fs/attr.c:334
 do_truncate+0x134/0x1f0 fs/open.c:63
 handle_truncate fs/namei.c:3009 [inline]
 do_last fs/namei.c:3427 [inline]
 path_openat+0x2308/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f4d4d3020f9
Code: Bad RIP value.
RSP: 002b:00007f4d473f0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f4d4d4222c0 RCX: 00007f4d4d3020f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007f4d4d35dae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffed6f2a68f R14: 00007f4d473f0300 R15: 0000000000022000

Showing all locks held in the system:
4 locks held by kworker/u4:1/23:
f2fs_msg: 9556 callbacks suppressed
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
 #0: 000000001afd6063 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
 #1: 00000000a0240d7b ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
 #2: 0000000057683bd4 (&type->s_umount_key#86){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412
 #3: 00000000f57e888f (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
1 lock held by khungtaskd/1570:
 #0: 0000000065d8604b (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
1 lock held by in:imklog/7799:
 #0: 00000000487aad88 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
7 locks held by syz-executor.1/18501:
2 locks held by syz-executor.1/18508:
 #0: 00000000228af9d5 (sb_writers#31){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 00000000228af9d5 (sb_writers#31){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
 #1: 000000004969ccba (&sb->s_type->i_mutex_key#37){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
 #1: 000000004969ccba (&sb->s_type->i_mutex_key#37){+.+.}, at: process_measurement+0x926/0x1440 security/integrity/ima/ima_main.c:205
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
3 locks held by syz-executor.1/18513:
 #0: 00000000228af9d5 (sb_writers#31){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 00000000228af9d5 (sb_writers#31){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
 #1: 000000004969ccba (&sb->s_type->i_mutex_key#37){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
 #1: 000000004969ccba (&sb->s_type->i_mutex_key#37){+.+.}, at: do_truncate+0x125/0x1f0 fs/open.c:61
 #2: 00000000f57e888f (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512
F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
2 locks held by syz-executor.0/22061:
 #0: 0000000057683bd4 (&type->s_umount_key#86){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.0/22064:
 #0: 0000000057683bd4 (&type->s_umount_key#86){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.0/22071:
 #0: 0000000057683bd4 (&type->s_umount_key#86){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.0/22089:
 #0: 0000000057683bd4 (&type->s_umount_key#86){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.0/22092:
 #0: 0000000057683bd4 (&type->s_umount_key#86){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
 #1: 00000000ba9e527b (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457

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

NMI backtrace for cpu 1
CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8774 Comm: kworker/u4:5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:hlock_class kernel/locking/lockdep.c:145 [inline]
RIP: 0010:mark_lock+0x3b/0x1160 kernel/locking/lockdep.c:3106
Code: 41 56 4c 8d 76 20 4c 89 f2 41 55 49 89 fd 41 54 48 c1 ea 03 41 bc 01 00 00 00 55 41 d3 e4 48 89 f5 53 48 83 ec 18 0f b6 04 02 <84> c0 74 08 3c 01 0f 8e f1 07 00 00 0f b7 45 20 66 a9 ff 1f 74 7c
RSP: 0018:ffff8880a24b7b78 EFLAGS: 00000096
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
RDX: 1ffff11013d3b13d RSI: ffff88809e9d89c8 RDI: ffff88809e9d8140
RBP: ffff88809e9d89c8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004
R13: ffff88809e9d8140 R14: ffff88809e9d89e8 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a17cd9000 CR3: 000000009eb25000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 mark_held_locks+0xa6/0xf0 kernel/locking/lockdep.c:2810
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:2831 [inline]
 lockdep_hardirqs_on+0x288/0x5c0 kernel/locking/lockdep.c:2884
 __local_bh_enable_ip+0x159/0x270 kernel/softirq.c:194
 spin_unlock_bh include/linux/spinlock.h:374 [inline]
 batadv_nc_purge_paths+0x22d/0x310 net/batman-adv/network-coding.c:482
 batadv_nc_worker+0x6fa/0xd50 net/batman-adv/network-coding.c:731
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/07 06:13 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in process_measurement
2023/03/06 08:56 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in process_measurement
2023/03/05 09:56 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in process_measurement
2023/03/03 19:11 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in process_measurement
2023/03/02 09:48 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in process_measurement
* Struck through repros no longer work on HEAD.