syzbot


INFO: task hung in pagecache_get_page (2)

Status: auto-closed as invalid on 2020/11/17 18:29
Subsystems: block
[Documentation on labels]
First crash: 1371d, last: 1371d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in pagecache_get_page 1 514d 514d 0/1 upstream: reported on 2022/12/25 04:38
android-49 INFO: task hung in pagecache_get_page 89 2165d 2296d 0/3 auto-closed as invalid on 2019/02/22 12:49
upstream INFO: task hung in pagecache_get_page fs 144 2041d 2359d 0/26 closed as dup on 2017/12/12 16:52
android-44 INFO: task hung in pagecache_get_page 9 2218d 2272d 0/2 auto-closed as invalid on 2019/02/22 15:22
android-49 INFO: task hung in pagecache_get_page (2) 2 1845d 1853d 0/3 auto-closed as invalid on 2019/10/25 08:51

Sample crash report:
INFO: task syz-executor.1:25864 blocked for more than 143 seconds.
      Not tainted 5.9.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:29632 pid:25864 ppid:  6861 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3778 [inline]
 __schedule+0x8e5/0x21e0 kernel/sched/core.c:4527
 schedule+0xd0/0x2a0 kernel/sched/core.c:4602
 io_schedule+0xb5/0x120 kernel/sched/core.c:6296
 wait_on_page_bit_common+0x52c/0xca0 mm/filemap.c:1191
 __lock_page mm/filemap.c:1413 [inline]
 lock_page include/linux/pagemap.h:548 [inline]
 pagecache_get_page+0xa37/0xf70 mm/filemap.c:1682
 find_lock_page include/linux/pagemap.h:323 [inline]
 truncate_inode_pages_range+0xf3d/0x16a0 mm/truncate.c:394
 blk_ioctl_zeroout block/ioctl.c:170 [inline]
 blkdev_common_ioctl+0xae2/0x1760 block/ioctl.c:510
 blkdev_ioctl+0x1da/0x700 block/ioctl.c:618
 block_ioctl+0xf9/0x140 fs/block_dev.c:1871
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl fs/ioctl.c:739 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d4d9
Code: Bad RIP value.
RSP: 002b:00007f2626963c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000009000 RCX: 000000000045d4d9
RDX: 0000000020000080 RSI: 000000000000127f RDI: 0000000000000004
RBP: 000000000118d0c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118d08c
R13: 00007ffd3d3d3b0f R14: 00007f26269649c0 R15: 000000000118d08c

Showing all locks held in the system:
1 lock held by khungtaskd/1167:
 #0: ffffffff89bd6340 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5825
1 lock held by kswapd0/1692:
1 lock held by kswapd1/1693:
1 lock held by systemd-journal/3894:
2 locks held by systemd-timesyn/4026:
2 locks held by in:imklog/6648:
1 lock held by cron/6612:
2 locks held by syz-fuzzer/6846:
2 locks held by syz-fuzzer/6850:
3 locks held by kworker/u4:1/17423:

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

