Same problem here. Upgrading an iPad 2 (4.3.5) to iOS 9. I've tried everything I could find on google in order to solve this issue with no success. I event tried update the system using libimobiledevice / idevicerestore with no success. Here is the log if it help some Apple techie to look deeper into the problem:
$ sudo idevicerestore -e ~/Library/iTunes/iPad\ Software\ Updates/iPad2\,1_9.0.2_13A452_Restore.ipsw
NOTE: using cached version data
Found device in Recovery mode
Identified device as k93ap, iPad2,1
Extracting BuildManifest from IPSW
Product Version: 9.0.2
Product Build: 13A452 Major: 13
INFO: device serial number is DN6G70DFDKPH
Device supports Image4: false
Variant: Customer Erase Install (IPSW)
This restore will erase your device data.
Found ECID XXXXXXXXXXXX
Getting ApNonce in recovery mode...
Trying to fetch new SHSH blob
Getting SepNonce in recovery mode...
WARNING: Unable to find BbChipID node
WARNING: Unable to find BbSkeyId node
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Received SHSH blobs
Using cached filesystem from '/Users/edgardz/Library/iTunes/iPad Software Updates/iPad2,1_9.0.2_13A452_Restore/058-07911-225.dmg'
Sending APTicket (2710 bytes)
Extracting iBEC.k93.RELEASE.dfu...
Personalizing IMG3 component iBEC...
reconstructed size: 297498
Sending iBEC (297498 bytes)...
Getting ApNonce in recovery mode...
Trying to fetch new SHSH blob
Getting SepNonce in recovery mode...
WARNING: Unable to find BbChipID node
WARNING: Unable to find BbSkeyId node
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Received SHSH blobs
Sending APTicket (2710 bytes)
Recovery Mode Environment:
iBoot build-version=iBoot-2817.1.94
iBoot build-style=RELEASE
Sending AppleLogo...
Extracting applelogo.s5l8940x.img3...
Not personalizing component AppleLogo...
Sending AppleLogo (5388 bytes)...
ramdisk-size=0x4000000
Extracting 058-03653-290.dmg...
Not personalizing component RestoreRamDisk...
Sending RestoreRamDisk (20242700 bytes)...
Extracting DeviceTree.k93ap.img3...
Not personalizing component RestoreDeviceTree...
Sending RestoreDeviceTree (78348 bytes)...
Extracting kernelcache.release.k93...
Not personalizing component RestoreKernelCache...
Sending RestoreKernelCache (10445836 bytes)...
About to restore device...
Waiting for device...
Device ffffffffffffffffffffffffffffffff00000019 is now connected in restore mode...
Connecting now...
Connected to com.apple.mobile.restored, version 13
Device ffffffffffffffffffffffffffffffff00000019 has successfully entered restore mode
Hardware Information:
BoardID: 4
ChipID: 35136
UniqueChipID: XXXXXXXXXXXX
ProductionMode: true
Panic log is available:
panic(cpu 0 caller 0x98ac6fa3): "EffacingMediaFilter: initCrypto() failed\n"
Debugger message: panic
OS version: 13A452
Kernel version: Darwin Kernel Version 15.0.0: Thu Aug 20 13:11:09 PDT 2015; root:xnu-3248.1.3~1/RELEASE_ARM_S5L8940X
Paniclog version: 3
Kernel slide: 0x0000000018000000
Kernel text base: 0x98001000
Boot : 0x56266ecd 0x00000000
Sleep : 0x00000000 0x00000000
Wake : 0x00000000 0x00000000
Calendar: 0x56266eed 0x000d55dc
Panicked task 0x80045778: 734 pages, 1 threads: pid 11: fsck_hfs
panicked thread: 0x80147000, backtrace: 0x8eeb3890
0x980c9bff
0x980c9ed5
0x98020835
0x98ac6fa3
0x986a3037
0x9810e33d
0x980ddedf
0x98256c3b
0x9825a5f3
0x980eb21b
0x982b55c9
0x982b4d55
0x9830301b
0x980c6360
Task 0x80046ac8: 6769 pages, 106 threads: pid 0: kernel_task
Task 0x80046790: 604 pages, 3 threads: pid 1: launchd
Task 0x80046458: 602 pages, 6 threads: pid 4: syslogd
Task 0x80046120: 1513 pages, 1 threads: pid 5: restored_externa
Task 0x80045de8: 4352 pages, 4 threads: pid 6: restored_externa
Task 0x80045778: 734 pages, 1 threads: pid 11: fsck_hfs
Starting FDR listener thread
ERROR: Unable to connect to FDR client (-2)
ERROR: Failed to start FDR Ctrl channel
About to send RootTicket...
Sending RootTicket now...
Done sending RootTicket
Partition NAND device (28)
When it reaches this step, the devices reboots and the script stops.
I believe some of the errors reported above are the reason to the error (9) occurence on iTunes.