Changeset e13daa5d in mainline for kernel/arch/amd64/include/cpu.h


Ignore:
Timestamp:
2008-03-19T21:13:49Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
047aa46
Parents:
20b8bf3
Message:

Fortify ia32 and amd64 kernels against mallicious uspace applications that set
DF prior to entering the kernel. For AMD64 syscalls, we don't use the CLD
instruction, but make use of the SFMASK MSR instead. Simics works fine with
it, but QEMU seems to have a problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/cpu.h

    r20b8bf3 re13daa5d  
    3636#define KERN_amd64_CPU_H_
    3737
    38 #define RFLAGS_IF       (1 << 9)
    39 #define RFLAGS_RF       (1 << 16)
     38#define RFLAGS_IF       (1 << 9)
     39#define RFLAGS_DF       (1 << 10)
     40#define RFLAGS_RF       (1 << 16)
    4041
    4142#define EFER_MSR_NUM    0xc0000080
Note: See TracChangeset for help on using the changeset viewer.