Bug 1382479

Summary: BUG: unable to handle kernel NULL pointer dereference in cmos_set_alarm
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: extras-orphan, gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-10 21:34:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
dmesg none

Description Orion Poplawski 2016-10-06 19:07:08 UTC
Created attachment 1208022 [details]
dmesg

Description of problem:

[    7.480172] rtc_cmos 00:00: RTC can wake from S4
[    7.480758] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[    7.480869] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram
[    7.480919] rtc_cmos 00:00: RTC can wake from S4
[    7.480966] rtc_cmos: probe of 00:00 failed with error -16

[  169.373891] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
[  169.373958] IP: [<ffffffff8d7047dd>] cmos_set_alarm+0x1d/0x1a0
[  169.374008] PGD 0
[  169.374016] Oops: 0000 [#1] SMP
[  169.374016] Modules linked in: xfs fcoe libfcoe libfc scsi_transport_fc nfsv4 dns_resolver nfs lockd grace fscache zram joydev virtio_balloon i2c_piix4 parport_pc parport pvpanic acpi_cpufreq loop 8021q garp stp llc mrp virtio_blk virtio_net cirrus drm_kms_helper serio_raw ttm drm virtio_pci virtio_ring virtio ata_generic pata_acpi sunrpc mcryptd sha256_ssse3 dm_crypt dm_round_robin linear raid10 raid456 async_raid6_recov async_memcpy libcrc32c async_pq async_xor xor async_tx raid6_pq raid1 raid0 iscsi_ibft iscsi_boot_sysfs floppy iscsi_tcp libiscsi_tcp libiscsi squashfs cramfs scsi_transport_iscsi edd dm_multipath
[  169.374016] CPU: 0 PID: 1856 Comm: hwclock Tainted: G        W       4.9.0-0.rc0.git2.1.fc26.x86_64 #1
[  169.374016] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007
[  169.374016] task: ffff89d1b8943100 task.stack: ffffa66000d00000
[  169.374016] RIP: 0010:[<ffffffff8d7047dd>]  [<ffffffff8d7047dd>] cmos_set_alarm+0x1d/0x1a0
[  169.374016] RSP: 0018:ffffa66000d03bc0  EFLAGS: 00010286
[  169.374016] RAX: ffffffff8d7047c0 RBX: 0000000057f67bc4 RCX: 0000000000000010
[  169.374016] RDX: 0000000001774edc RSI: ffffa66000d03ce0 RDI: ffff89d1f6f4c000
[  169.374016] RBP: ffffa66000d03bf0 R08: 000000000000001c R09: 0000000000000033
[  169.374016] R10: 00000000000001fd R11: 0000000000000b78 R12: 0000000000000000
[  169.374016] R13: ffff89d1fbd1f000 R14: ffff89d1fbd1f738 R15: ffff89d1fbd1f748
[  169.374016] FS:  00007f2bbe0f5f80(0000) GS:ffff89d1f9a00000(0000) knlGS:0000000000000000
[  169.374016] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  169.374016] CR2: 0000000000000010 CR3: 00000000389c3000 CR4: 00000000000006f0
[  169.374016] Stack:
[  169.374016]  ffffffff8d703f51 0000000057f67bc4 ffffa66000d03ce0 ffff89d1fbd1f000
[  169.374016]  ffff89d1fbd1f738 ffff89d1fbd1f748 ffffa66000d03c48 ffffffff8d700e48
[  169.374016]  0000003300d03c48 000000100000001c 0000000900000006 0000000000000074
[  169.374016] Call Trace:
[  169.374016]  [<ffffffff8d703f51>] ? cmos_read_time+0x11/0x20
[  169.374016]  [<ffffffff8d700e48>] __rtc_set_alarm+0x98/0xc0
[  169.374016]  [<ffffffff8d700f9d>] rtc_timer_enqueue+0x12d/0x1b0
[  169.374016]  [<ffffffff8d11021d>] ? trace_hardirqs_on+0xd/0x10
[  169.374016]  [<ffffffff8d7013b2>] rtc_update_irq_enable+0xc2/0x110
[  169.374016]  [<ffffffff8d8f9fba>] ? __mutex_unlock_slowpath+0xfa/0x1c0
[  169.374016]  [<ffffffff8d702670>] rtc_dev_ioctl+0x4d0/0x510
[  169.374016]  [<ffffffff8d0dfd9a>] ? __might_sleep+0x4a/0x80
[  169.374016]  [<ffffffff8d2bb623>] do_vfs_ioctl+0xa3/0x6f0
[  169.374016]  [<ffffffff8d2bbce9>] SyS_ioctl+0x79/0x90
[  169.374016]  [<ffffffff8d003eec>] do_syscall_64+0x6c/0x1f0
[  169.374016]  [<ffffffff8d8fd709>] entry_SYSCALL64_slow_path+0x25/0x25
[  169.374016] Code: 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 08 4c 8b a7 18 01 00 00 <41> 8b 44 24 10 85 c0 0f 8e 60 01 00 00 0f b6 46 14 bf 0b 00 00
[  169.374016] RIP  [<ffffffff8d7047dd>] cmos_set_alarm+0x1d/0x1a0
[  169.374016]  RSP <ffffa66000d03bc0>
[  169.374016] CR2: 0000000000000010
[  169.383746] ---[ end trace 4ae43bd1c8efb65a ]---

this may be preventing anaconda install as it hangs with "Waiting for thread AnaTimeInitThread to exit".

Installing today's rawhide in KVM VM on EL6 host.

Version-Release number of selected component (if applicable):
4.9.0-0.rc0.git2.1.fc26.x86_64

How reproducible:
Two for two boots now.

Comment 1 Orion Poplawski 2016-10-10 21:34:58 UTC
Appears fixed with 4.9.0-0.rc0.git4.1.fc26.