------------[ cut here ]------------ WARNING: CPU: 3 PID: 8724 at drivers/rtc/rtc-mc146818-lib.c:25 mc146818_get_time+0x665/0x860 drivers/rtc/rtc-mc146818-lib.c:25 Modules linked in: CPU: 3 PID: 8724 Comm: syz-executor.1 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:mc146818_get_time+0x665/0x860 drivers/rtc/rtc-mc146818-lib.c:25 Code: eb 4e e8 5e ee c9 fb 4c 89 e6 48 c7 c7 60 6c b9 8b e8 af 03 54 03 bf 58 89 41 00 e8 85 af 33 fe e9 d5 f9 ff ff e8 3b ee c9 fb <0f> 0b 48 c7 c7 60 6c b9 8b 4c 89 e6 45 31 e4 e8 87 03 54 03 ba 24 RSP: 0018:ffffc90000598d68 EFLAGS: 00010046 RAX: 0000000080010002 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffff88801d7c0000 RSI: ffffffff85a8e325 RDI: 0000000000000003 RBP: ffffc90000598e00 R08: 0000000000000001 R09: 0000000000000022 R10: ffffffff85a8dd22 R11: 0000000000000000 R12: 0000000000000046 R13: 0000000000000022 R14: ffffc90000598f18 R15: ffff888010d9e000 FS: 0000000000000000(0000) GS:ffff88802cd00000(0063) knlGS:000000000b00c380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000081650d0 CR3: 000000005da12000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hpet_rtc_interrupt+0x2b0/0x380 arch/x86/kernel/hpet.c:1358 __handle_irq_event_percpu+0x303/0x8f0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x102/0x290 kernel/irq/handle.c:213 handle_edge_irq+0x25f/0xd00 kernel/irq/chip.c:819 asm_call_irq_on_stack+0xf/0x20 __run_irq_on_irqstack arch/x86/include/asm/irq_stack.h:48 [inline] run_irq_on_irqstack_cond arch/x86/include/asm/irq_stack.h:101 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0x120/0x200 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:620 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x25/0x50 kernel/locking/spinlock.c:191 Code: f8 5d c3 66 90 55 48 89 fd 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 ea e6 5b f8 48 89 ef e8 92 9b 5c f8 f6 c7 02 75 1a 53 9d 01 00 00 00 e8 d1 a2 50 f8 65 8b 05 ca 08 05 77 85 c0 74 0a 5b RSP: 0018:ffffc90000df7c40 EFLAGS: 00000246 RAX: 00000000000989c7 RBX: 0000000000000246 RCX: 1ffffffff1b46ac9 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88802cd26a00 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff8178a418 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc90000df7dc0 R15: ffff88801d7c0000 hrtimer_start_expires include/linux/hrtimer.h:436 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1799 [inline] do_nanosleep+0x202/0x6a0 kernel/time/hrtimer.c:1875 hrtimer_nanosleep+0x1f9/0x430 kernel/time/hrtimer.c:1931 common_nsleep+0xa2/0xc0 kernel/time/posix-timers.c:1227 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1245 [inline] __ia32_sys_clock_nanosleep+0x2f4/0x430 kernel/time/posix-timers.c:1245 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x80 arch/x86/entry/common.c:139 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:164 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fb1549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffc21670 EFLAGS: 00000286 ORIG_RAX: 0000000000000197 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000ffc216ec RSI: 00000000ffc216fc RDI: 00000000ffc216ec RBP: 00000000ffc216fc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000