ODEBUG: object 000000004e7d56ba is on stack 00000000cc5f0b63, but NOT annotated. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 14777 at lib/debugobjects.c:369 debug_object_is_on_stack lib/debugobjects.c:363 [inline] WARNING: CPU: 1 PID: 14777 at lib/debugobjects.c:369 __debug_object_init.cold.14+0x51/0xdf lib/debugobjects.c:395 downgrading a read lock WARNING: CPU: 0 PID: 14773 at kernel/locking/lockdep.c:3556 __lock_downgrade kernel/locking/lockdep.c:3556 [inline] WARNING: CPU: 0 PID: 14773 at kernel/locking/lockdep.c:3556 lock_downgrade+0x4d7/0x900 kernel/locking/lockdep.c:3819 Kernel panic - not syncing: panic_on_warn set ... Modules linked in: CPU: 1 PID: 14777 Comm: syz-executor0 Not tainted 4.19.0-rc8-next-20181019+ #99 CPU: 0 PID: 14773 Comm: blkid Not tainted 4.19.0-rc8-next-20181019+ #99 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: RIP: 0010:__lock_downgrade kernel/locking/lockdep.c:3556 [inline] RIP: 0010:lock_downgrade+0x4d7/0x900 kernel/locking/lockdep.c:3819 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 Code: 00 00 fc ff df 41 c6 44 05 00 f8 e9 1b ff ff ff 48 c7 c7 60 61 2b 88 4c 89 9d 58 ff ff ff 48 89 85 60 ff ff ff e8 e9 38 e7 ff <0f> 0b 48 8b 85 60 ff ff ff 4c 8d 4d d8 4c 89 e9 48 ba 00 00 00 00 RSP: 0018:ffff88017f04fb70 EFLAGS: 00010086 panic+0x2ad/0x55c kernel/panic.c:188 RAX: 0000000000000000 RBX: 1ffff1002fe09f74 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8165ba85 RDI: 0000000000000006 RBP: ffff88017f04fc28 R08: ffff8801260ee400 R09: fffffbfff12b21ac R10: fffffbfff12b21ac R11: ffffffff89590d63 R12: ffffffff8b0e0620 __warn.cold.8+0x20/0x45 kernel/panic.c:540 R13: ffff88017f04fbc0 R14: 0000000000000001 R15: ffff8801260ee400 FS: 00007ff1f5686740(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 report_bug+0x254/0x2d0 lib/bug.c:186 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271 CR2: 00007ff1f546d000 CR3: 0000000187cd1000 CR4: 00000000001406f0 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:290 Call Trace: invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:969 RIP: 0010:debug_object_is_on_stack lib/debugobjects.c:363 [inline] RIP: 0010:__debug_object_init.cold.14+0x51/0xdf lib/debugobjects.c:395 Code: ea 03 80 3c 02 00 75 7c 49 8b 54 24 18 48 89 de 48 c7 c7 80 fb 60 88 4c 89 85 d0 fd ff ff e8 39 f7 d0 fd 4c 8b 85 d0 fd ff ff <0f> 0b e9 09 d6 ff ff 41 83 c4 01 b8 ff ff 37 00 44 89 25 07 c6 87 downgrade_write+0x76/0x270 kernel/locking/rwsem.c:147 RSP: 0018:ffff88018628f308 EFLAGS: 00010086 RAX: 0000000000000050 RBX: ffff88018628faf8 RCX: ffffc90003f5e000 RDX: 0000000000000000 RSI: ffffffff8165ba85 RDI: 0000000000000005 RBP: ffff88018628f560 R08: ffff8801c3c94898 R09: ffffed003b5e5020 R10: ffffed003b5e5020 R11: ffff8801daf28107 R12: ffff8801d5e606c0 __do_munmap+0xcd3/0xf80 mm/mmap.c:2812 R13: 0000000000072640 R14: ffff8801d5e606c0 R15: ffff8801c3c94888 __vm_munmap+0x138/0x1f0 mm/mmap.c:2837 __do_sys_munmap mm/mmap.c:2862 [inline] __se_sys_munmap mm/mmap.c:2859 [inline] __x64_sys_munmap+0x65/0x80 mm/mmap.c:2859 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff1f5486417 Code: f0 ff ff 73 01 c3 48 8d 0d 8a ad 20 00 31 d2 48 29 c2 89 11 48 83 c8 ff eb eb 90 90 90 90 90 90 90 90 90 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d 5d ad 20 00 31 d2 48 29 c2 89 RSP: 002b:00007ffebe9741a8 EFLAGS: 00000203 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 00007ff1f56911c8 RCX: 00007ff1f5486417 RDX: 0000000000147200 RSI: 00000000000033ef RDI: 00007ff1f5689000 RBP: 00007ffebe974310 R08: 0000000000000001 R09: 0000000000000007 debug_object_init+0x16/0x20 lib/debugobjects.c:432 R10: 00007ff1f5480a0b R11: 0000000000000203 R12: 0000000023ca15dd debug_timer_init kernel/time/timer.c:704 [inline] debug_init kernel/time/timer.c:757 [inline] init_timer_key+0xa9/0x480 kernel/time/timer.c:806 R13: 000001be23ca15dd R14: 000001be23b7fab1 R15: 00007ff1f5686740 irq event stamp: 1709 hardirqs last enabled at (1709): [] slab_alloc mm/slab.c:3385 [inline] hardirqs last enabled at (1709): [] kmem_cache_alloc+0x283/0x730 mm/slab.c:3552 hardirqs last disabled at (1708): [] slab_alloc mm/slab.c:3383 [inline] hardirqs last disabled at (1708): [] kmem_cache_alloc+0x9c/0x730 mm/slab.c:3552 softirqs last enabled at (1542): [] __do_softirq+0x7df/0xb7e kernel/softirq.c:319 softirqs last disabled at (1529): [] invoke_softirq kernel/softirq.c:373 [inline] softirqs last disabled at (1529): [] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 sock_init_data+0xe1/0xdc0 net/core/sock.c:2696 ---[ end trace c34b4a9060336754 ]--- kobject: 'loop3' (0000000050fd9551): kobject_uevent_env kobject: 'loop3' (0000000050fd9551): fill_kobj_path: path = '/devices/virtual/block/loop3' bpf_prog_test_run_skb+0x255/0xc40 net/bpf/test_run.c:144 kobject: 'loop5' (0000000036d00a69): kobject_uevent_env kobject: 'loop5' (0000000036d00a69): fill_kobj_path: path = '/devices/virtual/block/loop5' bpf_prog_test_run+0x130/0x1a0 kernel/bpf/syscall.c:1790 __do_sys_bpf kernel/bpf/syscall.c:2427 [inline] __se_sys_bpf kernel/bpf/syscall.c:2371 [inline] __x64_sys_bpf+0x3d8/0x510 kernel/bpf/syscall.c:2371 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f83eb912c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000028 RSI: 00000000200002c0 RDI: 000000000000000a RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f83eb9136d4 R13: 00000000004bd892 R14: 00000000004cc468 R15: 00000000ffffffff ====================================================== WARNING: possible circular locking dependency detected 4.19.0-rc8-next-20181019+ #99 Not tainted ------------------------------------------------------ syz-executor0/14777 is trying to acquire lock: 000000002fc91926 ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 but task is already holding lock: 00000000ca693066 (&obj_hash[i].lock){-.-.}, at: __debug_object_init+0x127/0x1290 lib/debugobjects.c:384 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&obj_hash[i].lock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 __debug_object_init+0x127/0x1290 lib/debugobjects.c:384 debug_object_init+0x16/0x20 lib/debugobjects.c:432 debug_hrtimer_init kernel/time/hrtimer.c:410 [inline] debug_init kernel/time/hrtimer.c:458 [inline] hrtimer_init+0x97/0x490 kernel/time/hrtimer.c:1308 init_dl_task_timer+0x1b/0x50 kernel/sched/deadline.c:1057 __sched_fork+0x2ae/0x590 kernel/sched/core.c:2166 init_idle+0x75/0x740 kernel/sched/core.c:5382 sched_init+0xb33/0xc07 kernel/sched/core.c:6065 start_kernel+0x4be/0xa2b init/main.c:608 x86_64_start_reservations+0x2e/0x30 arch/x86/kernel/head64.c:472 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #2 (&rq->lock){-.-.}: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:144 rq_lock kernel/sched/sched.h:1127 [inline] task_fork_fair+0xb0/0x6d0 kernel/sched/fair.c:9768 sched_fork+0x443/0xba0 kernel/sched/core.c:2359 copy_process+0x25b8/0x8790 kernel/fork.c:1887 _do_fork+0x1cb/0x11c0 kernel/fork.c:2216 kernel_thread+0x34/0x40 kernel/fork.c:2275 rest_init+0x28/0x372 init/main.c:409 arch_call_rest_init+0xe/0x1b start_kernel+0x9f0/0xa2b init/main.c:745 x86_64_start_reservations+0x2e/0x30 arch/x86/kernel/head64.c:472 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #1 (&p->pi_lock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 try_to_wake_up+0xdc/0x1490 kernel/sched/core.c:1965 wake_up_process+0x10/0x20 kernel/sched/core.c:2129 __up.isra.1+0x1c0/0x2a0 kernel/locking/semaphore.c:262 up+0x13c/0x1c0 kernel/locking/semaphore.c:187 __up_console_sem+0xbe/0x1b0 kernel/printk/printk.c:236 console_unlock+0x80c/0x1190 kernel/printk/printk.c:2432 vprintk_emit+0x391/0x990 kernel/printk/printk.c:1922 vprintk_default+0x28/0x30 kernel/printk/printk.c:1964 vprintk_func+0x7e/0x181 kernel/printk/printk_safe.c:398 printk+0xa7/0xcf kernel/printk/printk.c:1997 check_stack_usage kernel/exit.c:755 [inline] do_exit.cold.18+0x57/0x16f kernel/exit.c:916 do_group_exit+0x177/0x440 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:979 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 ((console_sem).lock){-.-.}: lock_acquire+0x1ed/0x520 kernel/locking/lockdep.c:3844 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 __down_trylock_console_sem+0xae/0x1f0 kernel/printk/printk.c:219 console_trylock+0x15/0xa0 kernel/printk/printk.c:2247 console_trylock_spinning kernel/printk/printk.c:1653 [inline] vprintk_emit+0x372/0x990 kernel/printk/printk.c:1921 vprintk_default+0x28/0x30 kernel/printk/printk.c:1964 vprintk_func+0x7e/0x181 kernel/printk/printk_safe.c:398 printk+0xa7/0xcf kernel/printk/printk.c:1997 debug_object_is_on_stack lib/debugobjects.c:363 [inline] __debug_object_init.cold.14+0x4a/0xdf lib/debugobjects.c:395 debug_object_init+0x16/0x20 lib/debugobjects.c:432 debug_timer_init kernel/time/timer.c:704 [inline] debug_init kernel/time/timer.c:757 [inline] init_timer_key+0xa9/0x480 kernel/time/timer.c:806 sock_init_data+0xe1/0xdc0 net/core/sock.c:2696 bpf_prog_test_run_skb+0x255/0xc40 net/bpf/test_run.c:144 bpf_prog_test_run+0x130/0x1a0 kernel/bpf/syscall.c:1790 __do_sys_bpf kernel/bpf/syscall.c:2427 [inline] __se_sys_bpf kernel/bpf/syscall.c:2371 [inline] __x64_sys_bpf+0x3d8/0x510 kernel/bpf/syscall.c:2371 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: (console_sem).lock --> &rq->lock --> &obj_hash[i].lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&obj_hash[i].lock); lock(&rq->lock); lock(&obj_hash[i].lock); lock((console_sem).lock); *** DEADLOCK *** 1 lock held by syz-executor0/14777: #0: 00000000ca693066 (&obj_hash[i].lock){-.-.}, at: __debug_object_init+0x127/0x1290 lib/debugobjects.c:384 stack backtrace: CPU: 1 PID: 14777 Comm: syz-executor0 Not tainted 4.19.0-rc8-next-20181019+ #99 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+0x244/0x39d lib/dump_stack.c:113 print_circular_bug.isra.35.cold.54+0x1bd/0x27d kernel/locking/lockdep.c:1221 check_prev_add kernel/locking/lockdep.c:1863 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2347 [inline] __lock_acquire+0x3399/0x4c20 kernel/locking/lockdep.c:3341 lock_acquire+0x1ed/0x520 kernel/locking/lockdep.c:3844 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 __down_trylock_console_sem+0xae/0x1f0 kernel/printk/printk.c:219 console_trylock+0x15/0xa0 kernel/printk/printk.c:2247 console_trylock_spinning kernel/printk/printk.c:1653 [inline] vprintk_emit+0x372/0x990 kernel/printk/printk.c:1921 vprintk_default+0x28/0x30 kernel/printk/printk.c:1964 vprintk_func+0x7e/0x181 kernel/printk/printk_safe.c:398 printk+0xa7/0xcf kernel/printk/printk.c:1997 debug_object_is_on_stack lib/debugobjects.c:363 [inline] __debug_object_init.cold.14+0x4a/0xdf lib/debugobjects.c:395 debug_object_init+0x16/0x20 lib/debugobjects.c:432 debug_timer_init kernel/time/timer.c:704 [inline] debug_init kernel/time/timer.c:757 [inline] init_timer_key+0xa9/0x480 kernel/time/timer.c:806 sock_init_data+0xe1/0xdc0 net/core/sock.c:2696 bpf_prog_test_run_skb+0x255/0xc40 net/bpf/test_run.c:144 bpf_prog_test_run+0x130/0x1a0 kernel/bpf/syscall.c:1790 __do_sys_bpf kernel/bpf/syscall.c:2427 [inline] __se_sys_bpf kernel/bpf/syscall.c:2371 [inline] __x64_sys_bpf+0x3d8/0x510 kernel/bpf/syscall.c:2371 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f83eb912c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000028 RSI: 00000000200002c0 RDI: 000000000000000a RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f83eb9136d4 R13: 00000000004bd892 R14: 00000000004cc468 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..