langningchen / Image

A very simple online image hosting service
https://image.langningchen.com
GNU General Public License v3.0
2 stars 0 forks source link

kernel panic when repeatedly uploading large images #1

Open boomzero opened 4 months ago

boomzero commented 4 months ago
image

想卡 images.langningchen.com, 但是系统炸了

原因: 浏览器使用过多内存(50GB~)

panic(cpu 1 caller 0xfffffe002820714c): watchdog timeout: no checkins from watchdogd in 92 seconds (7591 total checkins since monitoring last enabled)
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 23F79
Kernel version: Darwin Kernel Version 23.5.0: Wed May  1 20:19:05 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8112
Fileset Kernelcache UUID: 35B9B562B7C9F3068879EC77B1D11318
Kernel UUID: FE86F5F9-E780-3E79-9035-57CEA4EF6097
Boot session UUID: 98C21BA5-32EC-45B8-9396-FE68D4A6DB63
iBoot version: iBoot-10151.121.1
secure boot?: YES
roots installed: 0
Paniclog version: 14
KernelCache slide: 0x000000001f240000
KernelCache base:  0xfffffe0026244000
Kernel slide:      0x000000001f248000
Kernel text base:  0xfffffe002624c000
Kernel text exec slide: 0x00000000207c0000
Kernel text exec base:  0xfffffe00277c4000
mach_absolute_time: 0x25ede8bc308
Epoch Time:        sec       usec
  Boot    : 0x66a6dcb2 0x00093390
  Sleep   : 0x66a76357 0x000ce0b2
  Wake    : 0x66a7667e 0x0004111e
  Calendar: 0x66a88f5d 0x0005964d

Zone info:
  Zone map: 0xfffffe10046a0000 - 0xfffffe30046a0000
  . VM    : 0xfffffe10046a0000 - 0xfffffe14d136c000
  . RO    : 0xfffffe14d136c000 - 0xfffffe166ad04000
  . GEN0  : 0xfffffe166ad04000 - 0xfffffe1b379d0000
  . GEN1  : 0xfffffe1b379d0000 - 0xfffffe200469c000
  . GEN2  : 0xfffffe200469c000 - 0xfffffe24d1368000
  . GEN3  : 0xfffffe24d1368000 - 0xfffffe299e034000
  . DATA  : 0xfffffe299e034000 - 0xfffffe30046a0000
  Metadata: 0xfffffe3a2ff9c000 - 0xfffffe3a37f9c000
  Bitmaps : 0xfffffe3a37f9c000 - 0xfffffe3a395b0000
  Extra   : 0 - 0

