<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/arm64/include/asm/compat.h, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-08-04T07:33:44Z</updated>
<entry>
<title>arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ</title>
<updated>2019-08-04T07:33:44Z</updated>
<author>
<name>Will Deacon</name>
</author>
<published>2018-09-05T14:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8902d3a82ccfa4935119dd63ce3c0158ac1a2c39'/>
<id>urn:sha1:8902d3a82ccfa4935119dd63ce3c0158ac1a2c39</id>
<content type='text'>
commit 24951465cbd279f60b1fdc2421b3694405bcff42 upstream.

arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value
for compat tasks.

Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Oleg Nesterov &lt;oleg@redhat.com&gt;
Reviewed-by: Dave Martin &lt;Dave.Martin@arm.com&gt;
Reported-by: Steve McIntyre &lt;steve.mcintyre@arm.com&gt;
Tested-by: Steve McIntyre &lt;93sam@debian.org&gt;
Signed-off-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>arm64: do not include ptrace.h from compat.h</title>
<updated>2015-11-17T13:24:36Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2015-11-16T16:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adc235aff6fcf5ae4d8dc00faf30a07632b9725b'/>
<id>urn:sha1:adc235aff6fcf5ae4d8dc00faf30a07632b9725b</id>
<content type='text'>
including ptrace.h brings a definition of BITS_PER_PAGE into device
drivers and cause a build warning in allmodconfig builds:

drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
 #define BITS_PER_PAGE  (1UL &lt;&lt; (PAGE_SHIFT + 3))

This uses a slightly different way to express current_pt_regs()
that avoids the use of the header and gets away with the already
included asm/ptrace.h.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: compat: Remove incorrect comment in compat_siginfo</title>
<updated>2015-02-02T16:44:39Z</updated>
<author>
<name>Catalin Marinas</name>
</author>
<published>2015-02-02T16:44:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d476d94f180af3f0fca77394651d4a98f4df1c54'/>
<id>urn:sha1:d476d94f180af3f0fca77394651d4a98f4df1c54</id>
<content type='text'>
The comment was right originally but the _pad array size was wrong. It
was fixed in the meantime but the comment not updated.

Reported-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: add SIGSYS siginfo for compat task</title>
<updated>2014-11-28T10:24:59Z</updated>
<author>
<name>AKASHI Takahiro</name>
</author>
<published>2014-11-28T05:26:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cc5e9097c9aad6b186a568c534e26746d6bfa483'/>
<id>urn:sha1:cc5e9097c9aad6b186a568c534e26746d6bfa483</id>
<content type='text'>
SIGSYS is primarily used in secure computing to notify tracer of syscall
events. This patch allows signal handler on compat task to get correct
information with SA_SIGINFO specified when this signal is delivered.

Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Signed-off-by: Will Deacon &lt;will.deacon@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: compat: fix compat types affecting struct compat_elf_prpsinfo</title>
<updated>2014-10-20T16:47:02Z</updated>
<author>
<name>Victor Kamensky</name>
</author>
<published>2014-10-14T05:55:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=971a5b6fe634bb7b617d8c5f25b6a3ddbc600194'/>
<id>urn:sha1:971a5b6fe634bb7b617d8c5f25b6a3ddbc600194</id>
<content type='text'>
The compat_elf_prpsinfo structure does not match the arch/arm struct
elf_pspsinfo definition. As result NT_PRPSINFO note in core file
created by arm64 kernel for aarch32 (compat) process has wrong size.
So gdb cannot display command that caused process crash.

Fix is to change size of __compat_uid_t, __compat_gid_t so it would
match size of similar fields in arch/arm case.

Signed-off-by: Victor Kamensky &lt;victor.kamensky@linaro.org&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: is_compat_task is defined both in asm/compat.h and linux/compat.h</title>
<updated>2014-05-12T15:43:29Z</updated>
<author>
<name>AKASHI Takahiro</name>
</author>
<published>2014-04-30T09:51:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd92d4a54a069953b4679958121317f2a25389cd'/>
<id>urn:sha1:fd92d4a54a069953b4679958121317f2a25389cd</id>
<content type='text'>
Some kernel files may include both linux/compat.h and asm/compat.h directly
or indirectly. Since both header files contain is_compat_task() under
!CONFIG_COMPAT, compiling them with !CONFIG_COMPAT will eventually fail.
Such files include kernel/auditsc.c, kernel/seccomp.c and init/do_mountfs.c
(do_mountfs.c may read asm/compat.h via asm/ftrace.h once ftrace is
implemented).

So this patch proactively
1) removes is_compat_task() under !CONFIG_COMPAT from asm/compat.h
2) replaces asm/compat.h to linux/compat.h in kernel/*.c,
   but asm/compat.h is still necessary in ptrace.c and process.c because
   they use is_compat_thread().

Acked-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Signed-off-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>ARM64: perf: support dwarf unwinding in compat mode</title>
<updated>2014-03-13T11:22:38Z</updated>
<author>
<name>Jean Pihet</name>
</author>
<published>2014-02-03T18:18:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f888a1d33c48900012e6b4c18296ce7c715dc6c'/>
<id>urn:sha1:5f888a1d33c48900012e6b4c18296ce7c715dc6c</id>
<content type='text'>
Add support for unwinding using the dwarf information in compat
mode. Using the correct user stack pointer allows perf to record
the frames correctly in the native and compat modes.

Note that although the dwarf frame unwinding works ok using
libunwind in native mode (on ARMv7 &amp; ARMv8), some changes are
required to the libunwind code for the compat mode. Those changes
are posted separately on the libunwind mailing list.

Tested on ARMv8 platform with v8 and compat v7 binaries, the latter
are statically built.

Signed-off-by: Jean Pihet &lt;jean.pihet@linaro.org&gt;
Acked-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: compat: add support for big-endian (BE8) AArch32 binaries</title>
<updated>2013-10-25T14:59:35Z</updated>
<author>
<name>Will Deacon</name>
</author>
<published>2013-10-11T13:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a795a38eb91cf72c4a05e72a9c84e317ee179a48'/>
<id>urn:sha1:a795a38eb91cf72c4a05e72a9c84e317ee179a48</id>
<content type='text'>
This patch adds support for BE8 AArch32 tasks to the compat layer.

Signed-off-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: Fix compat types affecting struct compat_stat</title>
<updated>2013-04-25T16:45:50Z</updated>
<author>
<name>Catalin Marinas</name>
</author>
<published>2013-04-25T10:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f15a2a12d01573fcf9d2beb657f308845d55fc66'/>
<id>urn:sha1:f15a2a12d01573fcf9d2beb657f308845d55fc66</id>
<content type='text'>
The compat_stat structure doesn't match the arch/arm/ struct stat
definition. This patch fixes the compat types and struct compat_stat
definition accordingly.

Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
Acked-by: Will Deacon &lt;will.deacon@arm.com&gt;
</content>
</entry>
<entry>
<title>arm64: Include linux/ptrace.h in asm/compat.h</title>
<updated>2013-01-02T11:50:19Z</updated>
<author>
<name>Catalin Marinas</name>
</author>
<published>2013-01-02T11:50:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ae42c96cffc432e1a4f90b7f12b11acb66723ed'/>
<id>urn:sha1:7ae42c96cffc432e1a4f90b7f12b11acb66723ed</id>
<content type='text'>
Commit 9b064fc3f95a8e44e929fdf4d6037334ea03d15b (new helper:
compat_user_stack_pointer()) introduces a call to current_pt_regs()
which is defined in linux/ptrace.h, not currently included asm/compat.h.

Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
</feed>
