INFO: task hung in process_measurement (3)

7 views
Skip to first unread message

syzbot

unread,
Mar 2, 2023, 4:48:54 AM3/2/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=177d6e54c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=4b297cf339d6105aa815
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+4b297c...@syzkaller.appspotmail.com

F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
INFO: task syz-executor.3:10694 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.
f2fs_msg: 11096 callbacks suppressed
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
syz-executor.3 D24208 10694 8127 0x00000004
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
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
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
__down_write arch/x86/include/asm/rwsem.h:142 [inline]
down_write+0x4f/0x90 kernel/locking/rwsem.c:72
F2FS-fs (loop3): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24
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:0x7f68b3d3d0f9
Code: Bad RIP value.
RSP: 002b:00007f68b228e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f68b3e5d050 RCX: 00007f68b3d3d0f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007f68b3d98ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe6831289f R14: 00007f68b228e300 R15: 0000000000022000
INFO: task syz-executor.3:10756 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.3 D25888 10756 8127 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:0x7f68b3d3d0f9
Code: Bad RIP value.
RSP: 002b:00007f68ade6d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f68b3e5d120 RCX: 00007f68b3d3d0f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007f68b3d98ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe6831289f R14: 00007f68ade6d300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
#0: 000000007063d21c (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7742:
#0: 00000000a424002a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
4 locks held by kworker/u4:7/9431:
#0: 0000000081c4d408 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
#1: 000000002c9a9ccd ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
#2: 00000000063ae66b (&type->s_umount_key#75){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412
#3: 000000001239854d (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512
4 locks held by syz-executor.3/10693:
2 locks held by syz-executor.3/10694:
#0: 0000000029a5b4b1 (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
#0: 0000000029a5b4b1 (sb_writers#18){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
#1: 000000007d37ae78 (&sb->s_type->i_mutex_key#24){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#1: 000000007d37ae78 (&sb->s_type->i_mutex_key#24){+.+.}, at: process_measurement+0x926/0x1440 security/integrity/ima/ima_main.c:205
3 locks held by syz-executor.3/10756:
#0: 0000000029a5b4b1 (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
#0: 0000000029a5b4b1 (sb_writers#18){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
#1: 000000007d37ae78 (&sb->s_type->i_mutex_key#24){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#1: 000000007d37ae78 (&sb->s_type->i_mutex_key#24){+.+.}, at: do_truncate+0x125/0x1f0 fs/open.c:61
#2: 000000001239854d (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512
2 locks held by syz-executor.5/11956:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/11959:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/11960:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/12064:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/12072:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/12073:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/12470:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457
2 locks held by syz-executor.5/12471:
#0: 00000000063ae66b (&type->s_umount_key#75){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631
#1: 00000000be3b761f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
#1: 00000000be3b761f (&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 02/16/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: 10693 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:debug_lockdep_rcu_enabled+0x39/0xe0 kernel/rcu/update.c:253
Code: fc ff df 48 89 c1 83 e0 07 48 c1 e9 03 83 c0 03 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 87 00 00 00 8b 35 1f 42 d6 09 85 f6 74 79 <48> c7 c0 60 f1 45 8a 48 ba 00 00 00 00 00 fc ff df 48 89 c1 83 e0
RSP: 0018:ffff88804bdfecc0 EFLAGS: 00000202
RAX: 0000000000000007 RBX: 0000000000000000 RCX: 1ffffffff164dc08
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffffff887119e0
RBP: ffffffff887119e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000000001e2
R13: dffffc0000000000 R14: ffff888046da33c8 R15: ffffea0002a38948
FS: 00007f68b22af700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f77be13c000 CR3: 00000000b3be4000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
___might_sleep+0x15/0x2b0 kernel/sched/core.c:6157
lock_page include/linux/pagemap.h:482 [inline]
pagecache_get_page+0x5f2/0xd50 mm/filemap.c:1577
find_get_page_flags include/linux/pagemap.h:278 [inline]
f2fs_grab_cache_page fs/f2fs/f2fs.h:2017 [inline]
f2fs_ra_meta_pages+0x3ca/0x1180 fs/f2fs/checkpoint.c:236
gc_data_segment fs/f2fs/gc.c:933 [inline]
do_garbage_collect fs/f2fs/gc.c:1109 [inline]
f2fs_gc+0x23ce/0x8c90 fs/f2fs/gc.c:1196
f2fs_balance_fs+0x71a/0xd80 fs/f2fs/segment.c:513
__write_data_page+0xab8/0x22d0 fs/f2fs/data.c:1975
f2fs_write_cache_pages+0x96e/0x13e0 fs/f2fs/data.c:2107
__f2fs_write_data_pages fs/f2fs/data.c:2217 [inline]
f2fs_write_data_pages+0x498/0x1060 fs/f2fs/data.c:2244
do_writepages+0xe5/0x290 mm/page-writeback.c:2344
__filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446
file_write_and_wait_range+0x93/0x100 mm/filemap.c:776
f2fs_do_sync_file+0x2eb/0x2550 fs/f2fs/file.c:228
f2fs_sync_file+0x136/0x190 fs/f2fs/file.c:334
vfs_fsync_range+0x13a/0x220 fs/sync.c:197
generic_write_sync include/linux/fs.h:2750 [inline]
f2fs_file_write_iter+0x64b/0xbe0 fs/f2fs/file.c:3044
call_write_iter include/linux/fs.h:1821 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x51b/0x770 fs/read_write.c:487
vfs_write+0x1f3/0x540 fs/read_write.c:549
ksys_write+0x12b/0x2a0 fs/read_write.c:599
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f68b3d3d0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f68b22af168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f68b3e5cf80 RCX: 00007f68b3d3d0f9
RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000008
RBP: 00007f68b3d98ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe6831289f R14: 00007f68b22af300 R15: 0000000000022000


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
Reply all
Reply to author
Forward
0 new messages