bisecting fixing commit since 106fa147d3daa58d2c1ae5f41a29d07036fe7d0a building syzkaller on 7751efd04aebb07bc82b5c0e8eeaca07be1ae112 testing commit 106fa147d3daa58d2c1ae5f41a29d07036fe7d0a with gcc (GCC) 8.1.0 kernel signature: 5b0237b3346c8a54ac07e9851dbb2ba6ee60fcb841a30925af875eb39639f03f all runs: crashed: KASAN: null-ptr-deref Read in drm_dp_aux_dev_get_by_minor testing current HEAD 961f830af0658ef5ef8a7708786d634a6115f16b testing commit 961f830af0658ef5ef8a7708786d634a6115f16b with gcc (GCC) 8.1.0 kernel signature: dc21a8e4b8da2477885c603b378b6ac6996027e22731a06ba727b7fd3f67cb5f all runs: crashed: KASAN: null-ptr-deref Read in drm_dp_aux_dev_get_by_minor revisions tested: 2, total time: 26m28.526591251s (build: 19m22.416419609s, test: 5m53.764427747s) the crash still happens on HEAD commit msg: Linux 4.19.138 crash: KASAN: null-ptr-deref Read in drm_dp_aux_dev_get_by_minor audit: type=1800 audit(1596791174.183:11): pid=7807 uid=0 auid=0 ses=8 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=15746 res=0 ================================================================== BUG: KASAN: null-ptr-deref in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: null-ptr-deref in refcount_add_not_zero arch/x86/include/asm/refcount.h:85 [inline] BUG: KASAN: null-ptr-deref in refcount_inc_not_zero arch/x86/include/asm/refcount.h:107 [inline] BUG: KASAN: null-ptr-deref in kref_get_unless_zero include/linux/kref.h:116 [inline] BUG: KASAN: null-ptr-deref in drm_dp_aux_dev_get_by_minor+0x98/0x1b0 drivers/gpu/drm/drm_dp_aux_dev.c:63 Read of size 4 at addr 0000000000000018 by task syz-executor.5/7807 CPU: 0 PID: 7807 Comm: syz-executor.5 Not tainted 4.19.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x22a lib/dump_stack.c:118 kasan_report_error mm/kasan/report.c:352 [inline] kasan_report.cold.7+0x6d/0x307 mm/kasan/report.c:412 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 kasan_check_read+0x11/0x20 mm/kasan/kasan.c:272 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] refcount_add_not_zero arch/x86/include/asm/refcount.h:85 [inline] refcount_inc_not_zero arch/x86/include/asm/refcount.h:107 [inline] kref_get_unless_zero include/linux/kref.h:116 [inline] drm_dp_aux_dev_get_by_minor+0x98/0x1b0 drivers/gpu/drm/drm_dp_aux_dev.c:63 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 auxdev_open+0x49/0xa0 drivers/gpu/drm/drm_dp_aux_dev.c:131 chrdev_open+0x1ed/0x5c0 fs/char_dev.c:423 do_dentry_open+0x3f1/0x1010 fs/open.c:796 vfs_open+0x9a/0xc0 fs/open.c:902 do_last fs/namei.c:3421 [inline] path_openat+0x905/0x2870 fs/namei.c:3537 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! do_filp_open+0x177/0x250 fs/namei.c:3567 IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready batman_adv: batadv0: Interface activated: batadv_slave_0 file_open_name+0x13c/0x1a0 fs/open.c:1032 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! acct_on kernel/acct.c:207 [inline] __do_sys_acct kernel/acct.c:286 [inline] __se_sys_acct+0xca/0x7d0 kernel/acct.c:273 __x64_sys_acct+0x2c/0x40 kernel/acct.c:273 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45cae9 Code: 8d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007feafc0edc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3 RAX: ffffffffffffffda RBX: 00000000004d9600 RCX: 000000000045cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000480 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000001c R14: 00000000004c2e88 R15: 00007feafc0ee6d4 ==================================================================