[HTC One S] kdd998:
I just had a reboot while the phone was screen off in my pocket. I had been using Ingress so it might have tried to access GPS data. It was a full reboot with vibration and white HTC statup screen. That's why I guess it's a kernel bug.

Several info:

HBOOT 2.16

CM 12.1 2015-05-06 unofficial nightly built by F-L-Y-E-R

Radio 1.20

ext4 FS

Here are the last lines of /proc/kmesg:

[18001.475382] wakeup wake lock: bam_dmux_wakelock
[18001.480113] PM: early resume of devices complete after 4.120 msecs
[18001.482310] [BATT][BMS] cc_uah = 72241uAh, raw->cc = 102858d, cc = 16942477 after subtracting 0
[18001.482341] [BATT][BMS] pm8921_bms_resume: BMS_TOLERANCES=0x2f
[18001.484722] [USB] OTG PM resume
[18001.485179] [GSNR] Gsensor enable
[18001.485179] [GSNR][BMA250] BMA_set_mode: mode = 0x00
[18001.488659] [COMP][AKM8975] akm8975_resume: (m, a, t, mv) = (0x0, 0x0, 0x0, 0x0)
[18001.488689] [GYRO][PANASONIC] Gyro sys on on:g_status=0 off_status=0
[18001.488720] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=0
[18001.488750] [FLT]TPS tps61310_resume:
[18001.493054] msm_fb_ext_resume: Turning on HPD circuitry
[18001.493298] PM: resume of devices complete after 13.123 msecs
[18001.496106] [BATT] htc_battery_complete: sr_time_period=32959 ms; total passing time=168592 ms.htc_batt_info.state=0x2, batt_temp=374, sensor0_temp=0 at 18000998147051 (2015-05-11 12:06:23.003784523 UTC)
[18001.712709] Restarting tasks ... done.
[18001.742527] PM: suspend exit 2015-05-11 12:06:23.250197422 UTC
[18001.747746] suspend: exit suspend, ret = 0 (2015-05-11 12:06:23.255412362 UTC)
[18001.957024] [COMP][AKM8975] AKECS_GetOpenStatus:
[18002.228381] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:
[18003.479350] PM: suspend entry 2015-05-11 12:06:24.986408282 UTC
[18003.516188] Freezing user space processes ...
[18003.526138] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:wait OK
[18003.534165] (elapsed 0.009 seconds) done.
[18003.537278] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[18003.545823] Suspending console(s) (use no_console_suspend to debug)
[18003.553972] [BATT] htc_battery_prepare: passing time:170652 ms, alarm will be triggered after 3430 sec.(suspend_highfreq_check_reason=0x0, htc_batt_info.state=0x6), batt_temp=374, sensor0_temp=0 at 18003055387229 (2015-05-11 12:06:25.060994183 UTC)
[18003.555620] msm_fb_ext_suspend: Turning off HPD circuitry
[18003.559130] [FLT]TPS tps61310_suspend:
[18003.559130] [FLT]TPS flashlight_turn_off
[18003.559741] [GYRO][PANASONIC] Gyro sys off on:g_status=0 off_status=1
[18003.559771] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=1
[18003.559771] [GSNR] Gsensor disable
[18003.559771] [GSNR][BMA250] BMA_set_mode: mode = 0x01
[18003.576344] [USB] OTG PM suspend
[18003.609367] [BATT][BMS] cc_uah = 72410uAh, raw->cc = 1030269, cc = 16974441 after subtracting 0
[18003.609367] [BATT][BMS] pm8921_bms_suspend: BMS_TOLERANCES=0x2f
[18003.610740] PM: suspend of devices complete after 55.360 msecs
[18003.611564] PM: late suspend of devices complete after 0.823 msecs
[18003.612999] PM: noirq suspend of devices complete after 1.403 msecs
[18003.612999] Disabling non-boot CPUs ...
[18003.613457] msm_pm_enter
[18003.613457] msm_pm_enter: power collapse
[18003.613457] msm_mpm_irqs_detectable: cannot monitor 000000,00000000,00000000,00000000,00000000,00000000,00020000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
[18003.613457] msm_pm_enter: return
[18003.614891] PM: noirq resume of devices complete after 1.312 msecs
[18003.615715] wakeup wake lock: bam_dmux_wakelock
[18003.616753] PM: early resume of devices complete after 0.762 msecs
[18003.618706] [BATT][BMS] cc_uah = 72855uAh, raw->cc = 10499d7, cc = 17078743 after subtracting 0
[18003.618706] [BATT][BMS] pm8921_bms_resume: BMS_TOLERANCES=0x2f
[18003.620079] [USB] OTG PM resume
[18003.620202] [GSNR] Gsensor enable
[18003.620202] [GSNR][BMA250] BMA_set_mode: mode = 0x00
[18003.623864] [COMP][AKM8975] akm8975_resume: (m, a, t, mv) = (0x0, 0x0, 0x0, 0x0)
[18003.623864] [GYRO][PANASONIC] Gyro sys on on:g_status=0 off_status=0
[18003.623864] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=0
[18003.623894] [FLT]TPS tps61310_resume:
[18003.625848] msm_fb_ext_resume: Turning on HPD circuitry
[18003.626092] PM: resume of devices complete after 9.308 msecs
[18003.628900] [BATT] htc_battery_complete: sr_time_period=121949 ms; total passing time=292601 ms.htc_batt_info.state=0x2, batt_temp=355, sensor0_temp=0 at 18003130309446 (2015-05-11 12:08:27.003479085 UTC)
[18003.845656] Restarting tasks ... done.
[18003.866684] PM: suspend exit 2015-05-11 12:08:27.241231020 UTC
[18003.880388] suspend: exit suspend, ret = 0 (2015-05-11 12:08:27.254953790 UTC)
[18004.062350] [COMP][AKM8975] AKECS_GetOpenStatus:
[18004.352935] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:

COMP is for compass and GYRO for the gyroscope.

Would it be possible for someone to build a kernel without the gyro driver so that I can use it during a few days for testing? And maybe also another one without the compass driver ?