kernel build failure 3.18.1

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

kernel build failure 3.18.1

Postby iamb » Fri Jan 02, 2015 7:23 pm

greetings. to start, a generic thank you for all the work into this project.

i may be making grave assumptions or omitting crucial details in any of the information i give. please bear with and correct me, i'm way out of my comfort zone but trying to learn as i can.

i'm trying to build a 3.18.1 kernel patched with gresecurity for armv5t. it's reliably failing to build for me at

Code: Select all
In file included from include/linux/atomic.h:4:0,
                 from include/linux/spinlock.h:408,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/uapi/linux/timex.h:56,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:19,
                 from arch/arm/kernel/asm-offsets.c:14:
./arch/arm/include/asm/atomic.h: In function ‘atomic_cmpxchg_unchecked’:
./arch/arm/include/asm/atomic.h:267:2: warning: passing argument 1 of ‘atomic_cmpxchg’ from incompatible pointer type [enabled by default]
  return atomic_cmpxchg(v, old, new);
  ^
./arch/arm/include/asm/atomic.h:251:19: note: expected ‘struct atomic_t *’ but argument is of type ‘struct atomic_unchecked_t *’
 static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
                   ^
./arch/arm/include/asm/atomic.h: In function ‘atomic_inc_unchecked’:
./arch/arm/include/asm/atomic.h:304:2: error: implicit declaration of function ‘atomic_add_unchecked’ [-Werror=implicit-function-declaration]
  atomic_add_unchecked(1, v);
  ^
./arch/arm/include/asm/atomic.h: In function ‘atomic_dec_unchecked’:
./arch/arm/include/asm/atomic.h:309:2: error: implicit declaration of function ‘atomic_sub_unchecked’ [-Werror=implicit-function-declaration]
  atomic_sub_unchecked(1, v);
  ^
./arch/arm/include/asm/atomic.h: In function ‘atomic_inc_and_test_unchecked’:
./arch/arm/include/asm/atomic.h:315:2: error: implicit declaration of function ‘atomic_add_return_unchecked’ [-Werror=implicit-function-declaration]
  return atomic_add_return_unchecked(1, v) == 0;
  ^
Kbuild:81: recipe for target 'arch/arm/kernel/asm-offsets.s' failed
make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1
Makefile:1052: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2


in arch/arm/include/asm/atomic.h i can see where the definitions of ATOMIC_OP and ATOMIC_OP_RETURN were patched to create both the atomic_${op} and atomic_${op}_unchecked. for __LINUX_ARM_ARCH__ < 6, the definitions (which are just below) aren't patched to create the _unchecked functions.

before I go about trying to hack at this myself and set things on fire, any pointers or am i missing anything obvious? i didnt think anything in my .config would be relevant (REFCOUNT isn't even selectable for this arch) but i can post that or whatever else may help.

thanks again!
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby PaX Team » Fri Jan 02, 2015 8:19 pm

thanks for the report, when i ported to 3.18 i only fixed armv6+ for the big atomic op consolidation upstream. i'll fix armv5 however a .config would be appreciated ;).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: kernel build failure 3.18.1

Postby PaX Team » Fri Jan 02, 2015 8:33 pm

can you give this a try:
Code: Select all
--- linux-3.18.1-pax/arch/arm/include/asm/atomic.h      2014-12-30 01:05:26.559855950 +0100
+++ linux-3.18.1-pax/arch/arm/include/asm/atomic.h      2015-01-03 01:23:56.737006751 +0100
@@ -224,8 +224,8 @@
 #error SMP not supported on pre-ARMv6 CPUs
 #endif

-#define ATOMIC_OP(op, c_op, asm_op)                                    \
-static inline void atomic_##op(int i, atomic_t *v)                     \
+#define __ATOMIC_OP(op, suffix, c_op, asm_op)                          \
+static inline void atomic_##op##suffix(int i, atomic##suffix##_t *v)   \
 {                                                                      \
        unsigned long flags;                                            \
                                                                        \
@@ -234,8 +234,11 @@
        raw_local_irq_restore(flags);                                   \
 }                                                                      \

-#define ATOMIC_OP_RETURN(op, c_op, asm_op)                             \
-static inline int atomic_##op##_return(int i, atomic_t *v)             \
+#define ATOMIC_OP(op, c_op, asm_op) __ATOMIC_OP(op, , c_op, asm_op)    \
+                                   __ATOMIC_OP(op, _unchecked, c_op, asm_op)
+
+#define __ATOMIC_OP_RETURN(op, suffix, c_op, asm_op)                   \
+static inline int atomic_##op##_return##suffix(int i, atomic##suffix##_t *v)\
 {                                                                      \
        unsigned long flags;                                            \
        int val;                                                        \
@@ -248,6 +251,9 @@
        return val;                                                     \
 }

+#define ATOMIC_OP_RETURN(op, c_op, asm_op) __ATOMIC_OP_RETURN(op, , c_op, asm_op)\
+                                          __ATOMIC_OP_RETURN(op, _unchecked, c_op, asm_op)
+
 static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
 {
        int ret;
@@ -264,7 +270,7 @@

 static inline int atomic_cmpxchg_unchecked(atomic_unchecked_t *v, int old, int new)
 {
-       return atomic_cmpxchg(v, old, new);
+       return atomic_cmpxchg((atomic_t *)v, old, new);
 }

 static inline int __atomic_add_unless(atomic_t *v, int a, int u)
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: kernel build failure 3.18.1

Postby iamb » Fri Jan 02, 2015 9:24 pm

so far so good, kernel compiles cleanly at least. i'll report back when i get a chance to boot it, might be a couple days.

thanks for the quick response. i appreciate getting to see how you fix this just as much as having it work. and thanks for squealching the warning, too. :)
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby iamb » Fri Jan 02, 2015 9:28 pm

oh yeah, my .config if it's worth anything

http://pastebin.com/YahRPjRk
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby iamb » Sat Jan 10, 2015 2:53 am

i've been running and not yet had any problems with this kernel. thanks again.
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby iamb » Sun Jan 11, 2015 12:48 pm

My testing was bad, I was using a previous kernel. The config I posted may not have even been the right one.

I'm running into a boot failure now that compilation succeeds. Boot fails and what I believe is the telling message (output below) is "devtmpfs: unable to create devtmpfs -14." Searching for any other instances of that error, I find only a reference to an earlier post on this site. Seems that may be related, but the info there didn't help me any.

The same .config works fine on a vanilla kernel, and runs into this failure when patched. I've tried patched with grkernsec disabled completely, and had it enabled with a few combinations of features. None seemed relevant to me, or had any effect.

This is the earlyprintk output from a failed boot, note devtmpfs line:
Code: Select all
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.1-grsec (iamb@euler) (gcc version 4.8.3 (Buildroot 2014.11) ) #1 Sun Jan 11 10:19:22 CST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Guruplug Server Plus
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=5 real_root=/dev/sda2 docrypt bonding.miimon=100 ro earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 514720K/524288K available (3694K kernel code, 177K rwdata, 724K rodata, 160K init, 197K bss, 9568K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03a3c20   (3696 kB)
[    0.000000]       .init : 0xc045a000 - 0xc0482000   ( 160 kB)
[    0.000000]       .data : 0xc0482000 - 0xc04ae700   ( 178 kB)
[    0.000000]        .bss : 0xc04ae700 - 0xc04dfc50   ( 198 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.008077] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100900] pid_max: default: 32768 minimum: 501
[    0.105756] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.112497] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.120070] CPU: Testing write buffer coherency: ok
[    0.125294] Setting up static identity map for 0x3a3360 - 0x3a339c
[    0.131809] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.137757] devtmpfs: unable to create devtmpfs -14
[    0.143555] pinctrl core: initialized pinctrl subsystem
[    0.149112] regulator-dummy: no parameters
[    0.156230] NET: Registered protocol family 16
[    0.161238] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.168875] cpuidle: using governor ladder
[    0.173421] [Firmware Bug]: Feroceon L2: bootloader left the L2 cache on!
[    0.180340] Feroceon L2: Cache support initialised.
[    0.185545] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.196218] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.216718] SCSI subsystem initialized
[    0.221002] usbcore: registered new interface driver usbfs
[    0.226658] usbcore: registered new interface driver hub
[    0.232144] usbcore: registered new device driver usb
[    0.238299] Switched to clocksource orion_clocksource
[   82.518329] random: nonblocking pool is initialized


