Advertisement
Guest User

Untitled

a guest
Apr 12th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.87 KB | None | 0 0
  1. echo "# autogenerated, do not edit " > skels/Kbuild
  2. echo "ccflags-y += -Wno-unused-function -Wno-unused-label -Wno-unused-variable " >> skels/Kbuild
  3. for i in ./assignments/2-uart; do echo "obj-m += $i/" >> skels/Kbuild; done
  4. make -C /home/so2/vm/linux-infra/ M=/home/so2/vm/linux-infra//tools/labs/skels ARCH=x86 modules
  5. make[1]: Entering directory '/home/so2/vm/linux-infra'
  6. CC [M] /home/so2/vm/linux-infra//tools/labs/skels/./assignments/2-uart/uart16550.o
  7. Building modules, stage 2.
  8. MODPOST 1 modules
  9. CC /home/so2/vm/linux-infra//tools/labs/skels/./assignments/2-uart/uart16550.mod.o
  10. LD [M] /home/so2/vm/linux-infra//tools/labs/skels/./assignments/2-uart/uart16550.ko
  11. make[1]: Leaving directory '/home/so2/vm/linux-infra'
  12. for i in skels/assignments/2-uart/checker; do make -C $i; done
  13. make[1]: Entering directory '/home/so2/vm/linux-infra/tools/labs/skels/assignments/2-uart/checker'
  14. cc -Wall -g -static -m32 -c -o _test/test.o _test/test.c
  15. cc -Wall -g -static -m32 -o test _test/test.o
  16. ln -s _test/solution.ko solution.ko
  17. make[1]: Leaving directory '/home/so2/vm/linux-infra/tools/labs/skels/assignments/2-uart/checker'
  18. Compilarea temei și a testelor (stderr)
  19. make[3]: Warning: File '/home/so2/vm/linux-infra//tools/labs/skels/./assignments/2-uart/uart16550.c' has modification time 778 s in the future
  20. make[3]: warning: Clock skew detected. Your build may be incomplete.
  21. Execuția testelor (stdout)
  22. vmchecker storer: Running tests ...
  23.  
  24.  
  25. =========== Test 1. Module insertion and removal ===========
  26. insmod uart16550, default options.....................passed
  27. major.................................................passed
  28. ioports COM1..........................................passed
  29. ioports COM2..........................................passed
  30. interrupts COM1.......................................passed
  31. interrupts COM2.......................................passed
  32. rmmod.................................................passed
  33. insmod uart16550, major=42............................passed
  34. major.................................................passed
  35. rmmod.................................................passed
  36. insmod uart16550, COM2 only...........................passed
  37. insmod solution, COM1 only............................passed
  38. ioports COM1..........................................passed
  39. ioports COM2..........................................passed
  40. interrupts COM1.......................................passed
  41. interrupts COM2.......................................passed
  42. rmmod uart16550.......................................passed
  43. rmmod solution........................................passed
  44.  
  45. ================ Test 2. Invalid parameters ================
  46. insmod................................................passed
  47. invalid ioctl (0xdeadbeef)............................passed
  48. invalid ioctl (0x1337cafe)............................passed
  49. invalid ioctl wrong operation.........................passed
  50. rmmod.................................................insmod: can't insert 'uart16550.ko': Numerical result out of range
  51. passed
  52. insmod uart16550, option=0xdeadbabe...................passed
  53.  
  54. ================ Test 3. Read, small speed =================
  55. insmod uart16550......................................passed
  56. insmod solution.......................................passed
  57. ioctl reader..........................................passed
  58. ioctl writer..........................................passed
  59. passed
  60. passed
  61. test 01...............................................passed
  62. passed
  63. passed
  64. test 02...............................................passed
  65. passed
  66. passed
  67. test 03...............................................passed
  68. passed
  69. passed
  70. test 04...............................................passed
  71. passed
  72. passed
  73. test 05...............................................passed
  74. rmmod uart16550.......................................passed
  75. rmmod solution........................................passed
  76.  
  77. ================ Test 4. Write, small speed ================
  78. insmod solution.......................................passed
  79. insmod uart16550......................................passed
  80. ioctl reader..........................................passed
  81. ioctl writer..........................................passed
  82. passed
  83. passed
  84. test 01...............................................passed
  85. passed
  86. passed
  87. test 02...............................................passed
  88. passed
  89. passed
  90. test 03...............................................passed
  91. passed
  92. passed
  93. test 04...............................................passed
  94. passed
  95. passed
  96. test 05...............................................passed
  97. rmmod solution........................................passed
  98. rmmod uart16550.......................................passed
  99.  
  100. ============ Test 5. Back-to-back, small speed =============
  101. insmod uart16550......................................passed
  102. ioctl reader..........................................passed
  103. ioctl writer..........................................passed
  104. passed
  105. passed
  106. test 01...............................................passed
  107. passed
  108. passed
  109. test 02...............................................passed
  110. passed
  111. passed
  112. test 03...............................................passed
  113. passed
  114. passed
  115. test 04...............................................passed
  116. passed
  117. passed
  118. test 05...............................................passed
  119. rmmod uart16550.......................................passed
  120.  
  121. ============= Test 6. Read/Write, medium speed =============
  122. insmod solution.......................................passed
  123. insmod uart16550......................................passed
  124. ioctl reader..........................................passed
  125. ioctl writer..........................................passed
  126. passed
  127. passed
  128. test 01...............................................passed
  129. passed
  130. passed
  131. test 02...............................................passed
  132. passed
  133. passed
  134. test 03...............................................passed
  135. passed
  136. passed
  137. test 04...............................................passed
  138. passed
  139. passed
  140. test 05...............................................passed
  141. rmmod solution........................................passed
  142. rmmod uart16550.......................................passed
  143.  
  144. ============ Test 7. Back-to-back, medium speed ============
  145. insmod uart16550......................................passed
  146. ioctl reader..........................................passed
  147. ioctl writer..........................................passed
  148. passed
  149. passed
  150. test 01...............................................passed
  151. passed
  152. passed
  153. test 02...............................................passed
  154. passed
  155. passed
  156. test 03...............................................passed
  157. passed
  158. passed
  159. test 04...............................................passed
  160. passed
  161. passed
  162. test 05...............................................passed
  163. rmmod uart16550.......................................passed
  164.  
  165. ============== Test 8. Read/Write, high speed ==============
  166. insmod solution.......................................passed
  167. insmod uart16550......................................passed
  168. ioctl reader..........................................passed
  169. ioctl writer..........................................passed
  170. passed
  171. passed
  172. test 01...............................................passed
  173. passed
  174. passed
  175. test 02...............................................passed
  176. passed
  177. passed
  178. test 03...............................................passed
  179. passed
  180. passed
  181. test 04...............................................passed
  182. passed
  183. passed
  184. test 05...............................................passed
  185. rmmod solution........................................passed
  186. rmmod uart16550.......................................passed
  187.  
  188. ============= Test 9. Back-to-back, high speed =============
  189. insmod uart16550......................................passed
  190. ioctl reader..........................................passed
  191. ioctl writer..........................................passed
  192. passed
  193. passed
  194. test 01...............................................passed
  195. passed
  196. passed
  197. test 02...............................................passed
  198. passed
  199. passed
  200. test 03...............................................passed
  201. passed
  202. passed
  203. test 04...............................................passed
  204. passed
  205. passed
  206. test 05...............................................passed
  207. rmmod uart16550.......................................passed
  208.  
  209. Final score: 9/9
  210. Execuția testelor (stderr)
  211. Mesaje kernel (netconsole)
  212. Linux version 4.15.0+ (so2@vmx.cs.pub.ro) (gcc version 4.9.2 (Debian 4.9.2-10+deb8u1)) #9 SMP Fri Mar 30 20:21:14 EEST 2018
  213. x86/fpu: x87 FPU will use FXSAVE
  214. e820: BIOS-provided physical RAM map:
  215. BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
  216. BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
  217. BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
  218. BIOS-e820: [mem 0x0000000000100000-0x0000000007fddfff] usable
  219. BIOS-e820: [mem 0x0000000007fde000-0x0000000007ffffff] reserved
  220. BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
  221. Notice: NX (Execute Disable) protection missing in CPU!
  222. random: fast init done
  223. SMBIOS 2.8 present.
  224. DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161116_142049-atsina 04/01/2014
  225. e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
  226. e820: remove [mem 0x000a0000-0x000fffff] usable
  227. e820: last_pfn = 0x7fde max_arch_pfn = 0x100000
  228. MTRR: Disabled
  229. x86/PAT: MTRRs disabled, skipping PAT initialization too.
  230. x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
  231. found SMP MP-table at [mem 0x000f6bf0-0x000f6bff] mapped at [(ptrval)]
  232. initial memory mapped: [mem 0x00000000-0x01ffffff]
  233. Base memory trampoline at [(ptrval)] 9b000 size 16384
  234. BRK [0x01dba000, 0x01dbafff] PGTABLE
  235. ACPI: Early table checksum verification disabled
  236. ACPI: RSDP 0x00000000000F6A10 000014 (v00 BOCHS )
  237. ACPI: RSDT 0x0000000007FE18DC 000030 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
  238. ACPI: FACP 0x0000000007FE17B8 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
  239. ACPI: DSDT 0x0000000007FE0040 001778 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
  240. ACPI: FACS 0x0000000007FE0000 000040
  241. ACPI: APIC 0x0000000007FE182C 000078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
  242. ACPI: HPET 0x0000000007FE18A4 000038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)
  243. ACPI: Local APIC address 0xfee00000
  244. 0MB HIGHMEM available.
  245. 127MB LOWMEM available.
  246. mapped low ram: 0 - 07fde000
  247. low ram: 0 - 07fde000
  248. tsc: Fast TSC calibration using PIT
  249. BRK [0x01dbb000, 0x01dbbfff] PGTABLE
  250. Zone ranges:
  251. DMA [mem 0x0000000000001000-0x0000000000ffffff]
  252. Normal [mem 0x0000000001000000-0x0000000007fddfff]
  253. HighMem empty
  254. Movable zone start for each node
  255. Early memory node ranges
  256. node 0: [mem 0x0000000000001000-0x000000000009efff]
  257. node 0: [mem 0x0000000000100000-0x0000000007fddfff]
  258. Initmem setup node 0 [mem 0x0000000000001000-0x0000000007fddfff]
  259. On node 0 totalpages: 32636
  260. DMA zone: 32 pages used for memmap
  261. DMA zone: 0 pages reserved
  262. DMA zone: 3998 pages, LIFO batch:0
  263. Normal zone: 224 pages used for memmap
  264. Normal zone: 28638 pages, LIFO batch:7
  265. Reserved but unavailable: 98 pages
  266. Using APIC driver default
  267. ACPI: PM-Timer IO Port: 0x608
  268. ACPI: Local APIC address 0xfee00000
  269. ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
  270. IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
  271. ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
  272. ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
  273. ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
  274. ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
  275. ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
  276. ACPI: IRQ0 used by override.
  277. ACPI: IRQ5 used by override.
  278. ACPI: IRQ9 used by override.
  279. ACPI: IRQ10 used by override.
  280. ACPI: IRQ11 used by override.
  281. Using ACPI (MADT) for SMP configuration information
  282. smpboot: Allowing 1 CPUs, 0 hotplug CPUs
  283. e820: [mem 0x08000000-0xfffbffff] available for PCI devices
  284. clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
  285. setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
  286. percpu: Embedded 26 pages/cpu @(ptrval) s75432 r0 d31064 u106496
  287. pcpu-alloc: s75432 r0 d31064 u106496 alloc=26*4096
  288. pcpu-alloc: [0] 0
  289. Built 1 zonelists, mobility grouping on. Total pages: 32380
  290. Kernel command line: root=/dev/vda console=hvc0 debug verbose
  291. Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
  292. Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
  293. Initializing CPU#0
  294. Initializing HighMem for node 0 (00000000:00000000)
  295. Memory: 115160K/130544K available (4514K kernel code, 255K rwdata, 1388K rodata, 452K init, 7312K bss, 15384K reserved, 0K cma-reserved, 0K highmem)
  296. virtual kernel memory layout:
  297. fixmap : 0xfff18000 - 0xfffff000 ( 924 kB)
  298. cpu_entry : 0xffc00000 - 0xffd39000 (1252 kB)
  299. pkmap : 0xff800000 - 0xffc00000 (4096 kB)
  300. vmalloc : 0xc87de000 - 0xff7fe000 ( 880 MB)
  301. lowmem : 0xc0000000 - 0xc7fde000 ( 127 MB)
  302. .init : 0xc1617000 - 0xc1688000 ( 452 kB)
  303. .data : 0xc14689c4 - 0xc1607d20 (1660 kB)
  304. .text : 0xc1000000 - 0xc14689c4 (4514 kB)
  305. Checking if this processor honours the WP bit even in supervisor mode...Ok.
  306. Running RCU self tests
  307. Hierarchical RCU implementation.
  308. RCU event tracing is enabled.
  309. RCU lockdep checking is enabled.
  310. RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
  311. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
  312. NR_IRQS: 2304, nr_irqs: 48, preallocated irqs: 16
  313. CPU 0 irqstacks, hard=(ptrval) soft=(ptrval)
  314. Console: colour VGA+ 80x25
  315. Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
  316. ... MAX_LOCKDEP_SUBCLASSES: 8
  317. ... MAX_LOCK_DEPTH: 48
  318. ... MAX_LOCKDEP_KEYS: 8191
  319. ... CLASSHASH_SIZE: 4096
  320. ... MAX_LOCKDEP_ENTRIES: 32768
  321. ... MAX_LOCKDEP_CHAINS: 65536
  322. ... CHAINHASH_SIZE: 32768
  323. memory used by lock dependency info: 4399 kB
  324. per task-struct memory footprint: 1344 bytes
  325. ACPI: Core revision 20170831
  326. ACPI: 1 ACPI AML tables successfully acquired and loaded
  327. APIC: Switch to symmetric I/O mode setup
  328. Enabling APIC mode: Flat. Using 1 I/O APICs
  329. ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
  330. tsc: Fast TSC calibration using PIT
  331. tsc: Detected 2660.128 MHz processor
  332. Calibrating delay loop (skipped), value calculated using timer frequency.. 5320.25 BogoMIPS (lpj=10640512)
  333. pid_max: default: 32768 minimum: 301
  334. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  335. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  336. Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
  337. Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
  338. Spectre V2 mitigation: Vulnerable: Minimal generic ASM retpoline
  339. Spectre V2 mitigation: Filling RSB on context switch
  340. Freeing SMP alternatives memory: 20K
  341. smpboot: CPU0: Intel QEMU Virtual CPU version 2.5+ (family: 0x6, model: 0x6, stepping: 0x3)
  342. Performance Events: PMU not available due to virtualization, using software events only.
  343. Hierarchical SRCU implementation.
  344. smp: Bringing up secondary CPUs ...
  345. smp: Brought up 1 node, 1 CPU
  346. smpboot: Max logical packages: 1
  347. smpboot: Total of 1 processors activated (5320.25 BogoMIPS)
  348. devtmpfs: initialized
  349. clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
  350. futex hash table entries: 256 (order: 2, 16384 bytes)
  351. NET: Registered protocol family 16
  352. cpuidle: using governor ladder
  353. ACPI: bus type PCI registered
  354. PCI: PCI BIOS revision 2.10 entry at 0xfd435, last bus=0
  355. PCI: Using configuration type 1 for base access
  356. ACPI: Added _OSI(Module Device)
  357. ACPI: Added _OSI(Processor Device)
  358. ACPI: Added _OSI(3.0 _SCP Extensions)
  359. ACPI: Added _OSI(Processor Aggregator Device)
  360. ACPI: Interpreter enabled
  361. ACPI: (supports S0 S5)
  362. ACPI: Using IOAPIC for interrupt routing
  363. PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
  364. ACPI: Enabled 3 GPEs in block 00 to 0F
  365. ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
  366. acpi PNP0A03:00: _OSC: OS supports [Segments]
  367. acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
  368. acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
  369. PCI host bridge to bus 0000:00
  370. pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
  371. pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
  372. pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
  373. pci_bus 0000:00: root bus resource [mem 0x08000000-0xfebfffff window]
  374. pci_bus 0000:00: root bus resource [bus 00-ff]
  375. pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
  376. pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
  377. pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
  378. pci 0000:00:01.1: reg 0x20: [io 0xc0a0-0xc0af]
  379. pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
  380. pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
  381. pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
  382. pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
  383. pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
  384. pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
  385. pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
  386. pci 0000:00:02.0: [1234:1111] type 00 class 0x030000
  387. pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref]
  388. pci 0000:00:02.0: reg 0x18: [mem 0xfebd0000-0xfebd0fff]
  389. pci 0000:00:02.0: reg 0x30: [mem 0xfebc0000-0xfebcffff pref]
  390. pci 0000:00:03.0: [1af4:1000] type 00 class 0x020000
  391. pci 0000:00:03.0: reg 0x10: [io 0xc080-0xc09f]
  392. pci 0000:00:03.0: reg 0x14: [mem 0xfebd1000-0xfebd1fff]
  393. pci 0000:00:03.0: reg 0x20: [mem 0xfe000000-0xfe003fff 64bit pref]
  394. pci 0000:00:03.0: reg 0x30: [mem 0xfeb80000-0xfebbffff pref]
  395. pci 0000:00:04.0: [1af4:1003] type 00 class 0x078000
  396. pci 0000:00:04.0: reg 0x10: [io 0xc000-0xc03f]
  397. pci 0000:00:04.0: reg 0x14: [mem 0xfebd2000-0xfebd2fff]
  398. pci 0000:00:04.0: reg 0x20: [mem 0xfe004000-0xfe007fff 64bit pref]
  399. pci 0000:00:05.0: [1af4:1001] type 00 class 0x010000
  400. pci 0000:00:05.0: reg 0x10: [io 0xc040-0xc07f]
  401. pci 0000:00:05.0: reg 0x14: [mem 0xfebd3000-0xfebd3fff]
  402. pci 0000:00:05.0: reg 0x20: [mem 0xfe008000-0xfe00bfff 64bit pref]
  403. pci_bus 0000:00: on NUMA node 0
  404. ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
  405. ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
  406. ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
  407. ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
  408. ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
  409. pci 0000:00:02.0: vgaarb: setting as boot VGA device
  410. pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
  411. pci 0000:00:02.0: vgaarb: bridge control possible
  412. vgaarb: loaded
  413. PCI: Using ACPI for IRQ routing
  414. PCI: pci_cache_line_size set to 32 bytes
  415. e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
  416. e820: reserve RAM buffer [mem 0x07fde000-0x07ffffff]
  417. clocksource: Switched to clocksource refined-jiffies
  418. pnp: PnP ACPI init
  419. pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active)
  420. pnp 00:01: Plug and Play ACPI device, IDs PNP0303 (active)
  421. pnp 00:02: Plug and Play ACPI device, IDs PNP0f13 (active)
  422. pnp 00:03: [dma 2]
  423. pnp 00:03: Plug and Play ACPI device, IDs PNP0700 (active)
  424. pnp 00:04: Plug and Play ACPI device, IDs PNP0400 (active)
  425. pnp 00:05: Plug and Play ACPI device, IDs PNP0501 (active)
  426. pnp 00:06: Plug and Play ACPI device, IDs PNP0501 (active)
  427. pnp: PnP ACPI: found 7 devices
  428. clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
  429. clocksource: Switched to clocksource acpi_pm
  430. pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
  431. pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
  432. pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
  433. pci_bus 0000:00: resource 7 [mem 0x08000000-0xfebfffff window]
  434. NET: Registered protocol family 2
  435. TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  436. TCP bind hash table entries: 1024 (order: 3, 36864 bytes)
  437. TCP: Hash tables configured (established 1024 bind 1024)
  438. UDP hash table entries: 256 (order: 2, 20480 bytes)
  439. UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
  440. NET: Registered protocol family 1
  441. pci 0000:00:00.0: Limiting direct PCI/PCI transfers
  442. pci 0000:00:01.0: PIIX3: Enabling Passive Release
  443. pci 0000:00:01.0: Activating ISA DMA hang workarounds
  444. pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
  445. PCI: CLS 0 bytes, default 32
  446. Initialise system trusted keyrings
  447. workingset: timestamp_bits=30 max_order=15 bucket_order=0
  448. Key type asymmetric registered
  449. Asymmetric key parser 'x509' registered
  450. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
  451. io scheduler noop registered
  452. io scheduler deadline registered
  453. io scheduler cfq registered (default)
  454. io scheduler mq-deadline registered
  455. io scheduler kyber registered
  456. input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
  457. ACPI: Power Button [PWRF]
  458. ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
  459. tsc: Refined TSC clocksource calibration: 2659.984 MHz
  460. clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x265794ed47f, max_idle_ns: 440795318144 ns
  461. clocksource: Switched to clocksource tsc
  462. ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
  463. ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
  464. console [hvc0] enabled
  465. i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
  466. serio: i8042 KBD port at 0x60,0x64 irq 1
  467. serio: i8042 AUX port at 0x60,0x64 irq 12
  468. NET: Registered protocol family 10
  469. Segment Routing with IPv6
  470. sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
  471. NET: Registered protocol family 17
  472. Using IPI Shortcut mode
  473. sched_clock: Marking stable (11489282028, 0)->(11565949606, -76667578)
  474. Loading compiled-in X.509 certificates
  475. input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
  476. input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
  477. EXT4-fs (vda): couldn't mount as ext3 due to feature incompatibilities
  478. EXT4-fs (vda): couldn't mount as ext2 due to feature incompatibilities
  479. EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null)
  480. VFS: Mounted root (ext4 filesystem) readonly on device 254:0.
  481. Freeing unused kernel memory: 452K
  482. Write protecting the kernel text: 4516k
  483. Write protecting the kernel read-only data: 1404k
  484. udevd[76]: starting version 3.2.1
  485. udevd[77]: starting eudev-3.2.1
  486. EXT4-fs (vda): re-mounted. Opts: data=ordered
  487. netpoll: netconsole: local port 6666
  488. netpoll: netconsole: local IPv4 address 172.213.0.7
  489. netpoll: netconsole: interface 'eth0'
  490. netpoll: netconsole: remote port 6666
  491. netpoll: netconsole: remote IPv4 address 172.213.0.1
  492. netpoll: netconsole: remote ethernet address 46:f6:04:29:d8:72
  493. console [netcon0] enabled
  494. netconsole: network logging started
  495. uart16550: loading out-of-tree module taints kernel.
  496. uart16550 32768 0 - Live 0xc8833000 (O)
  497. netconsole 16384 0 - Live 0xc883f000
  498. uart16550: `0xdeadbabe' invalid for parameter `option'
  499. random: crng init done
  500.  
  501. ========================================================
  502. WARNING: possible irq lock inversion dependency detected
  503. 4.15.0+ #9 Tainted: G O
  504. --------------------------------------------------------
  505. test/380 just changed the state of lock:
  506. (target_list_lock){-...}, at: [<5ba95585>] write_msg+0x3f/0xd0 [netconsole]
  507. but this lock took another, HARDIRQ-unsafe lock in the past:
  508. (&syncp->seq#2){+.-.}
  509.  
  510.  
  511. and interrupts could create inverse lock ordering between them.
  512.  
  513.  
  514. other info that might help us debug this:
  515. Possible interrupt unsafe locking scenario:
  516.  
  517. CPU0 CPU1
  518. ---- ----
  519. lock(&syncp->seq#2);
  520. local_irq_disable();
  521. lock(target_list_lock);
  522. lock(&syncp->seq#2);
  523.  
  524. lock(target_list_lock);
  525.  
  526. *** DEADLOCK ***
  527.  
  528. 1 lock held by test/380:
  529. #0: (console_lock){+.+.}, at: [] vprintk_emit+0x1d4/0x2b0
  530.  
  531. the shortest dependencies between 2nd lock and 1st lock:
  532. -> (&syncp->seq#2){+.-.} ops: 292 {
  533. HARDIRQ-ON-W at:
  534. lock_acquire+0x68/0x80
  535. virtnet_poll+0x133/0x350
  536. net_rx_action+0x1c3/0x2a0
  537. __do_softirq+0x103/0x213
  538. do_softirq_own_stack+0x57/0x70
  539. do_softirq.part.11+0x2c/0x50
  540. __local_bh_enable_ip+0xdc/0xf0
  541. virtnet_napi_enable+0x49/0x60
  542. virtnet_open+0x42/0xf0
  543. __dev_open+0xb7/0x150
  544. __dev_change_flags+0x137/0x170
  545. dev_change_flags+0x28/0x60
  546. devinet_ioctl+0x61e/0x700
  547. inet_ioctl+0x85/0xc0
  548. sock_ioctl+0x132/0x310
  549. do_vfs_ioctl+0x84/0x7b0
  550. SyS_ioctl+0x34/0x60
  551. do_int80_syscall_32+0x5e/0x1b0
  552. restore_all+0x0/0x65
  553. IN-SOFTIRQ-W at:
  554. lock_acquire+0x68/0x80
  555. virtnet_poll+0x133/0x350
  556. net_rx_action+0x1c3/0x2a0
  557. __do_softirq+0x103/0x213
  558. do_softirq_own_stack+0x57/0x70
  559. do_softirq.part.11+0x2c/0x50
  560. __local_bh_enable_ip+0xdc/0xf0
  561. virtnet_napi_enable+0x49/0x60
  562. virtnet_open+0x42/0xf0
  563. __dev_open+0xb7/0x150
  564. __dev_change_flags+0x137/0x170
  565. dev_change_flags+0x28/0x60
  566. devinet_ioctl+0x61e/0x700
  567. inet_ioctl+0x85/0xc0
  568. sock_ioctl+0x132/0x310
  569. do_vfs_ioctl+0x84/0x7b0
  570. SyS_ioctl+0x34/0x60
  571. do_int80_syscall_32+0x5e/0x1b0
  572. restore_all+0x0/0x65
  573. INITIAL USE at:
  574. lock_acquire+0x68/0x80
  575. virtnet_stats+0x178/0x230
  576. dev_get_stats+0x8a/0x120
  577. rtnl_fill_stats+0x36/0xfd
  578. rtnl_fill_ifinfo+0x598/0xfa0
  579. rtmsg_ifinfo_build_skb+0x91/0x100
  580. rtmsg_ifinfo_event.part.27+0x25/0x60
  581. rtmsg_ifinfo+0x30/0x40
  582. register_netdevice+0x427/0x560
  583. register_netdev+0x16/0x30
  584. virtnet_probe+0x95a/0xd90
  585. virtio_dev_probe+0x1fe/0x2a0
  586. really_probe+0x205/0x2a0
  587. __driver_attach+0x8f/0xb0
  588. bus_for_each_dev+0x4f/0x80
  589. driver_attach+0x19/0x20
  590. bus_add_driver+0x197/0x210
  591. driver_register+0x54/0xe0
  592. register_virtio_driver+0x16/0x30
  593. virtio_net_driver_init+0x5d/0x81
  594. do_one_initcall+0x30/0x160
  595. kernel_init_freeable+0xea/0x162
  596. kernel_init+0xb/0x100
  597. ret_from_fork+0x2e/0x38
  598. }
  599. ... key at: [] __key.32758+0x0/0x8
  600. ... acquired at:
  601. free_old_xmit_skbs.isra.44+0x93/0xd0
  602. start_xmit+0x5c/0x470
  603. netpoll_start_xmit+0x140/0x1a0
  604. netpoll_send_skb_on_dev+0x21c/0x260
  605. netpoll_send_udp+0x2af/0x4e0
  606. write_msg+0x9c/0xd0 [netconsole]
  607. console_unlock+0x3f4/0x4d0
  608. register_console+0x18f/0x390
  609. 0xc8803157
  610. do_one_initcall+0x30/0x160
  611. do_init_module+0x46/0x1c2
  612. load_module+0x1e8c/0x22f0
  613. SyS_init_module+0xd5/0x100
  614. do_int80_syscall_32+0x5e/0x1b0
  615. restore_all+0x0/0x65
  616.  
  617. -> (target_list_lock){-...} ops: 280 {
  618. IN-HARDIRQ-W at:
  619. lock_acquire+0x68/0x80
  620. _raw_spin_lock_irqsave+0x46/0x60
  621. write_msg+0x3f/0xd0 [netconsole]
  622. console_unlock+0x3f4/0x4d0
  623. vprintk_emit+0x1dd/0x2b0
  624. vprintk_default+0x2f/0x40
  625. vprintk_func+0x32/0x70
  626. printk+0xe/0x10
  627. crng_reseed.constprop.31+0x1a4/0x1b0
  628. credit_entropy_bits+0x122/0x1e0
  629. add_interrupt_randomness+0x197/0x1e0
  630. handle_irq_event_percpu+0x2a/0x50
  631. handle_irq_event+0x32/0x60
  632. handle_edge_irq+0x95/0x140
  633. handle_irq+0x7b/0xb0
  634. do_IRQ+0x55/0x120
  635. common_interrupt+0x39/0x40
  636. __do_softirq+0x96/0x213
  637. do_softirq_own_stack+0x57/0x70
  638. irq_exit+0x6d/0x80
  639. smp_apic_timer_interrupt+0x4f/0x90
  640. apic_timer_interrupt+0x3a/0x40
  641. __vfs_write+0x25/0x160
  642. vfs_write+0xa7/0x150
  643. SyS_write+0x49/0xb0
  644. do_fast_syscall_32+0x9e/0x310
  645. entry_SYSENTER_32+0x4c/0x7b
  646. INITIAL USE at:
  647. lock_acquire+0x68/0x80
  648. _raw_spin_lock_irqsave+0x46/0x60
  649. 0xc880305c
  650. do_one_initcall+0x30/0x160
  651. do_init_module+0x46/0x1c2
  652. load_module+0x1e8c/0x22f0
  653. SyS_init_module+0xd5/0x100
  654. do_int80_syscall_32+0x5e/0x1b0
  655. restore_all+0x0/0x65
  656. }
  657. ... key at: [<816cf811>] target_list_lock+0x10/0xffffef60 [netconsole]
  658. ... acquired at:
  659. mark_lock+0x35e/0x5f0
  660. __lock_acquire+0xad1/0x18c0
  661. lock_acquire+0x68/0x80
  662. _raw_spin_lock_irqsave+0x46/0x60
  663. write_msg+0x3f/0xd0 [netconsole]
  664. console_unlock+0x3f4/0x4d0
  665. vprintk_emit+0x1dd/0x2b0
  666. vprintk_default+0x2f/0x40
  667. vprintk_func+0x32/0x70
  668. printk+0xe/0x10
  669. crng_reseed.constprop.31+0x1a4/0x1b0
  670. credit_entropy_bits+0x122/0x1e0
  671. add_interrupt_randomness+0x197/0x1e0
  672. handle_irq_event_percpu+0x2a/0x50
  673. handle_irq_event+0x32/0x60
  674. handle_edge_irq+0x95/0x140
  675. handle_irq+0x7b/0xb0
  676. do_IRQ+0x55/0x120
  677. common_interrupt+0x39/0x40
  678. __do_softirq+0x96/0x213
  679. do_softirq_own_stack+0x57/0x70
  680. irq_exit+0x6d/0x80
  681. smp_apic_timer_interrupt+0x4f/0x90
  682. apic_timer_interrupt+0x3a/0x40
  683. __vfs_write+0x25/0x160
  684. vfs_write+0xa7/0x150
  685. SyS_write+0x49/0xb0
  686. do_fast_syscall_32+0x9e/0x310
  687. entry_SYSENTER_32+0x4c/0x7b
  688.  
  689.  
  690. stack backtrace:
  691. CPU: 0 PID: 380 Comm: test Tainted: G O 4.15.0+ #9
  692. Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161116_142049-atsina 04/01/2014
  693. Call Trace:
  694.  
  695. dump_stack+0x5f/0x89
  696. print_irq_inversion_bug.part.34+0x18a/0x193
  697. check_usage_forwards+0x120/0x130
  698. ? print_shortest_lock_dependencies+0x1a0/0x1a0
  699. mark_lock+0x35e/0x5f0
  700. __lock_acquire+0xad1/0x18c0
  701. ?
  702. Lost 61 message(s)!
  703. console [netcon_ext0] disabled
  704. console [netcon0] disabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement