No description
Find a file
Zhengchao Shao ca85cc4e48 net: lapbether: fix issue of invalid opcode in lapbeth_open()
[ Upstream commit 3faf7e14ec ]

If lapb_register() failed when lapb device goes to up for the first time,
the NAPI is not disabled. As a result, the invalid opcode issue is
reported when the lapb device goes to up for the second time.

The stack info is as follows:
[ 1958.311422][T11356] kernel BUG at net/core/dev.c:6442!
[ 1958.312206][T11356] invalid opcode: 0000 [#1] PREEMPT SMP KASAN
[ 1958.315979][T11356] RIP: 0010:napi_enable+0x16a/0x1f0
[ 1958.332310][T11356] Call Trace:
[ 1958.332817][T11356]  <TASK>
[ 1958.336135][T11356]  lapbeth_open+0x18/0x90
[ 1958.337446][T11356]  __dev_open+0x258/0x490
[ 1958.341672][T11356]  __dev_change_flags+0x4d4/0x6a0
[ 1958.345325][T11356]  dev_change_flags+0x93/0x160
[ 1958.346027][T11356]  devinet_ioctl+0x1276/0x1bf0
[ 1958.346738][T11356]  inet_ioctl+0x1c8/0x2d0
[ 1958.349638][T11356]  sock_ioctl+0x5d1/0x750
[ 1958.356059][T11356]  __x64_sys_ioctl+0x3ec/0x1790
[ 1958.365594][T11356]  do_syscall_64+0x35/0x80
[ 1958.366239][T11356]  entry_SYSCALL_64_after_hwframe+0x46/0xb0
[ 1958.377381][T11356]  </TASK>

Fixes: 514e1150da ("net: x25: Queue received packets in the drivers instead of per-CPU queues")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221107011445.207372-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 17:56:10 +08:00
arch KVM: s390: pv: don't allow userspace to set the clock under PV 2023-04-19 17:56:08 +08:00
block block, bfq: protect 'bfqd->queued' by 'bfqd->lock' 2023-04-19 17:56:02 +08:00
certs
crypto
Documentation KVM: s390: pv: don't allow userspace to set the clock under PV 2023-04-19 17:56:08 +08:00
drivers net: lapbether: fix issue of invalid opcode in lapbeth_open() 2023-04-19 17:56:10 +08:00
fs fuse: fix readdir cache race 2023-04-19 17:56:06 +08:00
include capabilities: fix undefined behavior in bit shift for CAP_TO_MASK 2023-04-19 17:56:08 +08:00
init
ipc
kernel bpf: Fix wrong reg type conversion in release_reference() 2023-04-19 17:56:07 +08:00
lib lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to DWARF5 2023-04-19 17:55:38 +08:00
LICENSES
mm mm/hugetlb: fix races when looking up a CONT-PTE/PMD size hugetlb page 2023-04-19 17:55:55 +08:00
net tipc: fix the msg->req tlv len check in tipc_nl_compat_name_table_dump_header 2023-04-19 17:56:09 +08:00
samples
scripts
security capabilities: fix potential memleak on error path from vfs_getxattr_alloc() 2023-04-19 17:56:03 +08:00
sound ALSA: aoa: Fix I2S device accounting 2023-04-19 17:55:53 +08:00
tools bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE 2023-04-19 17:56:07 +08:00
usr
virt kvm: Add support for arch compat vm ioctls 2023-04-19 17:55:40 +08:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.15.78 2023-04-19 17:56:06 +08:00
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.