binder: 10473:10474 ioctl d0009411 0 returned -22 ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:1309 [inline] BUG: KASAN: null-ptr-deref in rwsem_read_trylock kernel/locking/rwsem.c:238 [inline] BUG: KASAN: null-ptr-deref in __down_read_common kernel/locking/rwsem.c:1251 [inline] BUG: KASAN: null-ptr-deref in __down_read kernel/locking/rwsem.c:1261 [inline] BUG: KASAN: null-ptr-deref in down_read+0xa5/0x450 kernel/locking/rwsem.c:1501 Write of size 8 at addr 00000000000000e8 by task syz-executor.3/10474 CPU: 0 PID: 10474 Comm: syz-executor.3 Not tainted 6.0.0-rc3-next-20220901-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:1309 [inline] rwsem_read_trylock kernel/locking/rwsem.c:238 [inline] __down_read_common kernel/locking/rwsem.c:1251 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0xa5/0x450 kernel/locking/rwsem.c:1501 mmap_read_lock include/linux/mmap_lock.h:117 [inline] binder_alloc_print_pages+0x65/0x3f0 drivers/android/binder_alloc.c:936 print_binder_proc_stats drivers/android/binder.c:6301 [inline] stats_show+0x417/0x620 drivers/android/binder.c:6364 seq_read_iter+0x4f5/0x1280 fs/seq_file.c:230 seq_read+0x16d/0x210 fs/seq_file.c:162 full_proxy_read+0x118/0x180 fs/debugfs/file.c:231 vfs_read+0x257/0x930 fs/read_write.c:468 ksys_read+0x127/0x250 fs/read_write.c:607 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f15df089409 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f15e0197168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f15df19bf80 RCX: 00007f15df089409 RDX: 00000000000000d9 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f15df0e4367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff4330eb8f R14: 00007f15e0197300 R15: 0000000000022000 ==================================================================