Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #67046

Re: Missing symbol on sh4: "__get_user_unknown"

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.kernel, linux.debian.ports.superh
Subject Re: Missing symbol on sh4: "__get_user_unknown"
Date 2020-05-10 15:30 +0200
Message-ID <A4UbM-7lE-13@gated-at.bofh.it> (permalink)
References <A4Rxg-5HQ-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, 2020-05-10 at 12:38 +0200, John Paul Adrian Glaubitz wrote:
> (Please keep me CC'ed, I'm not subscribed to debian-kernel@)
> 
> Hi!
> 
> src:linux hasn't been building on sh4 in the past for a while now due to objdump
> locking up during the build.
> 
> However, this problem has recently vanished, I assume maybe because the bug was
> fixed in binutils.
> 
> In any case, the kernel package now fails to build due to a missing symbol in the
> Infiniband core driver (see below). A simple workaround is to disable Infiniband
> support which allows me to build the kernel package normally (which I did and
> consequently uploaded).
[...]

__get_user_unknown() is never defined, but will be referenced if the
get_user() macro is invoked with a variable of unsupported size (see
arch/sh/include/asm/uaccess.h).  So my guess is that this module uses
get_user() to read a 64-bit value.  Some 32-bit architectures do now
support this operation but I'm not sure whether they are expected to.

This seems to have been introduced by commit 3a6532c9af1a, and could
probably be fixed by replacing the get_user() with a copy_from_user().

We could disable IB since it doesn't seem that likely to be used on
sh4, although I think the "verbs" layer can be used on top of Ethernet.

Ben.

-- 
Ben Hutchings
Everything should be made as simple as possible, but not simpler.
                                                      - Albert Einstein

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Missing symbol on sh4: "__get_user_unknown" John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2020-05-10 12:40 +0200
  Re: Missing symbol on sh4: "__get_user_unknown" Ben Hutchings <ben@decadent.org.uk> - 2020-05-10 15:30 +0200
    Re: Missing symbol on sh4: "__get_user_unknown" John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2020-05-10 16:00 +0200

csiph-web