syzbot


INFO: task can't die in wait_on_page_bit_common

Status: upstream: reported C repro on 2020/08/28 22:28
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+17675037466844188253@syzkaller.appspotmail.com
First crash: 1911d, last: 1555d
Cause bisection: introduced by (bisect log) :
commit 2da22da573481cc4837e246d0eee4d518b3f715e
Author: Mike Christie <mchristi@redhat.com>
Date: Tue Aug 13 16:39:52 2019 +0000

  nbd: fix zero cmd timeout handling v2

Crash: INFO: task hung in do_read_cache_page (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
INFO: task can't die in wait_on_page_bit_common 0 (1) 2020/08/28 22:28
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in do_read_cache_page (2) 1 C error 26 1025d 1743d 0/1 upstream: reported C repro on 2021/02/09 08:22
linux-4.14 INFO: task hung in do_read_cache_page 1 2 1221d 1257d 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 1 C error 9 869d 947d 0/3 upstream: reported C repro on 2023/04/16 18:09
upstream INFO: task hung in do_read_cache_page (3) mm fs 1 C done inconclusive 88 1225d 2122d 0/29 upstream: reported C repro on 2020/01/27 06:32
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/10/23 02:43 24m retest repro linux-next OK log
2025/10/23 00:27 21m retest repro linux-next report log
2025/08/13 23:10 50m retest repro linux-next error
2025/08/13 23:10 29m retest repro linux-next error
2025/06/04 22:22 21m retest repro linux-next report log
2025/06/04 22:22 23m retest repro linux-next report log
2025/03/26 05:14 24m retest repro linux-next error
2025/03/26 01:08 27m retest repro linux-next error
2025/01/15 04:45 18m retest repro linux-next report log
2025/01/14 23:50 20m retest repro linux-next report log

Sample crash report:
INFO: task syz-executor264:6887 can't die for more than 143 seconds.
task:syz-executor264 state:D stack:27392 pid: 6887 ppid:  6876 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3777 [inline]
 __schedule+0xea9/0x2230 kernel/sched/core.c:4526
 schedule+0xd0/0x2a0 kernel/sched/core.c:4601
 io_schedule+0xb5/0x120 kernel/sched/core.c:6295
 wait_on_page_bit_common+0x52c/0xca0 mm/filemap.c:1191
 wait_on_page_bit mm/filemap.c:1216 [inline]
 wait_on_page_locked include/linux/pagemap.h:611 [inline]
 do_read_cache_page+0x257/0x1390 mm/filemap.c:2915
 read_mapping_page include/linux/pagemap.h:437 [inline]
 read_part_sector+0xf6/0x5af block/partitions/core.c:780
 adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360
 check_partition block/partitions/core.c:140 [inline]
 blk_add_partitions+0x445/0xe00 block/partitions/core.c:708
 bdev_disk_changed+0x208/0x390 fs/block_dev.c:1417
 __blkdev_get+0xee4/0x1870 fs/block_dev.c:1546
 blkdev_get+0xd1/0x240 fs/block_dev.c:1634
 blkdev_open+0x21d/0x2b0 fs/block_dev.c:1752
 do_dentry_open+0x4b9/0x11b0 fs/open.c:817
 do_open fs/namei.c:3251 [inline]
 path_openat+0x1b9a/0x2730 fs/namei.c:3368
 do_filp_open+0x17e/0x3c0 fs/namei.c:3395
 do_sys_openat2+0x16d/0x420 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1188
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4057a1
Code: Bad RIP value.
RSP: 002b:00007f8e5f71f980 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004057a1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f8e5f71f990
RBP: 6666666666666667 R08: 000000000000000f R09: 00007f8e5f720700
R10: 00007f8e5f7209d0 R11: 0000000000000293 R12: 00000000006dbc2c
R13: 00007fff7140521f R14: 00007f8e5f7209c0 R15: 20c49ba5e353f7cf
INFO: task syz-executor264:6887 blocked for more than 143 seconds.
      Not tainted 5.9.0-rc3-next-20200903-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor264 state:D stack:27392 pid: 6887 ppid:  6876 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3777 [inline]
 __schedule+0xea9/0x2230 kernel/sched/core.c:4526
 schedule+0xd0/0x2a0 kernel/sched/core.c:4601
 io_schedule+0xb5/0x120 kernel/sched/core.c:6295
 wait_on_page_bit_common+0x52c/0xca0 mm/filemap.c:1191
 wait_on_page_bit mm/filemap.c:1216 [inline]
 wait_on_page_locked include/linux/pagemap.h:611 [inline]
 do_read_cache_page+0x257/0x1390 mm/filemap.c:2915
 read_mapping_page include/linux/pagemap.h:437 [inline]
 read_part_sector+0xf6/0x5af block/partitions/core.c:780
 adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360
 check_partition block/partitions/core.c:140 [inline]
 blk_add_partitions+0x445/0xe00 block/partitions/core.c:708
 bdev_disk_changed+0x208/0x390 fs/block_dev.c:1417
 __blkdev_get+0xee4/0x1870 fs/block_dev.c:1546
 blkdev_get+0xd1/0x240 fs/block_dev.c:1634
 blkdev_open+0x21d/0x2b0 fs/block_dev.c:1752
 do_dentry_open+0x4b9/0x11b0 fs/open.c:817
 do_open fs/namei.c:3251 [inline]
 path_openat+0x1b9a/0x2730 fs/namei.c:3368
 do_filp_open+0x17e/0x3c0 fs/namei.c:3395
 do_sys_openat2+0x16d/0x420 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1188
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4057a1
Code: Bad RIP value.
RSP: 002b:00007f8e5f71f980 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004057a1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f8e5f71f990
RBP: 6666666666666667 R08: 000000000000000f R09: 00007f8e5f720700
R10: 00007f8e5f7209d0 R11: 0000000000000293 R12: 00000000006dbc2c
R13: 00007fff7140521f R14: 00007f8e5f7209c0 R15: 20c49ba5e353f7cf

Showing all locks held in the system:
1 lock held by khungtaskd/1149:
 #0: ffffffff89c67500 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5829
1 lock held by syz-executor264/6887:
 #0: ffff88808a7748c0 (&bdev->bd_mutex){+.+.}-{3:3}, at: __blkdev_get+0x457/0x1870 fs/block_dev.c:1479

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

NMI backtrace for cpu 0
CPU: 0 PID: 1149 Comm: khungtaskd Not tainted 5.9.0-rc3-next-20200903-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+0x198/0x1fd lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:147 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:253 [inline]
 watchdog+0xd89/0xf30 kernel/hung_task.c:339
 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: 3900 Comm: systemd-journal Not tainted 5.9.0-rc3-next-20200903-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:152 [inline]
RIP: 0010:qlist_free_all+0xb4/0x170 mm/kasan/quarantine.c:168
Code: 48 c1 e8 03 42 c6 04 38 fb e8 18 7f ff ff 4d 85 f6 0f 85 85 00 00 00 48 83 3d af df 00 08 00 0f 84 8a 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 4d 85 e4 74 7d 48 85 ed 4c 89 e6 48 89 ef 0f 85 69
RSP: 0018:ffffc90001627c60 EFLAGS: 00000286
RAX: 00000000000b80e3 RBX: 0000000000000286 RCX: 1ffffffff1578f39
RDX: ffff888093be6340 RSI: 0000000000000000 RDI: 0000000000000286
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888094050b60
R13: ffffc90001627ca8 R14: 0000000000000200 R15: dffffc0000000000
FS:  00007f7c5d5898c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7c5a934000 CR3: 0000000093409000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 quarantine_reduce+0x17e/0x200 mm/kasan/quarantine.c:261
 __kasan_kmalloc.constprop.0+0x9e/0xd0 mm/kasan/common.c:442
 slab_post_alloc_hook mm/slab.h:517 [inline]
 slab_alloc mm/slab.c:3312 [inline]
 kmem_cache_alloc+0x13a/0x3a0 mm/slab.c:3482
 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138
 getname_flags include/linux/audit.h:320 [inline]
 getname+0x8e/0xd0 fs/namei.c:209
 do_sys_openat2+0xf5/0x420 fs/open.c:1162
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1188
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f7c5cb19840
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:00007ffcfb22ca08 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ffcfb22cd10 RCX: 00007f7c5cb19840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055dc4a8d1260
RBP: 000000000000000d R08: 00000000000001c0 R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000055dc4a8c5040 R14: 00007ffcfb22ccd0 R15: 000055dc4a8d0fe0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/03 13:50 linux-next 7a6956579ce6 abf9ba4f .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/08/24 22:22 linux-next d8be0e12a522 67b599d1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2021/02/26 14:01 linux-next d01f2f7e3557 76f7fc95 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task can't die in wait_on_page_bit_common
2020/09/07 02:11 linux-next 7a6956579ce6 abf9ba4f .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2021/08/16 14:46 linux-next b9011c7e671d 33c26cb7 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task can't die in folio_wait_bit_common
* Struck through repros no longer work on HEAD.