syzbot


INFO: task hung in do_read_cache_page (2)

Status: upstream: reported C repro on 2021/02/09 08:22
Reported-by: syzbot+ccfb42aa5b352bd23da9@syzkaller.appspotmail.com
First crash: 1165d, last: 447d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in do_read_cache_page block 10 2111d 2214d 0/26 auto-closed as invalid on 2019/02/22 10:09
linux-4.14 INFO: task hung in do_read_cache_page 2 643d 679d 0/1 auto-obsoleted due to no activity on 2022/11/13 17:53
linux-5.15 INFO: task hung in do_read_cache_page origin:upstream C error 9 291d 369d 0/3 upstream: reported C repro on 2023/04/16 18:09
upstream INFO: task hung in do_read_cache_page (3) fs mm C done inconclusive 88 646d 1544d 0/26 upstream: reported C repro on 2020/01/27 06:32
android-49 INFO: task hung in do_read_cache_page 1 2155d 2155d 0/3 auto-closed as invalid on 2019/02/22 13:59
upstream INFO: task hung in do_read_cache_page (2) block 1 1681d 1681d 0/26 auto-closed as invalid on 2019/11/11 08:43
linux-4.19 INFO: task hung in do_read_cache_page C done 2 1222d 1283d 1/1 fixed on 2021/01/13 11:08
upstream INFO: task can't die in wait_on_page_bit_common mm fs C done 5 977d 1329d 0/26 upstream: reported C repro on 2020/08/28 22:28

Sample crash report:
block nbd0: shutting down sockets
INFO: task syz-executor114:8099 blocked for more than 140 seconds.
      Not tainted 4.19.206-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor114 D27064  8099   8088 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
 io_schedule+0xb5/0x120 kernel/sched/core.c:5181
 wait_on_page_bit_common mm/filemap.c:1123 [inline]
 wait_on_page_bit+0x2c5/0x3f0 mm/filemap.c:1156
 wait_on_page_locked include/linux/pagemap.h:531 [inline]
 do_read_cache_page+0x20a/0x1170 mm/filemap.c:2873
 read_mapping_page include/linux/pagemap.h:402 [inline]
 read_dev_sector+0xbf/0x500 block/partition-generic.c:671
 read_part_sector block/partitions/check.h:38 [inline]
 adfspart_check_ICS+0x114/0xe70 block/partitions/acorn.c:366
 check_partition+0x390/0x690 block/partitions/check.c:167
 rescan_partitions+0x1b5/0x970 block/partition-generic.c:535
 bdev_disk_changed+0x179/0x1b0 fs/block_dev.c:1435
 __blkdev_get+0x1282/0x1480 fs/block_dev.c:1561
 blkdev_get+0xb0/0x940 fs/block_dev.c:1627
 blkdev_open+0x202/0x290 fs/block_dev.c:1788
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/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:0x406db4
Code: Bad RIP value.
RSP: 002b:00007f6a216b6d50 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000406db4
RDX: 0000000000000000 RSI: 00007f6a216b6de0 RDI: 00000000ffffff9c
RBP: 00007f6a216b6de0 R08: 0000000000000000 R09: 002364626e2f7665
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007ffe65818f1f R14: 00007f6a216b7300 R15: 0000000000022000
INFO: task syz-executor114:8100 blocked for more than 140 seconds.
      Not tainted 4.19.206-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor114 D28976  8100   8088 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:1015 [inline]
 __mutex_lock+0x604/0x1200 kernel/locking/mutex.c:1083
 __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
 blkdev_get+0xb0/0x940 fs/block_dev.c:1627
 blkdev_open+0x202/0x290 fs/block_dev.c:1788
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/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:0x406db4
Code: Bad RIP value.
RSP: 002b:00007f6a21695d50 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000406db4
RDX: 0000000000000000 RSI: 00007f6a21695de0 RDI: 00000000ffffff9c
RBP: 00007f6a21695de0 R08: 0000000000000000 R09: 002364626e2f7665
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007ffe65818f1f R14: 00007f6a21696300 R15: 0000000000022000
INFO: task syz-executor114:8101 blocked for more than 140 seconds.
      Not tainted 4.19.206-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor114 D28600  8101   8088 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:1015 [inline]
 __mutex_lock+0x604/0x1200 kernel/locking/mutex.c:1083
 __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
 blkdev_get+0xb0/0x940 fs/block_dev.c:1627
 blkdev_open+0x202/0x290 fs/block_dev.c:1788
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/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:0x406db4
Code: Bad RIP value.
RSP: 002b:00007f6a21674d50 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000406db4
RDX: 0000000000000000 RSI: 00007f6a21674de0 RDI: 00000000ffffff9c
RBP: 00007f6a21674de0 R08: 0000000000000000 R09: 002364626e2f7665
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007ffe65818f1f R14: 00007f6a21675300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 00000000a92526b4 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7807:
 #0: 000000004aa9779e (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor114/8099:
 #0: 000000009cf650ee (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor114/8100:
 #0: 000000009cf650ee (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor114/8101:
 #0: 000000009cf650ee (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478

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

