linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] parisc updates for v3.14
@ 2014-02-01 20:23 Helge Deller
  2014-02-01 21:06 ` Richard Weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Helge Deller @ 2014-02-01 20:23 UTC (permalink / raw)
  To: Linus Torvalds, linux-kernel, linux-parisc, James Bottomley

Hi Linus,

please pull the latest updates for the parisc architecture from:

  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-for-3.14

The three major changes in this patchset is a implementation for flexible
userspace memory maps, cache-flushing fixes (again), and a long-discussed ABI
change to make EWOULDBLOCK the same value as EAGAIN.

parisc has been the only platform where we had EWOULDBLOCK != EAGAIN to keep
HP-UX compatibility.  Since we will probably never implement full HP-UX
support, we prefer to drop this compatibility to make it easier for us with
Linux userspace programs which mostly never checked for both values.  We don't
expect major fall-outs because of this change, and if we face some, we will
simply rebuild the necessary applications in the debian archives.

The change to fs/exec.c only touches code which affects parisc since it's
inside a #ifdef CONFIG_STACK_GROWSUP section (and parisc is the only platform
where the stack grows upwards).

Thanks,
Helge

----------------------------------------------------------------
Guy Martin (1):
      parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc

Helge Deller (5):
      parisc/sti_console: prefer Linux fonts over built-in ROM fonts
      parisc: fix cache-flushing
      parisc: add flexible mmap memory layout support
      parisc: wire up sched_setattr and sched_getattr
      parisc: convert uapi/asm/stat.h to use native types only

 arch/parisc/include/asm/cacheflush.h  |   2 -
 arch/parisc/include/asm/elf.h         |   7 +
 arch/parisc/include/asm/page.h        |   3 +-
 arch/parisc/include/asm/pgtable.h     |   1 +
 arch/parisc/include/asm/processor.h   |   2 +
 arch/parisc/include/asm/thread_info.h |  10 ++
 arch/parisc/include/uapi/asm/errno.h  |   2 +-
 arch/parisc/include/uapi/asm/stat.h   |  40 +++---
 arch/parisc/include/uapi/asm/unistd.h |   4 +-
 arch/parisc/kernel/cache.c            |  14 ++
 arch/parisc/kernel/process.c          |  21 ++-
 arch/parisc/kernel/sys_parisc.c       | 238 ++++++++++++++++++++++++++++------
 arch/parisc/kernel/syscall_table.S    |   2 +
 drivers/video/console/sticore.c       |   2 +-
 fs/exec.c                             |   3 +
 lib/fonts/Kconfig                     |   6 +-
 16 files changed, 284 insertions(+), 73 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [GIT PULL] parisc updates for v3.14
  2014-02-01 20:23 [GIT PULL] parisc updates for v3.14 Helge Deller
@ 2014-02-01 21:06 ` Richard Weinberger
  2014-02-02 11:15   ` Helge Deller
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Weinberger @ 2014-02-01 21:06 UTC (permalink / raw)
  To: Helge Deller; +Cc: Linus Torvalds, LKML, linux-parisc, James Bottomley

On Sat, Feb 1, 2014 at 9:23 PM, Helge Deller <deller@gmx.de> wrote:
> Hi Linus,
>
> please pull the latest updates for the parisc architecture from:
>
>   git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-for-3.14
>
> The three major changes in this patchset is a implementation for flexible
> userspace memory maps, cache-flushing fixes (again), and a long-discussed ABI
> change to make EWOULDBLOCK the same value as EAGAIN.
>
> parisc has been the only platform where we had EWOULDBLOCK != EAGAIN to keep
> HP-UX compatibility.  Since we will probably never implement full HP-UX
> support, we prefer to drop this compatibility to make it easier for us with
> Linux userspace programs which mostly never checked for both values.  We don't
> expect major fall-outs because of this change, and if we face some, we will
> simply rebuild the necessary applications in the debian archives.
>
> The change to fs/exec.c only touches code which affects parisc since it's
> inside a #ifdef CONFIG_STACK_GROWSUP section (and parisc is the only platform
> where the stack grows upwards).

What about metag?

> Thanks,
> Helge
>
> ----------------------------------------------------------------
> Guy Martin (1):
>       parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc
>
> Helge Deller (5):
>       parisc/sti_console: prefer Linux fonts over built-in ROM fonts
>       parisc: fix cache-flushing
>       parisc: add flexible mmap memory layout support
>       parisc: wire up sched_setattr and sched_getattr
>       parisc: convert uapi/asm/stat.h to use native types only
>
>  arch/parisc/include/asm/cacheflush.h  |   2 -
>  arch/parisc/include/asm/elf.h         |   7 +
>  arch/parisc/include/asm/page.h        |   3 +-
>  arch/parisc/include/asm/pgtable.h     |   1 +
>  arch/parisc/include/asm/processor.h   |   2 +
>  arch/parisc/include/asm/thread_info.h |  10 ++
>  arch/parisc/include/uapi/asm/errno.h  |   2 +-
>  arch/parisc/include/uapi/asm/stat.h   |  40 +++---
>  arch/parisc/include/uapi/asm/unistd.h |   4 +-
>  arch/parisc/kernel/cache.c            |  14 ++
>  arch/parisc/kernel/process.c          |  21 ++-
>  arch/parisc/kernel/sys_parisc.c       | 238 ++++++++++++++++++++++++++++------
>  arch/parisc/kernel/syscall_table.S    |   2 +
>  drivers/video/console/sticore.c       |   2 +-
>  fs/exec.c                             |   3 +
>  lib/fonts/Kconfig                     |   6 +-
>  16 files changed, 284 insertions(+), 73 deletions(-)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
Thanks,
//richard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [GIT PULL] parisc updates for v3.14
  2014-02-01 21:06 ` Richard Weinberger
