linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* livelock with KASAN_SW_TAGS
@ 2019-02-14  3:32 Qian Cai
  2019-02-14 16:35 ` Will Deacon
  0 siblings, 1 reply; 10+ messages in thread
From: Qian Cai @ 2019-02-14  3:32 UTC (permalink / raw)
  To: Andrey Konovalov
  Cc: aryabinin, Will Deacon, Linux ARM, kasan-dev, Catalin Marinas

Running LTP msgstress03 [1] triggers endless soft lockups below after a few
minutes on a ThunderX2 server. It works fine with KASAN_GENERIC and finish the
test in roughly 11 minutes.

[1]
https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/ipc/msgstress/msgstress03.c

# ./scripts/faddr2line vmlinux _raw_spin_unlock_irqrestore+0x44/0xac
_raw_spin_unlock_irqrestore+0x44/0xac:
arch_local_irq_restore at arch/arm64/include/asm/irqflags.h:88
(inlined by) __raw_spin_unlock_irqrestore at include/linux/spinlock_api_smp.h:160
(inlined by) _raw_spin_unlock_irqrestore at kernel/locking/spinlock.c:184

This code:

	asm volatile(
		"msr	daif, %0
	:
	: "r" (flags)
	: "memory");

[  545.622261] watchdog: BUG: soft lockup - CPU#12 stuck for 23s!
[kworker/12:1:1439]
[  545.629847] Modules linked in: thunderx2_pmu ip_tables xfs libcrc32c sd_mod
ahci libahci mlx5_core libata dm_mirror dm_region_hash dm_log dm_mod efivarfs
[  545.643692] CPU: 12 PID: 1439 Comm: kworker/12:1 Tainted: G        W
5.0.0-rc6+ #44
[  545.652082] Hardware name: HPE Apollo 70             /C01_APACHE_MB         ,
BIOS L50_5.13_1.0.6 07/10/2018
[  545.661947] Workqueue: events free_obj_work
[  545.666173] pstate: 60400009 (nZCv daif +PAN -UAO)
[  545.670981] pc : _raw_spin_unlock_irqrestore+0x44/0xac
[  545.676166] lr : _raw_spin_unlock_irqrestore+0x38/0xac
[  545.681389] sp : 30ff80098de3fa70
[  545.684724] x29: 30ff80098de3fa90 x28: 00000000000044c0
[  545.690048] x27: 0000000000000001 x26: 8aff808ba9f844d0
[  545.695380] x25: 0000000000000001 x24: 0000000000000001
[  545.700705] x23: 0000000000000000 x22: 62ff808b7d00df00
[  545.706038] x21: 62ff808b7d00df00 x20: 0000000000000000
[  545.711366] x19: ffff1000105d6ac0 x18: ffff1000148a5538
[  545.716720] x17: 000000000000001b x16: 00000000000000ff
[  545.722040] x15: ffff1000148a5000 x14: 000000000000004c
[  545.727358] x13: 0000000000000001 x12: efff100000000000
[  545.732678] x11: 0000000000000002 x10: 00000000000000ff
[  545.738034] x9 : 00000000ffffffff x8 : 4cff800832347840
[  545.743354] x7 : bbbbbbbbbbbbbbbb x6 : 0000000000000008
[  545.748711] x5 : 000000000000005a x4 : 0000000000000000
[  545.754041] x3 : 30ff80098de3fa04 x2 : 0000000000000003
[  545.759422] x1 : 62ff808b7d00df18 x0 : 4cff800832347850
[  545.764761] Call trace:
[  545.767225]  _raw_spin_unlock_irqrestore+0x44/0xac
[  545.772027]  free_debug_processing+0x308/0x410
[  545.776489]  kmem_cache_free+0x604/0x9f0
[  545.780442]  free_obj_work+0x92c/0xa44
[  545.784241]  process_one_work+0x894/0x1280
[  545.788349]  worker_thread+0x684/0xa1c
[  545.792122]  kthread+0x2cc/0x2e8
[  545.795367]  ret_from_fork+0x10/0x18

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-02-19 19:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14  3:32 livelock with KASAN_SW_TAGS Qian Cai
2019-02-14 16:35 ` Will Deacon
2019-02-14 16:50   ` Qian Cai
2019-02-14 18:01     ` Will Deacon
2019-02-15  4:04       ` Qian Cai
2019-02-15 14:23         ` Will Deacon
2019-02-15 14:26           ` Will Deacon
2019-02-19 17:56           ` Andrey Konovalov
     [not found]             ` <1550601754.6911.41.camel@lca.pw>
2019-02-19 18:56               ` soft lockups with SLAB_CONSISTENCY_CHECKS + KASAN_SW_TAGS (was: livelock with KASAN_SW_TAGS) Andrey Konovalov
2019-02-19 19:08                 ` Qian Cai

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).