Bug#1024149: linux-image-amd64: 32-bit mmap() puts large files at non-random address

2023-01-12 Thread Jakub Wilk

* Salvatore Bonaccorso , 2022-11-19 11:11:
Given you were able to tackle the issue further, can you report the 
issue to upstream


Don't count on me. Sorry!

--
Jakub Wilk



Bug#1027807: linux-image-6.0.0-6-amd64: please put concrete version in /boot/System.map-*

2023-01-03 Thread Jakub Wilk

Package: src:linux
Version: 6.0.12-1
Severity: wishlist

/boot/System.map-6.0.0-6-amd64 reads:

    B The real System.map is in the linux-image--dbg 
package

Could you replace "" with the actual version, so that one could 
pass the package name directly to "apt-get install" without hassle?


--
Jakub Wilk



Bug#1024149: linux-image-amd64: 32-bit mmap() puts large files at non-random address

2022-11-18 Thread Jakub Wilk
I've bisected this; the first bad commit is 1854bc6e24204726 
("mm/readahead: Align file mappings for non-DAX").


--
Jakub Wilk



Bug#1024149: linux-image-amd64: 32-bit mmap() puts large files at non-random address

2022-11-15 Thread Jakub Wilk

Adding forgotten attachment...

--
Jakub Wilk
#include 
#include 
#include 
#include 
#include 

int main(int argc, char **argv)
{
	struct stat st;
	if (fstat(0, ) < 0)
		abort();
	void *p = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0);
	printf("mmap(NULL, %zd, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = %p\n", (size_t) st.st_size, p);
}


Bug#1024149: linux-image-amd64: 32-bit mmap() puts large files at non-random address

2022-11-15 Thread Jakub Wilk
Package: src:linux
Version: 6.0.8-1
Tags: security
Control: affects -1 + libc6

32-bit mmap() puts large (>= 2 MiB) files at the same address every 
time:

