================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:72 [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 ida_free+0x218/0x2d0 lib/idr.c:511 Read of size 8 at addr 0000000000000000 by task syz-executor723/5593 CPU: 1 PID: 5593 Comm: syz-executor723 Not tainted 6.3.0-rc3-syzkaller-00322-g4bdec23f971b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_report mm/kasan/report.c:433 [inline] kasan_report+0xec/0x130 mm/kasan/report.c:536 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:72 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] ida_free+0x218/0x2d0 lib/idr.c:511 mnt_release_group_id fs/namespace.c:160 [inline] cleanup_group_ids+0x178/0x1e0 fs/namespace.c:2093 do_mount_setattr fs/namespace.c:4188 [inline] __do_sys_mount_setattr+0x1017/0x1560 fs/namespace.c:4375 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4b0d0a7919 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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:00007f4b0d038318 EFLAGS: 00000246 ORIG_RAX: 00000000000001ba RAX: ffffffffffffffda RBX: 00007f4b0d12f3f8 RCX: 00007f4b0d0a7919 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f4b0d12f3f0 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0030656c69662f2e R13: 00007ffd73d3c3af R14: 00007f4b0d038400 R15: 0000000000022000 ==================================================================