@ 2014-02-02 11:15   ` Helge Deller
  2014-02-02 19:28     ` Linus Torvalds
  0 siblings, 1 reply; 6+ messages in thread
From: Helge Deller @ 2014-02-02 11:15 UTC (permalink / raw)
  To: Richard Weinberger, Linux Kernel, linux-parisc, James Bottomley,
	James Hogan, linux-metag
  Cc: Helge Deller, Linus Torvalds

* Richard Weinberger <richard.weinberger@gmail.com>:
> On Sat, Feb 1, 2014 at 9:23 PM, Helge Deller <deller@gmx.de> wrote:
> > please pull the latest updates for the parisc architecture from:
> >
> >   git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-for-3.14
> >
> > The three major changes in this patchset is a implementation for flexible
> > userspace memory maps, ....
> >
> > The change to fs/exec.c only touches code which affects parisc since it's
> > inside a #ifdef CONFIG_STACK_GROWSUP section (and parisc is the only platform
> > where the stack grows upwards).
> 
> What about metag?

Great! I didn't know that we now have another platform where the stack
grows upwards! Now we are not alone in this regard!

Anyway, the suggested & untested patch below should fix the metag arch
to cope which my changes to fs/exec.c  (unless the metag people want to
implement proper stack randomization too).  Either I can push it via the
parisc tree, or you can take it via the metag tree. Please let me know.