NMI backtrace for cpu 0
CPU: 0 PID: 1167 Comm: khungtaskd Not tainted 5.9.0-rc1-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+0x18f/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd7d/0x1000 kernel/hung_task.c:295
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 25843 Comm: syz-executor.0 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kasan_mem_to_shadow include/linux/kasan.h:28 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:134 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:165 [inline]
RIP: 0010:check_memory_region_inline mm/kasan/generic.c:183 [inline]
RIP: 0010:check_memory_region+0x44/0x180 mm/kasan/generic.c:192
Code: 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86 05 01 00 00 49 83 e9 01 48 89 fd 48 b8 00 00 00 00 00 fc ff df 4d 89 ca <48> c1 ed 03 49 c1 ea 03 48 01 c5 49 01 c2 48 89 e8 49 8d 5a 01 48
RSP: 0018:ffffc90000da8858 EFLAGS: 00000086
RAX: dffffc0000000000 RBX: 000000000000003e RCX: ffffffff815a0dee
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8c5f09e0
RBP: ffffffff8c5f09e0 R08: 0000000000000000 R09: ffffffff8c5f09e7
R10: ffffffff8c5f09e7 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8880501bab9a R14: ffff8880501ba240 R15: 0000000000000000
FS:  00007f8586a48700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000919ce8 CR3: 000000008ee41000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:56 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline]
 __lock_acquire+0xfbe/0x5640 kernel/locking/lockdep.c:4396
 lock_acquire+0x1f1/0xad0 kernel/locking/lockdep.c:5005
 seqcount_lockdep_reader_access include/linux/seqlock.h:102 [inline]
 read_seqcount_t_begin.constprop.0+0xae/0x1f0 include/linux/seqlock.h:311
 ktime_get_update_offsets_now+0x5b/0x250 kernel/time/timekeeping.c:2224
 hrtimer_update_base kernel/time/hrtimer.c:602 [inline]
 hrtimer_interrupt+0x4d7/0x930 kernel/time/hrtimer.c:1682
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1097
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline]
 sysvec_apic_timer_interrupt+0x4c/0xf0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x8c/0xe0 kernel/locking/spinlock.c:191
Code: 48 c7 c0 08 36 b6 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 37 48 83 3d 33 6a c0 01 00 74 22 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 95 e7 59 f9 65 8b 05 8e 32 0c 78
RSP: 0018:ffffc90000da8d08 EFLAGS: 00000282
RAX: 1ffffffff136c6c1 RBX: 0000000000000282 RCX: 0000000000000002
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000282
RBP: ffffffff8d4cab60 R08: 0000000000000001 R09: ffffffff8c5f0a4f
R10: fffffbfff18be149 R11: 0000000000000000 R12: ffffc90000da8d68
R13: 0000000000000000 R14: 1ffff920001b51a7 R15: ffff8880ae7255c0
 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1413
 expire_timers kernel/time/timer.c:1458 [inline]
 __run_timers.part.0+0x67c/0xaa0 kernel/time/timer.c:1755
 __run_timers kernel/time/timer.c:1736 [inline]
 run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1768
 __do_softirq+0x2de/0xa24 kernel/softirq.c:298
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x9d/0xd0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu kernel/softirq.c:423 [inline]
 irq_exit_rcu+0x1f3/0x230 kernel/softirq.c:435
 sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x4b/0x80 kernel/locking/spinlock.c:199
