syzbot


KASAN: null-ptr-deref Read in nsim_dev_trap_report_work

Status: auto-obsoleted due to no activity on 2023/09/21 07:12
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+f9b37508c6a44a2b72b6@syzkaller.appspotmail.com
First crash: 659d, last: 659d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] KASAN: null-ptr-deref Read in nsim_dev_trap_report_work 0 (1) 2023/06/19 05:16

Sample crash report:
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:68 [inline]
BUG: KASAN: null-ptr-deref in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
BUG: KASAN: null-ptr-deref in netif_running include/linux/netdevice.h:3619 [inline]
BUG: KASAN: null-ptr-deref in nsim_dev_trap_report_work+0x117/0xc80 drivers/net/netdevsim/dev.c:850
Read of size 8 at addr 0000000000000038 by task kworker/1:2/29478

CPU: 1 PID: 29478 Comm: kworker/1:2 Not tainted 6.4.0-rc5-syzkaller-01182-g3a2cb45ca0cc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Workqueue: events nsim_dev_trap_report_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
 print_report mm/kasan/report.c:465 [inline]
 kasan_report+0xec/0x130 mm/kasan/report.c:572
 check_region_inline mm/kasan/generic.c:181 [inline]
 kasan_check_range+0x141/0x190 mm/kasan/generic.c:187
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 netif_running include/linux/netdevice.h:3619 [inline]
 nsim_dev_trap_report_work+0x117/0xc80 drivers/net/netdevsim/dev.c:850
 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/13 07:12 net-next 3a2cb45ca0cc 749afb64 .config console log report info ci-upstream-net-kasan-gce KASAN: null-ptr-deref Read in nsim_dev_trap_report_work
* Struck through repros no longer work on HEAD.