> > Helge Deller (5):
> >       parisc: add flexible mmap memory layout support
> > ...
> >  fs/exec.c                             |   3 +
(see:
http://git.kernel.org/cgit/linux/kernel/git/deller/parisc-linux.git/commit/?h=for-next&id=13de8ec38997357c9865a36a587439d9c5678932 )



[PATCH] metag: define STACK_RND_MASK as -1
 
Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/arch/metag/include/asm/elf.h b/arch/metag/include/asm/elf.h
index d2baf69..089e37a 100644
--- a/arch/metag/include/asm/elf.h
+++ b/arch/metag/include/asm/elf.h
@@ -100,7 +100,7 @@ typedef unsigned long elf_fpregset_t;
 
 #define ELF_PLATFORM  (NULL)
 
-#define STACK_RND_MASK (0)
+#define STACK_RND_MASK (-1)
 
 #ifdef CONFIG_METAG_USER_TCM
 



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [GIT PULL] parisc updates for v3.14
  2014-02-02 11:15   ` Helge Deller
@ 2014-02-02 19:28     ` Linus Torvalds
  2014-02-02 20:20       ` [GIT PULL] parisc updates for v3.14 (new pull request) Helge Deller
  0 siblings, 1 reply; 6+ messages in thread
From: Linus Torvalds @ 2014-02-02 19:28 UTC (permalink / raw)
  To: Helge Deller
  Cc: Richard Weinberger, Linux Kernel, Parisc List, James Bottomley,
	James Hogan, linux-metag

On Sun, Feb 2, 2014 at 3:15 AM, Helge Deller <deller@gmx.de> wrote:
>
> Anyway, the suggested & untested patch below should fix the metag arch
> to cope which my changes to fs/exec.c
> ...
> -#define STACK_RND_MASK (0)
> +#define STACK_RND_MASK (-1)

I don't think that works. That completely breaks randomize_stack_top().

So I'm not going to pull the parisc tree, this needs to be resolved sanely.

In fact, I think that change to fs/exec.c is just completely broken:

+       /* add some more stack size for stack randomization */
+       stack_base += STACK_RND_MASK + 1;

and that "+1" just doesn't make sense, and fundamentally breaks STACK_RND_MASK.

It also seems to be entirely pointless, since the PAGE_ALIGN() that
comes right afterwards will effectively do it anyway.

So NAK on that whole fs/exec.c change. Afaik it's just wrong, and it's stupid.

                  Linus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [GIT PULL] parisc updates for v3.14 (new pull request)
  2014-02-02 19:28     ` Linus Torvalds
@ 2014-02-02 20:20       ` Helge Deller
  0 siblings, 0 replies; 6+ messages in thread
From: Helge Deller @ 2014-02-02 20:20 UTC (permalink / raw)
  To: Linus Torvalds, linux-kernel, linux-parisc, James Bottomley
  Cc: Helge Deller, Richard Weinberger, James Hogan, linux-metag

Hi Linus,

* Linus Torvalds <torvalds@linux-foundation.org>:
> On Sun, Feb 2, 2014 at 3:15 AM, Helge Deller <deller@gmx.de> wrote:
> >
> > Anyway, the suggested & untested patch below should fix the metag arch
> > to cope which my changes to fs/exec.c
> > ...
> > -#define STACK_RND_MASK (0)
> > +#define STACK_RND_MASK (-1)
> 
> I don't think that works. That completely breaks randomize_stack_top().
> So I'm not going to pull the parisc tree, this needs to be resolved sanely.
> In fact, I think that change to fs/exec.c is just completely broken:
> +       /* add some more stack size for stack randomization */
> +       stack_base += STACK_RND_MASK + 1;
> and that "+1" just doesn't make sense, and fundamentally breaks STACK_RND_MASK.
> It also seems to be entirely pointless, since the PAGE_ALIGN() that
> comes right afterwards will effectively do it anyway.
> 
> So NAK on that whole fs/exec.c change. Afaik it's just wrong, and it's stupid.

You are completely right - I have no idea what I was thinking.
I have removed completely the changes to fs/exec.c, built up a new
tree for you to pull and boot-tested it with 32- and 64bit parisc kernels.

Can you please consider pulling this new tree?
The full request follows here:
-------

Hi Linus,

please pull the latest updates for the parisc architecture from:

  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.14

The three major changes in this patchset is a implementation for
flexible userspace memory maps, cache-flushing fixes (again), and a
long-discussed ABI change to make EWOULDBLOCK the same value as EAGAIN.

parisc has been the only platform where we had EWOULDBLOCK != EAGAIN to
keep HP-UX compatibility.  Since we will probably never implement full
HP-UX support, we prefer to drop this compatibility to make it easier
for us with Linux userspace programs which mostly never checked for both
values.  We don't expect major fall-outs because of this change, and if
we face some, we will simply rebuild the necessary applications in the
debian archives.

Thanks,
Helge

----------------------------------------------------------------
Guy Martin (1):
      parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc

Helge Deller (5):
      parisc/sti_console: prefer Linux fonts over built-in ROM fonts
      parisc: fix cache-flushing
      parisc: wire up sched_setattr and sched_getattr
      parisc: convert uapi/asm/stat.h to use native types only
      parisc: add flexible mmap memory layout support

 arch/parisc/include/asm/cacheflush.h  |   2 -
 arch/parisc/include/asm/elf.h         |   4 +
 arch/parisc/include/asm/page.h        |   3 +-
 arch/parisc/include/asm/pgtable.h     |   1 +
 arch/parisc/include/asm/processor.h   |   2 +
 arch/parisc/include/asm/thread_info.h |  10 ++
 arch/parisc/include/uapi/asm/errno.h  |   2 +-
 arch/parisc/include/uapi/asm/stat.h   |  40 +++---
 arch/parisc/include/uapi/asm/unistd.h |   4 +-
 arch/parisc/kernel/cache.c            |  14 ++
 arch/parisc/kernel/process.c          |  21 ++-
 arch/parisc/kernel/sys_parisc.c       | 238 ++++++++++++++++++++++++++++------
 arch/parisc/kernel/syscall_table.S    |   2 +
 drivers/video/console/sticore.c       |   2 +-
 lib/fonts/Kconfig                     |   6 +-
 15 files changed, 278 insertions(+), 73 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [GIT PULL] parisc updates for v3.14
@ 2014-03-23 21:02 Helge Deller
  0 siblings, 0 replies; 6+ messages in thread
From: Helge Deller @ 2014-03-23 21:02 UTC (permalink / raw)
  To: Linus Torvalds, linux-kernel, linux-parisc, James Bottomley

Hi Linus,

please consider pulling some late patches for the parisc architecture from:

  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.14

This patchset 
- reverts parts of my latest patch regarding font selection with STICON console,
- wires up the utimes() syscall for parisc, and
- removes the unused parisc tmpalias code and unnecessary arch*relax defines

Thanks,
Helge

----------------------------------------------------------------
Helge Deller (2):
      partly revert commit 8a10bc9: parisc/sti_console: prefer Linux fonts over built-in ROM fonts
      parisc: wire up sys_utimes

John David Anglin (1):
      parisc: Remove unused CONFIG_PARISC_TMPALIAS code

Will Deacon (1):
      parisc: locks: remove redundant arch_*_relax operations

 arch/parisc/include/asm/page.h        | 11 ------
 arch/parisc/include/asm/spinlock.h    |  4 ---
 arch/parisc/include/uapi/asm/unistd.h |  4 +--
 arch/parisc/kernel/cache.c            | 64 -----------------------------------
 arch/parisc/kernel/syscall_table.S    |  1 +
 lib/fonts/Kconfig                     |  6 ++--
 6 files changed, 6 insertions(+), 84 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-23 21:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-01 20:23 [GIT PULL] parisc updates for v3.14 Helge Deller
2014-02-01 21:06 ` Richard Weinberger
2014-02-02 11:15   ` Helge Deller
2014-02-02 19:28     ` Linus Torvalds
2014-02-02 20:20       ` [GIT PULL] parisc updates for v3.14 (new pull request) Helge Deller
2014-03-23 21:02 [GIT PULL] parisc updates for v3.14 Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).