Code: c0 18 36 b6 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 31 48 83 3d 86 70 c0 01 00 74 25 fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 db ed 59 f9 65 8b 05 d4 38 0c 78 85 c0 74 02 5d
RSP: 0018:ffffc900173de380 EFLAGS: 00000286
RAX: 1ffffffff136c6c3 RBX: ffffc900173de9d0 RCX: 1ffffffff1563bd1
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff87f5c56f
RBP: ffff88812ffffcc0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880a9590000 R14: 0000000000000019 R15: ffffc900173de450
 spin_unlock_irq include/linux/spinlock.h:404 [inline]
 shrink_inactive_list+0x4a0/0xd20 mm/vmscan.c:1973
 shrink_list mm/vmscan.c:2168 [inline]
 shrink_lruvec+0x5fe/0x1160 mm/vmscan.c:2463
 shrink_node_memcgs mm/vmscan.c:2643 [inline]
 shrink_node+0x829/0x1d10 mm/vmscan.c:2760
 shrink_zones mm/vmscan.c:2963 [inline]
 do_try_to_free_pages+0x38b/0x1420 mm/vmscan.c:3018
 try_to_free_pages+0x29e/0x7d0 mm/vmscan.c:3257
 __perform_reclaim mm/page_alloc.c:4255 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4276 [inline]
 __alloc_pages_slowpath.constprop.0+0x995/0x2860 mm/page_alloc.c:4680
 __alloc_pages_nodemask+0x62c/0x790 mm/page_alloc.c:4896
 __alloc_pages include/linux/gfp.h:509 [inline]
 __alloc_pages_node include/linux/gfp.h:522 [inline]
 kmem_getpages mm/slab.c:1376 [inline]
 cache_grow_begin+0x71/0x430 mm/slab.c:2590
 fallback_alloc+0x205/0x2d0 mm/slab.c:3137
 __do_cache_alloc mm/slab.c:3275 [inline]
 slab_alloc mm/slab.c:3304 [inline]
 kmem_cache_alloc+0x236/0x3a0 mm/slab.c:3482
 mempool_alloc+0x146/0x350 mm/mempool.c:393
 bio_alloc_bioset+0x37b/0x5d0 block/bio.c:486
 bio_clone_fast+0x21/0x1b0 block/bio.c:710
 bio_split+0xc7/0x2c0 block/bio.c:1477
 blk_bio_segment_split block/blk-merge.c:281 [inline]
 __blk_queue_split+0x10e2/0x1650 block/blk-merge.c:331
 blk_mq_submit_bio+0x1b0/0x1760 block/blk-mq.c:2145
 __submit_bio_noacct_mq block/blk-core.c:1179 [inline]
 submit_bio_noacct+0xc78/0x12b0 block/blk-core.c:1212
 submit_bio+0x263/0x5b0 block/blk-core.c:1282
 mpage_bio_submit fs/mpage.c:66 [inline]
 do_mpage_readpage+0x1054/0x1ef0 fs/mpage.c:316
 mpage_readahead+0x3a3/0x880 fs/mpage.c:391
 read_pages+0x1df/0x8d0 mm/readahead.c:130
 page_cache_readahead_unbounded+0x572/0x850 mm/readahead.c:244
 __do_page_cache_readahead+0xc2/0xf0 mm/readahead.c:273
 ra_submit mm/internal.h:64 [inline]
 do_sync_mmap_readahead mm/filemap.c:2505 [inline]
 filemap_fault+0x1a3d/0x2ab0 mm/filemap.c:2593
 __do_fault+0x10d/0x4d0 mm/memory.c:3463
 do_shared_fault mm/memory.c:3910 [inline]
 do_fault mm/memory.c:3988 [inline]
 handle_pte_fault mm/memory.c:4224 [inline]
 __handle_mm_fault mm/memory.c:4359 [inline]
 handle_mm_fault+0x34f3/0x4590 mm/memory.c:4457
 do_user_addr_fault+0x598/0xbf0 arch/x86/mm/fault.c:1294
 handle_page_fault arch/x86/mm/fault.c:1351 [inline]
 exc_page_fault+0xa8/0x160 arch/x86/mm/fault.c:1404
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538
RIP: 0010:copy_user_generic_unrolled+0x89/0xc0 arch/x86/lib/copy_user_64.S:91
Code: 38 4c 89 47 20 4c 89 4f 28 4c 89 57 30 4c 89 5f 38 48 8d 76 40 48 8d 7f 40 ff c9 75 b6 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 <4c> 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a
RSP: 0018:ffffc900173dfe50 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000020000040 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffc900173dfeb0 RDI: 0000000020000040
RBP: ffffc900173dfeb0 R08: 0000000600000005 R09: ffffc900173dfeb7
R10: fffff52002e7bfd6 R11: 0000000000000000 R12: 0000000000000008
R13: 0000000020000048 R14: 00007ffffffff000 R15: 0000000000000000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:74 [inline]
 _copy_to_user+0x11e/0x160 lib/usercopy.c:30
 copy_to_user include/linux/uaccess.h:168 [inline]
 do_pipe2+0x128/0x1b0 fs/pipe.c:1014
 __do_sys_pipe fs/pipe.c:1035 [inline]
 __se_sys_pipe fs/pipe.c:1033 [inline]
 __x64_sys_pipe+0x2f/0x40 fs/pipe.c:1033
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d4d9
Code: Bad RIP value.
RSP: 002b:00007f8586a47c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000016
RAX: ffffffffffffffda RBX: 0000000000023b40 RCX: 000000000045d4d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 000000000118cf70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffeaca04dff R14: 00007f8586a489c0 R15: 000000000118cf4c

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/19 18:23 upstream 18445bf405cb 94b45706 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.