===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.1.83-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.1/11642 [HC0[0]:SC1[3]:HE0:SE0] is trying to acquire: ffff88807a31d240 (&stab->lock){+.-.}-{2:2}, at: __sock_map_delete net/core/sock_map.c:416 [inline] ffff88807a31d240 (&stab->lock){+.-.}-{2:2}, at: sock_map_delete_elem+0x97/0x130 net/core/sock_map.c:448 and this task is already holding: ffff8880b9928358 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:999 which would create a new lock dependency: ( &base->lock ){-.-.}-{2:2} -> (&stab->lock ){+.-.}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&base->lock ){-.-.}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 lock_timer_base+0x120/0x260 kernel/time/timer.c:999 add_timer_on+0x1eb/0x580 kernel/time/timer.c:1222 handle_irq_event_percpu kernel/irq/handle.c:195 [inline] handle_irq_event+0xa9/0x1e0 kernel/irq/handle.c:210 handle_level_irq+0x3ab/0x6c0 kernel/irq/chip.c:650 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xd7/0x1f0 arch/x86/kernel/irq.c:250 common_interrupt+0x9f/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 __setup_irq+0x12fa/0x1d80 kernel/irq/manage.c:1809 request_threaded_irq+0x2a7/0x380 kernel/irq/manage.c:2198 request_irq include/linux/interrupt.h:168 [inline] setup_default_timer_irq+0x1f/0x30 arch/x86/kernel/time.c:70 x86_late_time_init+0x51/0x86 arch/x86/kernel/time.c:94 start_kernel+0x414/0x53f init/main.c:1102 secondary_startup_64_no_verify+0xcf/0xdb to a HARDIRQ-irq-unsafe lock: (&stab->lock ){+.-.}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 sock_map_update_common+0x1b6/0x5b0 net/core/sock_map.c:492 sock_map_update_elem_sys+0x55b/0x910 net/core/sock_map.c:581 map_update_elem+0x503/0x680 kernel/bpf/syscall.c:1448 __sys_bpf+0x337/0x6c0 kernel/bpf/syscall.c:4993 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline] __se_sys_bpf kernel/bpf/syscall.c:5107 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&stab->lock ); local_irq_disable(); lock(&base->lock ); lock(&stab->lock ); lock(&base->lock ); *** DEADLOCK *** 10 locks held by syz-executor.1/11642: #0: ffff888074dc8868 (&f->f_pos_lock ){+.+.}-{3:3} , at: __fdget_pos+0x2ba/0x360 fs/file.c:1062 #1: ffff88814bd9a460 ( sb_writers #4 ){.+.+}-{0:0} , at: vfs_write+0x269/0xba0 fs/read_write.c:580 #2: ffff8880716c9810 (&sb->s_type->i_mutex_key #8 ){++++}-{3:3} , at: inode_lock include/linux/fs.h:758 [inline] , at: ext4_dio_write_iter fs/ext4/file.c:495 [inline] , at: ext4_file_write_iter+0x5cc/0x1880 fs/ext4/file.c:677 #3: ffff88807cada6d8 (&mm->mmap_lock ){++++}-{3:3} , at: mmap_read_lock include/linux/mmap_lock.h:117 [inline] , at: get_user_pages_unlocked+0x10c/0x8a0 mm/gup.c:2345 #4: ffff88807ec6b438 ( ptlock_ptr(page) #2 ){+.+.}-{2:2} , at: spin_lock include/linux/spinlock.h:351 [inline] , at: follow_page_pte+0x22c/0x1880 mm/gup.c:556 #5: ffffc900001e0bc0 ((&q->adapt_timer) ){+.-.}-{0:0} , at: call_timer_fn+0xc2/0x6b0 kernel/time/timer.c:1471 #6: ffffffff8d12a940 (rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] , at: rcu_read_lock include/linux/rcupdate.h:791 [inline] , at: fq_pie_timer+0x49/0x590 net/sched/sch_fq_pie.c:384 #7: ffff88805c555908 (&sch->q.lock ){+.-.}-{2:2} , at: spin_lock include/linux/spinlock.h:351 [inline] , at: fq_pie_timer+0x17d/0x590 net/sched/sch_fq_pie.c:386 #8: ffff8880b9928358 (&base->lock ){-.-.}-{2:2} , at: lock_timer_base+0x120/0x260 kernel/time/timer.c:999 #9: ffffffff8d12a940 (rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] , at: rcu_read_lock include/linux/rcupdate.h:791 [inline] , at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline] , at: bpf_trace_run3+0x146/0x440 kernel/trace/bpf_trace.c:2313 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> ( &base->lock ){-.-.}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 lock_timer_base+0x120/0x260 kernel/time/timer.c:999 add_timer_on+0x1eb/0x580 kernel/time/timer.c:1222 handle_irq_event_percpu kernel/irq/handle.c:195 [inline] handle_irq_event+0xa9/0x1e0 kernel/irq/handle.c:210 handle_level_irq+0x3ab/0x6c0 kernel/irq/chip.c:650 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xd7/0x1f0 arch/x86/kernel/irq.c:250 common_interrupt+0x9f/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 __setup_irq+0x12fa/0x1d80 kernel/irq/manage.c:1809 request_threaded_irq+0x2a7/0x380 kernel/irq/manage.c:2198 request_irq include/linux/interrupt.h:168 [inline] setup_default_timer_irq+0x1f/0x30 arch/x86/kernel/time.c:70 x86_late_time_init+0x51/0x86 arch/x86/kernel/time.c:94 start_kernel+0x414/0x53f init/main.c:1102 secondary_startup_64_no_verify+0xcf/0xdb IN-SOFTIRQ-W at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170 __run_timers+0x111/0x890 kernel/time/timer.c:1772 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 console_emit_next_record+0xd67/0x1000 kernel/printk/printk.c:2780 console_unlock+0x278/0x7c0 kernel/printk/printk.c:2900 vprintk_emit+0x523/0x740 kernel/printk/printk.c:2297 _printk+0xd1/0x111 kernel/printk/printk.c:2322 cpu_select_mitigations+0x38/0x8f arch/x86/kernel/cpu/bugs.c:147 arch_cpu_finalize_init+0xf/0x81 arch/x86/kernel/cpu/common.c:2446 start_kernel+0x423/0x53f init/main.c:1106 secondary_startup_64_no_verify+0xcf/0xdb INITIAL USE at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 lock_timer_base+0x120/0x260 kernel/time/timer.c:999 add_timer_on+0x1eb/0x580 kernel/time/timer.c:1222 handle_irq_event_percpu kernel/irq/handle.c:195 [inline] handle_irq_event+0xa9/0x1e0 kernel/irq/handle.c:210 handle_level_irq+0x3ab/0x6c0 kernel/irq/chip.c:650 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xd7/0x1f0 arch/x86/kernel/irq.c:250 common_interrupt+0x9f/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 __setup_irq+0x12fa/0x1d80 kernel/irq/manage.c:1809 request_threaded_irq+0x2a7/0x380 kernel/irq/manage.c:2198 request_irq include/linux/interrupt.h:168 [inline] setup_default_timer_irq+0x1f/0x30 arch/x86/kernel/time.c:70 x86_late_time_init+0x51/0x86 arch/x86/kernel/time.c:94 start_kernel+0x414/0x53f init/main.c:1102 secondary_startup_64_no_verify+0xcf/0xdb } ... key at: [] init_timer_cpu.__key+0x0/0x20 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (&stab->lock){+.-.}-{2:2} { HARDIRQ-ON-W at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 sock_map_update_common+0x1b6/0x5b0 net/core/sock_map.c:492 sock_map_update_elem_sys+0x55b/0x910 net/core/sock_map.c:581 map_update_elem+0x503/0x680 kernel/bpf/syscall.c:1448 __sys_bpf+0x337/0x6c0 kernel/bpf/syscall.c:4993 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline] __se_sys_bpf kernel/bpf/syscall.c:5107 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd IN-SOFTIRQ-W at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 __sock_map_delete net/core/sock_map.c:416 [inline] sock_map_delete_elem+0x97/0x130 net/core/sock_map.c:448 bpf_prog_2c29ac5cdc6b1842+0x3a/0x3e bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline] __bpf_prog_run include/linux/filter.h:603 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run3+0x231/0x440 kernel/trace/bpf_trace.c:2313 trace_timer_start include/trace/events/timer.h:53 [inline] enqueue_timer+0x440/0x600 kernel/time/timer.c:609 __mod_timer+0x92b/0xee0 fq_pie_timer+0x3b6/0x590 net/sched/sch_fq_pie.c:404 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1790 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0xd1/0xa20 kernel/locking/lockdep.c:5673 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] follow_page_pte+0xff0/0x1880 mm/gup.c:656 follow_pud_mask mm/gup.c:810 [inline] follow_p4d_mask mm/gup.c:836 [inline] follow_page_mask+0xb8a/0x1420 mm/gup.c:900 __get_user_pages+0x470/0x1190 mm/gup.c:1231 __get_user_pages_locked mm/gup.c:1437 [inline] get_user_pages_unlocked+0x23b/0x8a0 mm/gup.c:2346 __gup_longterm_unlocked mm/gup.c:2957 [inline] internal_get_user_pages_fast+0x27a4/0x2ff0 mm/gup.c:3047 __iov_iter_get_pages_alloc+0x3b1/0xa70 lib/iov_iter.c:1460 iov_iter_get_pages2+0xcb/0x120 lib/iov_iter.c:1503 __bio_iov_iter_get_pages block/bio.c:1220 [inline] bio_iov_iter_get_pages+0x359/0x1340 block/bio.c:1290 iomap_dio_bio_iter+0xc80/0x15f0 fs/iomap/direct-io.c:331 __iomap_dio_rw+0x127e/0x2140 fs/iomap/direct-io.c:602 iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:690 ext4_dio_write_iter fs/ext4/file.c:557 [inline] ext4_file_write_iter+0x1464/0x1880 fs/ext4/file.c:677 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ae/0xba0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL USE at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 sock_map_update_common+0x1b6/0x5b0 net/core/sock_map.c:492 sock_map_update_elem_sys+0x55b/0x910 net/core/sock_map.c:581 map_update_elem+0x503/0x680 kernel/bpf/syscall.c:1448 __sys_bpf+0x337/0x6c0 kernel/bpf/syscall.c:4993 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline] __se_sys_bpf kernel/bpf/syscall.c:5107 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] sock_map_alloc.__key+0x0/0x20 ... acquired at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 __sock_map_delete net/core/sock_map.c:416 [inline] sock_map_delete_elem+0x97/0x130 net/core/sock_map.c:448 bpf_prog_2c29ac5cdc6b1842+0x3a/0x3e bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline] __bpf_prog_run include/linux/filter.h:603 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run3+0x231/0x440 kernel/trace/bpf_trace.c:2313 trace_timer_start include/trace/events/timer.h:53 [inline] enqueue_timer+0x440/0x600 kernel/time/timer.c:609 __mod_timer+0x92b/0xee0 fq_pie_timer+0x3b6/0x590 net/sched/sch_fq_pie.c:404 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1790 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0xd1/0xa20 kernel/locking/lockdep.c:5673 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] follow_page_pte+0xff0/0x1880 mm/gup.c:656 follow_pud_mask mm/gup.c:810 [inline] follow_p4d_mask mm/gup.c:836 [inline] follow_page_mask+0xb8a/0x1420 mm/gup.c:900 __get_user_pages+0x470/0x1190 mm/gup.c:1231 __get_user_pages_locked mm/gup.c:1437 [inline] get_user_pages_unlocked+0x23b/0x8a0 mm/gup.c:2346 __gup_longterm_unlocked mm/gup.c:2957 [inline] internal_get_user_pages_fast+0x27a4/0x2ff0 mm/gup.c:3047 __iov_iter_get_pages_alloc+0x3b1/0xa70 lib/iov_iter.c:1460 iov_iter_get_pages2+0xcb/0x120 lib/iov_iter.c:1503 __bio_iov_iter_get_pages block/bio.c:1220 [inline] bio_iov_iter_get_pages+0x359/0x1340 block/bio.c:1290 iomap_dio_bio_iter+0xc80/0x15f0 fs/iomap/direct-io.c:331 __iomap_dio_rw+0x127e/0x2140 fs/iomap/direct-io.c:602 iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:690 ext4_dio_write_iter fs/ext4/file.c:557 [inline] ext4_file_write_iter+0x1464/0x1880 fs/ext4/file.c:677 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ae/0xba0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 1 PID: 11642 Comm: syz-executor.1 Not tainted 6.1.83-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2604 [inline] check_irq_usage kernel/locking/lockdep.c:2843 [inline] check_prev_add kernel/locking/lockdep.c:3094 [inline] check_prevs_add kernel/locking/lockdep.c:3209 [inline] validate_chain+0x4d16/0x5950 kernel/locking/lockdep.c:3825 __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 __sock_map_delete net/core/sock_map.c:416 [inline] sock_map_delete_elem+0x97/0x130 net/core/sock_map.c:448 bpf_prog_2c29ac5cdc6b1842+0x3a/0x3e bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline] __bpf_prog_run include/linux/filter.h:603 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run3+0x231/0x440 kernel/trace/bpf_trace.c:2313 trace_timer_start include/trace/events/timer.h:53 [inline] enqueue_timer+0x440/0x600 kernel/time/timer.c:609 __mod_timer+0x92b/0xee0 fq_pie_timer+0x3b6/0x590 net/sched/sch_fq_pie.c:404 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1790 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:trace_lock_release include/trace/events/lock.h:69 [inline] RIP: 0010:lock_release+0xd1/0xa20 kernel/locking/lockdep.c:5673 Code: 86 c2 05 00 00 89 db 48 89 d8 48 c1 e8 06 48 8d 3c c5 e8 64 73 8e be 08 00 00 00 e8 f9 83 77 00 48 0f a3 1d e9 ec 08 0d 73 0d 7a c5 08 00 84 c0 0f 84 c5 05 00 00 48 c7 c0 a4 99 73 8e 48 c1 RSP: 0018:ffffc90003606ae0 EFLAGS: 00000257 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff816a77f7 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e7364e8 RBP: ffffc90003606c18 R08: dffffc0000000000 R09: fffffbfff1ce6c9e R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920006c0d68 R13: ffffffff81cb3f80 R14: 0000000000000000 R15: dffffc0000000000 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] follow_page_pte+0xff0/0x1880 mm/gup.c:656 follow_pud_mask mm/gup.c:810 [inline] follow_p4d_mask mm/gup.c:836 [inline] follow_page_mask+0xb8a/0x1420 mm/gup.c:900 __get_user_pages+0x470/0x1190 mm/gup.c:1231 __get_user_pages_locked mm/gup.c:1437 [inline] get_user_pages_unlocked+0x23b/0x8a0 mm/gup.c:2346 __gup_longterm_unlocked mm/gup.c:2957 [inline] internal_get_user_pages_fast+0x27a4/0x2ff0 mm/gup.c:3047 __iov_iter_get_pages_alloc+0x3b1/0xa70 lib/iov_iter.c:1460 iov_iter_get_pages2+0xcb/0x120 lib/iov_iter.c:1503 __bio_iov_iter_get_pages block/bio.c:1220 [inline] bio_iov_iter_get_pages+0x359/0x1340 block/bio.c:1290 iomap_dio_bio_iter+0xc80/0x15f0 fs/iomap/direct-io.c:331 __iomap_dio_rw+0x127e/0x2140 fs/iomap/direct-io.c:602 iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:690 ext4_dio_write_iter fs/ext4/file.c:557 [inline] ext4_file_write_iter+0x1464/0x1880 fs/ext4/file.c:677 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ae/0xba0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f02f4e7dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f02f5b350c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f02f4fabf80 RCX: 00007f02f4e7dda9 RDX: 0000000000032600 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007f02f4eca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f02f4fabf80 R15: 00007ffff7eef388 ---------------- Code disassembly (best guess): 0: 86 c2 xchg %al,%dl 2: 05 00 00 89 db add $0xdb890000,%eax 7: 48 89 d8 mov %rbx,%rax a: 48 c1 e8 06 shr $0x6,%rax e: 48 8d 3c c5 e8 64 73 lea -0x718c9b18(,%rax,8),%rdi 15: 8e 16: be 08 00 00 00 mov $0x8,%esi 1b: e8 f9 83 77 00 call 0x778419 20: 48 0f a3 1d e9 ec 08 bt %rbx,0xd08ece9(%rip) # 0xd08ed11 27: 0d 28: 73 0d jae 0x37 * 2a: e8 7a c5 08 00 call 0x8c5a9 <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 84 c5 05 00 00 je 0x5fc 37: 48 c7 c0 a4 99 73 8e mov $0xffffffff8e7399a4,%rax 3e: 48 rex.W 3f: c1 .byte 0xc1