NMI backtrace for cpu 0
CPU: 0 PID: 1571 Comm: khungtaskd Not tainted 4.19.206-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+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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4694 Comm: systemd-journal Not tainted 4.19.206-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__orc_find+0x6/0xf0 arch/x86/kernel/unwind_orc.c:31
Code: 6e 00 e9 a7 fd ff ff e8 08 de 6e 00 e9 ea fc ff ff 48 8b 3c 24 e8 8a de 6e 00 e9 7b fe ff ff 90 90 90 90 90 41 57 89 d0 41 56 <41> 55 41 54 4c 8d 64 87 fc 55 53 48 83 ec 10 85 d2 0f 84 95 00 00
RSP: 0018:ffff8880a0f979b8 EFLAGS: 00000012
RAX: 0000000000000008 RBX: 1ffff110141f2f43 RCX: ffffffff810059f0
RDX: 0000000000000008 RSI: ffffffff8b8cd332 RDI: ffffffff8b304eb0
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8b8cd332
R10: ffff8880a0f97b5f R11: 0000000000074071 R12: ffff8880a0f97b48
R13: ffff8880a0f97b35 R14: ffff8880a0f97b00 R15: ffffffff810059f0
FS:  00007f4691df28c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f468f1d4000 CR3: 00000000a0fad000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 orc_find arch/x86/kernel/unwind_orc.c:159 [inline]
 unwind_next_frame+0x339/0x1400 arch/x86/kernel/unwind_orc.c:422
 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 __kasan_slab_free+0x126/0x1f0 mm/kasan/kasan.c:521
 __cache_free mm/slab.c:3503 [inline]
 kfree+0xcc/0x210 mm/slab.c:3822
 aa_free_file_ctx security/apparmor/include/file.h:76 [inline]
 apparmor_file_free_security+0x9a/0xd0 security/apparmor/lsm.c:448
 security_file_free+0x3e/0x70 security/security.c:885
 file_free fs/file_table.c:54 [inline]
 __fput+0x42a/0x890 fs/file_table.c:294
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f4691381840
Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24
RSP: 002b:00007ffd29f02868 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: fffffffffffffffe RBX: 00007ffd29f02b70 RCX: 00007f4691381840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000565084a88300
RBP: 000000000000000d R08: 0000000000000000 R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000565084a84040 R14: 00007ffd29f02b30 R15: 0000565084a91470
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	e9 a7 fd ff ff       	jmpq   0xfffffdac
   5:	e8 08 de 6e 00       	callq  0x6ede12
   a:	e9 ea fc ff ff       	jmpq   0xfffffcf9
   f:	48 8b 3c 24          	mov    (%rsp),%rdi
  13:	e8 8a de 6e 00       	callq  0x6edea2
  18:	e9 7b fe ff ff       	jmpq   0xfffffe98
  1d:	90                   	nop
  1e:	90                   	nop
  1f:	90                   	nop
  20:	90                   	nop
  21:	90                   	nop
  22:	41 57                	push   %r15
  24:	89 d0                	mov    %edx,%eax
  26:	41 56                	push   %r14
* 28:	41 55                	push   %r13 <-- trapping instruction
  2a:	41 54                	push   %r12
  2c:	4c 8d 64 87 fc       	lea    -0x4(%rdi,%rax,4),%r12
  31:	55                   	push   %rbp
  32:	53                   	push   %rbx
  33:	48 83 ec 10          	sub    $0x10,%rsp
  37:	85 d2                	test   %edx,%edx
  39:	0f                   	.byte 0xf
  3a:	84                   	.byte 0x84
  3b:	95                   	xchg   %eax,%ebp

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/11 20:25 linux-4.19.y b172b44fcb17 3ce60af8 .config console log report syz C ci2-linux-4-19 INFO: task hung in do_read_cache_page
2023/01/28 03:30 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in do_read_cache_page
2023/01/07 21:20 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/11/22 23:14 linux-4.19.y 3f8a27f9e27b 9da37ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/10/22 12:29 linux-4.19.y 3f8a27f9e27b c0b80a55 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/10/14 14:52 linux-4.19.y 3f8a27f9e27b 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/09/01 05:42 linux-4.19.y 3f8a27f9e27b b01ec571 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/07/05 10:40 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/07/02 10:44 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/06/25 06:04 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/06/24 20:20 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/06/23 12:23 linux-4.19.y 3f8a27f9e27b 912f5df7 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/04/14 04:58 linux-4.19.y 3f8a27f9e27b b17b2923 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/04/07 02:32 linux-4.19.y 3f8a27f9e27b 97582466 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/03/26 15:53 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/01/10 11:32 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2022/01/03 08:47 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/09/24 21:47 linux-4.19.y 2950c9c5e0df 8cac236e .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/09/11 13:24 linux-4.19.y b172b44fcb17 3ce60af8 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/08/11 07:24 linux-4.19.y 5c66974a6304 6972b106 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/07/16 15:24 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/07/07 20:10 linux-4.19.y 9f84340f012e 95793bce .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/04/13 08:32 linux-4.19.y 830a059cbba6 6a81331a .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/04/06 12:23 linux-4.19.y 2034d6f0838e 6a81331a .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/03/04 03:41 linux-4.19.y 2d19be4653f5 06ed56cd .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
2021/02/09 08:21 linux-4.19.y 811218eceeaa 2bd9619f .config console log report info ci2-linux-4-19 INFO: task hung in do_read_cache_page
* Struck through repros no longer work on HEAD.