lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 12 Apr 2010 18:23:25 +0200
From:	Stefan Agner <stefan@...er.ch>
To:	linux-rt-users@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org
Subject: I attached a test module to reproduce this bug.  Does I miss
	something in my code or is there a bug?

Unable to handle kernel paging request at kthread_should_stop

Hello,

In a kernel module which used to work on previous kernel versions I tried to
start a kernel thread (kthread). In the threads mainloop I poll the method
kthread_should_stop which seems to fail.

[   65.531778] BUG: unable to handle kernel paging request at fffffffc
[   65.532011] IP: [<c103bf7c>] kthread_should_stop+0x10/0x14
[   65.532011] *pde = 01551067 *pte = 00000000
[   65.532011] Oops: 0000 [#1] SMP
[   65.532011] last sysfs file: /sys/devices/virtual/dmi/id/board_asset_tag
[   65.532011] Modules linked in: testmod [last unloaded: scsi_wait_scan]
[   65.532011]
[   65.532011] Pid: 3392, comm: test-module Not tainted 2.6.33.2-rt13 #1 E243/
E243
[   65.532011] EIP: 0060:[<c103bf7c>] EFLAGS: 00010206 CPU: 0
[   65.532011] EIP is at kthread_should_stop+0x10/0x14
[   65.532011] EAX: 00000000 EBX: dd9e8430 ECX: 00006161 EDX: 00000286
[   65.532011] ESI: 00000000 EDI: e00d8000 EBP: dc8e1fbc ESP: dc8e1fb0
[   65.532011]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 preempt:00000000
[   65.532011] Process test-module (pid: 3392, ti=dc8e0000 task=dd9e8430
task.ti=dc8e0000)
[   65.535828] Stack:
[   65.535828]  e00d808c 00000000 d3945f50 dc8e1fe4 c103bfe1 00000000 00000001
00000101
[   65.535828] <0> dc8e1fd0 dc8e1fd0 00000000 c103bf80 d3945f44 00000000
c1002e36 00000000
[   65.535828] <0> 00000000 00000000 00000000 00000000
[   65.535828] Call Trace:
[   65.535828]  [<e00d808c>] ? runloop+0x8c/0xa4 [testmod]
[   65.535828]  [<c103bfe1>] ? kthread+0x61/0x66
[   65.535828]  [<c103bf80>] ? kthread+0x0/0x66
[   65.535828]  [<c1002e36>] ? kernel_thread_helper+0x6/0x10
[   65.535828] Code: 8b 47 18 01 46 10 8b 55 f0 8d 47 08 e8 b1 a9 32  
00 8d 65 f4
5b 5e 5f 5d c3 90 90 55 64 a1 7c 34 54 c1 8b 80 8c 01 00 00 89 e5 5d  
<8b> 40 fc
c3 55 ba a4 f6 59 c1 89 e5 57 56 53 89 c3 83 ec 14 8b
[   65.535828] EIP: [<c103bf7c>] kthread_should_stop+0x10/0x14 SS:ESP
0068:dc8e1fb0
[   65.535828] CR2: 00000000fffffffc
[   65.535828] ---[ end trace 6b0fc9b05d23e589 ]---

My platform is an Intel Atom CPU N270.
# uname -a
Linux systemmanager 2.6.33.2-rt13 #1 SMP Sat Apr 10 00:12:20 CEST 2010 i686
GNU/Linux

I attached a test module to reproduce this bug.  Does I miss something in my
code or is there a bug?

Thanks for any help

-- 
Stefan Agner


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

View attachment "kthread-test.c" of type "text/x-csrc" (1555 bytes)

Download attachment "Makefile" of type "application/octet-stream" (208 bytes)

Download attachment ".config" of type "application/octet-stream" (17141 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