net: Revert "net: optimize the sockptr_t for unified kernel/user address spaces"
Christoph Hellwig authored
This reverts commits 6d04fe15 and
a31edb20.

It turns out the idea to share a single pointer for both kernel and user
space address causes various kinds of problems.  So use the slightly less
optimal version that uses an extra bit, but which is guaranteed to be safe
everywhere.

Fixes: 6d04fe15

 ("net: optimize the sockptr_t for unified kernel/user address spaces")
Reported-by: default avatarEric Dumazet <edumazet@google.com>
Reported-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
519a8a6c
Name Last commit Last update
Documentation bpf, doc: Remove references to warning message when using bpf_trace_printk()
LICENSES LICENSES: Rename other to deprecated
arch Merge tag 'mips_5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
block Merge tag 'for-5.9/block-merge-20200804' of git://git.kernel.dk/linux-block
certs .gitignore: add SPDX License Identifier
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
drivers net: phy: fix memory leak in device-create error path
fs Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
include net: Revert "net: optimize the sockptr_t for unified kernel/user address spaces"
init Merge tag 'docs-5.9' of git://git.lwn.net/linux
ipc mmap locking API: use coccinelle to convert mmap_sem rwsem call sites
kernel bpf: Delete repeated words in comments
lib Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
mm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
net net: Revert "net: optimize the sockptr_t for unified kernel/user address spaces"
samples Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
scripts Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
security Merge tag 'Smack-for-5.9' of git://github.com/cschaufler/smack-next
sound Merge tag 'uninit-macro-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
usr usr: Add support for zstd compressed initramfs
virt entry: Provide infrastructure for work before transitioning to guest mode
.clang-format block: add bio_for_each_bvec_all()
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.