syzbot


INFO: task hung in filemap_fault (4)

Status: auto-closed as invalid on 2022/05/27 12:14
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 275d, last: 275d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in filemap_fault (3) 1 356d 356d 0/24 closed as invalid on 2022/02/08 09:40
upstream INFO: task hung in filemap_fault 24 1785d 1806d 0/24 closed as invalid on 2018/02/13 19:52
android-44 INFO: task hung in filemap_fault 3 1715d 1717d 0/2 auto-closed as invalid on 2019/02/22 14:09
android-49 INFO: task hung in filemap_fault 4 1608d 1655d 0/3 auto-closed as invalid on 2019/02/22 14:49
upstream INFO: task hung in filemap_fault (2) 5 1498d 1702d 0/24 auto-closed as invalid on 2019/04/20 06:20

Sample crash report:
INFO: task syz-executor.2:5788 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:26024 pid: 5788 ppid:  3685 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_read_slowpath+0x589/0xa70 kernel/locking/rwsem.c:1032
 __down_read_common kernel/locking/rwsem.c:1214 [inline]
 __down_read kernel/locking/rwsem.c:1223 [inline]
 down_read+0xe2/0x440 kernel/locking/rwsem.c:1463
 filemap_invalidate_lock_shared include/linux/fs.h:832 [inline]
 filemap_fault+0xbd0/0x20f0 mm/filemap.c:3109
 __do_fault+0x10d/0x4d0 mm/memory.c:3868
 do_read_fault mm/memory.c:4183 [inline]
 do_fault mm/memory.c:4312 [inline]
 handle_pte_fault mm/memory.c:4570 [inline]
 __handle_mm_fault+0x28d8/0x5110 mm/memory.c:4705
 handle_mm_fault+0x1c8/0x790 mm/memory.c:4803
 faultin_page mm/gup.c:969 [inline]
 __get_user_pages+0x503/0xf60 mm/gup.c:1190
 populate_vma_page_range+0x24d/0x330 mm/gup.c:1522
 __mm_populate+0x1ea/0x3e0 mm/gup.c:1631
 mm_populate include/linux/mm.h:2702 [inline]
 vm_mmap_pgoff+0x20e/0x290 mm/util.c:524
 ksys_mmap_pgoff+0x40d/0x5a0 mm/mmap.c:1630
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f31a60a9049
RSP: 002b:00007f31a4a1e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f31a61bbf60 RCX: 00007f31a60a9049
RDX: 0000000001000006 RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f31a610308d R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc110c9e8f R14: 00007f31a4a1e300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.2:5795 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:28456 pid: 5795 ppid:  3685 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0x634/0x1110 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write_common kernel/locking/rwsem.c:1256 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1515
 filemap_invalidate_lock include/linux/fs.h:822 [inline]
 blkdev_fallocate+0x1e2/0x420 block/fops.c:659
 vfs_fallocate+0x48d/0xe10 fs/open.c:308
 madvise_remove mm/madvise.c:959 [inline]
 madvise_vma_behavior+0xa6d/0x1910 mm/madvise.c:982
 madvise_walk_vmas+0x1d5/0x2d0 mm/madvise.c:1207
 do_madvise mm/madvise.c:1385 [inline]
 do_madvise+0x2d4/0x3c0 mm/madvise.c:1343
 __do_sys_madvise mm/madvise.c:1398 [inline]
 __se_sys_madvise mm/madvise.c:1396 [inline]
 __x64_sys_madvise+0xa6/0x110 mm/madvise.c:1396
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f31a60a9049
RSP: 002b:00007f31a49fd168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f31a61bc030 RCX: 00007f31a60a9049
RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007f31a610308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc110c9e8f R14: 00007f31a49fd300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.3:5796 blocked for more than 144 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:29432 pid: 5796 ppid:  3623 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0x634/0x1110 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write_common kernel/locking/rwsem.c:1256 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1515
 filemap_invalidate_lock include/linux/fs.h:822 [inline]
 blkdev_fallocate+0x1e2/0x420 block/fops.c:659
 vfs_fallocate+0x48d/0xe10 fs/open.c:308
 madvise_remove mm/madvise.c:959 [inline]
 madvise_vma_behavior+0xa6d/0x1910 mm/madvise.c:982
 madvise_walk_vmas+0x1d5/0x2d0 mm/madvise.c:1207
 do_madvise mm/madvise.c:1385 [inline]
 do_madvise+0x2d4/0x3c0 mm/madvise.c:1343
 __do_sys_madvise mm/madvise.c:1398 [inline]
 __se_sys_madvise mm/madvise.c:1396 [inline]
 __x64_sys_madvise+0xa6/0x110 mm/madvise.c:1396
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fea9d71d049
RSP: 002b:00007fea9c071168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fea9d830030 RCX: 00007fea9d71d049
RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007fea9d77708d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1dc68bff R14: 00007fea9c071300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.3:5804 blocked for more than 144 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:29432 pid: 5804 ppid:  3623 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0x634/0x1110 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write_common kernel/locking/rwsem.c:1256 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1515
 filemap_invalidate_lock include/linux/fs.h:822 [inline]
 blkdev_fallocate+0x1e2/0x420 block/fops.c:659
 vfs_fallocate+0x48d/0xe10 fs/open.c:308
 madvise_remove mm/madvise.c:959 [inline]
 madvise_vma_behavior+0xa6d/0x1910 mm/madvise.c:982
 madvise_walk_vmas+0x1d5/0x2d0 mm/madvise.c:1207
 do_madvise mm/madvise.c:1385 [inline]
 do_madvise+0x2d4/0x3c0 mm/madvise.c:1343
 __do_sys_madvise mm/madvise.c:1398 [inline]
 __se_sys_madvise mm/madvise.c:1396 [inline]
 __x64_sys_madvise+0xa6/0x110 mm/madvise.c:1396
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fea9d71d049
RSP: 002b:00007fea9bfed168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fea9d830370 RCX: 00007fea9d71d049
RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007fea9d77708d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1dc68bff R14: 00007fea9bfed300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.5:5794 blocked for more than 144 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:26464 pid: 5794 ppid:  3622 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_read_slowpath+0x589/0xa70 kernel/locking/rwsem.c:1032
 __down_read_common kernel/locking/rwsem.c:1214 [inline]
 __down_read kernel/locking/rwsem.c:1223 [inline]
 down_read+0xe2/0x440 kernel/locking/rwsem.c:1463
 filemap_invalidate_lock_shared include/linux/fs.h:832 [inline]
 filemap_fault+0xbd0/0x20f0 mm/filemap.c:3109
 __do_fault+0x10d/0x4d0 mm/memory.c:3868
 do_read_fault mm/memory.c:4183 [inline]
 do_fault mm/memory.c:4312 [inline]
 handle_pte_fault mm/memory.c:4570 [inline]
 __handle_mm_fault+0x28d8/0x5110 mm/memory.c:4705
 handle_mm_fault+0x1c8/0x790 mm/memory.c:4803
 faultin_page mm/gup.c:969 [inline]
 __get_user_pages+0x503/0xf60 mm/gup.c:1190
 populate_vma_page_range+0x24d/0x330 mm/gup.c:1522
 __mm_populate+0x1ea/0x3e0 mm/gup.c:1631
 mm_populate include/linux/mm.h:2702 [inline]
 vm_mmap_pgoff+0x20e/0x290 mm/util.c:524
 ksys_mmap_pgoff+0x40d/0x5a0 mm/mmap.c:1630
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f35297d8049
RSP: 002b:00007f352814d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f35298eaf60 RCX: 00007f35297d8049
RDX: 0000000001000006 RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f352983208d R08: 0000000000000010 R09: 0000000000000000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe40a5047f R14: 00007f352814d300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:5807 blocked for more than 145 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:29432 pid: 5807 ppid:  3621 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0x634/0x1110 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write_common kernel/locking/rwsem.c:1256 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1515
 filemap_invalidate_lock include/linux/fs.h:822 [inline]
 blkdev_fallocate+0x1e2/0x420 block/fops.c:659
 vfs_fallocate+0x48d/0xe10 fs/open.c:308
 madvise_remove mm/madvise.c:959 [inline]
 madvise_vma_behavior+0xa6d/0x1910 mm/madvise.c:982
 madvise_walk_vmas+0x1d5/0x2d0 mm/madvise.c:1207
 do_madvise mm/madvise.c:1385 [inline]
 do_madvise+0x2d4/0x3c0 mm/madvise.c:1343
 __do_sys_madvise mm/madvise.c:1398 [inline]
 __se_sys_madvise mm/madvise.c:1396 [inline]
 __x64_sys_madvise+0xa6/0x110 mm/madvise.c:1396
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f57c8661049
RSP: 002b:00007f57c6fb5168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f57c8774030 RCX: 00007f57c8661049
RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007f57c86bb08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffafbfd05f R14: 00007f57c6fb5300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.1:5813 blocked for more than 145 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:26648 pid: 5813 ppid:  3625 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0x634/0x1110 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write_common kernel/locking/rwsem.c:1256 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1515
 filemap_invalidate_lock include/linux/fs.h:822 [inline]
 blkdev_fallocate+0x1e2/0x420 block/fops.c:659
 vfs_fallocate+0x48d/0xe10 fs/open.c:308
 madvise_remove mm/madvise.c:959 [inline]
 madvise_vma_behavior+0xa6d/0x1910 mm/madvise.c:982
 madvise_walk_vmas+0x1d5/0x2d0 mm/madvise.c:1207
 do_madvise mm/madvise.c:1385 [inline]
 do_madvise+0x2d4/0x3c0 mm/madvise.c:1343
 __do_sys_madvise mm/madvise.c:1398 [inline]
 __se_sys_madvise mm/madvise.c:1396 [inline]
 __x64_sys_madvise+0xa6/0x110 mm/madvise.c:1396
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5784e1c049
RSP: 002b:00007f5783791168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f5784f2ef60 RCX: 00007f5784e1c049
RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007f5784e7608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdb77dd1ff R14: 00007f5783791300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.4:5815 blocked for more than 145 seconds.
      Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:28408 pid: 5815 ppid:  3626 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0xa94/0x4910 kernel/sched/core.c:6304
 schedule+0xd2/0x260 kernel/sched/core.c:6377
 rwsem_down_read_slowpath+0x589/0xa70 kernel/locking/rwsem.c:1032
 __down_read_common kernel/locking/rwsem.c:1214 [inline]
 __down_read kernel/locking/rwsem.c:1223 [inline]
 down_read+0xe2/0x440 kernel/locking/rwsem.c:1463
 filemap_invalidate_lock_shared include/linux/fs.h:832 [inline]
 page_cache_ra_unbounded+0x1b7/0x740 mm/readahead.c:194
 do_page_cache_ra+0xf9/0x140 mm/readahead.c:268
 do_sync_mmap_readahead mm/filemap.c:3025 [inline]
 filemap_fault+0x1527/0x20f0 mm/filemap.c:3117
 __do_fault+0x10d/0x4d0 mm/memory.c:3868
 do_read_fault mm/memory.c:4183 [inline]
 do_fault mm/memory.c:4312 [inline]
 handle_pte_fault mm/memory.c:4570 [inline]
 __handle_mm_fault+0x28d8/0x5110 mm/memory.c:4705
 handle_mm_fault+0x1c8/0x790 mm/memory.c:4803
 faultin_page mm/gup.c:969 [inline]
 __get_user_pages+0x503/0xf60 mm/gup.c:1190
 populate_vma_page_range+0x24d/0x330 mm/gup.c:1522
 __mm_populate+0x1ea/0x3e0 mm/gup.c:1631
 mm_populate include/linux/mm.h:2702 [inline]
 vm_mmap_pgoff+0x20e/0x290 mm/util.c:524
 ksys_mmap_pgoff+0x40d/0x5a0 mm/mmap.c:1630
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fc2ef36c049
RSP: 002b:00007fc2edce1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fc2ef47ef60 RCX: 00007fc2ef36c049
RDX: 0000000001000006 RSI: 0000000000002000 RDI: 00000000205af000
RBP: 00007fc2ef3c608d R08: 0000000000000004 R09: 0000000046a2e000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe8b6b166f R14: 00007fc2edce1300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8bb845e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
2 locks held by getty/3274:
 #0: ffff88814ace3098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b632e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2075
