[AT&T Samsung Galaxy S II SGH-I777] ywashingmachine:
Currently running CM10. I woke up this morning to my phone being off, booted up and pulled last_kmsg. I leave my phone charging every night, this is the 2nd time this happened in a week (last time was Friday I think, I forgot to get last_kmsg then though). Here's the end of the file which I think probably contains the important bits, but the entire file is also attached.

[ 1222.096758] c0 CPU1: shutdown

[ 1222.098990] c0 cpu1 off!

[ 1222.595215] c0 cpu1 turning on!

[ 1222.613470] c1 CPU1: Booted secondary processor

[ 1222.613572] c1 notifier_call_chain : NOTIFY BAD tick_notify

[ 1222.615051] c1 Switched to NOHz mode on CPU #1

[ 1222.615241] c0 cpu1 on

[ 1223.206990] c0 mif: link_pm_slave_wake: gpio [SWK] set [1]

[ 1223.207156] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]

[ 1223.212411] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):

[ 1223.212541] c0 mif: set hsic lpa wake: pda active (1)

[ 1223.217162] c0 pn544 : pn544_dev_irq_handler error

[ 1223.241421] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]

[ 1223.290079] c0 mif: usb_port_resume: 1283, 4

[ 1223.304620] c1 pn544_dev_ioctl power off

[ 1223.692774] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]

[ 1223.693076] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):

[ 1223.693189] c0 mif: set hsic lpa wake: pda active (1)

[ 1223.720957] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]

[ 1223.770104] c0 mif: usb_port_resume: 1283, 4

[ 1224.725234] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]

[ 1224.725376] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):

[ 1224.725598] c0 mif: set hsic lpa wake: pda active (1)

[ 1224.755893] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]

[ 1224.805113] c0 mif: usb_port_resume: 1283, 4

[ 1225.975895] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]

[ 1225.976080] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):

[ 1225.976130] c0 mif: set hsic lpa wake: pda active (1)

[ 1226.005875] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]

[ 1226.055074] c0 mif: usb_port_resume: 1283, 4

[ 1226.538066] c1 SysRq : Emergency Remount R/O

[ 1226.584327] c1 EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)

[ 1226.675297] c1 EXT4-fs (mmcblk0p10): re-mounted. Opts: (null)

[ 1226.701464] c1 EXT4-fs (mmcblk0p12): re-mounted. Opts: (null)

[ 1226.780891] c1 EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)

[ 1226.884372] c1 Emergency Remount complete

[ 1226.941537] c0 (sec_debug_set_upload_magic) 0

[ 1226.941905] c0 REBOOT Notifier for CPUFREQ

[ 1226.941975] c0 REBOOT Notifier for BUSFREQ

[ 1226.942019] c0 hotplug_reboot_notifier_call: disabling pm hotplug

[ 1226.942230] c0 mif: xmm6260_off: xmm6260_off()

[ 1226.942551] c0 max8997-muic max8997-muic: max8997_muic_shutdown: JIGSet: auto detection

[ 1226.943230] c0 max8997-rtc max8997-rtc: max8997_rtc_enable_wtsr: disable WTSR

[ 1226.965248] c0 max8997_rtc_shutdown: WTSR_SMPL reg(0x80)

[ 1226.965302] c0 max8997_rtc_shutdown: success to disable WTSR

[ 1226.965419] c0 k3dh_shutdown: is called.

[ 1226.965607] c0 pn544_shutdown

[ 1226.967218] c0 Disabling non-boot CPUs ...

[ 1226.967733] c1 IRQ112 no longer affine to CPU1

[ 1226.968081] c0 CPU1: shutdown

[ 1226.968827] c0 Restarting system.

[ 1226.968953] c0 sec_reboot (104, (null))

Any ideas as to what went wrong?

Thanks in advance