syzbot


WARNING: kernel stack regs at (ptrval) in syz-executor has bad 'bp' value (ptrval)

Status: closed as dup on 2018/04/24 15:37
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+795f3a2b6f5ad776cc22@syzkaller.appspotmail.com
First crash: 1977d, last: 1976d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: kernel stack regs at (ptrval) in syzkaller has bad 'bp' value (ptrval) kernel C 3 1976d 1977d
Discussions (1)
Title Replies (including bot) Last reply
WARNING: kernel stack regs at (ptrval) in syz-executor has bad 'bp' value (ptrval) 1 (2) 2018/04/23 10:56

Sample crash report:
        (ptrval): 0000000000455389 (0x455389)
        (ptrval): 0000000000000033 (0x33)
        (ptrval): 0000000000000246 (0x246)
        (ptrval): 00007f2aa4cccc68 (0x7f2aa4cccc68)
        (ptrval): 000000000000002b (0x2b)
WARNING: kernel stack regs at         (ptrval) in syz-executor7:7941 has bad 'bp' value         (ptrval)
QAT: Invalid ioctl
QAT: Invalid ioctl
hfsplus: unable to find HFS+ superblock
hfsplus: unable to find HFS+ superblock
FAT-fs (loop6): Unrecognized mount option "kheck=rel!" or missing value
FAT-fs (loop6): Unrecognized mount option "kheck=rel!" or missing value
XFS (loop7): unknown mount option [nouuPd].

================================
WARNING: inconsistent lock state
4.17.0-rc2+ #14 Not tainted
--------------------------------
inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage.
sshd/4531 [HC1[1]:SC0[0]:HE0:SE1] 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: 57790
hardirqs last  enabled at (57789): [<ffffffff8100c172>] do_syscall_64+0x92/0x800 arch/x86/entry/common.c:274
hardirqs last disabled at (57790): [<ffffffff87800905>] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625
softirqs last  enabled at (57784): [<ffffffff85d5f1e2>] spin_unlock_bh include/linux/spinlock.h:355 [inline]
softirqs last  enabled at (57784): [<ffffffff85d5f1e2>] release_sock+0x1e2/0x2b0 net/core/sock.c:2861
softirqs last disabled at (57782): [<ffffffff85d5f074>] spin_lock_bh include/linux/spinlock.h:315 [inline]
softirqs last disabled at (57782): [<ffffffff85d5f074>] 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);
  <Interrupt>
    lock(fs_reclaim);

 *** DEADLOCK ***

no locks held by sshd/4531.

stack backtrace:
CPU: 1 PID: 4531 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:
 <IRQ>
 __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
 </IRQ>
RIP: 0010:_copy_from_user+0x49/0x150 lib/usercopy.c:11
RSP: 0018:ffff8801cf1bfcc0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffffd8
RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffffffff83536799
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff8801cf1bfcf0 R08: ffff8801ae8284c0 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: 00007fff8c05b910 R14: ffff8801cf1bfd80 R15: 0000000000000000
 copy_from_user include/linux/uaccess.h:147 [inline]
 kern_select+0xae/0x250 fs/select.c:686
 __do_sys_select fs/select.c:705 [inline]
 __se_sys_select fs/select.c:702 [inline]
 __x64_sys_select+0xbe/0x150 fs/select.c:702
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f6e23d7fdd3
RSP: 002b:00007fff8c05b8e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000017
RAX: ffffffffffffffda RBX: 00007fff8c05b970 RCX: 00007f6e23d7fdd3
RDX: 000055ea9d329ab0 RSI: 000055ea9d329ad0 RDI: 000000000000000c
RBP: 000055ea9b8be8dc R08: 00007fff8c05b910 R09: 0101010101010101
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff8c05b978
R13: 0000000000000000 R14: 00007fff8c05b968 R15: 00007fff8c05b96c
BUG: sleeping function called from invalid context at mm/slab.h:421
in_atomic(): 1, irqs_disabled(): 1, pid: 4531, name: sshd
INFO: lockdep is turned off.
irq event stamp: 57790
hardirqs last  enabled at (57789): [<ffffffff8100c172>] do_syscall_64+0x92/0x800 arch/x86/entry/common.c:274
hardirqs last disabled at (57790): [<ffffffff87800905>] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625
softirqs last  enabled at (57784): [<ffffffff85d5f1e2>] spin_unlock_bh include/linux/spinlock.h:355 [inline]
softirqs last  enabled at (57784): [<ffffffff85d5f1e2>] release_sock+0x1e2/0x2b0 net/core/sock.c:2861
softirqs last disabled at (57782): [<ffffffff85d5f074>] spin_lock_bh include/linux/spinlock.h:315 [inline]
softirqs last disabled at (57782): [<ffffffff85d5f074>] release_sock+0x74/0x2b0 net/core/sock.c:2848
CPU: 1 PID: 4531 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:
 <IRQ>
 __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
 </IRQ>
RIP: 0010:_copy_from_user+0x49/0x150 lib/usercopy.c:11
RSP: 0018:ffff8801cf1bfcc0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffffd8
RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffffffff83536799
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff8801cf1bfcf0 R08: ffff8801ae8284c0 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: 00007fff8c05b910 R14: ffff8801cf1bfd80 R15: 0000000000000000
 copy_from_user include/linux/uaccess.h:147 [inline]
 kern_select+0xae/0x250 fs/select.c:686
 __do_sys_select fs/select.c:705 [inline]
 __se_sys_select fs/select.c:702 [inline]
 __x64_sys_select+0xbe/0x150 fs/select.c:702
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f6e23d7fdd3
RSP: 002b:00007fff8c05b8e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000017
RAX: ffffffffffffffda RBX: 00007fff8c05b970 RCX: 00007f6e23d7fdd3
RDX: 000055ea9d329ab0 RSI: 000055ea9d329ad0 RDI: 000000000000000c
RBP: 000055ea9b8be8dc R08: 00007fff8c05b910 R09: 0101010101010101
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff8c05b978
R13: 0000000000000000 R14: 00007fff8c05b968 R15: 00007fff8c05b96c
random: crng init done
xt_AUDIT: Audit type out of range (valid range: 0..2)
ntfs: (device loop1): parse_options(): Unrecognized mount option k.
dccp_invalid_packet: pskb_may_pull failed
dccp_invalid_packet: pskb_may_pull failed
binder: 8549:8592 unknown command -1924635885
binder: 8549:8592 ioctl c0306201 20007000 returned -22
binder: BINDER_SET_CONTEXT_MGR already set
binder: 8549:8592 ioctl 40046207 0 returned -16
binder: 8549:8592 unknown command -1924635885
binder: 8549:8592 ioctl c0306201 20007000 returned -22
kernel msg: ebtables bug: please report to author: Wrong len argument
kernel msg: ebtables bug: please report to author: Wrong len argument

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/24 02:30 upstream 6d08b06e67cd 0d8e591c .config console log report ci-upstream-kasan-gce-root
2018/04/23 23:58 upstream 6d08b06e67cd 0d8e591c .config console log report ci-upstream-kasan-gce
2018/04/23 20:36 upstream 6d08b06e67cd 0d8e591c .config console log report ci-upstream-kasan-gce-root
2018/04/23 06:02 upstream 5ec83b22a2dd d23fcf6c .config console log report ci-upstream-kasan-gce-root
2018/04/22 23:28 upstream 5ec83b22a2dd d23fcf6c .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.