Re: test_kmod: BUG on module removal

From: Luis Chamberlain
Date: Sat Nov 24 2018 - 00:06:48 EST


On Sat, Oct 13, 2018 at 10:59:46AM -0700, Randy Dunlap wrote:
> 4.19-rc7, on x86_64:
>
> modprobe test_kmod; rmmod test_kmod
>
> [ 199.033143] calling test_kmod_init+0x0/0x1000 [test_kmod] @ 1704
> [ 199.034636] misc test_kmod0: interface ready
> [ 199.035468] initcall test_kmod_init+0x0/0x1000 [test_kmod] returned 0 after 1210 usecs
> [ 206.597737] misc test_kmod0: Ending request_module() tests
> [ 206.598698] misc test_kmod0: removing interface
> [ 206.600052] BUG: unable to handle kernel paging request at ffffe150a6032048
> [ 206.601224] PGD 0 P4D 0
> [ 206.601642] Oops: 0000 [#1] PREEMPT SMP PTI
> [ 206.602309] CPU: 3 PID: 1707 Comm: rmmod Not tainted 4.19.0-rc7mod #2
> [ 206.603479] Hardware name: TOSHIBA PORTEGE R835/Portable PC, BIOS Version 4.10 01/08/2013
> [ 206.604899] RIP: 0010:kfree+0x43/0x180

Thanks, I've fixed this, and sent a patch.

Luis