linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: INFO: task hung in blkdev_put
       [not found] <001a11425c94cc5f45055ffc86ef@google.com>
@ 2017-12-12 16:45 ` Dmitry Vyukov
  2018-11-11  8:25   ` Tetsuo Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Vyukov @ 2017-12-12 16:45 UTC (permalink / raw)
  To: syzbot
  Cc: LKML, Ingo Molnar, Peter Zijlstra, syzkaller-bugs, Jens Axboe,
	Ming Lei, Omar Sandoval, Hannes Reinecke, shli

On Sun, Dec 10, 2017 at 2:38 PM, syzbot
<bot+a444b4083d33277c6e9b4605faf0a79773e29cc5@syzkaller.appspotmail.com>
wrote:
> Hello,
>
> syzkaller hit the following crash on
> ad4dac17f9d563b9e34aab78a34293b10993e9b5
> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
> compiler: gcc (GCC) 7.1.1 20170620
> .config is attached
> Raw console output is attached.
>
> Unfortunately, I don't have any reproducer for this bug yet.
>
>
> Buffer I/O error on dev loop0, logical block 8, async page read
> INFO: task blkid:16495 blocked for more than 120 seconds.
>       Not tainted 4.15.0-rc2-next-20171208+ #63
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> blkid           D21344 16495   3125 0x80000006
> Call Trace:
>  context_switch kernel/sched/core.c:2800 [inline]
>  __schedule+0x8eb/0x2060 kernel/sched/core.c:3376
>  schedule+0xf5/0x430 kernel/sched/core.c:3435
>  schedule_preempt_disabled+0x10/0x20 kernel/sched/core.c:3493
>  __mutex_lock_common kernel/locking/mutex.c:833 [inline]
>  __mutex_lock+0xaad/0x1a80 kernel/locking/mutex.c:893
>  mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908
>  blkdev_put+0x2a/0x4f0 fs/block_dev.c:1793
>  blkdev_close+0x91/0xc0 fs/block_dev.c:1842
>  __fput+0x333/0x7f0 fs/file_table.c:210
>  ____fput+0x15/0x20 fs/file_table.c:244
>  task_work_run+0x199/0x270 kernel/task_work.c:113
>  exit_task_work include/linux/task_work.h:22 [inline]
>  do_exit+0x9bb/0x1ae0 kernel/exit.c:869
>  do_group_exit+0x149/0x400 kernel/exit.c:972
>  get_signal+0x73f/0x16c0 kernel/signal.c:2337
>  do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:809
>  exit_to_usermode_loop+0x258/0x2f0 arch/x86/entry/common.c:161
>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
>  syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264
>  entry_SYSCALL_64_fastpath+0x94/0x96
> RIP: 0033:0x7f2117ef9310
> RSP: 002b:00007ffeedf28478 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
> RAX: fffffffffffffffb RBX: 0000000000002000 RCX: 00007f2117ef9310
> RDX: 0000000000000561 RSI: 0000000000ea2a58 RDI: 0000000000000003
> RBP: 0000000000ea2a30 R08: 0000000000000018 R09: 0000000000168000
> R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000ea1030
> R13: 0000000000000561 R14: 0000000000ea1080 R15: 0000000000ea2a48
>
> Showing all locks held in the system:
> 2 locks held by khungtaskd/672:
>  #0:  (rcu_read_lock){....}, at: [<00000000166545b0>]
> check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline]
>  #0:  (rcu_read_lock){....}, at: [<00000000166545b0>] watchdog+0x1c5/0xd60
> kernel/hung_task.c:249
>  #1:  (tasklist_lock){.+.+}, at: [<00000000327f4dad>]
> debug_show_all_locks+0xd3/0x400 kernel/locking/lockdep.c:4554
> 1 lock held by rsyslogd/2993:
>  #0:  (&f->f_pos_lock){+.+.}, at: [<000000006eb70b1d>]
> __fdget_pos+0x131/0x1a0 fs/file.c:765
> 2 locks held by getty/3115:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 2 locks held by getty/3116:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 2 locks held by getty/3117:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 2 locks held by getty/3118:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 2 locks held by getty/3119:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 2 locks held by getty/3120:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 2 locks held by getty/3121:
>  #0:  (&tty->ldisc_sem){++++}, at: [<0000000059fa20b1>]
> ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
>  #1:  (&ldata->atomic_read_lock){+.+.}, at: [<000000007035e50d>]
> n_tty_read+0x2f2/0x1a10 drivers/tty/n_tty.c:2131
> 3 locks held by kworker/u4:9/4216:
>  #0:  ((wq_completion)"writeback"){+.+.}, at: [<0000000064bfb8f2>]
> __write_once_size include/linux/compiler.h:212 [inline]
>  #0:  ((wq_completion)"writeback"){+.+.}, at: [<0000000064bfb8f2>]
> atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
>  #0:  ((wq_completion)"writeback"){+.+.}, at: [<0000000064bfb8f2>]
> atomic_long_set include/asm-generic/atomic-long.h:57 [inline]
>  #0:  ((wq_completion)"writeback"){+.+.}, at: [<0000000064bfb8f2>]
> set_work_data kernel/workqueue.c:619 [inline]
>  #0:  ((wq_completion)"writeback"){+.+.}, at: [<0000000064bfb8f2>]
> set_work_pool_and_clear_pending kernel/workqueue.c:646 [inline]
>  #0:  ((wq_completion)"writeback"){+.+.}, at: [<0000000064bfb8f2>]
> process_one_work+0xad4/0x1bc0 kernel/workqueue.c:2084
>  #1:  ((work_completion)(&(&wb->dwork)->work)){+.+.}, at:
> [<000000009ce31f83>] process_one_work+0xb2f/0x1bc0 kernel/workqueue.c:2088
>  #2:  (&type->s_umount_key#25){++++}, at: [<000000008ac62721>]
> trylock_super+0x20/0x100 fs/super.c:395
> 1 lock held by blkid/16495:
>  #0:  (&bdev->bd_mutex){+.+.}, at: [<000000007747ddd3>]
> blkdev_put+0x2a/0x4f0 fs/block_dev.c:1793
> 1 lock held by syz-executor3/16557:
>  #0:  (&bdev->bd_mutex){+.+.}, at: [<000000007747ddd3>]
> blkdev_put+0x2a/0x4f0 fs/block_dev.c:1793
> 1 lock held by syz-executor7/16620:
>  #0:  (&bdev->bd_mutex){+.+.}, at: [<00000000f5d98222>]
> iterate_bdevs+0xc8/0x260 fs/block_dev.c:2145
> 1 lock held by syz-executor7/16640:
>  #0:  (&bdev->bd_mutex){+.+.}, at: [<00000000f5d98222>]
> iterate_bdevs+0xc8/0x260 fs/block_dev.c:2145
>
> =============================================
>
> NMI backtrace for cpu 1
> CPU: 1 PID: 672 Comm: khungtaskd Not tainted 4.15.0-rc2-next-20171208+ #63
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> Call Trace:
>  __dump_stack lib/dump_stack.c:17 [inline]
>  dump_stack+0x194/0x257 lib/dump_stack.c:53
>  nmi_cpu_backtrace+0x1d2/0x210 lib/nmi_backtrace.c:103
>  nmi_trigger_cpumask_backtrace+0x122/0x180 lib/nmi_backtrace.c:62
>  arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
>  trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline]
>  check_hung_task kernel/hung_task.c:132 [inline]
>  check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline]
>  watchdog+0x90c/0xd60 kernel/hung_task.c:249
>  kthread+0x37a/0x440 kernel/kthread.c:238
>  ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:524
> Sending NMI from CPU 1 to CPUs 0:
> NMI backtrace for cpu 0
> CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.15.0-rc2-next-20171208+ #63
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
> RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:27 [inline]
> RIP: 0010:nr_iowait_cpu+0xbc/0x120 kernel/sched/core.c:2902
> RSP: 0018:ffff8801db207c58 EFLAGS: 00000046
> RAX: 0000000000000000 RBX: ffff8801db22c900 RCX: ffffffff8163cfdd
> RDX: dffffc0000000000 RSI: ffff8801db223540 RDI: ffff8801db207c80
> RBP: ffff8801db207cd8 R08: ffff88021fff801c R09: ffff88021fff8008
> R10: ffff88021fff8010 R11: ffff88021fff801d R12: 1ffff1003b640f8c
> R13: 0000000000000000 R14: ffff8801db2235c8 R15: ffff8801db223540
> FS:  0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 000000000147b000 CR3: 00000001cc504000 CR4: 00000000001406f0
> DR0: 0000000020001000 DR1: 0000000020001000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
> Call Trace:
>  <IRQ>
>  update_ts_time_stats+0xee/0x1c0 kernel/time/tick-sched.c:504
>  tick_nohz_stop_idle kernel/time/tick-sched.c:518 [inline]
>  tick_nohz_irq_enter kernel/time/tick-sched.c:1104 [inline]
>  tick_irq_enter+0x262/0x390 kernel/time/tick-sched.c:1123
>  irq_enter+0xbd/0xe0 kernel/softirq.c:346
>  scheduler_ipi+0x246/0x830 kernel/sched/core.c:1794
>  smp_reschedule_interrupt+0xe6/0x670 arch/x86/kernel/smp.c:277
>  reschedule_interrupt+0xa9/0xb0 arch/x86/entry/entry_64.S:944
>  </IRQ>
> RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54
> RSP: 0018:ffffffff86207d08 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff02
> RAX: dffffc0000000000 RBX: 1ffffffff0c40fa4 RCX: 0000000000000000
> RDX: 1ffffffff0c5975c RSI: 0000000000000001 RDI: ffffffff862cbae0
> RBP: ffffffff86207d08 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
> R13: ffffffff86207dc0 R14: ffffffff869efaa0 R15: 0000000000000000
>  arch_safe_halt arch/x86/include/asm/paravirt.h:93 [inline]
>  default_idle+0xbf/0x430 arch/x86/kernel/process.c:355
>  arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:346
>  default_idle_call+0x36/0x90 kernel/sched/idle.c:98
>  cpuidle_idle_call kernel/sched/idle.c:156 [inline]
>  do_idle+0x24a/0x3b0 kernel/sched/idle.c:246
>  cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:351
>  rest_init+0xed/0xf0 init/main.c:436
>  start_kernel+0x729/0x74f init/main.c:717
>  x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:378
>  x86_64_start_kernel+0x77/0x7a arch/x86/kernel/head64.c:359
>  secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:237
> Code: 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 5d 48
> 8d 7d a8 48 ba 00 00 00 00 00 fc ff df 48 63 83 28 0a 00 00 <48> 89 f9 48 c1
> e9 03 0f b6 14 11 84 d2 74 05 80 fa 03 7e 26 48

