Download OS Lecture: Commodity OSes Reliability, Mobile Phone Risks, and Symbian OS Security and more Slides Advanced Operating Systems in PDF only on Docsity!
Lecture No.
Overview of today’s lectures
OS research directions
Reliability of commodity OSes
Mobile phone risks and security issues
Embedded operating systems
Symbian OS for mobile devices
Virtual Machine Monitors
Asynchronous I/O interfaces in Linux kernel
Quick review of memory management and I/O
topics
Mobile phone risks
Toll fraud:
Auto dialers.
High cost SMS/MMS.
Phone Proxy
Loss or theft:
Data loss.
Data compromise.
Loss of Identity (caller ID)
Availability:
SPAM.
Destruction of the device
(flash)
Destruction of data.
Risks induced by usage:
Mobile banking.
Confidential e-mail,
documents.
Device present at confidential
meetings: snooping
Attack vectors
Executables
Bluetooth
GPRS / GSM
OTA
IrDa
Browser
SMS / MMS
SD card
WAP
E-mail
Too many entry points to list all
Symbian OS for mobile devices
Symbian Ltd. formed in 1998
Ericsson, Nokia, Motorola and Psion
EPOC renamed to Symbian OS
Currently ~30 phones with Symbian,15 licensees
Current ownership
Nokia 47.5% Panasonic 10.5%
Ericsson 15.6% Siemens 8.4%
SonyEricsson 13.1% Samsung 4.5%
Symbian security features
Crypto: Algorithms Certificate framework Protocols: HTTPS, WTLS, … Symbian signed: Public key signatures on applications Root CA’s in ROM Separation Kernel vs. user space; process space Secured ‘wallet’ storage Access controls SIM PIN, device security code Bluetooth pairing Artificial Limitations / patches Prevent loading device drivers in the kernel (Nokia). Disallow overriding of ROM based plug-ins
Limitations No concept of roles or users. No access controls in the file system. No user confirmation needed for access by applications. User view on device is limited: partial filesystem, selected processes. Majority of interesting applications is unsigned.
Are attacks prevented? Fraud: user should not accept unsigned apps Loss/theft: In practice, little protection Availability: any application can render phone unusable (skulls trojan).
Virtual Machine Monitors
Export a virtual machine to user programs that
resembles hardware.
A virtual machine consists of all hardware features e.g.
user/kernel modes, I/O, interrupts and pretty much
everything a real machine has.
A virtual machine may run any OS.
Examples:
JVM, VmWare, User-Mode Linux (UML).
Advantage: portability
Disadvantage: slow speed
Privileged Instructions
- VMM running operating system o , which is running process p
p tries to read—privileged operation traps to hardware
- VMM invoked, determines trap occurred in o
VMM updates state of o to make it look like hardware invoked o
directly, so o tries to read, causing trap
- VMM does read
Updates o to make it seem like o did read
Transfers control to o
4. o tries to switch context to p , causing trap
- VMM updates virtual machine of o to make it appear o did
context switch successfully
Transfers control to o , which (as o apparently did a context switch to
p ) has the effect of returning control to p
When Is VM Possible?
Can virtualize an architecture when:
1. All sensitive instructions cause traps when executed by
processes at lower levels of privilege
2. All references to sensitive data structures cause traps when
executed by processes at lower levels of privilege
Goals of OS memory management
Questions regarding memory management
Multiprogramming
Virtual addresses
Fixed partitioning
Variable partitioning
Fragmentation
Paging
Address translation
Page tables and Page table entries
Multi-level address translation
Page faults and their handling
Set associative and fully associative caches
Demand Paging
Page replacement algorithms
Page replacement
Thrashing
Working set model
Page fault frequency
Copy on write
Sharing
Memory mapped files
SABRE airline example
UNIX file system invariants
Consistency ensuring techniques and rules
Write ordering etc.
Disks structure and internals
Platters, Cylinders, heads, tracks, sectors
etc.
Fast File system
Cylinder groups
Fragments for small files
Log structured (or journaling) file systems record
each update to the file system as a transaction.
All transactions are written to a log. A transaction is
considered committed once it is written to the log.
However, the file system may not yet be updated.
The transactions in the log are asynchronously
written to the file system. When the file system is
modified, the transaction is removed from the log.
If the file system crashes, all remaining transactions
in the log must still be performed.