INFO: rcu_sched self-detected stall on CPU 0-....: (124999 ticks this GP) idle=1f6/1/4611686018427387906 softirq=65817/65817 fqs=31230 (t=125000 jiffies g=34472 c=34471 q=1532) NMI backtrace for cpu 0 CPU: 0 PID: 16286 Comm: syz-executor5 Not tainted 4.16.0+ #4 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 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x151/0x192 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_single_cpu_backtrace include/linux/nmi.h:156 [inline] rcu_dump_cpu_stacks+0x175/0x1c2 kernel/rcu/tree.c:1376 print_cpu_stall kernel/rcu/tree.c:1525 [inline] check_cpu_stall.isra.61.cold.80+0x36c/0x59a kernel/rcu/tree.c:1593 __rcu_pending kernel/rcu/tree.c:3356 [inline] rcu_pending kernel/rcu/tree.c:3401 [inline] rcu_check_callbacks+0x21b/0xad0 kernel/rcu/tree.c:2763 update_process_times+0x2d/0x70 kernel/time/timer.c:1636 tick_sched_handle+0xa0/0x180 kernel/time/tick-sched.c:171 tick_sched_timer+0x42/0x130 kernel/time/tick-sched.c:1179 __run_hrtimer kernel/time/hrtimer.c:1337 [inline] __hrtimer_run_queues+0x3e3/0x10a0 kernel/time/hrtimer.c:1399 hrtimer_interrupt+0x286/0x650 kernel/time/hrtimer.c:1457 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1025 [inline] smp_apic_timer_interrupt+0x15d/0x710 arch/x86/kernel/apic/apic.c:1050 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:862 RIP: 0010:__bitmap_set+0x10f/0x140 lib/bitmap.c:272 RSP: 0018:ffff8801ae51f658 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffffffff832eee82 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: ffff8801ae51f698 R08: ffff8801d9aac240 R09: ffff8801be2ff128 R10: ffffed0037c5fe25 R11: ffff8801be2ff12f R12: ffffffffffffffff R13: ffffffffffffffff R14: ffff8801be2ff128 R15: 0000000000000000 bitmap_set include/linux/bitmap.h:375 [inline] __bitmap_parselist+0x4eb/0x5d0 lib/bitmap.c:616 bitmap_parselist+0x3a/0x50 lib/bitmap.c:628 cpulist_parse include/linux/cpumask.h:639 [inline] update_cpumask kernel/cgroup/cpuset.c:974 [inline] cpuset_write_resmask+0x1b77/0x2e80 kernel/cgroup/cpuset.c:1724 cgroup_file_write+0x317/0x820 kernel/cgroup/cgroup.c:3429 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x10b/0x880 fs/read_write.c:485 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 SYSC_write fs/read_write.c:610 [inline] SyS_write+0x24/0x30 fs/read_write.c:607 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007f1458ce7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1458ce86d4 RCX: 0000000000455259 RDX: 0000000000000002 RSI: 0000000020000140 RDI: 0000000000000015 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000006bc R14: 00000000006fd240 R15: 0000000000000000 INFO: task kworker/1:0:18 blocked for more than 120 seconds. Not tainted 4.16.0+ #4 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/1:0 D23304 18 2 0x80000000 Workqueue: events bpf_map_free_deferred Call Trace: context_switch kernel/sched/core.c:2848 [inline] __schedule+0x807/0x1e40 kernel/sched/core.c:3490 schedule+0xef/0x430 kernel/sched/core.c:3549 schedule_timeout+0x1b5/0x240 kernel/time/timer.c:1777 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x3e7/0x870 kernel/sched/completion.c:136 __wait_rcu_gp+0x257/0x350 kernel/rcu/update.c:414 synchronize_sched.part.64+0xe3/0xf0 kernel/rcu/tree.c:3209 synchronize_sched+0x76/0xf0 kernel/rcu/tree.c:3210 synchronize_rcu include/linux/rcupdate.h:94 [inline] htab_map_free+0x91/0x640 kernel/bpf/hashtab.c:1139 bpf_map_free_deferred+0xb4/0xe0 kernel/bpf/syscall.c:254 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Showing all locks held in the system: 2 locks held by kworker/1:0/18: #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 00000000b74cc748 ((work_completion)(&map->work)){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 2 locks held by kworker/1:1/24: #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 0000000053888bc9 ((work_completion)(&map->work)){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 2 locks held by khungtaskd/882: #0: 00000000b0e48a20 (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: 00000000b0e48a20 (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60 kernel/hung_task.c:249 #1: 00000000c083766d (tasklist_lock){.+.+}, at: debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470 2 locks held by getty/4457: #0: 0000000085d04ec3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000dc8fcfef (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4458: #0: 00000000edeca534 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000a279ac0d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4459: #0: 000000003fd09190 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000b05c987a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4460: #0: 00000000ca5107f0 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000006b9299d5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4461: #0: 00000000c96db4be (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000778e1b10 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4462: #0: 000000007bce09c3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000558762eb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4463: #0: 00000000dab8d301 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000ebd743ec (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by kworker/1:4/10016: #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 000000002002af5e ((work_completion)(&map->work)){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 2 locks held by kworker/1:5/10017: #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 00000000bfaba69b ((wq_completion)"events"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 0000000016e1ef96 ((work_completion)(&map->work)){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 2 locks held by syz-executor4/16265: #0: 00000000b1c4ceef (sb_writers#6){.+.+}, at: file_start_write include/linux/fs.h:2710 [inline] #0: 00000000b1c4ceef (sb_writers#6){.+.+}, at: vfs_writev+0x293/0x330 fs/read_write.c:1003 #1: 00000000f91ff7f9 (&sb->s_type->i_mutex_key#11){++++}, at: inode_lock include/linux/fs.h:713 [inline] #1: 00000000f91ff7f9 (&sb->s_type->i_mutex_key#11){++++}, at: generic_file_write_iter+0xe5/0x850 mm/filemap.c:3288 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 882 Comm: khungtaskd Not tainted 4.16.0+ #4 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 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x151/0x192 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+0xc10/0xf60 kernel/hung_task.c:249 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 16286 Comm: syz-executor5 Not tainted 4.16.0+ #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__bitmap_set+0x27/0x140 lib/bitmap.c:257 RSP: 0018:ffff8801ae51f658 EFLAGS: 00000292 RAX: 0000000000040000 RBX: ffff8801be2ff128 RCX: ffffc900048d5000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8801be2ff128 RBP: ffff8801ae51f698 R08: ffff8801d9aac240 R09: ffff8801be2ff128 R10: ffffed0037c5fe25 R11: ffff8801be2ff12f R12: ffffffffffffffff R13: ffffffffffffffff R14: 0000000000000000 R15: 0000000000000000 FS: 00007f1458ce8700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd5403cde99 CR3: 0000000187f77000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bitmap_set include/linux/bitmap.h:375 [inline] __bitmap_parselist+0x4eb/0x5d0 lib/bitmap.c:616 bitmap_parselist+0x3a/0x50 lib/bitmap.c:628 cpulist_parse include/linux/cpumask.h:639 [inline] update_cpumask kernel/cgroup/cpuset.c:974 [inline] cpuset_write_resmask+0x1b77/0x2e80 kernel/cgroup/cpuset.c:1724 cgroup_file_write+0x317/0x820 kernel/cgroup/cgroup.c:3429 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x10b/0x880 fs/read_write.c:485 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 SYSC_write fs/read_write.c:610 [inline] SyS_write+0x24/0x30 fs/read_write.c:607 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007f1458ce7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1458ce86d4 RCX: 0000000000455259 RDX: 0000000000000002 RSI: 0000000020000140 RDI: 0000000000000015 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000006bc R14: 00000000006fd240 R15: 0000000000000000 Code: 00 00 00 00 55 48 89 e5 41 57 41 89 d7 41 56 41 89 f6 41 55 49 c7 c5 ff ff ff ff 41 54 4d 89 ec 53 48 89 fb 48 83 ec 18 89 75 c0 <89> 55 c4 e8 61 bd 47 fe 44 89 f1 44 89 f0 31 ff 83 e1 3f c1 e8