lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJ8eaTxpHUrSYJYA=ph49tb02UQt9+NPL85pmqmi1btJ4LJSEA@mail.gmail.com>
Date:	Wed, 14 Mar 2012 18:41:37 +0530
From:	naveen yadav <yad.naveen@...il.com>
To:	Catalin Marinas <catalin.marinas@....com>,
	Russell King - ARM Linux <linux@....linux.org.uk>,
	linux-kernel@...r.kernel.org
Subject: kernel 3.0.22 ARM unaligned access issue

Hi all,

I am running one simple program, unaligned access on ARM cortex A9 on
3.0.22 kernel.
CONFIG_DISABLE_UNALIGNED_ACCESS=y
CONFIG_ALIGNMENT_TRAP=y
But I am surprise that program run well,and control does not come to
do_alignment(). for user fault.
what may be reason ?
Test Code:
#include<stdio.h>
#include<malloc.h>
    int main ( )
    {
        char *data;
        short *sp1, *sp2;
        int *ip;
        data = (char *)malloc(16);;
        sp1 = (short*)(data+3);
        sp2 = (short*)(data+5);
        ip = (int*)(data+7);
        *sp1=10;
        *sp2=20;
        *ip=30;
        fprintf(stderr, "%d %d %d\n", *sp1, *sp2, *ip);
        return 0;
    }

on kernel 3.0.22
./a.out
10 20 30
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