(ptrval): 0000000000455389 (0x455389) (ptrval): 0000000000000033 (0x33) (ptrval): 0000000000000246 (0x246) (ptrval): 00007fa90ee41c68 (0x7fa90ee41c68) (ptrval): 000000000000002b (0x2b) WARNING: kernel stack regs at (ptrval) in syz-executor5:7677 has bad 'bp' value (ptrval) FAT-fs (loop6): Directory bread(block 112) failed FAT-fs (loop6): Directory bread(block 112) failed FAT-fs (loop6): Directory bread(block 112) failed attempt to access beyond end of device loop6: rw=2049, want=246, limit=112 Buffer I/O error on dev loop6, logical block 245, lost async page write attempt to access beyond end of device loop6: rw=2049, want=247, limit=112 Buffer I/O error on dev loop6, logical block 246, lost async page write attempt to access beyond end of device loop6: rw=2049, want=248, limit=112 Buffer I/O error on dev loop6, logical block 247, lost async page write attempt to access beyond end of device loop6: rw=2049, want=249, limit=112 Buffer I/O error on dev loop6, logical block 248, lost async page write attempt to access beyond end of device loop6: rw=2049, want=262, limit=112 Buffer I/O error on dev loop6, logical block 261, lost async page write attempt to access beyond end of device loop6: rw=0, want=246, limit=112 attempt to access beyond end of device loop6: rw=0, want=262, limit=112 attempt to access beyond end of device loop6: rw=0, want=246, limit=112 mmap: syz-executor4 (7997) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. binder_alloc: binder_alloc_mmap_handler: 8060 20000000-20002000 already mapped failed -16 ================================ WARNING: inconsistent lock state 4.17.0-rc2+ #14 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. sshd/4486 [HC1[1]:SC0[2]:HE0:SE0] takes: (ptrval) (fs_reclaim){?.+.}, at: fs_reclaim_acquire.part.82+0x0/0x30 mm/page_alloc.c:463 {HARDIRQ-ON-W} state was registered at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x39/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:550 [inline] kzalloc_node include/linux/slab.h:712 [inline] alloc_worker+0xbd/0x2e0 kernel/workqueue.c:1704 init_rescuer.part.25+0x1f/0x190 kernel/workqueue.c:4000 init_rescuer kernel/workqueue.c:3997 [inline] workqueue_init+0x51f/0x7d0 kernel/workqueue.c:5732 kernel_init_freeable+0x2ad/0x58e init/main.c:1115 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 irq event stamp: 66915 hardirqs last enabled at (66913): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (66913): [] _raw_spin_unlock_irqrestore+0x74/0xc0 kernel/locking/spinlock.c:184 hardirqs last disabled at (66915): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (66910): [] rcu_read_unlock_bh include/linux/rcupdate.h:724 [inline] softirqs last enabled at (66910): [] ip_finish_output2+0xa7f/0x1840 net/ipv4/ip_output.c:231 softirqs last disabled at (66914): [] spin_lock_bh include/linux/spinlock.h:315 [inline] softirqs last disabled at (66914): [] release_sock+0x74/0x2b0 net/core/sock.c:2848 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(fs_reclaim); lock(fs_reclaim); *** DEADLOCK *** 2 locks held by sshd/4486: #0: (ptrval) (sk_lock-AF_INET){+.+.}, at: lock_sock include/net/sock.h:1469 [inline] #0: (ptrval) (sk_lock-AF_INET){+.+.}, at: tcp_sendmsg+0x21/0x50 net/ipv4/tcp.c:1445 #1: (ptrval) (slock-AF_INET){+.-.}, at: spin_lock_bh include/linux/spinlock.h:315 [inline] #1: (ptrval) (slock-AF_INET){+.-.}, at: release_sock+0x74/0x2b0 net/core/sock.c:2848 stack backtrace: CPU: 0 PID: 4486 Comm: sshd Not tainted 4.17.0-rc2+ #14 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+0x1b9/0x294 lib/dump_stack.c:113 print_usage_bug.cold.59+0x320/0x41a kernel/locking/lockdep.c:2542 valid_state kernel/locking/lockdep.c:2555 [inline] mark_lock_irq kernel/locking/lockdep.c:2749 [inline] mark_lock+0x1034/0x19e0 kernel/locking/lockdep.c:3147 mark_irqflags kernel/locking/lockdep.c:3022 [inline] __lock_acquire+0x1595/0x5140 kernel/locking/lockdep.c:3388 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x45/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_interrupt_randomness+0x494/0x860 drivers/char/random.c:1254 handle_irq_event_percpu+0xf9/0x1c0 kernel/irq/handle.c:191 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:release_sock+0xf5/0x2b0 net/core/sock.c:2855 RSP: 0018:ffff8801c583f8d8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd5 RAX: dffffc0000000000 RBX: ffff8801cd4e8a80 RCX: ffffffff815e0371 RDX: 1ffffffff12be5cc RSI: ffffffff85d5f0a9 RDI: ffffffff895f2e60 RBP: ffff8801c583f970 R08: ffffed0039a9d162 R09: ffffed0039a9d161 R10: ffffed0039a9d161 R11: ffff8801cd4e8b0b R12: 1ffff10038b07f1d R13: ffffffff864e3630 R14: ffff8801cd4e8b08 R15: ffff8801c583f948 tcp_sendmsg+0x3a/0x50 net/ipv4/tcp.c:1447 inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 sock_write_iter+0x35a/0x5a0 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x64d/0x960 fs/read_write.c:487 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f333fd13370 RSP: 002b:00007fff7d187888 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000000002f8 RCX: 00007f333fd13370 RDX: 00000000000002f8 RSI: 000055ce9a5f81e0 RDI: 0000000000000003 RBP: 000055ce9a5f81e0 R08: 0000000000000001 R09: 0101010101010101 R10: 0000000000000008 R11: 0000000000000246 R12: 00007fff7d1878ec R13: 000055ce99915fb4 R14: 0000000000000028 R15: 000055ce99917ca0 BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 4486, name: sshd INFO: lockdep is turned off. irq event stamp: 66915 hardirqs last enabled at (66913): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (66913): [] _raw_spin_unlock_irqrestore+0x74/0xc0 kernel/locking/spinlock.c:184 hardirqs last disabled at (66915): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (66910): [] rcu_read_unlock_bh include/linux/rcupdate.h:724 [inline] softirqs last enabled at (66910): [] ip_finish_output2+0xa7f/0x1840 net/ipv4/ip_output.c:231 softirqs last disabled at (66914): [] spin_lock_bh include/linux/spinlock.h:315 [inline] softirqs last disabled at (66914): [] release_sock+0x74/0x2b0 net/core/sock.c:2848 CPU: 0 PID: 4486 Comm: sshd Not tainted 4.17.0-rc2+ #14 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+0x1b9/0x294 lib/dump_stack.c:113 ___might_sleep.cold.87+0x11f/0x13a kernel/sched/core.c:6188 __might_sleep+0x95/0x190 kernel/sched/core.c:6141 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2b9/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_interrupt_randomness+0x494/0x860 drivers/char/random.c:1254 handle_irq_event_percpu+0xf9/0x1c0 kernel/irq/handle.c:191 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:release_sock+0xf5/0x2b0 net/core/sock.c:2855 RSP: 0018:ffff8801c583f8d8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd5 RAX: dffffc0000000000 RBX: ffff8801cd4e8a80 RCX: ffffffff815e0371 RDX: 1ffffffff12be5cc RSI: ffffffff85d5f0a9 RDI: ffffffff895f2e60 RBP: ffff8801c583f970 R08: ffffed0039a9d162 R09: ffffed0039a9d161 R10: ffffed0039a9d161 R11: ffff8801cd4e8b0b R12: 1ffff10038b07f1d R13: ffffffff864e3630 R14: ffff8801cd4e8b08 R15: ffff8801c583f948 tcp_sendmsg+0x3a/0x50 net/ipv4/tcp.c:1447 inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 sock_write_iter+0x35a/0x5a0 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x64d/0x960 fs/read_write.c:487 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f333fd13370 RSP: 002b:00007fff7d187888 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000000002f8 RCX: 00007f333fd13370 RDX: 00000000000002f8 RSI: 000055ce9a5f81e0 RDI: 0000000000000003 RBP: 000055ce9a5f81e0 R08: 0000000000000001 R09: 0101010101010101 R10: 0000000000000008 R11: 0000000000000246 R12: 00007fff7d1878ec R13: 000055ce99915fb4 R14: 0000000000000028 R15: 000055ce99917ca0 random: crng init done FAT-fs (loop6): Directory bread(block 2563) failed FAT-fs (loop6): Directory bread(block 2564) failed FAT-fs (loop6): Directory bread(block 2565) failed FAT-fs (loop6): Directory bread(block 2566) failed FAT-fs (loop6): Directory bread(block 2567) failed FAT-fs (loop6): Directory bread(block 2568) failed FAT-fs (loop6): Directory bread(block 2569) failed FAT-fs (loop6): Directory bread(block 2570) failed FAT-fs (loop6): Directory bread(block 2571) failed FAT-fs (loop6): Directory bread(block 2572) failed netlink: 3 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor3'. ntfs: (device loop0): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel. ntfs: (device loop0): parse_options(): The show_sys_files option requires a boolean argument. netlink: 3 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor3'. kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher audit: type=1326 audit(1524515795.309:3): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=8342 comm="syz-executor1" exe="/root/syz-executor1" sig=9 arch=c000003e syscall=202 compat=0 ip=0x455389 code=0x0