Thread (6 messages) 6 messages, 4 authors, 2020-12-01

Re: [External] Re: BUG: KASAN: null-ptr-deref in workingset_eviction+0xf2/0x1e0

From: Muchun Song <hidden>
Date: 2020-12-01 09:22:16
Also in: linux-mm, linux-next

On Tue, Dec 1, 2020 at 5:09 PM Naresh Kamboju [off-list ref] wrote:
Hi Alex,

On Tue, 1 Dec 2020 at 13:14, Alex Shi [off-list ref] wrote:
quoted


在 2020/12/1 上午3:52, Naresh Kamboju 写道:
quoted
Crash log:
-----------
ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg1
[  285.862123] ==================================================================
[  285.863025] BUG: KASAN: null-ptr-deref in workingset_eviction+0xf2/0x1e0
[  285.863025] Read of size 4 at addr 00000000000000c8 by task kswapd0/245
Hi Naresh,

Good to know you again. :)
Same here :)
quoted
Would you like to use command to check whichh line cause the panic:

scripts/faddr2line vmlinux workingset_eviction+0xf2/0x1e0
scripts/faddr2line vmlinux workingset_eviction+0xf2/0x1e0
workingset_eviction+0xf2/0x1e0:
workingset_eviction at ??:?


vmlinux and system.map files available in this location,
https://builds.tuxbuild.com/1l0FDtgxYSNunuG5ERIXtvPjZ7R/
quoted
I can't reproduce it. and my gcc version mismatch with yours.
Please run below easy steps to reproduce.
you may install docker and tuxmake.

Please share if you have any debug patch or proposed fix patch,
I would be happy to test.
This is the fix patch. Thanks.

https://lore.kernel.org/linux-mm/20201130132345.GJ17338-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org/T/#m963f10e3e7f588156432131019136d53b7178bac
Steps to reproduce:
--------------------
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.

# tuxmake --runtime docker --target-arch x86_64 --toolchain gcc-9 \
--kconfig defconfig \
--kconfig-add https://builds.tuxbuild.com/1l0FDtgxYSNunuG5ERIXtvPjZ7R/config

# run LTP
# cd /opt/ltp
# ./runltp -s ioctl_sg01
# you see below crash

- Naresh


-- 
Yours,
Muchun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help