2 locks held by syz-executor.2/5788:
 #0: ffff8880759a0f28 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline]
 #0: ffff8880759a0f28 (&mm->mmap_lock#2){++++}-{3:3}, at: __mm_populate+0x264/0x3e0 mm/gup.c:1611
 #1: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:832 [inline]
 #1: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_fault+0xbd0/0x20f0 mm/filemap.c:3109
1 lock held by syz-executor.2/5795:
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:822 [inline]
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x420 block/fops.c:659
1 lock held by syz-executor.3/5792:
1 lock held by syz-executor.3/5796:
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:822 [inline]
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x420 block/fops.c:659
1 lock held by syz-executor.3/5804:
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:822 [inline]
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x420 block/fops.c:659
2 locks held by syz-executor.5/5794:
 #0: ffff88807e184e28 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline]
 #0: ffff88807e184e28 (&mm->mmap_lock#2){++++}-{3:3}, at: __mm_populate+0x264/0x3e0 mm/gup.c:1611
 #1: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:832 [inline]
 #1: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_fault+0xbd0/0x20f0 mm/filemap.c:3109
1 lock held by syz-executor.0/5807:
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:822 [inline]
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x420 block/fops.c:659
1 lock held by syz-executor.1/5813:
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:822 [inline]
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x420 block/fops.c:659
1 lock held by syz-executor.4/5815:
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:832 [inline]
 #0: ffff888146a0f0c8 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x1b7/0x740 mm/readahead.c:194

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 89 Comm: kworker/u4:3 Not tainted 5.17.0-rc5-syzkaller-00272-g9137eda53752 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy7 ieee80211_iface_work
RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x7/0x60 kernel/kcov.c:200
Code: 46 00 5d be 03 00 00 00 e9 06 84 67 02 66 0f 1f 44 00 00 48 8b be b0 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 8b 05 f9 83 89 7e <89> c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 00 70 02 00 a9
RSP: 0018:ffffc90001adf6d8 EFLAGS: 00000206
RAX: 0000000080000000 RBX: ffffc90001adf8a0 RCX: 0000000000000410
RDX: 0000000000000000 RSI: ffff888017781d00 RDI: 0000000000000003
RBP: ffff888051e96000 R08: 0000000000000000 R09: ffffc90001adf8a0
R10: ffffffff88a38ac6 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000410 R15: 0000000000000800
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00bcb7f40 CR3: 0000000073972000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 ieee80211_parse_ch_switch_ie+0x175/0xfa0 net/mac80211/spectmgmt.c:49
 ieee80211_ibss_process_chanswitch.constprop.0+0x259/0xcd0 net/mac80211/ibss.c:799
 ieee80211_rx_bss_info net/mac80211/ibss.c:1147 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x20c4/0x3150 net/mac80211/ibss.c:1639
 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline]
 ieee80211_iface_work+0xa69/0xd00 net/mac80211/iface.c:1581
 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307
 worker_thread+0x657/0x1110 kernel/workqueue.c:2454
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
----------------
Code disassembly (best guess):
   0:	46 00 5d be          	rex.RX add %r11b,-0x42(%rbp)
   4:	03 00                	add    (%rax),%eax
   6:	00 00                	add    %al,(%rax)
   8:	e9 06 84 67 02       	jmpq   0x2678413
   d:	66 0f 1f 44 00 00    	nopw   0x0(%rax,%rax,1)
  13:	48 8b be b0 01 00 00 	mov    0x1b0(%rsi),%rdi
  1a:	e8 b4 ff ff ff       	callq  0xffffffd3
  1f:	31 c0                	xor    %eax,%eax
  21:	c3                   	retq
  22:	90                   	nop
  23:	65 8b 05 f9 83 89 7e 	mov    %gs:0x7e8983f9(%rip),%eax        # 0x7e898423
* 2a:	89 c1                	mov    %eax,%ecx <-- trapping instruction
  2c:	48 8b 34 24          	mov    (%rsp),%rsi
  30:	81 e1 00 01 00 00    	and    $0x100,%ecx
  36:	65 48 8b 14 25 00 70 	mov    %gs:0x27000,%rdx
  3d:	02 00
  3f:	a9                   	.byte 0xa9

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/02/26 12:09 upstream 9137eda53752 45a13a73 .config log report info INFO: task hung in filemap_fault
* Struck through repros no longer work on HEAD.