Here's my kernel config

Any ideas?

Thanks
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby PaX Team » Sun Jan 11, 2015 1:18 pm

in arch/arm/mm/fault.c:do_page_fault there're two lines like this:
Code: Select all
if (!user_mode(regs) && !search_exception_tables(regs->ARM_pc))
can you replace them with this:
Code: Select all
if (!user_mode(regs))
and see what oops you get during boot?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: kernel build failure 3.18.1

Postby iamb » Sun Jan 11, 2015 1:26 pm

Tried those (one of the two is broken over a couple lines), same result.

In the meanwhile, I forgot I had been screwing with CONFIG_CC_STACKPROTECTOR. I turned that back off, and now I get some further detail at boot at least.

Code: Select all
[    1.081174] Switched to clocksource orion_clocksource
[    1.086716] Unable to handle kernel NULL pointer dereference at virtual address 0000034c
[    1.094957] pgd = c0004000
[    1.097758] [0000034c] *pgd=00000000
[    1.101452] Internal error: Oops: 5 [#1] ARM
[    1.105828] CPU: 0 PID: 9 Comm: kthreadd Not tainted 3.18.1-grsec #1
[    1.112296] task: df41a040 ti: df4cc000 task.ti: df4cc000
[    1.117811] PC is at worker_thread+0x1c/0x4e8
[    1.122275] LR is at kthread+0xbc/0xd8
[    1.126127] pc : [<c002893c>]    lr : [<c002d034>]    psr: 40000053
[    1.126127] sp : df4cdf30  ip : df4cdf68  fp : df4cdf64
[    1.137826] r10: 00000000  r9 : 00000000  r8 : 00000000
[    1.143155] r7 : df41da00  r6 : df41da00  r5 : 00000000  r4 : df41be00
[    1.149791] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : df41da00
[    1.156428] Flags: nZcv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
[    1.163935] Control: 0005397f  Table: 00004000  DAC: 00000017
[    1.169786] Process kthreadd (pid: 9, stack limit = 0xdf4cc1b8)
[    1.175811] Stack: (0xdf4cdf30 to 0xdf4ce000)
[    1.180270] df20:                                     00000000 df41da00 c0028920 df468540
[    1.188573] df40: 00000000 df41da00 c0028920 00000000 00000000 00000000 df4cdfac df4cdf68
[    1.196875] df60: c002d034 c0028930 00000000 00000000 00000000 df41da00 00000000 df4cdf7c
[    1.205176] df80: df4cdf7c 00000000 df4cdf88 df4cdf88 df468540 c002cf78 00000000 00000000
[    1.213478] dfa0: 00000000 df4cdfb0 c00095f0 c002cf88 00000000 00000000 00000000 00000000
[    1.221778] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.230080] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    1.238375] Backtrace:
[    1.240931] [<c0028920>] (worker_thread+0x0/0x4e8) from [<c002d034>] (kthread+0xbc/0xd8)
[    1.249136]  r10:00000000 r9:00000000 r8:00000000 r7:c0028920 r6:df41da00 r5:00000000
[    1.257126]  r4:df468540
[    1.259769] [<c002cf78>] (kthread+0x0/0xd8) from [<c00095f0>] (ret_from_fork+0x14/0x24)
[    1.267892]  r7:00000000 r6:00000000 r5:c002cf78 r4:df468540
[    1.273699] Code: e24dd00c e5902020 e5904024 e1a07000 (e592134c)
[    1.279949] ---[ end trace 8f4ca9312f91e906 ]---
[    1.284690] Kernel panic - not syncing: grsec: halting the system due to suspicious kernel crash caused by root
[    1.294910] ---[ end Kernel panic - not syncing: grsec: halting the system due to suspicious kernel crash caused by root
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby iamb » Sun Jan 11, 2015 2:05 pm

i've got to slow my roll, i'm trying to do too much at once and screwing up keeping this straight. i have been poking, building, re-poking, re-building, and the oops has changed. there's no diff from my previously posted .config from except disabling CONFIG_CC_STACKPROTECT. i just hope this is the same thing and i'm not chasing some stupid move i made. seems it would be related though, the backtrace is in register_filesystem and i suspect the problem is still with devtmpfs.

Code: Select all
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.1-grsec (iamb@euler) (gcc version 4.8.3 (Buildroot 2014.11) ) #1 Sun Jan 11 11:41:58 CST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Guruplug Server Plus
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=5 real_root=/dev/sda2 docrypt bonding.miimon=100 ro earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 514412K/524288K available (3745K kernel code, 178K rwdata, 740K rodata, 276K init, 324K bss, 9876K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03b08c0   (3747 kB)
[    0.000000]       .init : 0xc046b000 - 0xc04b0000   ( 276 kB)
[    0.000000]       .data : 0xc04b0000 - 0xc04dcb20   ( 179 kB)
[    0.000000]        .bss : 0xc04dcb20 - 0xc052ded8   ( 325 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000011] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.008151] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100898] pid_max: default: 32768 minimum: 501
[    0.105766] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.112513] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119926] Unable to handle kernel paging request at virtual address 6f72702f
[    0.127267] pgd = c0004000
[    0.130080] [6f72702f] *pgd=00000000
[    0.133766] Internal error: Oops: 5 [#1] ARM
[    0.138144] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.1-grsec #1
[    0.144525] task: c04c21e0 ti: c04b0000 task.ti: c04b0000
[    0.150040] PC is at strchr+0x4/0x40
[    0.153717] LR is at register_filesystem+0x1c/0x6c
[    0.158617] pc : [<c0192424>]    lr : [<c00b50d8>]    psr: 60000053
[    0.158617] sp : c04b1f70  ip : c04b1f88  fp : c04b1f84
[    0.170317] r10: c04dcb20  r9 : 1b3157e2  r8 : a221c0d9
[    0.175645] r7 : acaf13e4  r6 : c04b80c0  r5 : c01fd999  r4 : c04c7c60
[    0.182281] r3 : c05026f8  r2 : 00000000  r1 : 0000002e  r0 : 6f72702f
[    0.188918] Flags: nZCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
[    0.196425] Control: 0005397f  Table: 00004000  DAC: 00000017
[    0.202276] Process swapper (pid: 0, stack limit = 0xc04b01b8)
[    0.208214] Stack: (0xc04b1f70 to 0xc04b2000)
[    0.212673] 1f60:                                     10396aa7 c01fd999 c04b1fa4 c04b1f88
[    0.220977] 1f80: c0482114 c00b50cc 00000000 10396aa7 c01fd999 c04b80c0 c04b1ff4 c04b1fa8
[    0.229278] 1fa0: c046c5d4 c048210c ffffffff ffffffff c046bb34 00000000 dfffed80 c04a8bd8
[    0.237579] 1fc0: 00000000 c04a8bd8 00000000 c04dcc74 c04b8018 c04a8bd4 c04c2ee8 00004000
[    0.245881] 1fe0: 56251311 004a7d28 00000000 c04b1ff8 00008040 c046c228 00000000 00000000
[    0.254175] Backtrace:
[    0.256735] [<c00b50bc>] (register_filesystem+0x0/0x6c) from [<c0482114>] (proc_root_init+0x18/0xf0)
[    0.265992]  r5:c01fd999
[    0.268357] Unhandled fault: alignment exception (0x801) at 0xc04b1c64
[    0.268362] Internal error: : 801 [#2] ARM
[    0.268367] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.1-grsec #1
[    0.268372] task: c04c21e0 ti: c04b0000 task.ti: c04b0000
[    0.268385] PC is at console_unlock+0xa0/0x488
[    0.268396] LR is at early_console_write+0x24/0x58
[    0.268402] pc : [<c003a5a0>]    lr : [<c000df6c>]    psr: 200000d3
[    0.268402] sp : c04b1c4c  ip : 000008e8  fp : c04b1c98
[    0.268405] r10: c04dd6f8  r9 : 600000d3  r8 : 00000000
[    0.268409] r7 : 00000000  r6 : 00000000  r5 : 600000d3  r4 : 000008d8
[    0.268412] r3 : 00000000  r2 : 00000032  r1 : 00000000  r0 : 00000032
[    0.268416] Flags: nzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
[    0.268420] Control: 0005397f  Table: 00004000  DAC: 00000017
[    0.268424] Process swapper (pid: 0, stack limit = 0xc04b01b8)
[    0.268427] Stack: (0xc04b1c4c to 0xc04b2000)
[    0.268434] 1c40:                            00000000 600000d3 c04b1c70 00000000 0000000c
[    0.268443] 1c60: 600000d3 00000000 c04dd728 c04dd6f8 0000000c 00000000 c04c5674 c04dd6f8
[    0.268452] 1c80: 00000000 600000d3 00000000 c04b1cf8 c04b1c9c c003abac c003a510 00000000
[    0.268460] 1ca0: c04ddfec 00000058 c04dd6f8 00000002 00000000 00000000 c04ddfec 00000000
[    0.268469] 1cc0: 00000000 00000000 00000000 c00b50c0 e92dd830 00000005 c04b1f70 00000001
[    0.268478] 1ce0: 0000000c c04c21e0 c04dcc80 c04b1d18 c04b1cfc c03aa798 c003a998 c0190a1c
[    0.268487] 1d00: c04b1d20 c04b1d20 c04b1d20 c04b1d74 c04b1d2c c0190a04 c03aa770 c0190a1c
[    0.268496] 1d20: 00000005 c01fd999 c0190a29 c04b1f84 c04b1fa4 c00b50c0 00000000 c019099c
[    0.268505] 1d40: c04b1f84 c04c21e0 00000013 c04c2ed8 00000005 c000c060 c04b0000 c04b1f28
[    0.268514] 1d60: c0421c28 c04b0038 c04b1df4 c04b1d78 c000c360 c000bfc8 c04b01b8 0000000b
[    0.268523] 1d80: 0000037b c0004000 60000053 c04b0000 1b3157e2 c04b1f28 c04b1dc4 c04b1da8
[    0.268533] 1da0: c03aa798 c003a998 c045a830 c04b1dcc 1b3157e2 c04b1dcc c04b1df4 c04b1dd8
[    0.268542] 1dc0: c000f02c c03aa770 c045a830 6f72702f 00000005 00000000 c04b1f28 6f72702f
[    0.268551] 1de0: 1b3157e2 c04b1f28 c04b1e0c c04b1df8 c03aa130 c000c16c c04b1f28 c04c21e0
[    0.268560] 1e00: c04b1e54 c04b1e10 c000f278 c03aa0e4 c04b1e24 00000036 0000001b 000000d0
[    0.268569] 1e20: 00000036 00000000 0000001b 00000005 6f72702f c04b1f28 c04c3120 a221c0d9
[    0.268578] 1e40: 1b3157e2 c04dcb20 c04b1e74 c04b1e58 c000f478 c000f098 00000005 6f72702f
[    0.268587] 1e60: c04b1f28 c04c3120 c04b1f24 c04b1e78 c00083f0 c000f3e0 df40bdc0 000000d0
[    0.268595] 1e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.268603] 1ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.268611] 1ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.268619] 1ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.268628] 1f00: c04b1f2c c0192424 60000053 ffffffff c04b1f5c a221c0d9 c04b1f84 c04b1f28
[    0.268637] 1f20: c000cb78 c00083ac 6f72702f 0000002e 00000000 c05026f8 c04c7c60 c01fd999
[    0.268646] 1f40: c04b80c0 acaf13e4 a221c0d9 1b3157e2 c04dcb20 c04b1f84 c04b1f88 c04b1f70
[    0.268656] 1f60: c00b50d8 c0192424 60000053 ffffffff 10396aa7 c01fd999 c04b1fa4 c04b1f88
[    0.268665] 1f80: c0482114 c00b50cc 00000000 10396aa7 c01fd999 c04b80c0 c04b1ff4 c04b1fa8
[    0.268674] 1fa0: c046c5d4 c048210c ffffffff ffffffff c046bb34 00000000 dfffed80 c04a8bd8
[    0.268683] 1fc0: 00000000 c04a8bd8 00000000 c04dcc74 c04b8018 c04a8bd4 c04c2ee8 00004000
[    0.268692] 1fe0: 56251311 004a7d28 00000000 c04b1ff8 00008040 c046c228 00000000 00000000
[    0.268693] Backtrace:
[    0.268706] [<c003a500>] (console_unlock+0x0/0x488) from [<c003abac>] (vprintk_emit+0x224/0x474)
[    0.268713] Unhandled fault: alignment exception (0x801) at 0xc04b19e4
[    0.622127] Internal error: : 801 [#3] ARM
[    0.626322] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.1-grsec #1
[    0.632705] task: c04c21e0 ti: c04b0000 task.ti: c04b0000
[    0.638209] PC is at vprintk_emit+0x134/0x474
[    0.642672] LR is at vprintk_emit+0x2a8/0x474
[    0.647128] pc : [<c003aabc>]    lr : [<c003ac30>]    psr: 600000d3
[    0.647128] sp : c04b19e4  ip : c04ddfec  fp : c04b1a40
[    0.658828] r10: 00000000  r9 : 600000d3  r8 : 00000000
[    0.664157] r7 : c04dd6f8  r6 : c04c5674  r5 : 00000000  r4 : 00000000
[    0.670792] r3 : 00000000  r2 : 00000008  r1 : 00000004  r0 : 00000000
[    0.677429] Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
[    0.685024] Control: 0005397f  Table: 00004000  DAC: 00000017
[    0.690874] Process swapper (pid: 0, stack limit = 0xc04b01b8)
[    0.696813] Stack: (0xc04b19e4 to 0xc04b2000)
[    0.701273] 19e0:          00000000 c04ddfec 00000000 00000000 c04ddfec 0000000d 00000000
[    0.709575] 1a00: c04ddfec 00000000 00000000 00000000 00000000 c003a504 e92ddff0 0000000a
[    0.717877] 1a20: c04b1c84 00000001 0000000c c04c21e0 c04dcc80 c04b1a60 c04b1a44 c03aa798
[    0.726179] 1a40: c003a998 c0190a1c c04b1a68 c04b1a68 c04b1a68 c04b1abc c04b1a74 c0190a04
[    0.734480] 1a60: c03aa770 c0190a1c 0000000a 00000000 c0190a29 c04b1c98 c04b1cf8 c003a504
[    0.742781] 1a80: 00000000 c019099c c04b1c98 c04c21e0 00000013 c04c2ed8 00000801 c000c060
[    0.751083] 1aa0: c04b0000 c04b1c00 c042b7f0 c04b0000 c04b1b3c c04b1ac0 c000c360 c000bfc8
[    0.759384] 1ac0: c04b01b8 0000000b 00000000 00000000 600000d3 c04b0000 00000000 c04ddfee
[    0.767685] 1ae0: 00000000 00000000 00000000 00000000 c04b1b3a 00000801 c04b1c64 c04b1c00
[    0.775987] 1b00: c04c30e0 00000000 600000d3 c04dd6f8 c04b1b3c 00000801 c04b1c64 c04b1c00
[    0.784289] 1b20: c04c30e0 00000007 600000d3 c04dd6f8 c04b1b4c c04b1b40 c000c47c c000c16c
[    0.792590] 1b40: c04b1bfc c04b1b50 c0008448 c000c468 00000000 ffffffff 00000007 00000000
[    0.800891] 1b60: 00030001 c04b1c64 00000000 00000000 00000000 00000000 00000000 00000000
[    0.809192] 1b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.817493] 1ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.825795] 1bc0: 00000000 00000000 00000000 00000000 00000000 00000000 0883026c c003a5a0
[    0.834097] 1be0: 200000d3 ffffffff c04b1c34 00000000 c04b1c98 c04b1c00 c000cb78 c00083ac
[    0.842398] 1c00: 00000032 00000000 00000032 00000000 000008d8 600000d3 00000000 00000000
[    0.850700] 1c20: 00000000 600000d3 c04dd6f8 c04b1c98 000008e8 c04b1c4c c000df6c c003a5a0
[    0.859001] 1c40: 200000d3 ffffffff c003a200 00000000 600000d3 c04b1c70 00000000 0000000c
[    0.867303] 1c60: 600000d3 00000000 c04dd728 c04dd6f8 0000000c 00000000 c04c5674 c04dd6f8
[    0.875604] 1c80: 00000000 600000d3 00000000 c04b1cf8 c04b1c9c c003abac c003a510 00000000
[    0.883906] 1ca0: c04ddfec 00000058 c04dd6f8 00000002 00000000 00000000 c04ddfec 00000000
[    0.892207] 1cc0: 00000000 00000000 00000000 c00b50c0 e92dd830 00000005 c04b1f70 00000001
[    0.900509] 1ce0: 0000000c c04c21e0 c04dcc80 c04b1d18 c04b1cfc c03aa798 c003a998 c0190a1c
[    0.908811] 1d00: c04b1d20 c04b1d20 c04b1d20 c04b1d74 c04b1d2c c0190a04 c03aa770 c0190a1c
[    0.917112] 1d20: 00000005 c01fd999 c0190a29 c04b1f84 c04b1fa4 c00b50c0 00000000 c019099c
[    0.925413] 1d40: c04b1f84 c04c21e0 00000013 c04c2ed8 00000005 c000c060 c04b0000 c04b1f28
[    0.933715] 1d60: c0421c28 c04b0038 c04b1df4 c04b1d78 c000c360 c000bfc8 c04b01b8 0000000b
[    0.942016] 1d80: 0000037b c0004000 60000053 c04b0000 1b3157e2 c04b1f28 c04b1dc4 c04b1da8
[    0.950318] 1da0: c03aa798 c003a998 c045a830 c04b1dcc 1b3157e2 c04b1dcc c04b1df4 c04b1dd8
[    0.958619] 1dc0: c000f02c c03aa770 c045a830 6f72702f 00000005 00000000 c04b1f28 6f72702f
[    0.966921] 1de0: 1b3157e2 c04b1f28 c04b1e0c c04b1df8 c03aa130 c000c16c c04b1f28 c04c21e0
[    0.975222] 1e00: c04b1e54 c04b1e10 c000f278 c03aa0e4 c04b1e24 00000036 0000001b 000000d0
[    0.983523] 1e20: 00000036 00000000 0000001b 00000005 6f72702f c04b1f28 c04c3120 a221c0d9
[    0.991825] 1e40: 1b3157e2 c04dcb20 c04b1e74 c04b1e58 c000f478 c000f098 00000005 6f72702f
[    1.000126] 1e60: c04b1f28 c04c3120 c04b1f24 c04b1e78 c00083f0 c000f3e0 df40bdc0 000000d0
[    1.008427] 1e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.016728] 1ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.025029] 1ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.033331] 1ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.041634] 1f00: c04b1f2c c0192424 60000053 ffffffff c04b1f5c a221c0d9 c04b1f84 c04b1f28
[    1.049935] 1f20: c000cb78 c00083ac 6f72702f 0000002e 00000000 c05026f8 c04c7c60 c01fd999
[    1.058236] 1f40: c04b80c0 acaf13e4 a221c0d9 1b3157e2 c04dcb20 c04b1f84 c04b1f88 c04b1f70
[    1.066538] 1f60: c00b50d8 c0192424 60000053 ffffffff 10396aa7 c01fd999 c04b1fa4 c04b1f88
[    1.074839] 1f80: c0482114 c00b50cc 00000000 10396aa7 c01fd999 c04b80c0 c04b1ff4 c04b1fa8
[    1.083141] 1fa0: c046c5d4 c048210c ffffffff ffffffff c046bb34 00000000 dfffed80 c04a8bd8
[    1.091442] 1fc0: 00000000 c04a8bd8 00000000 c04dcc74 c04b8018 c04a8bd4 c04c2ee8 00004000
[    1.099743] 1fe0: 56251311 004a7d28 00000000 c04b1ff8 00008040 c046c228 00000000 00000000
[    1.108037] Backtrace:
[    1.110599] [<c003a988>] (vprintk_emit+0x0/0x474) from [<c03aa798>] (printk+0x3c/0x44)
[    1.118633]  r10:c04dcc80
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby PaX Team » Mon Jan 12, 2015 6:41 pm

