Skip to content

Commit dfe2c6d

Browse files
committed
Merge branch 'akpm' (patches from Andrew Morton)
Merge second patch-bomb from Andrew Morton: - a few hotfixes - drivers/dma updates - MAINTAINERS updates - Quite a lot of lib/ updates - checkpatch updates - binfmt updates - autofs4 - drivers/rtc/ - various small tweaks to less used filesystems - ipc/ updates - kernel/watchdog.c changes * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (135 commits) mm: softdirty: enable write notifications on VMAs after VM_SOFTDIRTY cleared kernel/param: consolidate __{start,stop}___param[] in <linux/moduleparam.h> ia64: remove duplicate declarations of __per_cpu_start[] and __per_cpu_end[] frv: remove unused declarations of __start___ex_table and __stop___ex_table kvm: ensure hard lockup detection is disabled by default kernel/watchdog.c: control hard lockup detection default staging: rtl8192u: use %*pEn to escape buffer staging: rtl8192e: use %*pEn to escape buffer staging: wlan-ng: use %*pEhp to print SN lib80211: remove unused print_ssid() wireless: hostap: proc: print properly escaped SSID wireless: ipw2x00: print SSID via %*pE wireless: libertas: print esaped string via %*pE lib/vsprintf: add %*pE[achnops] format specifier lib / string_helpers: introduce string_escape_mem() lib / string_helpers: refactoring the test suite lib / string_helpers: move documentation to c-file include/linux: remove strict_strto* definitions arch/x86/mm/numa.c: fix boot failure when all nodes are hotpluggable fs: check bh blocknr earlier when searching lru ...
2 parents a45d572 + 64e4550 commit dfe2c6d

150 files changed

Lines changed: 5589 additions & 1657 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/binfmt_misc.txt‎

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,50 @@ First you must mount binfmt_misc:
1515
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
1616

1717
To actually register a new binary type, you have to set up a string looking like
18-
:name:type:offset:magic:mask:interpreter:flags (where you can choose the ':' upon
19-
your needs) and echo it to /proc/sys/fs/binfmt_misc/register.
18+
:name:type:offset:magic:mask:interpreter:flags (where you can choose the ':'
19+
upon your needs) and echo it to /proc/sys/fs/binfmt_misc/register.
20+
2021
Here is what the fields mean:
2122
- 'name' is an identifier string. A new /proc file will be created with this
22-
name below /proc/sys/fs/binfmt_misc
23+
name below /proc/sys/fs/binfmt_misc; cannot contain slashes '/' for obvious
24+
reasons.
2325
- 'type' is the type of recognition. Give 'M' for magic and 'E' for extension.
2426
- 'offset' is the offset of the magic/mask in the file, counted in bytes. This
25-
defaults to 0 if you omit it (i.e. you write ':name:type::magic...')
27+
defaults to 0 if you omit it (i.e. you write ':name:type::magic...'). Ignored
28+
when using filename extension matching.
2629
- 'magic' is the byte sequence binfmt_misc is matching for. The magic string
27-
may contain hex-encoded characters like \x0a or \xA4. In a shell environment
28-
you will have to write \\x0a to prevent the shell from eating your \.
30+
may contain hex-encoded characters like \x0a or \xA4. Note that you must
31+
escape any NUL bytes; parsing halts at the first one. In a shell environment
32+
you might have to write \\x0a to prevent the shell from eating your \.
2933
If you chose filename extension matching, this is the extension to be
3034
recognised (without the '.', the \x0a specials are not allowed). Extension
31-
matching is case sensitive!
35+
matching is case sensitive, and slashes '/' are not allowed!
3236
- 'mask' is an (optional, defaults to all 0xff) mask. You can mask out some
3337
bits from matching by supplying a string like magic and as long as magic.
34-
The mask is anded with the byte sequence of the file.
38+
The mask is anded with the byte sequence of the file. Note that you must
39+
escape any NUL bytes; parsing halts at the first one. Ignored when using
40+
filename extension matching.
3541
- 'interpreter' is the program that should be invoked with the binary as first
3642
argument (specify the full path)
3743
- 'flags' is an optional field that controls several aspects of the invocation
38-
of the interpreter. It is a string of capital letters, each controls a certain
39-
aspect. The following flags are supported -
40-
'P' - preserve-argv[0]. Legacy behavior of binfmt_misc is to overwrite the
41-
original argv[0] with the full path to the binary. When this flag is
42-
included, binfmt_misc will add an argument to the argument vector for
43-
this purpose, thus preserving the original argv[0].
44+
of the interpreter. It is a string of capital letters, each controls a
45+
certain aspect. The following flags are supported -
46+
'P' - preserve-argv[0]. Legacy behavior of binfmt_misc is to overwrite
47+
the original argv[0] with the full path to the binary. When this
48+
flag is included, binfmt_misc will add an argument to the argument
49+
vector for this purpose, thus preserving the original argv[0].
50+
e.g. If your interp is set to /bin/foo and you run `blah` (which is
51+
in /usr/local/bin), then the kernel will execute /bin/foo with
52+
argv[] set to ["/bin/foo", "/usr/local/bin/blah", "blah"]. The
53+
interp has to be aware of this so it can execute /usr/local/bin/blah
54+
with argv[] set to ["blah"].
4455
'O' - open-binary. Legacy behavior of binfmt_misc is to pass the full path
4556
of the binary to the interpreter as an argument. When this flag is
4657
included, binfmt_misc will open the file for reading and pass its
4758
descriptor as an argument, instead of the full path, thus allowing
48-
the interpreter to execute non-readable binaries. This feature should
49-
be used with care - the interpreter has to be trusted not to emit
50-
the contents of the non-readable binary.
59+
the interpreter to execute non-readable binaries. This feature
60+
should be used with care - the interpreter has to be trusted not to
61+
emit the contents of the non-readable binary.
5162
'C' - credentials. Currently, the behavior of binfmt_misc is to calculate
5263
the credentials and security token of the new process according to
5364
the interpreter. When this flag is included, these attributes are
@@ -58,7 +69,7 @@ Here is what the fields mean:
5869