CORE 0 recently retired instr at 0xfffffe002796be64
CORE 1 recently retired instr at 0xfffffe002796a730
CORE 2 recently retired instr at 0xfffffe002796be64
CORE 3 recently retired instr at 0xfffffe002796be64
CORE 4 recently retired instr at 0xfffffe002796be64
CORE 5 recently retired instr at 0xfffffe002796be64
CORE 6 recently retired instr at 0xfffffe002796be64
CORE 7 recently retired instr at 0xfffffe002796be64
TPIDRx_ELy = {1: 0xfffffe200429c788  0: 0x0000000000000001  0ro: 0x0000000000000000 }
CORE 0 PVH locks held: None
CORE 1 PVH locks held: None
CORE 2 PVH locks held: None
CORE 3 PVH locks held: None
CORE 4 PVH locks held: None
CORE 5 PVH locks held: None
CORE 6 PVH locks held: None
CORE 7 PVH locks held: None
CORE 0: PC=0xfffffe0027d0efbc, LR=0xfffffe0027d0efbc, FP=0xfffffe5364b17ce0
CORE 1 is the one that panicked. Check the full backtrace for details.
CORE 2: PC=0xfffffe0027854f00, LR=0xfffffe0027854f00, FP=0xfffffe536609bef0
CORE 3: PC=0xfffffe0027953848, LR=0xfffffe00278ba5b8, FP=0xfffffe5364b93ce0
CORE 4: PC=0xfffffe0027854f00, LR=0xfffffe0027854f00, FP=0xfffffe53671a7ef0
CORE 5: PC=0xfffffe0027854f04, LR=0xfffffe0027854f00, FP=0xfffffe5366a03ef0
CORE 6: PC=0xfffffe0027854f04, LR=0xfffffe0027854f00, FP=0xfffffe53664efef0
CORE 7: PC=0xfffffe0027854f04, LR=0xfffffe0027854f00, FP=0xfffffe536498bef0
Compressor Info: 100% of compressed pages limit (BAD) and 90% of segments limit (OK) with 41 swapfiles and OK swap space
Total cpu_usage: 20143201
Thread task pri cpu_usage
0xfffffe2003f87fc0 kernel_task 91 2498160
0xfffffe20041927e8 kernel_task 91 2494065
0xfffffe2002c75798 Arc Helper (Rend 47 253
0xfffffe2003889fe0 Finder 46 0
0xfffffe2002179fa0 Terminal 46 0

Panicked task 0xfffffe24d14041c0: 0 pages, 474 threads: pid 0: kernel_task
Panicked thread: 0xfffffe200429c788, backtrace: 0xfffffe49444278e0, tid: 362
          lr: 0xfffffe002781b270  fp: 0xfffffe4944427970
          lr: 0xfffffe0027962d74  fp: 0xfffffe49444279e0
          lr: 0xfffffe0027961000  fp: 0xfffffe4944427aa0
          lr: 0xfffffe00277cb8cc  fp: 0xfffffe4944427ab0
          lr: 0xfffffe002781ab64  fp: 0xfffffe4944427e60
          lr: 0xfffffe002801bd30  fp: 0xfffffe4944427e80
          lr: 0xfffffe002820714c  fp: 0xfffffe4944427ed0
          lr: 0xfffffe0028205e68  fp: 0xfffffe4944427f10
          lr: 0xfffffe00282032ac  fp: 0xfffffe4944427f30
          lr: 0xfffffe0028bb4b48  fp: 0xfffffe4944427fd0
          lr: 0xfffffe0027964730  fp: 0xfffffe4944427fe0
          lr: 0xfffffe00277cb940  fp: 0xfffffe4944427ff0
          lr: 0xfffffe0027966b04  fp: 0xfffffe53671bfe80
          lr: 0xfffffe0027854f00  fp: 0xfffffe53671bfef0
          lr: 0xfffffe0027855118  fp: 0xfffffe53671bff20
          lr: 0xfffffe00277d4be4  fp: 0x0000000000000000
      Kernel Extensions in backtrace:
         com.apple.driver.AppleInterruptControllerV2(1.0d1)[99FDF29B-35BB-316A-A4F3-4DD19A093CB2]@0xfffffe0028bb3070->0xfffffe0028bb58fb
            dependency: com.apple.driver.AppleARMPlatform(1.0.2)[111F012A-F12D-349B-A25C-6EC373681EBF]@0xfffffe00281ad9b0->0xfffffe00282019cf
         com.apple.driver.AppleARMWatchdogTimer(1.0)[1C56DCEF-1A8F-3617-B865-D1AE918AB892]@0xfffffe00282019d0->0xfffffe0028207173
            dependency: com.apple.driver.AppleARMPlatform(1.0.2)[111F012A-F12D-349B-A25C-6EC373681EBF]@0xfffffe00281ad9b0->0xfffffe00282019cf

last started kext at 781618837: com.apple.filesystems.autofs    3.0 (addr 0xfffffe0026c71e90, size 6069)
loaded kexts:
com.apple.filesystems.autofs    3.0
com.apple.UVCService    1
com.apple.driver.AppleBluetoothMultitouch   102
com.apple.driver.AppleTopCaseHIDEventDriver 7440.8
com.apple.driver.CoreKDL    1
com.apple.driver.AppleBiometricServices 1
com.apple.driver.BCMWLANFirmware4388.Hashstore  1
com.apple.driver.BCMWLANFirmware4387.Hashstore  1
com.apple.driver.BCMWLANFirmware4378.Hashstore  1
com.apple.iokit.AppleBCM5701Ethernet    11.0.0
com.apple.driver.DiskImages.ReadWriteDiskImage  493.0.0
com.apple.driver.DiskImages.UDIFDiskImage   493.0.0
com.apple.driver.DiskImages.RAMBackingStore 493.0.0
com.apple.driver.DiskImages.FileBackingStore    493.0.0
com.apple.driver.SEPHibernation 1
com.apple.driver.AppleUSBDeviceNCM  5.0.0
com.apple.driver.AppleThunderboltIP 4.0.3
com.apple.driver.AppleFileSystemDriver  3.0.1
com.apple.nke.l2tp  1.9
com.apple.filesystems.tmpfs 1
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleSmartIO2  1
com.apple.driver.AppleAOPVoiceTrigger   340.42
com.apple.AppleEmbeddedSimpleSPINORFlasher  1
com.apple.filesystems.nfs   1
com.apple.filesystems.lifs  1
com.apple.filesystems.apfs  2236.120.10
com.apple.IOTextEncryptionFamily    1.0.0
com.apple.filesystems.hfs.kext  650.120.1
com.apple.security.BootPolicy   1
com.apple.BootCache 40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.driver.AudioDMAController-T8112   350.2
com.apple.driver.AppleSPIMC 1
com.apple.driver.AppleSamsungSerial 1.0.0d1
com.apple.driver.AppleSerialShim    1
com.apple.driver.AppleSN012776Amp   740.41
com.apple.driver.AppleTypeCRetimer  1.0.0
com.apple.driver.AppleMobileDispH14G-DCP    140.0
com.apple.driver.AppleJPEGDriver    6.6.2
com.apple.driver.ApplePMP   1
com.apple.driver.usb.AppleSynopsysUSB40XHCI 1
com.apple.driver.AppleT8020SOCTuner 1
com.apple.driver.ApplePMPFirmware   1
com.apple.driver.AppleAVE2  760.30.1
com.apple.driver.AppleAVD   742
com.apple.driver.AppleProResHW  350.47.0
com.apple.AGXG14G   282.14
com.apple.driver.AppleEventLogHandler   1
com.apple.driver.AppleCS42L84Audio  740.41
com.apple.driver.AppleT8112CLPC 1
com.apple.driver.AppleS5L8960XNCO   1
com.apple.driver.AppleT8112PMGR 1
com.apple.driver.AppleS8000AES  1
com.apple.driver.AppleS5L8920XPWM   1.0.0d1
com.apple.driver.AppleS8000DWI  1.0.0d1
com.apple.driver.AppleInterruptControllerV2 1.0.0d1
com.apple.driver.AppleBluetoothModule   1
com.apple.driver.AppleBCMWLANBusInterfacePCIe   1
com.apple.driver.AppleT8110DART 1
com.apple.driver.AppleS5L8940XI2C   1.0.0d2
com.apple.driver.AppleM68Buttons    1.0.0d1
com.apple.driver.AppleT8110 1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.driver.usb.AppleUSBUserHCI    1
com.apple.iokit.IOKitRegistryCompatibility  1
com.apple.iokit.EndpointSecurity    1
com.apple.driver.AppleUIO   1
com.apple.driver.AppleDiskImages2   276.120.5
com.apple.AppleSystemPolicy 2.0.0
com.apple.nke.applicationfirewall   405
com.apple.kec.InvalidateHmac    1
com.apple.kec.AppleEncryptedArchive 1
com.apple.driver.driverkit.serial   6.0.0
com.apple.driver.AppleHIDKeyboard   7440.3
com.apple.driver.AppleMultitouchDriver  7440.9
com.apple.driver.AppleInputDeviceSupport    7440.1
com.apple.driver.AppleHSBluetoothDriver 7440.8
com.apple.driver.IOBluetoothHIDDriver   9.0.0
com.apple.driver.AppleMesaSEPDriver 100.99
com.apple.iokit.IOBiometricFamily   1
com.apple.driver.usb.cdc    5.0.0
com.apple.driver.AppleUSBAudio  640.12
com.apple.iokit.IOAudioFamily   540.3
com.apple.vecLib.kext   1.2.0
com.apple.driver.usb.AppleEmbeddedUSBXHCIPCI    1
com.apple.driver.usb.AppleUSBXHCIPCI    1.2
com.apple.driver.AppleConvergedIPCOLYBTControl  1
com.apple.driver.AppleConvergedPCI  1
com.apple.driver.AppleBluetoothDebug    1
com.apple.driver.DiskImages.KernelBacked    493.0.0
com.apple.driver.AppleSEPHDCPManager    1.0.1
com.apple.driver.AppleTrustedAccessory  1
com.apple.iokit.AppleSEPGenericTransfer 1
com.apple.driver.AppleXsanScheme    3
com.apple.driver.usb.networking 5.0.0
com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4
com.apple.driver.AppleThunderboltDPInAdapter    8.5.1
com.apple.driver.AppleThunderboltDPAdapterFamily    8.5.1
com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1
com.apple.driver.AppleBTM   1.0.1
com.apple.nke.ppp   1.9
com.apple.driver.AppleDCPDPTXProxy  1.0.0
com.apple.driver.DCPDPFamilyProxy   1
com.apple.driver.AppleAOPAudio  340.4
com.apple.iokit.IONVMeFamily    2.1.0
com.apple.driver.AppleDiagnosticDataAccessReadOnly  1.0.0
com.apple.driver.AppleNANDConfigAccess  1.0.0
com.apple.driver.AppleSART  1
com.apple.driver.AppleBSDKextStarter    3
com.apple.kext.triggers 1.0
com.apple.driver.IOHIDPowerSource   1
com.apple.driver.AppleCallbackPowerSource   1
com.apple.filesystems.hfs.encodings.kext    1
com.apple.driver.AppleSyntheticGameController   11.5.1
com.apple.driver.AppleHPM   3.4.4
com.apple.driver.AppleT8112TypeCPhy 1
com.apple.driver.AppleT8103TypeCPhy 1
com.apple.driver.AppleStockholmControl  1.0.0
com.apple.driver.AppleSPMIPMU   1.0.1
com.apple.driver.AppleDialogPMU 1.0.1
com.apple.AGXFirmwareKextG14GRTBuddy    1
com.apple.AGXFirmwareKextRTBuddy64  282.14
com.apple.driver.AppleUSBXDCIARM    1.0
com.apple.driver.AppleUSBXDCI   1.0
com.apple.iokit.IOUSBDeviceFamily   2.0.0
com.apple.driver.AppleSPMI  1.0.1
com.apple.iokit.IOMobileGraphicsFamily-DCP  343.0.0
com.apple.iokit.IOMobileGraphicsFamily  343.0.0
com.apple.driver.ApplePassthroughPPM    3.0
com.apple.driver.usb.AppleSynopsysUSBXHCI   1
com.apple.driver.usb.AppleUSBXHCI   1.2
com.apple.driver.AppleEmbeddedUSBHost   1
com.apple.driver.usb.AppleUSBHub    1.2
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.2
com.apple.driver.AppleSPU   1
com.apple.driver.AppleDCP   1
com.apple.driver.DCPAVFamilyProxy   1
com.apple.driver.AppleFirmwareKit   1
com.apple.driver.AppleMCA2-T8112    840.3
com.apple.driver.AppleH11ANEInterface   7.453.0
com.apple.driver.AppleM2ScalerCSCDriver 265.0.0
com.apple.iokit.IOGPUFamily 93.40.3
com.apple.driver.AppleCSEmbeddedAudio   740.41
com.apple.driver.AppleEmbeddedAudio 740.41
com.apple.iokit.AppleARMIISAudio    340.16
com.apple.driver.IISAudioIsolatedStreamECProxy  340.16
com.apple.driver.ExclavesAudioKext  1
com.apple.driver.AppleEmbeddedAudioLibs 340.8
com.apple.driver.AppleFirmwareUpdateKext    1
com.apple.driver.ApplePMGR  1
com.apple.driver.AppleA7IOP-ASCWrap-v4  1.0.2
com.apple.driver.AppleARMWatchdogTimer  1
com.apple.driver.AppleT8112PCIe 1
com.apple.driver.usb.AppleUSBHostPacketFilter   1.0
com.apple.driver.AppleDisplayCrossbar   1.0.0
com.apple.iokit.IODisplayPortFamily 1.0.0
com.apple.driver.AppleTypeCPhy  1
com.apple.driver.AppleA7IOP-MXWrap-v1   1.0.2
com.apple.driver.AppleT8103PCIeC    1
com.apple.driver.ApplePIODMA    1
com.apple.driver.AppleThunderboltNHI    7.2.81
com.apple.iokit.IOThunderboltFamily 9.3.3
com.apple.iokit.IOPortFamily    1.0
com.apple.driver.AppleBluetoothDebugService 1
com.apple.driver.AppleBCMWLANCore   1.0.0
com.apple.iokit.IO80211Family   1200.13.0
com.apple.driver.IOImageLoader  1.0.0
com.apple.driver.AppleOLYHAL    1
com.apple.iokit.IOAVBFamily 1220.1
com.apple.plugin.IOgPTPPlugin   1250.2
com.apple.driver.AppleGPIOICController  1.0.2
com.apple.driver.AppleMobileApNonce 1
com.apple.driver.AppleFireStormErrorHandler 1
com.apple.driver.AppleMultiFunctionManager  1
com.apple.driver.corecapture    1.0.4
com.apple.driver.AppleEmbeddedPCIE  1
com.apple.iokit.IOTimeSyncFamily    1250.2
com.apple.driver.DiskImages 493.0.0
com.apple.iokit.IOGraphicsFamily    598
com.apple.iokit.IOBluetoothFamily   9.0.0
com.apple.driver.AppleSSE   1.0
com.apple.driver.AppleSEPKeyStore   2
com.apple.driver.AppleUSBTDM    556
com.apple.iokit.IOUSBMassStorageDriver  245
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOUSBHostFamily 1.2
com.apple.driver.AppleUSBHostMergeProperties    1.2
com.apple.driver.usb.AppleUSBCommon 1.0
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.RTBuddy    1.0.0
com.apple.driver.AppleEmbeddedTempSensor    1.0.0
com.apple.driver.AppleARMPMU    1.0
com.apple.iokit.IOAccessoryManager  1.0.0
com.apple.driver.AppleOnboardSerial 1.0
com.apple.iokit.IOSerialFamily  11
com.apple.iokit.IOSCSIBlockCommandsDevice   495
com.apple.iokit.IOSCSIArchitectureModelFamily   495
com.apple.driver.AppleRSMChannel    1
com.apple.iokit.IORSMFamily 1
com.apple.driver.AppleLockdownMode  1
com.apple.driver.AppleIPAppender    1.0
com.apple.iokit.IOSkywalkFamily 1.0
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.iokit.IONetworkingFamily  3.4
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleEffaceableStorage 1.0
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.AppleSEPManager    1.0.1
com.apple.driver.IODARTFamily   1
com.apple.driver.AppleA7IOP 1.0.2
com.apple.driver.IOSlaveProcessor   1
com.apple.driver.AppleBiometricSensor   2
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.AUC   1.0
com.apple.iokit.IOSurface   352.50.1
com.apple.iokit.IOAVFamily  1.0.0
com.apple.iokit.IOHDCPFamily    1.0.0
com.apple.iokit.IOCECFamily 1
com.apple.iokit.IOAudio2Family  1.0
com.apple.driver.AppleIISController 340.1
com.apple.driver.AppleAudioClockLibs    340.8
com.apple.driver.FairPlayIOKit  71.10.0
com.apple.driver.AppleARMPlatform   1.0.2
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.iokit.IOReportFamily  47
com.apple.security.quarantine   4
com.apple.security.sandbox  300.0
com.apple.iokit.IOStorageFamily 2.1
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.iokit.CoreAnalyticsFamily 1
com.apple.security.AppleImage4  6.3.0
com.apple.kext.CoreTrust    1
com.apple.iokit.IOCryptoAcceleratorFamily   1.0.1
com.apple.kec.pthread   1
com.apple.kec.Libm  1
com.apple.kec.Compression   1.0
com.apple.kec.corecrypto    14.0

** Stackshot Succeeded ** Bytes Traced 441821 (Uncompressed 1191232) **
boomzero commented 4 months ago

I should also point out that your github account will be immediately banned if I use tor to upload some CSAM

boomzero commented 4 months ago

And no this issue is not a joke, it actually happened

langningchen commented 3 months ago

Does the memory problem related to my site?

langningchen commented 3 months ago

For the NSFW content, please open a new issue.

boomzero commented 3 months ago

Yes, it is caused by your site’s javascript

On Jul 31, 2024, at 16:56, Langning Chen @.***> wrote:

Does the memory problem related to my site?

— Reply to this email directly, view it on GitHub https://github.com/langningchen/Image/issues/1#issuecomment-2260003039, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZONMDFSN2YQ7VCI763ZPCRFTAVCNFSM6AAAAABLVWYF72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQGAYDGMBTHE. You are receiving this because you authored the thread.

boomzero commented 3 months ago

large=50MB