Re: [PATCH] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-27 Thread YueHaibing
On 2019/2/28 2:14, David Miller wrote: > From: Yue Haibing > Date: Wed, 27 Feb 2019 22:59:00 +0800 > >> @@ -1925,7 +1925,10 @@ static int __init atalk_init(void) >> >> register_netdevice_notifier(&ddp_notifier); >> aarp_proto_init(); >> -atalk_proc_init(); >> +rc = atalk_proc_

Re: [PATCH] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-27 Thread David Miller
From: Yue Haibing Date: Wed, 27 Feb 2019 22:59:00 +0800 > @@ -1925,7 +1925,10 @@ static int __init atalk_init(void) > > register_netdevice_notifier(&ddp_notifier); > aarp_proto_init(); > - atalk_proc_init(); > + rc = atalk_proc_init(); > + if (rc) > + goto ou

[PATCH] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-27 Thread Yue Haibing
From: YueHaibing KASAN report this: BUG: KASAN: use-after-free in pde_subdir_find+0x12d/0x150 fs/proc/generic.c:71 Read of size 8 at addr 8881f41fe5b0 by task syz-executor.0/2806 CPU: 0 PID: 2806 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX + PIIX,