5970

6071
There are some restrictions:
61-
- the whole register string may not exceed 255 characters
72+
- the whole register string may not exceed 1920 characters
6273
- the magic must reside in the first 128 bytes of the file, i.e.
6374
offset+size(magic) has to be less than 128
6475
- the interpreter string may not exceed 127 characters
@@ -110,7 +121,4 @@ passes it the full filename (or the file descriptor) to use. Using $PATH can
110121
cause unexpected behaviour and can be a security hazard.
111122

112123

113-
There is a web page about binfmt_misc at
114-
http://www.tat.physik.uni-tuebingen.de
115-
116124
Richard Günther <rguenth@tat.physik.uni-tuebingen.de>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* TI BQ32000 I2C Serial Real-Time Clock
2+
3+
Required properties:
4+
- compatible: Should contain "ti,bq32000".
5+
- reg: I2C address for chip
6+
7+
Optional properties:
8+
- trickle-resistor-ohms : Selected resistor for trickle charger
9+
Values usable are 1120 and 20180
10+
Should be given if trickle charger should be enabled
11+
- trickle-diode-disable : Do not use internal trickle charger diode
12+
Should be given if internal trickle charger diode should be disabled
13+
Example:
14+
bq32000: rtc@68 {
15+
compatible = "ti,bq32000";
16+
trickle-resistor-ohms = <1120>;
17+
reg = <0x68>;
18+
};

‎Documentation/devicetree/bindings/i2c/trivial-devices.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ catalyst,24c32 i2c serial eeprom
3535
cirrus,cs42l51 Cirrus Logic CS42L51 audio codec
3636
dallas,ds1307 64 x 8, Serial, I2C Real-Time Clock
3737
dallas,ds1338 I2C RTC with 56-Byte NV RAM
38-
dallas,ds1339 I2C Serial Real-Time Clock
3938
dallas,ds1340 I2C RTC with Trickle Charger
4039
dallas,ds1374 I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output
4140
dallas,ds1631 High-Precision Digital Thermometer
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* Dallas DS1339 I2C Serial Real-Time Clock
2+
3+
Required properties:
4+
- compatible: Should contain "dallas,ds1339".
5+
- reg: I2C address for chip
6+
7+
Optional properties:
8+
- trickle-resistor-ohms : Selected resistor for trickle charger
9+
Values usable for ds1339 are 250, 2000, 4000
10+
Should be given if trickle charger should be enabled
11+
- trickle-diode-disable : Do not use internal trickle charger diode
12+
Should be given if internal trickle charger diode should be disabled
13+
Example:
14+
ds1339: rtc@68 {
15+
compatible = "dallas,ds1339";
16+
trickle-resistor-ohms = <250>;
17+
reg = <0x68>;
18+
};

‎Documentation/devicetree/bindings/rtc/s3c-rtc.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
Required properties:
44
- compatible: should be one of the following.
55
* "samsung,s3c2410-rtc" - for controllers compatible with s3c2410 rtc.
6+
* "samsung,s3c2416-rtc" - for controllers compatible with s3c2416 rtc.
7+
* "samsung,s3c2443-rtc" - for controllers compatible with s3c2443 rtc.
68
* "samsung,s3c6410-rtc" - for controllers compatible with s3c6410 rtc.
9+
* "samsung,exynos3250-rtc" - for controllers compatible with exynos3250 rtc.
710
- reg: physical base address of the controller and length of memory mapped
811
region.
912
- interrupts: Two interrupt numbers to the cpu should be specified. First

0 commit comments

Comments
 (0)