Other OS

Linux and Android bug make kernel crash

3 353
in kernel linux and android bug will crash as this https://community.nxp.com/thread/464833
modify here

1.
~myandroid/kernel_imx/arch/arm/include/asm/uaccess.h

static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n)
{
    if (access_ok(VERIFY_READ, from, n))
    {
        /*** begin: issue #: avoid arg crash in copy_from_user ***/
        if ( from )
            n = __copy_from_user(to, from, n);
        /*** end: issue #: avoid arg crash in copy_from_user ***/
    }
    else /* security hole - plug it */
    {
        memset(to, 0, n);
    }



    return n;
}

2.
~myandroid/kernel_imx/arch/arm/lib/copy_from_user.S
ENDPROC(__copy_from_user)
    /*** begin: issue #5404: socket can ***/
    /*.pushsection .fixup,"ax"*/
    .pushsection .text.fixup,"ax"
    /*** end: issue #5404 ***/
    .align 0
    copy_abort_preamble
    ldmfd    sp!, {r1, r2}
    sub    r3, r0, r1
    rsb    r1, r3, r2
    str    r1, [sp]
    bl    __memzero
    ldr    r0, [sp], #4
    copy_abort_end
    .popsection

3.
~myandroid/kernel_imx/drivers/scsi/mac_scsi.c
search all .fixup
change to
.text.fixup

https://bugzilla.kernel.org/show_bug.cgi?id=198641
https://issuetracker.google.com/issues/71959823

I fire bug to them... you can modify this code too

20188.15wengdongdong
ralph lauren
red bottoms
air jordan
polo ralph lauren
nike air max
balenciaga triple s
breguet watches
mac makeup
breitling watches
cristiano ronaldo jersey
jordan shoes
louboutin outlet
nike free
coach outlet
ray bans
pandora jewelry
nfl jerseys
hollister outlet
pandora jewelry canada
nhl jerseys
mac cosmetics
nike free run
tom brady jersey
ralph lauren
ralph lauren uk
nfl jerseys
supreme
ugg boots
balenciaga shoes
north face
ferragamo shoes
lebron 15
supreme paris
kate spade handbags
russell westbrook jersey
harden vol 2
soldier 9
columbia outlet
sophia webster shoes
adidas nmd
new balance shoes
curry jersey
air jordan
ronaldo jersey
harden vol 1
hermes belt
nike roshe
nike running shoes
nicholas kirkwood shoes
canada goose outlet
marcelo burlon
nike flip-flops
oakley sunglasses
christian louboutin
christian louboutin shoes
kate spade purse
ralph lauren
cheap mlb jerseys
nike presto
cheap replica watches
lebron 15
nike outlet
adidas shoes
camisetas fútbol
air jordan 3
adidas wings
kate spade
tods shoes
linda farrow sunglasses
longchamp outlet
pandora jewelry
audemars piguet
stuart weitzman shoes
montblanc pen
air jordan
mcm handbags
off-white shoes
kyrie 2
adidas ultra boost
marc jacobs handbags
mishka clothing
ralph lauren
kd shoes
air jordan
canada goose jackets
air jordan
ralph lauren
coach outlet online
air max
vans shoes
nike uk
nike revolution
tory burch
cheap nba jerseys
manolo blahnik
suicoke
coach outlet online
saucony running shoes
lee jeans
flip flops
20188.15wengdongdong

You have to log in before you can reply Login | Sign Up

Points Rules