$ i686-linux-gnu-gcc -static test-mmap.c -o test-mmap
$ head -c $((2 * 1024 * 1024)) /dev/zero > zeros
$ for i in 1 2 3; do ./test-mmap < zeros; done
mmap(NULL, 2097152, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = 0xf7c0
mmap(NULL, 2097152, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = 0xf7c0
mmap(NULL, 2097152, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = 0xf7c0

In contrast, for smaller files, there's a few bits of entropy in the 
address:

$ head -c $((2 * 1024 * 1024 - 4096)) /dev/zero > zeros
$ for i in 1 2 3; do ./test-mmap < zeros; done
mmap(NULL, 2093056, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = 0xf7d4a000
mmap(NULL, 2093056, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = 0xf7db8000
mmap(NULL, 2093056, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 0, 0) = 0xf7d99000

This weakens ASLR for most(?) programs, because libc.so.6 has recently 
become slightly larger than 2 MiB:

$ wc -c /lib/i386-linux-gnu/libc.so.6
2225200 /lib/i386-linux-gnu/libc.so.6

$ for i in 1 2 3; do cat /proc/self/maps | grep ' r-xp .*/libc'; done
f7c22000-f7d9b000 r-xp 00022000 fd:00 12059068   
/lib/i386-linux-gnu/libc.so.6
f7c22000-f7d9b000 r-xp 00022000 fd:00 12059068   
/lib/i386-linux-gnu/libc.so.6
f7c22000-f7d9b000 r-xp 00022000 fd:00 12059068   
/lib/i386-linux-gnu/libc.so.6

Curiously, not all file systems are affected. I could reproduce the bug 
on ext4, but not on tmpfs or unionfs.


-- Package-specific info:
** Version:
Linux version 6.0.0-4-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 
12.2.0-9) 12.2.0, GNU ld (GNU Binutils for Debian) 2.39) #1 SMP PREEMPT_DYNAMIC 
Debian 6.0.8-1 (2022-11-11)


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
Architecture: i386 (x86_64)
Foreign Architectures: amd64

-- 
Jakub Wilk



Bug#1019660: console-setup: grep: warning: stray \ before #

2022-09-13 Thread Jakub Wilk

Package: console-setup
Version: 1.210
Severity: minor
Control: affects -1 + initramfs-tools

With grep (>= 3.8), I'm getting this warning:

  # setupcon
  grep: warning: stray \ before #


-- System Information:
Architecture: i386

Versions of packages console-setup depends on:
ii  debconf 1.5.79
ii  console-setup-linux 1.210
ii  xkb-data2.35.1-1
ii  keyboard-configuration  1.210

--
Jakub Wilk



Bug#841453: linux-image-4.7.0-1-amd64: can't upgrade to -unsigned: rmdir: failed to remove '/lib/modules/4.7.0-1-amd64': Directory not empty

2016-10-20 Thread Jakub Wilk

Package: linux-image-4.7.0-1-amd64
Version: 4.7.6-1
Severity: serious

I you have linux-image-4.7.0-1-amd64 installed, then upgrading to 
linux-image-4.7.0-1-amd64-unsigned fails:


# apt-get install linux-image-4.7.0-1-amd64-unsigned
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-doc-4.7 (4.7.8-1)
  debian-kernel-handbook (1.0.17)
  grub-pc (2.02~beta3-1)
  | grub-efi-amd64 (2.02~beta3-1)
  | extlinux (3:6.03+dfsg-14)
Recommended packages:
  firmware-linux-free (3.4)
  irqbalance (1.1.0-2)
The following packages will be REMOVED:
  linux-image-4.7.0-1-amd64* (4.7.6-1)
The following NEW packages will be installed:
  linux-image-4.7.0-1-amd64-unsigned (4.7.8-1)
0 upgraded, 1 newly installed, 1 to remove and 35 not upgraded.
Need to get 36.8 MB of archives.
After this operation, 1709 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org/debian unstable/main amd64 
linux-image-4.7.0-1-amd64-unsigned amd64 4.7.8-1 [36.8 MB]
Fetched 36.8 MB in 1s (28.7 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 14226 files and directories currently installed.)
Removing linux-image-4.7.0-1-amd64 (4.7.6-1) ...
W: Last kernel image has been removed, so removing the default symlinks
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.7.0-1-amd64
Selecting previously unselected package linux-image-4.7.0-1-amd64-unsigned.
(Reading database ... 10177 files and directories currently installed.)
Preparing to unpack .../linux-image-4.7.0-1-amd64-unsigned_4.7.8-1_amd64.deb ...
Unpacking linux-image-4.7.0-1-amd64-unsigned (4.7.8-1) ...
Setting up linux-image-4.7.0-1-amd64-unsigned (4.7.8-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.7.0-1-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-4.7.0-1-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.7.0-1-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.7.0-1-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.7.0-1-amd64
cp: cannot stat '/etc/modprobe.d/*': No such file or directory
(Reading database ... 14224 files and directories currently installed.)
Removing linux-image-4.7.0-1-amd64 (4.7.6-1) ...
Purging configuration files for linux-image-4.7.0-1-amd64 (4.7.6-1) ...
W: Last kernel image has been removed, so removing the default symlinks
rmdir: failed to remove '/lib/modules/4.7.0-1-amd64': Directory not empty
dpkg: error processing package linux-image-4.7.0-1-amd64 (--purge):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-4.7.0-1-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages linux-image-4.7.0-1-amd64 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.125
ii  kmod22-1.1
ii  linux-base  4.5

--
Jakub Wilk



Bug#811496: initramfs-tools: obsolete conffile /etc/bash_completion.d/initramfs-tools

2016-01-19 Thread Jakub Wilk

Package: initramfs-tools
Version: 0.121
User: debian...@lists.debian.org
Usertags: adequate obsolete-conffile

The package left obsolete conffile after upgrade:
/etc/bash_completion.d/initramfs-tools



This bug was brought to you by adequate:
https://packages.debian.org/unstable/main/adequate



-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages initramfs-tools depends on:
ii  initramfs-tools-core  0.121
ii  linux-base4.0

Versions of packages initramfs-tools suggests:
pn  bash-completion  


--
Jakub Wilk



Bug#803323: linux: postinst: typo "dangling linkto"

2015-10-28 Thread Jakub Wilk

Source: linux
Severity: minor
Tags: patch

--
Jakub Wilk
diff --git a/debian/templates/image.plain.postinst.in b/debian/templates/image.plain.postinst.in
index 439d4b8..5551895 100755
--- a/debian/templates/image.plain.postinst.in
+++ b/debian/templates/image.plain.postinst.in
@@ -198,7 +198,7 @@ sub move_p {
 
   if (!defined($vmlinuz_target) || ! -f "$real_target") {
 # what, a dangling symlink?
-warn "The link "  . $image_dest . "$kimage is a dangling link" .
+warn "The link "  . $image_dest . "$kimage is a dangling link " .
   "to $real_target\n";
 $force_move = 1;
 return $force_move;


Bug#762870: initramfs-tools: fails to boot after upgrade from 0.116 to 0.117

2014-09-26 Thread Jakub Wilk

-f: No such file or directory


I believe this was caused by:
http://anonscm.debian.org/cgit/kernel/initramfs-tools.git/commit/?id=be18fee1bd52

The readlink command in initramfs doesn't seem to support -f:

$ readlink -f /
-f: No such file or directory

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140926125928.ga7...@jwilk.net



Bug#676486: mkinitramfs: Error: missing parameters. See -h.

2012-06-07 Thread Jakub Wilk

Package: initramfs-tools
Version: 0.105

If I run update-initramfs, it prints an error message about missing 
parameters:


# update-initramfs -u -k 3.3.0-trunk-amd64
update-initramfs: Generating /boot/initrd.img-3.3.0-trunk-amd64
Error: missing parameters. See -h.


To debug this, I added set -x to mkinitramfs:

+ hidden_dep_add_modules
+ local modules=
+ set -- lib/libcrc32c crc32c
+ [ -f 
/var/tmp/mkinitramfs_Qadg11/lib/modules/3.3.0-trunk-amd64/kernel/lib/libcrc32c.ko
 ]
+ set -- fs/ubifs/ubifs deflate zlib lzo
+ [ -f 
/var/tmp/mkinitramfs_Qadg11/lib/modules/3.3.0-trunk-amd64/kernel/fs/ubifs/ubifs.ko
 ]
+ manual_add_modules
+ local prefix kmod options firmware
+ modprobe --all --set-version=3.3.0-trunk-amd64 --ignore-install --quiet 
--show-depends
+ read prefix kmod options
Error: missing parameters. See -h.


[ Of course the error comes from modprobe, not read. ]


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio   2.11-7
ii  klibc-utils2.0-2
ii  kmod   8-2
ii  module-init-tools  8-2
ii  udev   175-3.1

Versions of packages initramfs-tools recommends:
ii  busybox-static  1:1.19.3-7

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120607094146.ga1...@jwilk.net



Re: amd64 as default architecture

2012-05-22 Thread Jakub Wilk

* Ben Hutchings b...@decadent.org.uk, 2012-05-20, 03:16:
5. Installer for i386 prefers amd64 kernel on any capable machine 
(that's a one-line change!) and adds amd64 as secondary architecture if 
this is selected.


We have still some software that doesn't work with 64-bit kernel, and 
(worse!) some maintainers claiming it's not a bug.


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120522172721.ga8...@jwilk.net



Bug#624795: linux-base: $0 in linux-version help

2011-05-01 Thread Jakub Wilk

Package: linux-base
Version: 3.2
Severity: minor
Tags: patch

$ linux-version --help | head -n1
Usage: $0 compare VERSION1 OP VERSION2

It should be linux-version instead of $0.

--
Jakub Wilk
diff --git a/bin/linux-version b/bin/linux-version
--- a/bin/linux-version
+++ b/bin/linux-version
@@ -23,7 +23,7 @@
 
 sub usage {
 my $fh = shift;
-print $fh ( 'EOT');
+print $fh ( EOT);
 Usage: $0 compare VERSION1 OP VERSION2
$0 sort [--reverse] [VERSION1 VERSION2 ...]
$0 list [--paths]


Bug#613078: xserver-xorg-video-nouveau: corrupted graphics on GeForce 6150SE nForce 430

2011-02-27 Thread Jakub Wilk

* Sven Joachim svenj...@gmx.de, 2011-02-23, 17:23:
The mentioned patch was rather a hack, 2.6.38-rc6 has a proper patch 
that supposedly fixes the problem (see comment #36 in the upstream 
bug). Jakub, could you please verify this (2.6.38-rc6 is available from 
experimental)?


I confirm that 2.6.38-rc6 fixes the problem for me.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110227111820.ga2...@jwilk.net



Bug#604604: qemu-kvm: vm entry failed with error 0xffffffff; kvm_run returned -22

2010-11-23 Thread Jakub Wilk

* Michael Tokarev m...@tls.msk.ru, 2010-11-23, 11:02:

The problem case happens on 32bit kernel only and does
not happen on 64bit.  Please try with amd64 kernel
(linux-image-2.6.32-5-amd64) - it should just work.


Indeed, it works fine with linux-image-2.6.32-5-amd64.

Thanks for your work on this issue!

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101123163612.ga9...@jwilk.net



Bug#512538: kernel BUG at arch/x86/kvm/mmu.c:553

2010-02-18 Thread Jakub Wilk

submitter 512538 !
thanks

* Moritz Muehlenhoff j...@inutil.org, 2010-02-18, 23:47:

Package: linux-image-2.6.26-1-686
Version: 2.6.26-13
Severity: normal

I encountered the following bug while normally using kvm:


For Lenny you could try the separate kvm source package, maybe
it doesn' expose the bug.

Is this still reproducible with 2.6.32?


I've never seen this bug triggering after the original report.

--
Jakub Wilk


signature.asc
Description: Digital signature


Bug#544997: nvidiafb: BUG: soft lockup - CPU#1 stuck for 61s!

2009-09-04 Thread Jakub Wilk
-prefetchable) [size=32K]
Capabilities: access denied
Kernel driver in use: rt61pci
Kernel modules: rt61pci

01:07.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video 
Capture [109e:036e] (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 32 (4000ns min, 1ns max)
Interrupt: pin A routed to IRQ 17
Region 0: Memory at e510 (32-bit, prefetchable) [size=4K]
Capabilities: access denied
Kernel driver in use: bttv
Kernel modules: bttv

01:07.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture 
[109e:0878] (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 32 (1000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 10
Region 0: Memory at e5101000 (32-bit, prefetchable) [size=4K]
Capabilities: access denied



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-2.6.30-1-686 depends on:
ii  debconf [debconf-2.0] 1.5.27 Debian configuration management sy
ii  initramfs-tools [linux-initra 0.93.4 tools for generating an initramfs
ii  module-init-tools 3.10-3 tools for managing Linux kernel mo

Versions of packages linux-image-2.6.30-1-686 recommends:
ii  libc6-i6862.9-26 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.30-1-686 suggests:
ii  lilo  1:22.8-8   LInux LOader - The Classic OS load
pn  linux-doc-2.6.30  none (no description available)

-- debconf-show failed

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534690: linux-image-2.6.30-1-686: unable to unmount a loop device

2009-06-26 Thread Jakub Wilk

Package: linux-image-2.6.30-1-686
Version: 2.6.30-1
Severity: normal

# lsmod | grep -c loop
0

# modprobe loop max_part=8

# dd if=/dev/zero of=/tmp/fs bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00407344 s, 257 MB/s

# mke2fs -F -q /tmp/fs

# mkdir /tmp/mnt/

# mount -o loop /tmp/fs /tmp/mnt/

# umount /tmp/mnt/
[  284.509864] BUG: unable to handle kernel NULL pointer dereference at 0060
[  284.509902] IP: [c01f6f27] blkdev_ioctl+0x25/0x842
[  284.509929] *pde = 
[  284.509944] Oops:  [#1] SMP
[  284.509963] last sysfs file: /sys/devices/virtual/block/loop0/removable
[  284.509980] Modules linked in: loop ext2 tun kvm_amd kvm binfmt_misc 
nf_conntrack_ipv6 ip6table_filter ip6_tables nvidiafb fb_ddc vgastate xt_MARK 
iptable_mangle iptable_nat nf_nat ipt_REJECT xt_tcpudp nf_conntrack_ipv4 
nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables fuse 
snd_hda_codec_realtek tvaudio tda7432 tuner_simple tuner_types tuner arc4 ecb 
snd_hda_intel snd_hda_codec bttv ir_common snd_hwdep i2c_algo_bit v4l2_common 
videodev v4l1_compat snd_pcm videobuf_dma_sg snd_seq snd_timer snd_seq_device 
rt61pci crc_itu_t rt2x00pci snd videobuf_core btcx_risc rt2x00lib soundcore 
snd_page_alloc led_class input_polldev mac80211 tveeprom cfg80211 eeprom_93cx6 
i2c_nforce2 i2c_core evdev processor button k8temp serio_raw psmouse ext3 jbd 
mbcache ide_gd_mod ide_cd_mod cdrom ata_generic libata scsi_mod ide_pci_generic 
amd74xx forcedeth ide_core ohci_hcd ehci_hcd usbcore floppy thermal fan 
thermal_sys [last unloaded: loop]
[  284.510570]
[  284.510581] Pid: 3328, comm: umount Not tainted (2.6.30-1-686 #1) M61SME-S2
[  284.510600] EIP: 0060:[c01f6f27] EFLAGS: 00010287 CPU: 1
[  284.510617] EIP is at blkdev_ioctl+0x25/0x842
[  284.510630] EAX:  EBX: 125f ECX: 125f EDX: 
[  284.510645] ESI:  EDI:  EBP:  ESP: c3fefe08
[  284.510662]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[  284.510677] Process umount (pid: 3328, ti=c3fee000 task=c3d2e750 
task.ti=c3fee000)
[  284.510694] Stack:
[  284.510704]  c011dda9 c04ca6ec c3d2e750 c3cacc80  c3cacc80 c3cacc80 
c04951c0
[  284.510756]  c031ce8e c38630c0 0b00 c04951c0  0212  
c3d2e904
[  284.510814]  0001 0246 3e1b71e2 0042 c040c840 000c c017160e 
000c
[  284.510876] Call Trace:
[  284.510886]  [c011dda9] ? pick_next_task_fair+0x80/0x87
[  284.510909]  [c031ce8e] ? __schedule+0x719/0x746
[  284.510931]  [c017160e] ? release_pages+0x11c/0x124
[  284.510953]  [c011cc82] ? update_curr+0x58/0x178
[  284.510973]  [c031cec0] ? schedule+0x5/0x13
[  284.510991]  [c031cfeb] ? schedule_timeout+0x14/0xbd
[  284.511011]  [c011cf9e] ? check_preempt_wakeup+0x139/0x173
[  284.511031]  [c031c6c7] ? wait_for_common+0xc1/0x112
[  284.511051]  [c0121ee3] ? default_wake_function+0x0/0x8
[  284.511075]  [c01a9eac] ? ioctl_by_bdev+0x20/0x2f
[  284.511096]  [f8463f90] ? loop_clr_fd+0x186/0x1a2 [loop]
[  284.59]  [f8463fdb] ? lo_release+0x2f/0x53 [loop]
[  284.511141]  [c01aa955] ? __blkdev_put+0x7a/0x10f
[  284.511160]  [c01ba4dd] ? vfs_quota_off+0x0/0xd
[  284.511183]  [c018f4ad] ? deactivate_super+0x4a/0x61
[  284.511204]  [c019e6d5] ? sys_umount+0x29a/0x2c0
[  284.511225]  [c019e706] ? sys_oldumount+0xb/0xe
[  284.511243]  [c0103014] ? sysenter_do_call+0x12/0x28
[  284.511264] Code: 40 e9 30 57 f2 ff 55 89 d5 57 56 89 c6 53 89 cb 81 ec f0 00 00 
00 81 f9 65 12 00 00 89 44 24 38 8b bc 24 04 01 00 00 89 44 24 10 8b 50 60 0f 
84 cb 03 00 00 77 79 81 f9 60 12 00 00 0f 84 77 07
[  284.511591] EIP: [c01f6f27] blkdev_ioctl+0x25/0x842 SS:ESP 0068:c3fefe08
[  284.511618] CR2: 0060
[  284.511631] ---[ end trace 35bc3eb2ec9cc947 ]---
Killed


-- Package-specific info:
** Version:
Linux version 2.6.30-1-686 (Debian 2.6.30-1) (wa...@debian.org) (gcc version 
4.3.3 (Debian 4.3.3-11) ) #1 SMP Sun Jun 14 16:11:32 UTC 2009

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-2.6.30-1-686 depends on:
ii  debconf [debconf-2.0] 1.5.26 Debian configuration management sy
ii  initramfs-tools [linux-initra 0.93.3 tools for generating an initramfs
ii  module-init-tools 3.9-2  tools for managing Linux kernel mo

Versions of packages linux-image-2.6.30-1-686 recommends:
ii  libc6-i6862.9-18 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.30-1-686 suggests:
ii  lilo  1:22.8-7   LInux LOader - The Classic OS load
pn  linux-doc-2.6.30  none (no description available)

-- debconf-show failed

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org

Bug#512538: kernel BUG at arch/x86/kvm/mmu.c:553

2009-01-21 Thread Jakub Wilk

Package: linux-image-2.6.26-1-686
Version: 2.6.26-13
Severity: normal

I encountered the following bug while normally using kvm:

kvm: guest NX capability removed
kvm: guest NX capability removed
apic write: bad size=1 fee00030
Ignoring de-assert INIT to vcpu 0
Ignoring de-assert INIT to vcpu 0
kvm: emulating exchange as write
rmap_remove:  f2acd6f8 1ffe6067 1-BUG
[ cut here ]
kernel BUG at arch/x86/kvm/mmu.c:553!
invalid opcode:  [#1] SMP 
Modules linked in: snd_seq_dummy arc4 ecb crypto_blkcipher zd1211rw mac80211 cfg80211 tun ipx p8023 kvm_amd kvm binfmt_misc ipt_REJECT xt_tcpudp xt_state iptable_filter iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nvidiafb ip_tables fb_ddc vgastate x_tables fuse tuner_simple tuner_types tuner tvaudio bttv videodev v4l1_compat ir_common compat_ioctl32 i2c_algo_bit acx v4l2_common videobuf_dma_sg videobuf_core btcx_risc firmware_class tveeprom snd_hda_intel snd_pcm snd_seq snd_timer snd_seq_device snd soundcore psmouse snd_page_alloc k8temp serio_raw button evdev parport_pc parport i2c_nforce2 i2c_core ext3 jbd mbcache ide_disk ide_cd_mod cdrom ide_pci_generic amd74xx ide_core floppy ata_generic forcedeth libata scsi_mod dock ehci_hcd ohci_hcd usbcore thermal processor fan thermal_sys


Pid: 3817, comm: kvm Not tainted (2.6.26-1-686 #1)
EIP: 0060:[f9b87d45] EFLAGS: 00010292 CPU: 1
EIP is at rmap_remove+0xf5/0x17d [kvm]
EAX: 0039 EBX: c4142394 ECX:  EDX: 0086
ESI: fbcda808 EDI: c4324000 EBP: f2acd6f8 ESP: c41e9be4
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process kvm (pid: 3817, ti=c41e8000 task=c3ec2280 task.ti=c41e8000)
Stack: f9b92021 f2acd6f8 1ffe6067  c4324000 c4142394 f2acd6f8 c4142394 
   c4324000 00df f9b87e7f  0380 0004 0004 0004 
   f9b89465 0004 321f6380  c4336020 0003 000321f6 c4142394 
Call Trace:

 [f9b87e7f] kvm_mmu_zap_page+0x92/0x24c [kvm]
 [f9b89465] kvm_mmu_pte_write+0x2c7/0x783 [kvm]
 [f9b81622] mark_page_dirty+0x14/0x33 [kvm]
 [f9b8169e] kvm_write_guest_page+0x31/0x3e [kvm]
 [f9b83e78] emulator_write_phys+0x32/0x40 [kvm]
 [f9b84f77] emulator_write_emulated_onepage+0x69/0x10b [kvm]
 [f9b8e204] x86_emulate_insn+0x2b95/0x3495 [kvm]
 [f9b8ac21] do_insn_fetch+0x55/0x8b [kvm]
 [f9b8ad9b] decode_register_operand+0x6a/0x9b [kvm]
 [f9b8b4b8] x86_decode_insn+0x6ec/0x8a3 [kvm]
 [f9b8313a] get_segment+0xa/0xc [kvm]
 [f9b8314e] kvm_get_cs_db_l_bits+0x12/0x26 [kvm]
 [f9b83d1c] emulate_instruction+0x172/0x29c [kvm]
 [f9b89168] kvm_mmu_page_fault+0x38/0x6e [kvm]
 [f8b5351c] handle_exit+0x18f/0x196 [kvm_amd]
 [f9b86a65] kvm_arch_vcpu_ioctl_run+0x3fe/0x589 [kvm]
 [f9b822a5] kvm_vcpu_ioctl+0xe4/0x34c [kvm]
 [c010296e] __switch_to+0xa5/0x125
 [c011d3bd] hrtick_set+0x7a/0xd8
 [c02b831f] schedule+0x63d/0x66f
 [c013604c] getnstimeofday+0x37/0xbc
 [c01344c2] ktime_get_ts+0x22/0x49
 [c010f91b] apic_wait_icr_idle+0xe/0x15
 [c0118ff8] __resched_task+0x5c/0x5f
 [c011b679] try_to_wake_up+0xe8/0xf1
 [c011845d] __wake_up_common+0x2e/0x58
 [c011a641] __wake_up+0x29/0x39
 [c013a976] wake_futex+0x1c/0x26
 [c013ac12] futex_wake+0x9f/0xcd
 [c013b695] do_futex+0x8a/0x6ff
 [f9b81fc0] kvm_vm_ioctl+0x163/0x174 [kvm]
 [c01344f6] ktime_get+0xd/0x21
 [c010296e] __switch_to+0xa5/0x125
 [c011d3bd] hrtick_set+0x7a/0xd8
 [f9b821c1] kvm_vcpu_ioctl+0x0/0x34c [kvm]
 [c017e3f0] vfs_ioctl+0x1c/0x5d
 [c017e67b] do_vfs_ioctl+0x24a/0x261
 [c017e6d3] sys_ioctl+0x41/0x5a
 [c0103853] sysenter_past_esp+0x78/0xb1
 ===
Code: 55 68 01 20 b9 f9 e8 6e b1 59 c6 0f 0b 83 c4 10 eb fe a8 01 75 24 39 e8 74 18 ff 75 04 ff 75 00 55 68 21 20 b9 f9 e8 4e b1 59 c6 0f 0b 83 c4 10 eb fe c7 06 00 00 00 00 eb 72 89 c2 31 ff 83 e2 
EIP: [f9b87d45] rmap_remove+0xf5/0x17d [kvm] SS:ESP 0068:c41e9be4

---[ end trace 6823534350d8585a ]---

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-2.6.26-1-686 depends on:
ii  debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii  initramfs-tools [linux-initra 0.92o  tools for generating an initramfs
ii  module-init-tools 3.4-1  tools for managing Linux kernel mo

Versions of packages linux-image-2.6.26-1-686 recommends:
ii  libc6-i6862.7-18 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.26-1-686 suggests:
ii  lilo  1:22.8-7   LInux LOader - The Classic OS load
pn  linux-doc-2.6.26  none (no description available)

-- debconf information excluded

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#494477: Linux 2.6.26-1-686: insert key behaves abnormally

2008-08-10 Thread Jakub Wilk

* Moritz Muehlenhoff [EMAIL PROTECTED], 2008-08-10, 16:32:

Package: linux-image-2.6.26-1-686
Version: 2.6.26-1
Severity: normal

Under Linux 2.6.26-1-686 the insert key behaves in a very weird way: 
after pressing it the following keys does not work anymore: home, 
page up, page down and arrow keys.


I'm experiencing the same problem and opened an upstream bug:
http://bugzilla.kernel.org/show_bug.cgi?id=11242

Do you have also have an IBM Thinkpad?

No, I have a PC with a PS/2 keyboard.


Does is also occur on fbcon?

Yes.

Can you please add your information and the kbdmode output to the 
kernel Bugzilla bug?

Done.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#494477: Linux 2.6.26-1-686: insert key behaves abnormally

2008-08-09 Thread Jakub Wilk

Package: linux-image-2.6.26-1-686
Version: 2.6.26-1
Severity: normal

Under Linux 2.6.26-1-686 the insert key behaves in a very weird way: after
pressing it the following keys does not work anymore: home, page up, page down
and arrow keys.

For example, under Linux 2.6.25-2-686, pressing left, insert, left, insert,
left, insert produces the following `kbdmode -a` output:

^[[D 27 0033 0x1b
 91 0133 0x5b
 68 0104 0x44
^[[2~27 0033 0x1b
 91 0133 0x5b
 50 0062 0x32
126 0176 0x7e
^[[D 27 0033 0x1b
 91 0133 0x5b
 68 0104 0x44
^[[2~27 0033 0x1b
 91 0133 0x5b
 50 0062 0x32
126 0176 0x7e
^[[D 27 0033 0x1b
 91 0133 0x5b
 68 0104 0x44
^[[2~27 0033 0x1b
 91 0133 0x5b
 50 0062 0x32
126 0176 0x7e

But under Linux 2.6.26-1-686, the output is:

^[[D 27 0033 0x1b
 91 0133 0x5b
 68 0104 0x44
^[[D 27 0033 0x1b
 91 0133 0x5b
 68 0104 0x44

-- Package-specific info:

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-2.6.26-1-686 depends on:
ii  debconf [debconf-2.0] 1.5.22 Debian configuration management sy
ii  initramfs-tools [linux-initra 0.92e  tools for generating an initramfs
ii  module-init-tools 3.4-1  tools for managing Linux kernel mo

Versions of packages linux-image-2.6.26-1-686 recommends:
ii  libc6-i6862.7-13 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.26-1-686 suggests:
ii  lilo  1:22.8-6   LInux LOader - The Classic OS load
pn  linux-doc-2.6.26  none (no description available)

-- debconf information excluded

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]