+loop maintainers

#syz dup: INFO: task hung in lo_ioctl

> ---
> This bug is generated by a dumb bot. It may contain errors.
> See https://goo.gl/tpsmEJ for details.
> Direct all questions to syzkaller@googlegroups.com.
> Please credit me with: Reported-by: syzbot <syzkaller@googlegroups.com>
>
> syzbot will keep track of this bug report.
> Once a fix for this bug is merged into any tree, reply to this email with:
> #syz fix: exact-commit-title
> To mark this as a duplicate of another syzbot report, please reply with:
> #syz dup: exact-subject-of-another-report
> If it's a one-off invalid bug report, please reply with:
> #syz invalid
> Note: if the crash happens again, it will cause creation of a new bug
> report.
> Note: all commands must start from beginning of the line in the email body.
>
> --
> You received this message because you are subscribed to the Google Groups
> "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to syzkaller-bugs+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/syzkaller-bugs/001a11425c94cc5f45055ffc86ef%40google.com.
> For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: task hung in blkdev_put
  2017-12-12 16:45 ` INFO: task hung in blkdev_put Dmitry Vyukov
@ 2018-11-11  8:25   ` Tetsuo Handa
  2018-11-11  8:28     ` Tetsuo Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Tetsuo Handa @ 2018-11-11  8:25 UTC (permalink / raw)
  To: Dmitry Vyukov, syzbot
  Cc: LKML, Ingo Molnar, Peter Zijlstra, syzkaller-bugs, Jens Axboe,
	Ming Lei, Omar Sandoval, Hannes Reinecke, shli

On 2017/12/13 1:45, Dmitry Vyukov wrote:
> +loop maintainers
> 
> #syz dup: INFO: task hung in lo_ioctl

https://syzkaller.appspot.com/text?tag=CrashLog&x=14a09f95400000 has
"getblk(): executed=9 bh_count=0 bh_state=0" line.

#syz undup

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: INFO: task hung in blkdev_put
  2018-11-11  8:25   ` Tetsuo Handa