this latest oops shows a problem that i can only explain if there was some miscompilation, so can you try to start from a clean source tree with that simple patch i asked above and try again? if the problem still happens, can you send me your vmlinux (the one in the build root dir)?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: kernel build failure 3.18.1

Postby iamb » Tue Jan 13, 2015 10:41 pm

yeah i dont know what the hell i was up to, sorry.

anyway i had some time to sit down and try again. i ran through a vanilla 3.18.1 patched with 201412310755, the arm patch in this thread, and the suggested fault.c changes. the behavior looks exactly the same to me as with unaltered fault.c, but i'm not able to understand the intent.

i enabled detect hung task, and that appears to at least show me where it's sitting. cause, symptom, or even related i don't claim to know. at 240 seconds (timeout is 120, i'm not sure why it takes twice that) i get:

Code: Select all
[    0.235946] Switched to clocksource orion_clocksource
[   82.525978] random: nonblocking pool is initialized
[  240.215956] INFO: task swapper:1 blocked for more than 120 seconds.
[  240.222336]       Not tainted 3.18.2-grsec #1
[  240.226803] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.234752] swapper         D c03a0954     0     1      0 0x00000000
[  240.241238] Backtrace:
[  240.243801] [<c03a07c0>] (__schedule+0x0/0x3f8) from [<c03a0bf0>] (schedule+0x38/0x84)
[  240.251846]  r10:00000000 r9:00100001 r8:df435e1c r7:00000000 r6:7fffffff r5:00000002
[  240.259848]  r4:df434000
[  240.262493] [<c03a0bb8>] (schedule+0x0/0x84) from [<c03a2c00>] (schedule_timeout+0xf8/0x14c)
[  240.271074] [<c03a2b08>] (schedule_timeout+0x0/0x14c) from [<c03a1608>] (wait_for_common+0xbc/0x148)
[  240.280340]  r9:00100001 r8:df435e1c r7:00000000 r6:00000000 r5:00000002 r4:df434000
[  240.288259] [<c03a154c>] (wait_for_common+0x0/0x148) from [<c03a17b0>] (wait_for_completion+0x18/0x1c)
[  240.297703]  r8:c04d8f48 r7:00000000 r6:df4d7600 r5:df435e18 r4:c04d8fac
[  240.304568] [<c03a1798>] (wait_for_completion+0x0/0x1c) from [<c01f2914>] (devtmpfs_create_node+0xc0/0xec)
[  240.314370] [<c01f2854>] (devtmpfs_create_node+0x0/0xec) from [<c01eb42c>] (device_add+0x204/0x508)
[  240.323548]  r5:00000000 r4:df4d7608
[  240.327256] [<c01eb228>] (device_add+0x0/0x508) from [<c01eb7d4>] (device_create_groups_vargs+0xa4/0xc4)
[  240.336873]  r9:00100001 r8:00000000 r7:00000000 r6:df4d7608 r5:00000000 r4:df4d7600
[  240.344782] [<c01eb730>] (device_create_groups_vargs+0x0/0xc4) from [<c01ec16c>] (device_create+0x30/0x38)
[  240.354575]  r9:df434010 r8:c046bdf8 r7:c04d8b80 r6:c041bcd0 r5:c03c05a0 r4:c041bcd0
[  240.362496] [<c01ec13c>] (device_create+0x0/0x38) from [<c046bea8>] (chr_dev_init+0xb0/0xe4)
[  240.371064]  r4:00000002
[  240.373710] [<c046bdf8>] (chr_dev_init+0x0/0xe4) from [<c045bdac>] (do_one_initcall+0x114/0x1bc)
[  240.382627]  r7:c045b5ec r6:df5818c0 r5:c047aacc r4:c047aacc
[  240.388445] [<c045bc98>] (do_one_initcall+0x0/0x1bc) from [<c045bf58>] (kernel_init_freeable+0x104/0x1cc)
[  240.398149]  r10:c04ae8e0 r9:0000008d r8:c047b300 r6:c04ae8e0 r5:c047b2f0 r4:00000005
[  240.406157] [<c045be54>] (kernel_init_freeable+0x0/0x1cc) from [<c039c444>] (kernel_init+0x10/0xf4)
[  240.415324]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c039c434
[  240.423322]  r4:00000000
[  240.425976] [<c039c434>] (kernel_init+0x0/0xf4) from [<c00094f0>] (ret_from_fork+0x14/0x24)
[  240.434447]  r4:00000000 r3:df434000
[  240.438148] Kernel panic - not syncing: hung_task: blocked tasks
[  240.444268] ---[ end Kernel panic - not syncing: hung_task: blocked tasks


and if i don't panic at it, the message just repeats every 120 seconds.

a couple asides, i updated uboot to get rid of the "bootloader left the L2 cache on!" in the hopes this was some odd behavior that caused. it didn't help any, but i got an updated uboot out of it, so i got that goin for me which is nice. i also saw the latest patch is updated for arm < 6, so i reproduced the same things with 3.18.2 and 201501120821, plus the changes to fault.c. the above backtrace and vmlinux are from that kernel. i can go back to the earlier if it helps, otherwise i'll just keep current.

i'll pm you a link to vmlinux, i don't want to archive a link to a personal site for posterity.
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby PaX Team » Wed Jan 14, 2015 8:43 am

what is the kernel loglevel set to? maybe it's not high enough and you're missing messages?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: kernel build failure 3.18.1

Postby iamb » Wed Jan 14, 2015 7:12 pm

i tried booting with loglevel=7 (and ignore_loglevel for giggles) but didn't get any additional output
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm

Re: kernel build failure 3.18.1

Postby iamb » Fri Jan 16, 2015 12:54 am

i built the same kernel excluding devtmpfs support with what seems to be interesting results. there is no hang and it continues to boot, but panics when trying to mount root. it tells me the device isn't there (with -2 -ENOENT?), then tells me it is. the same configuration without grsec patch boots and mounts root as expected, though without devtmpfs it's not worth much. i'm not sure if this helps explain what's going on or not. another thing that catches my eye is a warning about being unable to open an initial console -- that's unique to the patched kernel, not seen with vanilla.

full boot messages without devtmpfs enabled:

Code: Select all
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.2-grsec (iamb@euler) (gcc version 4.8.4 (Buildroot 2015.02-git-00797-gf1b07c0) ) #1 Thu Jan 15 19:34:34 CST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Guruplug Server Plus
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c04ae17c, node_mem_map dfbfc000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=5 ro ignore_loglevel earlyprintk init=/bin/sh
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 514724K/524288K available (3693K kernel code, 178K rwdata, 724K rodata, 160K init, 197K bss, 9564K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03a3880   (3695 kB)
[    0.000000]       .init : 0xc045a000 - 0xc0482000   ( 160 kB)
[    0.000000]       .data : 0xc0482000 - 0xc04ae8c0   ( 179 kB)
[    0.000000]        .bss : 0xc04ae8c0 - 0xc04dfdf0   ( 198 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000016] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.008103] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100921] pid_max: default: 32768 minimum: 501
[    0.105800] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.112570] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.120222] CPU: Testing write buffer coherency: ok
[    0.125521] Setting up static identity map for 0x3a2fa8 - 0x3a2fe4
[    0.132110] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.139305] pinctrl core: initialized pinctrl subsystem
[    0.144920] regulator-dummy: no parameters
[    0.152348] NET: Registered protocol family 16
[    0.157370] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.167430] cpuidle: using governor ladder
[    0.172081] Feroceon L2: Enabling L2
[    0.175790] Feroceon L2: Cache support initialised.
[    0.181081] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.191744] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.212500] SCSI subsystem initialized
[    0.216431] libata version 3.00 loaded.
[    0.220675] usbcore: registered new interface driver usbfs
[    0.226324] usbcore: registered new interface driver hub
[    0.231810] usbcore: registered new device driver usb
[    0.237944] Switched to clocksource orion_clocksource
[    0.244143] NET: Registered protocol family 2
[    0.249323] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.256532] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.263153] TCP: Hash tables configured (established 4096 bind 4096)
[    0.269688] TCP: reno registered
[    0.273021] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.278994] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.285517] NET: Registered protocol family 1
[    0.290033] PCI: CLS 0 bytes, default 32
[    0.294079] Failed to create a rootfs
[    0.302542] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.308810] audit: initializing netlink subsys (disabled)
[    0.314356] audit: type=2000 audit(0.290:1): initialized
[    0.320618] fuse init (API version 7.23)
[    0.324767] msgmni has been set to 1005
[    0.332756] NET: Registered protocol family 38
[    0.337349] io scheduler noop registered
[    0.341408] io scheduler deadline registered (default)
[    0.347688] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.355657] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.362987] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.370314] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.407996] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.447992] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.453628] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.497993] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.537993] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.574139] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.581563] console [ttyS0] disabled
[    0.585268] of_serial f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.595263] console [ttyS0] enabled
[    0.595263] console [ttyS0] enabled
[    0.602360] bootconsole [earlycon0] disabled
[    0.602360] bootconsole [earlycon0] disabled
[    0.611727] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    0.619976] tun: Universal TUN/TAP device driver, 1.6
[    0.625053] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.631633] libphy: orion_mdio_bus: probed
[    0.636071] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.718788] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:00:00:00:00:00
[    0.798755] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:00:00:00:00:00
[    0.807551] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.814133] ehci-pci: EHCI PCI platform driver
[    0.818675] ehci-platform: EHCI generic platform driver
[    0.824054] ehci-orion: EHCI orion driver
[    0.828246] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.833783] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.841628] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    0.857968] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.864146] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.870987] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.878253] usb usb1: Product: EHCI Host Controller
[    0.883150] usb usb1: Manufacturer: Linux 3.18.2-grsec ehci_hcd
[    0.889108] usb usb1: SerialNumber: f1050000.ehci
[    0.894309] hub 1-0:1.0: USB hub found
[    0.898131] hub 1-0:1.0: 1 port detected
[    0.902605] usbcore: registered new interface driver usb-storage
[    0.908970] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.915930] i2c /dev entries driver
[    0.920055] orion_wdt: Initial timeout 21 sec
[    0.924628] device-mapper: ioctl: 4.28.0-ioctl (2014-09-17) initialised: dm-devel@redhat.com
[    0.968607] ledtrig-cpu: registered to indicate activity on CPUs
[    0.974700] Driver for HIFN 795x crypto accelerator chip has been successfully registered.
[    0.987308] Mirror/redirect action on
[    0.991624] u32 classifier
[    0.994345]     input device check on
[    0.998043]     Actions configured
[    1.001523] nf_conntrack version 0.5.0 (8042 buckets, 32168 max)
[    1.008176] xt_time: kernel timezone is -0000                                                                                                                                                                                                                                             
[    1.012867] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.018381] TCP: cubic registered
[    1.021714] Initializing XFRM netlink socket
[    1.026017] NET: Registered protocol family 17
[    1.030529] NET: Registered protocol family 15
[    1.035039] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.047717] 8021q: 802.1Q VLAN Support v1.8
[    1.053203] rtc-mv f1010300.rtc: setting system clock to 2015-01-16 02:38:54 UTC (1421375934)
[    1.061899] Warning: unable to open an initial console.
[    1.067160] Waiting 5 sec before mounting root device...
[    1.091891] mmc0: new high speed SDIO card at address 0001
[    1.267979] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.418624] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
[    1.425371] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.432560] usb 1-1: Product: USB 2.0 Hub
[    1.437139] hub 1-1:1.0: USB hub found
[    1.441039] hub 1-1:1.0: 4 ports detected
[    1.718126] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    1.848624] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    1.855537] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.862900] usb 1-1.1: Product: USB 2.0 Hub
[    1.867640] hub 1-1.1:1.0: USB hub found
[    1.871751] hub 1-1.1:1.0: 4 ports detected
[    1.968142] usb 1-1.3: new high-speed USB device number 4 using orion-ehci
[    2.103750] usb 1-1.3: New USB device found, idVendor=090c, idProduct=6200
[    2.110677] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.118040] usb 1-1.3: Product: Generic USB2.0 card
[    2.123030] usb 1-1.3: Manufacturer: Silicon Motion, Inc.
[    2.128472] usb 1-1.3: SerialNumber: 12345678901234567890
[    2.134592] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    2.141235] scsi host0: usb-storage 1-1.3:1.0
[    2.198128] usb 1-1.1.1: new high-speed USB device number 5 using orion-ehci
[    2.331875] usb 1-1.1.1: New USB device found, idVendor=05e3, idProduct=0723
[    2.338975] usb 1-1.1.1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    2.346502] usb 1-1.1.1: Product: USB Storage
[    2.350889] usb 1-1.1.1: Manufacturer: Generic
[    2.356408] usb-storage 1-1.1.1:1.0: USB Mass Storage device detected
[    2.363111] usb-storage 1-1.1.1:1.0: Quirks match for vid 05e3 pid 0723: 8000
[    2.370349] scsi host1: usb-storage 1-1.1.1:1.0
[    2.408128] usb 1-1.4: new full-speed USB device number 6 using orion-ehci
[    2.540498] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=013c
[    2.547417] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.554780] usb 1-1.4: Product: USB PnP Sound Device
[    2.559776] usb 1-1.4: Manufacturer: C-Media Electronics Inc.
[    2.618129] usb 1-1.1.2: new high-speed USB device number 7 using orion-ehci
[    2.751874] usb 1-1.1.2: New USB device found, idVendor=05e3, idProduct=0723
[    2.758972] usb 1-1.1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    2.766501] usb 1-1.1.2: Product: USB Storage
[    2.770885] usb 1-1.1.2: Manufacturer: Generic
[    2.776413] usb-storage 1-1.1.2:1.0: USB Mass Storage device detected
[    2.783100] usb-storage 1-1.1.2:1.0: Quirks match for vid 05e3 pid 0723: 8000
[    2.790329] scsi host2: usb-storage 1-1.1.2:1.0
[    3.245589] scsi 0:0:0:0: Direct-Access     Generic  USB  SD Reader   1.00 PQ: 0 ANSI: 0 CCS
[    3.255533] sd 0:0:0:0: [sda] 61497344 512-byte logical blocks: (31.4 GB/29.3 GiB)
[    3.263645] sd 0:0:0:0: [sda] Write Protect is off
[    3.268483] sd 0:0:0:0: [sda] Mode Sense: 4b 00 00 08
[    3.274017] sd 0:0:0:0: [sda] No Caching mode page found
[    3.279370] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.289434]  sda: sda1 sda2
[    3.294646] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.369446] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
[    3.381274] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    3.789441] scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
[    3.801272] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    6.078025] VFS: Cannot open root device "sda1" or unknown-block(8,1): error -2
[    6.085368] Please append a correct "root=" boot option; here are the available partitions:
[    6.093772] 0800        30748672 sda  driver: sd
[    6.098428]   0801           16384 sda1 00000000-01
[    6.103335]   0802        30731264 sda2 00000000-02
[    6.108246] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
[    6.116545] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
iamb
 
Posts: 14
Joined: Fri Jan 02, 2015 7:04 pm


Return to grsecurity support