attempt to access beyond end of device loop2: rw=0, want=4561435534, limit=272 Buffer I/O error on dev loop2, logical block 2280717766, async page read attempt to access beyond end of device loop2: rw=0, want=58222, limit=272 INFO: task syz-executor.2:26152 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.2 D29976 26152 3291 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 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write_nested+0x51/0x90 kernel/locking/rwsem.c:194 inode_lock_nested include/linux/fs.h:783 [inline] filename_create+0x15a/0x490 fs/namei.c:3638 user_path_create fs/namei.c:3696 [inline] do_mkdirat+0xa0/0x2d0 fs/namei.c:3834 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc34be46a39 Code: Bad RIP value. RSP: 002b:00007fc34937a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fc34bf4a0e0 RCX: 00007fc34be46a39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240 RBP: 00007fc34bea0e8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfd45caf R14: 00007fc34937a300 R15: 0000000000022000 INFO: task syz-executor.2:26157 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.2 D29368 26157 3291 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 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] do_last fs/namei.c:3324 [inline] path_openat+0x1071/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:0x7fc34be46a39 Code: Bad RIP value. RSP: 002b:00007fc349359188 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fc34bf4a1a0 RCX: 00007fc34be46a39 RDX: 0000000000000002 RSI: 0000000000000040 RDI: 00000000200000c0 RBP: 00007fc34bea0e8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfd45caf R14: 00007fc349359300 R15: 0000000000022000 INFO: task syz-executor.2:26163 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.2 D29176 26163 3291 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 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x44/0x80 kernel/locking/rwsem.c:26 inode_lock_shared include/linux/fs.h:758 [inline] lookup_slow fs/namei.c:1688 [inline] walk_component+0x798/0xda0 fs/namei.c:1811 lookup_last fs/namei.c:2274 [inline] path_lookupat+0x1ff/0x8d0 fs/namei.c:2319 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path include/linux/namei.h:62 [inline] do_mount+0x147/0x2f50 fs/namespace.c:2762 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc34be46a39 Code: Bad RIP value. RSP: 002b:00007fc349338188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc34bf4a260 RCX: 00007fc34be46a39 RDX: 0000000020000080 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007fc34bea0e8f R08: 0000000020000280 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfd45caf R14: 00007fc349338300 R15: 0000000000022000 INFO: task syz-executor.2:26186 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.2 D28440 26186 3291 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 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x44/0x80 kernel/locking/rwsem.c:26 inode_lock_shared include/linux/fs.h:758 [inline] lookup_slow fs/namei.c:1688 [inline] walk_component+0x798/0xda0 fs/namei.c:1811 lookup_last fs/namei.c:2274 [inline] path_lookupat+0x1ff/0x8d0 fs/namei.c:2319 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path_at include/linux/namei.h:57 [inline] ksys_chdir+0x84/0x1d0 fs/open.c:458 __do_sys_chdir fs/open.c:480 [inline] __se_sys_chdir fs/open.c:478 [inline] __x64_sys_chdir+0x2d/0x40 fs/open.c:478 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc34be46a39 Code: Bad RIP value. RSP: 002b:00007fc349317188 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007fc34bf4a320 RCX: 00007fc34be46a39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007fc34bea0e8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfd45caf R14: 00007fc349317300 R15: 0000000000022000 INFO: task syz-executor.2:26188 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.2 D29968 26188 3291 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 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write_nested+0x51/0x90 kernel/locking/rwsem.c:194 inode_lock_nested include/linux/fs.h:783 [inline] filename_create+0x15a/0x490 fs/namei.c:3638 user_path_create fs/namei.c:3696 [inline] do_mkdirat+0xa0/0x2d0 fs/namei.c:3834 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc34be46a39 Code: Bad RIP value. RSP: 002b:00007fc3492f6188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fc34bf4a3e0 RCX: 00007fc34be46a39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000400 RBP: 00007fc34bea0e8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfd45caf R14: 00007fc3492f6300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 000000008fd80e53 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7811: #0: 0000000046064ec9 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by kworker/u4:11/13327: 2 locks held by syz-executor.2/26149: 2 locks held by syz-executor.2/26152: #0: 000000001e22ef7e (sb_writers#28){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000001e22ef7e (sb_writers#28){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000004c21e67a (&type->i_mutex_dir_key#13/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline] #1: 000000004c21e67a (&type->i_mutex_dir_key#13/1){+.+.}, at: filename_create+0x15a/0x490 fs/namei.c:3638 2 locks held by syz-executor.2/26157: #0: 000000001e22ef7e (sb_writers#28){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000001e22ef7e (sb_writers#28){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: do_last fs/namei.c:3324 [inline] #1: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: path_openat+0x1071/0x2df0 fs/namei.c:3537 1 lock held by syz-executor.2/26163: #0: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: inode_lock_shared include/linux/fs.h:758 [inline] #0: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: lookup_slow fs/namei.c:1688 [inline] #0: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: walk_component+0x798/0xda0 fs/namei.c:1811 1 lock held by syz-executor.2/26186: #0: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: inode_lock_shared include/linux/fs.h:758 [inline] #0: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: lookup_slow fs/namei.c:1688 [inline] #0: 000000004c21e67a (&type->i_mutex_dir_key#14){++++}, at: walk_component+0x798/0xda0 fs/namei.c:1811 2 locks held by syz-executor.2/26188: #0: 000000001e22ef7e (sb_writers#28){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000001e22ef7e (sb_writers#28){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000004c21e67a (&type->i_mutex_dir_key#13/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline] #1: 000000004c21e67a (&type->i_mutex_dir_key#13/1){+.+.}, at: filename_create+0x15a/0x490 fs/namei.c:3638 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-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: 26149 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__preempt_count_sub arch/x86/include/asm/preempt.h:81 [inline] RIP: 0010:preempt_count_sub+0x5a/0x150 kernel/sched/core.c:3273 Code: 00 8b 0d 59 ca e2 0b 85 c9 75 18 65 8b 05 3e 72 c0 7e 25 ff ff ff 7f 39 c3 7f 1a 81 fb fe 00 00 00 76 6a 65 8b 05 26 72 c0 7e db 65 01 1d 1d 72 c0 7e 5b c3 e8 b6 e4 31 02 85 c0 74 f5 48 c7 RSP: 0018:ffff88822451f4d0 EFLAGS: 00000202 RAX: 0000000080000001 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffff88822451f470 RDI: 0000000000000001 RBP: ffff88822451f998 R08: 0000000000000001 R09: 0000000000000001 R10: ffff88822451f66f R11: 0000000000074071 R12: ffff888224518000 R13: ffff88822451f645 R14: ffff88822451f610 R15: ffffffff8b9c159a FS: 00007fc34939b700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc34be46a0f CR3: 0000000226415000 CR4: 00000000003426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0xeee/0x1400 arch/x86/kernel/unwind_orc.c:579 __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_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553 kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 kmem_cache_zalloc include/linux/slab.h:699 [inline] alloc_buffer_head+0x20/0x130 fs/buffer.c:3372 alloc_page_buffers+0x169/0x5c0 fs/buffer.c:830 create_empty_buffers+0x2c/0x760 fs/buffer.c:1528 create_page_buffers+0x212/0x350 fs/buffer.c:1645 block_read_full_page+0xcf/0xd10 fs/buffer.c:2239 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828 read_mapping_page include/linux/pagemap.h:402 [inline] dir_get_page fs/minix/dir.c:70 [inline] minix_find_entry+0x23a/0x830 fs/minix/dir.c:170 minix_inode_by_name+0x6d/0x460 fs/minix/dir.c:454 minix_lookup fs/minix/namei.c:30 [inline] minix_lookup+0x103/0x190 fs/minix/namei.c:22 __lookup_hash+0x117/0x180 fs/namei.c:1547 filename_create+0x186/0x490 fs/namei.c:3639 user_path_create fs/namei.c:3696 [inline] do_mkdirat+0xa0/0x2d0 fs/namei.c:3834 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc34be46a39 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc34939b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fc34bf4a020 RCX: 00007fc34be46a39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00007fc34bea0e8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfd45caf R14: 00007fc34939b300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 00 8b 0d 59 ca e2 add %cl,-0x1d35a6f3(%rbx) 6: 0b 85 c9 75 18 65 or 0x651875c9(%rbp),%eax c: 8b 05 3e 72 c0 7e mov 0x7ec0723e(%rip),%eax # 0x7ec07250 12: 25 ff ff ff 7f and $0x7fffffff,%eax 17: 39 c3 cmp %eax,%ebx 19: 7f 1a jg 0x35 1b: 81 fb fe 00 00 00 cmp $0xfe,%ebx 21: 76 6a jbe 0x8d 23: 65 8b 05 26 72 c0 7e mov %gs:0x7ec07226(%rip),%eax # 0x7ec07250 * 2a: f7 db neg %ebx <-- trapping instruction 2c: 65 01 1d 1d 72 c0 7e add %ebx,%gs:0x7ec0721d(%rip) # 0x7ec07250 33: 5b pop %rbx 34: c3 retq 35: e8 b6 e4 31 02 callq 0x231e4f0 3a: 85 c0 test %eax,%eax 3c: 74 f5 je 0x33 3e: 48 rex.W 3f: c7 .byte 0xc7