@ 2018-11-11  8:28     ` Tetsuo Handa
  0 siblings, 0 replies; 4+ messages in thread
From: Tetsuo Handa @ 2018-11-11  8:28 UTC (permalink / raw)
  To: Dmitry Vyukov, syzbot
  Cc: LKML, Ingo Molnar, Peter Zijlstra, syzkaller-bugs, Jens Axboe,
	Ming Lei, Omar Sandoval, Hannes Reinecke, shli

On 2018/11/11 17:25, Tetsuo Handa wrote:
> On 2017/12/13 1:45, Dmitry Vyukov wrote:
>> +loop maintainers
>>
>> #syz dup: INFO: task hung in lo_ioctl
> 
> https://syzkaller.appspot.com/text?tag=CrashLog&x=14a09f95400000 has
> "getblk(): executed=9 bh_count=0 bh_state=0" line.
> 
> #syz undup
> 

Merging into not-yet-fixed this one.

#syz dup: INFO: task hung in generic_file_write_iter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* INFO: task hung in blkdev_put
@ 2021-09-06  6:04 Hao Sun
  0 siblings, 0 replies; 4+ messages in thread
From: Hao Sun @ 2021-09-06  6:04 UTC (permalink / raw)
  To: axboe, linux-block, viro; +Cc: linux-fsdevel, linux-kernel

Hello,

When using Healer to fuzz the latest Linux kernel, the following crash
was triggered.

HEAD commit: 7d2a07b76933 Linux 5.14
git tree: upstream
console output:
https://drive.google.com/file/d/15bKzfm25-e8kS5RDgiqoT024VpaOBhju/view?usp=sharing
kernel config: https://drive.google.com/file/d/1XD9WYDViQLSXN7RGwH8AGGDvP9JvOghx/view?usp=sharing
Similar bug reported by Syzbot:
https://syzkaller.appspot.com/bug?id=9b6cad151b16cc24fe15fc086a3e53c0a3b2a43c

Sorry, I don't have a reproducer for this crash, hope the symbolized
report can help.
If you fix this issue, please add the following tag to the commit:
Reported-by: Hao Sun <sunhao.th@gmail.com>

INFO: task syz-executor:10684 blocked for more than 143 seconds.
      Not tainted 5.14.0 #25
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:27880 pid:10684 ppid:  9037 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4695 [inline]
 __schedule+0x974/0x2510 kernel/sched/core.c:6026
 schedule+0xd3/0x270 kernel/sched/core.c:6105
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6164
 __mutex_lock_common kernel/locking/mutex.c:1036 [inline]
 __mutex_lock+0x92e/0x1390 kernel/locking/mutex.c:1104
 blkdev_put+0x98/0x720 fs/block_dev.c:1534
 blkdev_close+0x8c/0xb0 fs/block_dev.c:1586
 __fput+0x288/0x920 fs/file_table.c:280
 task_work_run+0xe0/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x28d/0x2a0 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:302
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4739cd
RSP: 002b:00007f1d42ba6198 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 000000000059c0a0 RCX: 00000000004739cd
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 00000000004ebd80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000059c0a0
R13: 00007fffd3a7039f R14: 00007fffd3a70540 R15: 00007f1d42ba6300
INFO: task syz-executor:10690 blocked for more than 143 seconds.
      Not tainted 5.14.0 #25
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:27456 pid:10690 ppid:  9037 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4695 [inline]
 __schedule+0x974/0x2510 kernel/sched/core.c:6026
 schedule+0xd3/0x270 kernel/sched/core.c:6105
 io_schedule+0x17/0x70 kernel/sched/core.c:8076
 bit_wait_io+0x12/0xd0 kernel/sched/wait_bit.c:209
 __wait_on_bit+0x60/0x190 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0xd5/0x110 kernel/sched/wait_bit.c:64
 wait_on_bit_io include/linux/wait_bit.h:101 [inline]
 __wait_on_buffer fs/buffer.c:122 [inline]
 wait_on_buffer include/linux/buffer_head.h:356 [inline]
 __block_write_begin_int+0x944/0x1f00 fs/buffer.c:2044
 __block_write_begin fs/buffer.c:2056 [inline]
 block_write_begin+0x58/0x2e0 fs/buffer.c:2116
 generic_perform_write+0x1fe/0x510 mm/filemap.c:3656
 __generic_file_write_iter+0x24e/0x610 mm/filemap.c:3783
 blkdev_write_iter+0x2a3/0x560 fs/block_dev.c:1645
 call_write_iter include/linux/fs.h:2114 [inline]
 new_sync_write+0x42f/0x660 fs/read_write.c:518
 vfs_write+0x67a/0xa50 fs/read_write.c:605
 ksys_write+0x12d/0x250 fs/read_write.c:658
 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:0x4739cd
RSP: 002b:00007f1d42b85198 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000059c158 RCX: 00000000004739cd
RDX: 0000000000000078 RSI: 00000000200000c0 RDI: 0000000000000006
RBP: 00000000004ebd80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000059c158
R13: 00007fffd3a7039f R14: 00007fffd3a70540 R15: 00007f1d42b85300
INFO: task syz-executor:10693 blocked for more than 143 seconds.
      Not tainted 5.14.0 #25
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:28400 pid:10693 ppid:  9037 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4695 [inline]
 __schedule+0x974/0x2510 kernel/sched/core.c:6026
 schedule+0xd3/0x270 kernel/sched/core.c:6105
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6164
 __mutex_lock_common kernel/locking/mutex.c:1036 [inline]
 __mutex_lock+0x92e/0x1390 kernel/locking/mutex.c:1104
 blkdev_get_by_dev fs/block_dev.c:1410 [inline]
 blkdev_get_by_dev+0x457/0xb80 fs/block_dev.c:1383
 blkdev_open+0x154/0x2b0 fs/block_dev.c:1512
 do_dentry_open+0x4c8/0x11d0 fs/open.c:826
 do_open fs/namei.c:3374 [inline]
 path_openat+0x1bf9/0x27a0 fs/namei.c:3507
 do_filp_open+0x1c1/0x290 fs/namei.c:3534
 do_sys_openat2+0x61b/0x8f0 fs/open.c:1204
 do_sys_open+0xc3/0x140 fs/open.c:1220
 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:0x41a334
RSP: 002b:00007f1d42b63cc0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 000000000041a334
RDX: 0000000000000000 RSI: 00007f1d42b63d60 RDI: 00000000ffffff9c
RBP: 00007f1d42b63d60 R08: 0000000000000000 R09: 002364626e2f7665
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007fffd3a7039f R14: 00007fffd3a70540 R15: 00007f1d42b64300
INFO: task systemd-udevd:10692 blocked for more than 143 seconds.
      Not tainted 5.14.0 #25
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:systemd-udevd   state:D stack:27640 pid:10692 ppid:  4542 flags:0x00004220
Call Trace:
 context_switch kernel/sched/core.c:4695 [inline]
 __schedule+0x974/0x2510 kernel/sched/core.c:6026
 schedule+0xd3/0x270 kernel/sched/core.c:6105
 io_schedule+0x17/0x70 kernel/sched/core.c:8076
 wait_on_page_bit_common+0x57c/0xf10 mm/filemap.c:1301
 wait_on_page_bit mm/filemap.c:1362 [inline]
 wait_on_page_locked include/linux/pagemap.h:689 [inline]
 do_read_cache_page+0x26d/0x1440 mm/filemap.c:3394
 read_mapping_page include/linux/pagemap.h:515 [inline]
 read_part_sector+0x146/0x670 block/partitions/core.c:726
 adfspart_check_ICS+0x9d/0xc90 block/partitions/acorn.c:360
 check_partition block/partitions/core.c:147 [inline]
 blk_add_partitions block/partitions/core.c:611 [inline]
 bdev_disk_changed block/partitions/core.c:697 [inline]
 bdev_disk_changed+0x753/0x1130 block/partitions/core.c:664
 blkdev_get_whole+0x216/0x3f0 fs/block_dev.c:1269
 blkdev_get_by_dev fs/block_dev.c:1417 [inline]
 blkdev_get_by_dev+0x4c0/0xb80 fs/block_dev.c:1383
 blkdev_open+0x154/0x2b0 fs/block_dev.c:1512
 do_dentry_open+0x4c8/0x11d0 fs/open.c:826
 do_open fs/namei.c:3374 [inline]
 path_openat+0x1bf9/0x27a0 fs/namei.c:3507
 do_filp_open+0x1c1/0x290 fs/namei.c:3534
 do_sys_openat2+0x61b/0x8f0 fs/open.c:1204
 do_sys_open+0xc3/0x140 fs/open.c:1220
 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:0x7f5595f12840
RSP: 002b:00007ffd28c6bbb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 000055f37228aa00 RCX: 00007f5595f12840
RDX: 000055f371560fe3 RSI: 00000000000a0800 RDI: 000055f372286c80
RBP: 00007ffd28c6bd30 R08: 000055f371560670 R09: 0000000000000010
R10: 000055f371560d0c R11: 0000000000000246 R12: 00007ffd28c6bc80
R13: 000055f3722878f0 R14: 0000000000000003 R15: 000000000000000e
Showing all locks held in the system:
1 lock held by khungtaskd/1630:
 #0: ffffffff8b979b80 (rcu_read_lock){....}-{1:2}, at:
debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446
1 lock held by in:imklog/7561:
 #0: ffff888101e1dc70 (&f->f_pos_lock){+.+.}-{3:3}, at:
__fdget_pos+0xe9/0x100 fs/file.c:974
2 locks held by agetty/7569:
 #0: ffff888108bbf098 (&tty->ldisc_sem){++++}-{0:0}, at:
tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252
 #1: ffffc900002a42e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at:
n_tty_read+0x8db/0x1250 drivers/tty/n_tty.c:2113
1 lock held by syz-executor/10684:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
blkdev_put+0x98/0x720 fs/block_dev.c:1534
1 lock held by syz-executor/10693:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
blkdev_get_by_dev fs/block_dev.c:1410 [inline]
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
blkdev_get_by_dev+0x457/0xb80 fs/block_dev.c:1383
1 lock held by systemd-udevd/10692:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
blkdev_get_by_dev fs/block_dev.c:1410 [inline]
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
blkdev_get_by_dev+0x457/0xb80 fs/block_dev.c:1383
1 lock held by syz-executor/11137:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
iterate_bdevs+0xe0/0x2d0 fs/block_dev.c:1869
1 lock held by syz-executor/11425:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
iterate_bdevs+0xe0/0x2d0 fs/block_dev.c:1869
1 lock held by syz-executor/11428:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
iterate_bdevs+0xe0/0x2d0 fs/block_dev.c:1869
1 lock held by syz-executor/11843:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
iterate_bdevs+0xe0/0x2d0 fs/block_dev.c:1869
1 lock held by syz-executor/12538:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
iterate_bdevs+0xe0/0x2d0 fs/block_dev.c:1869
1 lock held by syz-executor/12540:
 #0: ffff888100c14d18 (&disk->open_mutex){+.+.}-{3:3}, at:
iterate_bdevs+0xe0/0x2d0 fs/block_dev.c:1869

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-06  6:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <001a11425c94cc5f45055ffc86ef@google.com>
2017-12-12 16:45 ` INFO: task hung in blkdev_put Dmitry Vyukov
2018-11-11  8:25   ` Tetsuo Handa
2018-11-11  8:28     ` Tetsuo Handa
2021-09-06  6:04 Hao Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).