Bug#994860: Thank you Raphael Robatsch!

2021-10-01 Thread Koutheir Attouchi
Your patch works well for me too.

Dr. Koutheir Attouchi.


Bug#973613: cifs-utils: CIFS kernel module crash

2021-02-12 Thread Koutheir Attouchi
Hi,

I cannot replicate the issue with my currently-installed kernel
"5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux".

Kind regards.

Dr. Koutheir Attouchi.


On Fri, Feb 12, 2021 at 8:52 AM Salvatore Bonaccorso 
wrote:

> Control: tags -1 + moreinfo
> Control: severity - 1 important
>
> Hi,
>
> On Mon, Nov 02, 2020 at 09:30:56AM -0500, Koutheir Attouchi wrote:
> > Package: cifs-utils
> > Version: 2:6.9-1
> > Severity: critical
> > Justification: breaks unrelated software
> > X-Debbugs-Cc: kouth...@gmail.com
> >
> > Dear Maintainer,
> >
> > Attempting to mount a CIFS share crashes the CIFS module, and makes the
> system
> > unstable.
> >
> > Here is the mounting command:
> > $ sudo mount -v -t cifs -o
> >
> nodfs,_netdev,sec=ntlmssp,user,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,credentials=/credentials.conf
> > //10.10.1.22/shares 
> >
> > $ sudo dmesg
> > ...
> > [  211.588679] CIFS: Attempting to mount //10.10.1.22/shares
> > [  211.588710] CIFS: No dialect specified on mount. Default has changed
> to a
> > more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1).
> To use
> > the less secure SMB1 dialect to access old servers which do not support
> > SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
> > [  213.409379] CIFS: VFS: \\10.10.1.22\IPC$ DFS capability contradicts
> DFS flag
> > [  213.614168] CIFS: VFS: \\10.10.1.22\IPC$ validate protocol negotiate
> failed:
> > -9
> > [  213.614177] CIFS: VFS: \\10.10.1.22 failed to connect to IPC (rc=-5)
> > [  213.818979] CIFS: VFS: \\10.10.1.22\shares DFS capability contradicts
> DFS
> > flag
> > [  214.024488] CIFS: VFS: \\10.10.1.22\shares Server does not support
> validate
> > negotiate
> > [  216.072372] BUG: kernel NULL pointer dereference, address:
> 07a0
> > [  216.072380] #PF: supervisor read access in kernel mode
> > [  216.072383] #PF: error_code(0x) - not-present page
> > [  216.072386] PGD 0 P4D 0
> > [  216.072392] Oops:  [#1] SMP PTI
> > [  216.072399] CPU: 0 PID: 3551 Comm: mount.cifs Tainted: G   OE
> > 5.9.0-1-amd64 #1 Debian 5.9.1-1
> > [  216.072402] Hardware name: LENOVO 20BE00CQGE/20BE00CQGE, BIOS
> GMET90WW (2.38
> > ) 04/13/2020
> > [  216.072460] RIP: 0010:cifs_mount+0x23b/0xcf0 [cifs]
> > [  216.072466] Code: 85 ff 74 42 48 c7 c7 e8 10 9a c1 e8 ef 14 b8 ea 41
> 83 47
> > 50 01 48 89 ef e8 f2 0a 02 00 49 8b 4f 20 48 c7 c7 e8 10 9a c1 89 c2
> <0f> b6 81
> > a0 07 00 00 83 e2 03 83 e0 fc 09 d0 88 81 a0 07 00 00 c6
> > [  216.072470] RSP: 0018:b4148295fd50 EFLAGS: 00010206
> > [  216.072474] RAX: 0001 RBX: 9ff677a31400 RCX:
> > 
> > [  216.072477] RDX: 0001 RSI: 002f RDI:
> > c19a10e8
> > [  216.072480] RBP: 9ff6a900 R08: b4148295fcd0 R09:
> > 9ff70bb71b00
> > [  216.072483] R10: b4148295fd08 R11:  R12:
> > 9ff6777f7f00
> > [  216.072486] R13: 9ff677a31400 R14:  R15:
> > 9ff79c8ed800
> > [  216.072490] FS:  7f5fddec1740() GS:9ff82e60()
> > knlGS:
> > [  216.072493] CS:  0010 DS:  ES:  CR0: 80050033
> > [  216.072496] CR2: 07a0 CR3: 00023fedc004 CR4:
> > 001706f0
> > [  216.072499] Call Trace:
> > [  216.072516]  ? slab_pre_alloc_hook.constprop.0+0xd0/0x110
> > [  216.072556]  cifs_smb3_do_mount+0xc5/0x6a0 [cifs]
> > [  216.072566]  legacy_get_tree+0x27/0x40
> > [  216.072574]  vfs_get_tree+0x25/0xb0
> > [  216.072581]  path_mount+0x43d/0xa60
> > [  216.072589]  __x64_sys_mount+0x103/0x140
> > [  216.072596]  do_syscall_64+0x33/0x80
> > [  216.072604]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
> > [  216.072609] RIP: 0033:0x7f5fddfc294a
> > [  216.072615] Code: 48 8b 0d 49 f5 0b 00 f7 d8 64 89 01 48 83 c8 ff c3
> 66 2e
> > 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05
> <48> 3d 01
> > f0 ff ff 73 01 c3 48 8b 0d 16 f5 0b 00 f7 d8 64 89 01 48
> > [  216.072618] RSP: 002b:7ffd8ce9ecd8 EFLAGS: 0206 ORIG_RAX:
> > 00a5
> > [  216.072622] RAX: ffda RBX: 7ffd8ce9f790 RCX:
> > 7f5fddfc294a
> > [  216.072625] RDX: 55826fdf73fa RSI: 55826fdf7441 RDI:
> > 7ffd8ce9f790
> > [  216.072628] RBP: 5582712878d0 R08: 558271288990 R09:
> > 
> > [  216.072631] R10: 000e R11: 0

Bug#973613: Soft lockup

2020-11-02 Thread Koutheir Attouchi
Running the same command again causes a lock down and the message:

kernel:[  932.068256] watchdog: BUG: soft lockup - CPU#3 stuck for 23s!
[mount.cifs:3945]

And the only way to reboot is to force a shutdown.


Bug#973613: cifs-utils: CIFS kernel module crash

2020-11-02 Thread Koutheir Attouchi
Package: cifs-utils
Version: 2:6.9-1
Severity: critical
Justification: breaks unrelated software
X-Debbugs-Cc: kouth...@gmail.com

Dear Maintainer,

Attempting to mount a CIFS share crashes the CIFS module, and makes the system
unstable.

Here is the mounting command:
$ sudo mount -v -t cifs -o
nodfs,_netdev,sec=ntlmssp,user,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,credentials=/credentials.conf
//10.10.1.22/shares 

$ sudo dmesg
...
[  211.588679] CIFS: Attempting to mount //10.10.1.22/shares
[  211.588710] CIFS: No dialect specified on mount. Default has changed to a
more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use
the less secure SMB1 dialect to access old servers which do not support
SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
[  213.409379] CIFS: VFS: \\10.10.1.22\IPC$ DFS capability contradicts DFS flag
[  213.614168] CIFS: VFS: \\10.10.1.22\IPC$ validate protocol negotiate failed:
-9
[  213.614177] CIFS: VFS: \\10.10.1.22 failed to connect to IPC (rc=-5)
[  213.818979] CIFS: VFS: \\10.10.1.22\shares DFS capability contradicts DFS
flag
[  214.024488] CIFS: VFS: \\10.10.1.22\shares Server does not support validate
negotiate
[  216.072372] BUG: kernel NULL pointer dereference, address: 07a0
[  216.072380] #PF: supervisor read access in kernel mode
[  216.072383] #PF: error_code(0x) - not-present page
[  216.072386] PGD 0 P4D 0
[  216.072392] Oops:  [#1] SMP PTI
[  216.072399] CPU: 0 PID: 3551 Comm: mount.cifs Tainted: G   OE
5.9.0-1-amd64 #1 Debian 5.9.1-1
[  216.072402] Hardware name: LENOVO 20BE00CQGE/20BE00CQGE, BIOS GMET90WW (2.38
) 04/13/2020
[  216.072460] RIP: 0010:cifs_mount+0x23b/0xcf0 [cifs]
[  216.072466] Code: 85 ff 74 42 48 c7 c7 e8 10 9a c1 e8 ef 14 b8 ea 41 83 47
50 01 48 89 ef e8 f2 0a 02 00 49 8b 4f 20 48 c7 c7 e8 10 9a c1 89 c2 <0f> b6 81
a0 07 00 00 83 e2 03 83 e0 fc 09 d0 88 81 a0 07 00 00 c6
[  216.072470] RSP: 0018:b4148295fd50 EFLAGS: 00010206
[  216.072474] RAX: 0001 RBX: 9ff677a31400 RCX:

[  216.072477] RDX: 0001 RSI: 002f RDI:
c19a10e8
[  216.072480] RBP: 9ff6a900 R08: b4148295fcd0 R09:
9ff70bb71b00
[  216.072483] R10: b4148295fd08 R11:  R12:
9ff6777f7f00
[  216.072486] R13: 9ff677a31400 R14:  R15:
9ff79c8ed800
[  216.072490] FS:  7f5fddec1740() GS:9ff82e60()
knlGS:
[  216.072493] CS:  0010 DS:  ES:  CR0: 80050033
[  216.072496] CR2: 07a0 CR3: 00023fedc004 CR4:
001706f0
[  216.072499] Call Trace:
[  216.072516]  ? slab_pre_alloc_hook.constprop.0+0xd0/0x110
[  216.072556]  cifs_smb3_do_mount+0xc5/0x6a0 [cifs]
[  216.072566]  legacy_get_tree+0x27/0x40
[  216.072574]  vfs_get_tree+0x25/0xb0
[  216.072581]  path_mount+0x43d/0xa60
[  216.072589]  __x64_sys_mount+0x103/0x140
[  216.072596]  do_syscall_64+0x33/0x80
[  216.072604]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  216.072609] RIP: 0033:0x7f5fddfc294a
[  216.072615] Code: 48 8b 0d 49 f5 0b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e
0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01
f0 ff ff 73 01 c3 48 8b 0d 16 f5 0b 00 f7 d8 64 89 01 48
[  216.072618] RSP: 002b:7ffd8ce9ecd8 EFLAGS: 0206 ORIG_RAX:
00a5
[  216.072622] RAX: ffda RBX: 7ffd8ce9f790 RCX:
7f5fddfc294a
[  216.072625] RDX: 55826fdf73fa RSI: 55826fdf7441 RDI:
7ffd8ce9f790
[  216.072628] RBP: 5582712878d0 R08: 558271288990 R09:

[  216.072631] R10: 000e R11: 0206 R12:
558271288990
[  216.072633] R13:  R14: 7f5fde0c070e R15:
7f5fde0be000
[  216.072638] Modules linked in: md4 sha512_ssse3 sha512_generic cmac nls_utf8
cifs dns_resolver fscache libdes tun veth xt_conntrack nf_conntrack_netlink
xfrm_user xfrm_algo xt_addrtype br_netfilter overlay xt_CHECKSUM nft_chain_nat
xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_counter
vboxnetadp(OE) vboxnetflt(OE) xt_tcpudp nft_compat bridge stp llc vboxdrv(OE)
nf_tables nfnetlink ctr ccm bnep snd_seq_dummy snd_hrtimer snd_seq
snd_seq_device bbswitch(OE) binfmt_misc intel_rapl_msr intel_rapl_common btusb
btrtl btbcm btintel x86_pkg_temp_thermal bluetooth intel_powerclamp kvm_intel
jitterentropy_rng drbg kvm irqbypass iwlmvm ghash_clmulni_intel
snd_hda_codec_hdmi mac80211 rapl uvcvideo snd_hda_codec_realtek aes_generic
intel_cstate videobuf2_vmalloc libarc4 snd_hda_codec_generic videobuf2_memops
videobuf2_v4l2 aesni_intel mei_wdt cdc_mbim videobuf2_common fuse snd_hda_intel
cdc_wdm crypto_simd i915 iwlwifi intel_uncore videodev snd_intel_dspcfg cryptd
snd_hda_codec
[  216.072704]  glue_helper pcspkr serio_raw wmi_bmof snd_hda_core ansi_cprng
cdc_ncm snd_hwdep iTCO_wdt snd_pcm intel_pmc_bxt iTCO_vendor_support
ecdh_generic cdc_ether mc joydev evdev rmi_smbus usbnet ecc 

Bug#970420: python: Unmet dependencies when installing python package

2020-09-16 Thread Koutheir Attouchi
If the package is gone, but it was the only manually installed package to
get Python, then the whole Python distribution becomes auto-removable,
unless people manually mark the python2 and/or python3 as manually
installed.

Many people will just find out that they don't have python support anymore,
even though they installed python manually in the past. There should have
been some change log to notify people about this change and the needed
manual intervention.

On Wed, Sep 16, 2020 at 4:50 AM Matthias Klose  wrote:

> Control: severity -1 important
> Control: merge -1 970375
>
> On 9/16/20 3:45 AM, Koutheir Attouchi wrote:
> > Package: python
> > Version: 2.7.17-2
> > Severity: grave
> > Justification: renders package unusable
> > X-Debbugs-Cc: kouth...@gmail.com
> >
> > Dear Maintainer,
> >
> > What led up to the situation?
> >
> > ```
> > $ sudo apt-get install python
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > Some packages could not be installed. This may mean that you have
> > requested an impossible situation or if you are using the unstable
> > distribution that some required packages have not yet been created
> > or been moved out of Incoming.
> > The following information may help to resolve the situation:
> >
> > The following packages have unmet dependencies:
> >  python : PreDepends: python-minimal (= 2.7.17-2) but it is not going to
> be
> > installed
> >   Depends: libpython-stdlib (= 2.7.17-2) but it is not going to
> be
> > installed
> >   Depends: python2 (= 2.7.17-2) but 2.7.18-2 is to be installed
> > E: Unable to correct problems, you have held broken packages.
> > ```
> >
> > In order to keep other python packages, I marked the `python2` and
> `python3`
> > packages as manually installed.
>
>
> no, the python package is gone.
>


-- 
Dr. Koutheir Attouchi.


Bug#970420: python: Unmet dependencies when installing python package

2020-09-15 Thread Koutheir Attouchi
Package: python
Version: 2.7.17-2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: kouth...@gmail.com

Dear Maintainer,

What led up to the situation?

```
$ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python : PreDepends: python-minimal (= 2.7.17-2) but it is not going to be
installed
  Depends: libpython-stdlib (= 2.7.17-2) but it is not going to be
installed
  Depends: python2 (= 2.7.17-2) but 2.7.18-2 is to be installed
E: Unable to correct problems, you have held broken packages.
```

In order to keep other python packages, I marked the `python2` and `python3`
packages as manually installed.



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

Kernel: Linux 5.8.0-1-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python depends on:
pn  libpython-stdlib  
pn  python-minimal
ii  python2   2.7.18-2
ii  python2.7 2.7.18-1

python recommends no packages.

Versions of packages python suggests:
pn  python-doc  
ii  python-tk   2.7.18-1