Re: [HELP] Oops when insmod iptable_filter

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

 



On Fri, Sep 17, 2010 at 8:55 PM, arrow zhang <arrow.ebd@xxxxxxxxx> wrote:
> Here has a difficult problem for me, would like anyone give some advice
>
> On a mips r3000 cpu, here has a kernel crash when doing the insmod
> iptable_filter,
> The phenomenon is same as https://dev.openwrt.org/ticket/6129
>
> 1, the FW is at openwrt versoin r23057
> 2, the crash occurs if insmod automatically by preinit
> 3, but not has crash if insmod within "failsafe mode"
----

good news:

1, work fine if start "init" without "env, like this:
    exec $pi_init_cmd 2>&0
2, test patch:
{{{
diff --git a/package/base-files/files/lib/preinit/99_10_run_init
b/package/base-files/files/lib/preinit/99_10_run_init
index fef3a50..7db1e72 100644
--- a/package/base-files/files/lib/preinit/99_10_run_init
+++ b/package/base-files/files/lib/preinit/99_10_run_init
@@ -6,9 +6,11 @@ run_init() {
     preinit_echo "- init -"
     preinit_ip_deconfig
     if [ "$pi_init_suppress_stderr" = "y" ]; then
-	exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd 2>&0
+	#exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd 2>&0
+	exec $pi_init_cmd 2>&0
     else
-	exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd
+	#exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd
+	exec $pi_init_cmd
     fi
 }

}}}}

3, I do not know why, I think it's a my mips SOC porting issue, but I
tried to modify TLB and cache, not find out yet, would like someone
have advice



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux