[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

phram fails with ioremap, dumps kernel stack trace



Package: linux-image-4.5.0-0.bpo.2-amd64
Version: 4.5.4-1~bpo8+1


I'm booting a small iso image (~50 MB) via memdisk via iPXE, and want to use the phram module to access the iso filesystem in ram. This results in the following kernel call trace.

This is triggered when performing the following:

root# memdiskfind
0x1200000,0x2e00000
MEMDISK=$(/usr/bin/memdiskfind)
root# rmmod phram
root# modprobe phram phram=memdisk,${MEMDISK}

dmesg output:


[  112.707610] ------------[ cut here ]------------
[ 112.712369] WARNING: CPU: 0 PID: 486 at /build/linux-Pq1Zex/linux-4.5.4/arch/x86/mm/ioremap.c:122 __ioremap_caller+0x1fd/0
x370()
[  112.724021] ioremap on RAM at 0x0000000001200000 - 0x0000000003ffffff
[ 112.730535] Modules linked in: phram(E+) mtd_blkdevs(E) mtd(E) isofs(E) e1000(E) ata_piix(E) ata_generic(E) sierra(E) ext4(E) crc16(E) mbcache(E) jbd2(E) autofs4(E) option(E) usb_wwan(E) usbserial(E) iptable_raw(E) ip6table_raw(E) iptable_mangle(E) xt_mark(E) xt_conntrack(E) xt_connmark(E) ip6table_filter(E) ip6_tables(E) nfnetlink_acct(E) ip_set_hash_ip(E) xt_set(E) ip_set(E) loop(E) nf_conntrack_netlink(E) nfnetlink_queue(E) nfnetlink(E) dm_thin_pool(E) dm_persistent_data(E) dm_bio_prison(E) crc32c_generic(E) libcrc32c(E) dm_bufio(E) dm_mod(E) br_netfilter(E) bridge(E) stp(E) llc(E) iptable_filter(E) xt_addrtype(E) iptable_nat(E) nf_conntrack_ipv4(E) nf_defrag_ipv4(E) nf_nat_ipv4(E) ip_tables(E) ipt_MASQUERADE(E) nf_nat_masquerade_ipv4(E) nf_nat(E) x_tables(E) nf_conntrack(E) veth(E) usbhid(E) hid(E) sr_mod(E) cdrom(E) cdc_ether(E) qmi_wwan(E) cdc_wdm(E) uas(E) usbnet(E) usb_storage(E) sg(E) sd_mod(E) evdev(E) ahci(E) libahci(E) kvm_amd(E) ehci_pci(E) ath10k_core(E) kvm(E) ath(E) irqbypass(E) sp5100_tco(E) pcspkr(E) mac80211(E) ehci_hcd(E) k10temp(E) libata(E) i2c_piix4(E) scsi_mod(E) usbcore(E) usb_common(E) cfg80211(E) rfkill(E) r8169(E) mii(E) button(E) acpi_cpufreq(E) processor(E) shpchp(E) [last unloaded: mtdblock] [ 112.841453] CPU: 0 PID: 486 Comm: exe Tainted: G E 4.5.0-0.bpo.2-amd64 #1 Debian 4.5.4-1~bpo8+1
[  112.851293] Hardware name: PC Engines APU/APU, BIOS 4.0 09/08/2014
[ 112.857489] 0000000000000286 00000000b272d8c2 ffffffff8130a245 ffff8800d4437b60 [ 112.865008] ffffffff8180d058 ffffffff81079ba1 0000000001200000 ffff8800d4437bb8 [ 112.872520] ffffffffc0121292 0000000001200000 0000000000000200 ffffffff81079c2c
[  112.880033] Call Trace:
[  112.882506]  [<ffffffff8130a245>] ? dump_stack+0x5c/0x77
[  112.887844]  [<ffffffff81079ba1>] ? warn_slowpath_common+0x81/0xb0
[  112.894040]  [<ffffffffc0121292>] ? phram_setup+0x142/0x300 [phram]
[  112.900318]  [<ffffffff81079c2c>] ? warn_slowpath_fmt+0x5c/0x80
[  112.906256]  [<ffffffff81063e8d>] ? __ioremap_caller+0x1fd/0x370
[  112.912281]  [<ffffffffc0121292>] ? phram_setup+0x142/0x300 [phram]
[  112.918563]  [<ffffffff810667b6>] ? change_page_attr_set_clr+0x396/0x460
[  112.925279]  [<ffffffff815b831e>] ? mutex_lock+0xe/0x30
[  112.930523]  [<ffffffff810dbb5d>] ? klp_module_notify+0xcd/0x1d0
[  112.936550]  [<ffffffff810973d7>] ? parse_args+0x1c7/0x500
[  112.942057]  [<ffffffff810fa254>] ? load_module+0x1c44/0x2660
[  112.947816]  [<ffffffff810f6b90>] ? __symbol_put+0x60/0x60
[  112.953322]  [<ffffffff810fad8b>] ? SYSC_init_module+0x11b/0x160
[  112.959346]  [<ffffffff815ba236>] ? system_call_fast_compare_end+0xc/0x6b
[  112.966167] ---[ end trace 0ed80bd2994947a2 ]---
[  112.970854] phram: ioremap failed
[ 112.974193] phram: `memdisk,0x1200000,0x2e00000' invalid for parameter `phram' modprobe: can't load module phram (kernel/drivers/mtd/devices/phram.ko): Input/output error



/Stefan


Reply to: